A_CheckTerrain

From ZDoom Wiki
Jump to navigation Jump to search

A_CheckTerrain

(no parameters)

Applies the effects of sector types 115 (instant death) and 118 (Strife's water scroller) to the calling actor.

Used in Strife for the shooting range targets and for the converted peasants, to move or remove them according to the sector they are currently in.

Examples

Strife's 'zombie' peasant actor:

ACTOR Zombie : StrifeHumanoid 169
{
	Game Strife
	Health 31
	Radius 20
	Height 56
	PainChance 0     // is put into Pain state only by a Teleport_ZombieChanger line
	+SOLID
	+SHOOTABLE
	+FLOORCLIP
	+CANPASS
	+CANPUSHWALLS
	+ACTIVATEMCROSS
	MinMissileChance 150
	MaxStepHeight 16
	MaxDropOffHeight 32
	Translation 0
	ConversationID 28, -1, -1
	DeathSound "zombie/death"
	States
	{
	Spawn:
		PEAS A 5 A_CheckTerrain       // looks like a Peasant
		Loop
	Pain:
		AGRD A 5 A_CheckTerrain       // looks like an Acolyte
		Loop
	Death:
		GIBS M 5 A_TossGib
		GIBS N 5 A_XScream
		GIBS O 5 A_NoBlocking
		GIBS PQRST 4 A_TossGib
		GIBS U 5
		GIBS V 1400
		Stop
	}
}