SeekerMissile

From Eternity Wiki
Jump to navigationJump to search

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