WhirlwindSeek

From Eternity Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

WhirlwindSeek is a special homing maintenance pointer for whirlwinds.

Usage

WhirlwindSeek

Parameters

No parameters.

Examples

From base/heretic/things.edf:

 Spawn:
   FX07 DEFG 3
   FX07 ABC  3 A_WhirlwindSeek
   goto Spawn+4

Notes

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.

See also