From Eternity Wiki
WhirlwindSeek is a special homing maintenance pointer for whirlwinds.
Spawn: FX07 DEFG 3 FX07 ABC 3 A_WhirlwindSeek goto Spawn+4
It does the following algorithm:
- It lowers the 0 counter by 3. When it reaches negative, it will stop the calling object's movement, make it enter its death state and remove its MISSILE flag. Algorithm will be exited.
- Then, it lowers the 1 counter by 3. When it reaches negative, it will reset the 1 counter to random(58,89) and play the ht_hedat3 sound. Execution continues.
- If the pursued target has nonnegative health and is not a GHOST, it will call HticTracer(10,30), possibly homing on it if SEEKERMISSILE is set and is spawned from a compatible codepointer. Otherwise, it will attempt to follow another target if the spawning object (e.g. the iron lich) has found another.