Skip to main content

Module ai

Module ai 

Source
Expand description

Enemy behaviour: perception (sight, hearing, editor flags), movement (chase, flee, strafe, obstacle and ledge avoidance) and special states (rising zombies, stone gargoyles, burning dudes). OpenBlood’s own design, tuned to feel like the original.

Constants§

KEEP_DISTANCE 🔒
Distance at which ranged attackers stop advancing and start strafing.
WANDER_DISTANCE 🔒
Idle dudes only wander while the player is beyond their sight range.

Functions§

is_statue
Stone/flesh statues that stay inert until shot or triggered.
starts_buried
Zombies that start buried or lying down and rise when the player comes close.