SeekerMissile: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "{{codepointer|Generic seeker missile, based on ZDoom rules. |usage='''A_SeekerMissile'''(''threshold'', ''max_turn_angle'', ''flags'', ''acquire_chance'', ''acquire_distance'') |parameters= *''threshold'': Angle turning threshold. If necessary angle to turn to target is beyond this, it will turn at half the rate towards it (default 90, limited to 0-90). *''max_turn_angle'': Rate of angle to turn (default 90, limited to 0-90). *''flags'': can be '''normal''' (which implie...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{codepointer|Generic seeker missile, based on ZDoom rules.
{{codepointer|description=Generic seeker missile, based on ZDoom rules.
|usage='''A_SeekerMissile'''(''threshold'', ''max_turn_angle'', ''flags'', ''acquire_chance'', ''acquire_distance'')
|usage='''A_SeekerMissile'''(''threshold'', ''max_turn_angle'', ''flags'', ''acquire_chance'', ''acquire_distance'')
|parameters=
|parameters=
*''threshold'': Angle turning threshold. If necessary angle to turn to target is beyond this, it will turn at half the rate towards it (default 90, limited to 0-90).
*''threshold'': Angle turning threshold. If necessary angle to turn to target is beyond this, it will turn at half the rate towards it (default 90, limited to 0-90).
*''max_turn_angle'': Rate of angle to turn (default 90, limited to 0-90).
*''max_turn_angle'': Rate of angle to turn (default 90, limited to 0-90).
*''flags'': can be '''normal''' (which implies nothing), or a combination (joined by "|", "+" or ",") of the following:
*''flags'': can be '''normal''' (which implies nothing), or a combination (joined by vertical bar, "+" or ",") of the following:
:*'''look''': if current seeking target is dead or doesn't exist, it will scan for new targets.
:*'''look''': if current seeking target is dead or doesn't exist, it will scan for new targets.
:*'''precise''': adjust the vertical (z) velocity precisely.
:*'''precise''': adjust the vertical (z) velocity precisely.
Line 12: Line 12:
|seealso=
|seealso=
*[[HticTracer]]
*[[HticTracer]]
*[[GenTracer]]
*[[GenTracer]]}}

Latest revision as of 15:28, 27 October 2024

Description

Generic seeker missile, based on ZDoom rules.

Usage

A_SeekerMissile(threshold, max_turn_angle, flags, acquire_chance, acquire_distance)

Parameters

  • threshold: Angle turning threshold. If necessary angle to turn to target is beyond this, it will turn at half the rate towards it (default 90, limited to 0-90).
  • max_turn_angle: Rate of angle to turn (default 90, limited to 0-90).
  • flags: can be normal (which implies nothing), or a combination (joined by vertical bar, "+" or ",") of the following:
  • look: if current seeking target is dead or doesn't exist, it will scan for new targets.
  • precise: adjust the vertical (z) velocity precisely.
  • curspeed: keep actual speed (if modified by other circumstances) instead of always going by the nominal thingtype speed value when updating the direction.
  • acquire_chance: change out of 256 of acquiring a detected target if look is in flags (default 50)
  • acquire_distance: distance in map blocks (i.e. blocks of 128 map units) to acquire new targets if look is used (default 10)

Examples

No examples given.

Notes

No particular notes.

See also