Editing WhirlwindSeek
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
WhirlwindSeek is a special homing maintenance pointer for whirlwinds. | |||
It does the following algorithm: | 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. | *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. | *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. | *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. | ||
*[[ | ===See also=== | ||
*[[List of codepointers]] | |||
[[Category:Codepointers]] |