Tracer: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with 'Used for a projectile that has the seeker missile thing type flag set and is fired from a codepointer that allows the missile to be homing. When this codepoi…')
 
No edit summary
 
Line 1: Line 1:
{{codepointer
|description=Revenant homing missile maintenance.
|usage=[[Tracer]]
|examples=
From base/doom/things.edf:
  Spawn:
    FATB AB 2 bright A_Tracer
    loop
|notes=
Used for a projectile that has the seeker missile [[thing type flags|thing type flag]] set and is fired from a codepointer that allows the missile to be homing. When this codepointer is triggered at each fourth tic, it will cause the projectile to change direction towards its shooter's target, as well as spawn smoke.
Used for a projectile that has the seeker missile [[thing type flags|thing type flag]] set and is fired from a codepointer that allows the missile to be homing. When this codepointer is triggered at each fourth tic, it will cause the projectile to change direction towards its shooter's target, as well as spawn smoke.


Note that by how the projectile looping states are set up, they may have even durations, causing the current tic to ''never'' be a multiple of four, such as: 3, 7, 11, 15... This is the case with Doom 2's revenant missile, and if that happens, it will not home. Using tics of odd durations, however, you can control the turning speed of the projectile, as they will always hit multiples of four.
Note that by how the projectile looping states are set up, they may have even durations, causing the current tic to ''never'' be a multiple of four, such as: 3, 7, 11, 15... This is the case with Doom 2's revenant missile, and if that happens, it will not home. Using tics of odd durations, however, you can control the turning speed of the projectile, as they will always hit multiples of four.
 
|seealso=
[[Category:Codepointers]]
*[[GenTracer]]
*[[HticTracer]]
*[[WhirlwindSeek]]}}

Latest revision as of 11:35, 26 April 2020

Description

Revenant homing missile maintenance.

Usage

Tracer

Parameters

No parameters.

Examples

From base/doom/things.edf:

 Spawn:
   FATB AB 2 bright A_Tracer
   loop

Notes

Used for a projectile that has the seeker missile thing type flag set and is fired from a codepointer that allows the missile to be homing. When this codepointer is triggered at each fourth tic, it will cause the projectile to change direction towards its shooter's target, as well as spawn smoke.

Note that by how the projectile looping states are set up, they may have even durations, causing the current tic to never be a multiple of four, such as: 3, 7, 11, 15... This is the case with Doom 2's revenant missile, and if that happens, it will not home. Using tics of odd durations, however, you can control the turning speed of the projectile, as they will always hit multiples of four.

See also