wiki:fw

Version 4 (modified by jpawlick, 13 years ago) (diff)

--

This command tells the agent to fire its weapon until the next AI frame. It fires the weapon exactly in the direction it is looking. Issuing two fw commands in a single AI frame results in the weapon only being shot once, because fw reports as soon as it is done scheduling the firing. This design is implemented so that firing does not interfere with other actions such as movement. To queue up successive fire commands, interleave fw commands with other commands (sk is provided for this reason).

TODO: report on no ammunition

Parameters:

  • This command takes no parameters.

Reports:

  • done once firing has begun.
  • popped if popped by po.
  • forgotten if deleted by fa or fm.
  • replaced if replaced by a command scheduled with 'r'.

Example:

  • User sends: "n fw 512"
  • Bot replies "cp fw 512 done"
  • Bot fires during the game update phase (usually a single shot).