WhirlwindSeek: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "WhirlwindSeek is a special homing maintenance pointer for whirlwinds. It does the following algorithm: *It lowers the 0 counter by 3. When it reaches negative, it will stop the ...")
 
No edit summary
 
Line 1: Line 1:
WhirlwindSeek is a special homing maintenance pointer for whirlwinds.
{{codepointer
 
|description=WhirlwindSeek is a special homing maintenance pointer for whirlwinds.
|usage='''WhirlwindSeek'''
|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 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.
 
|seealso=
===See also===
*[[GenTracer]]
*[[List of codepointers]]
*[[HticTracer]]
 
*[[Tracer]]
[[Category:Codepointers]]
}}

Latest revision as of 11:36, 26 April 2020

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