FirePlayerMissile: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Templatized. Updated with keywords.) |
No edit summary |
||
Line 1: | Line 1: | ||
{{Codepointer | | {{Codepointer | | ||
description='''FirePlayerMissile''' is a parameterized player weapon codepointer. This codepointer allows a custom player projectile attack. | | description='''FirePlayerMissile''' is a parameterized player weapon codepointer. This codepointer allows a custom player projectile attack. | | ||
usage='''FirePlayerMissile''' (''type'', '' | usage='''FirePlayerMissile''' (''type'', ''flags'')| | ||
parameters=*''type'': Thing type mnemonic of projectile to shoot. | parameters=*''type'': Thing type mnemonic of projectile to shoot. | ||
*'' | *''flags'': can be a combination of the following: | ||
** | **1 or '''homing''': may home (if calling any of the homing maintenance codepointers, it will target whatever's in sight) | ||
** | **2 or '''noammo''': do not consume ammo. | ||
notes=If homing | **For none of the above you can specify '''normal'''. | ||
|notes=If ''flags'' contains '''homing''' and the missile fired has a homing maintenance codepointer in its frames, the missile will home on the player's current autoaiming target, if one exists. These homing maintenance pointers include [[Tracer]], [[GenTracer]], [[HticTracer]], and [[WhirlwindSeek]], as well as MBF21 additions. | |||
| | | | ||
examples=| | examples=| |
Latest revision as of 15:55, 23 October 2024
Description
FirePlayerMissile is a parameterized player weapon codepointer. This codepointer allows a custom player projectile attack.
Usage
FirePlayerMissile (type, flags)
Parameters
- type: Thing type mnemonic of projectile to shoot.
- flags: can be a combination of the following:
- 1 or homing: may home (if calling any of the homing maintenance codepointers, it will target whatever's in sight)
- 2 or noammo: do not consume ammo.
- For none of the above you can specify normal.
Examples
Notes
If flags contains homing and the missile fired has a homing maintenance codepointer in its frames, the missile will home on the player's current autoaiming target, if one exists. These homing maintenance pointers include Tracer, GenTracer, HticTracer, and WhirlwindSeek, as well as MBF21 additions.