ClassifyActor
From Eternity Wiki
Jump to navigationJump to search
int ClassifyActor(int tid)
Checks the kind of thing tagged tid. It returns a set of flags, possibly combined:
ACTOR_PLAYER (2): it's player-controlled
ACTOR_VOODOODOLL (8): it's a duplicate player start, not controlled by the player but still linked to it. Used in Boom maps for advanced mapping tricks
ACTOR_MONSTER (16): it's a monster (has COUNTKILL or KILLABLE thing type flag set)
ACTOR_MISSILE (128): it's a projectile in flight (has MISSILE thing type flag set)
ACTOR_GENERIC (256): neither a monster, nor a projectile
ACTOR_ALIVE (32): has positive health
ACTOR_DEAD (64): has health <= 0
ACTOR_NONE (0): no thing found with this TID
ACTOR_WORLD (1): TID is 0 but activator isn't a thing