Changes between Initial Version and Version 1 of sw


Ignore:
Timestamp:
Jun 16, 2011 1:08:30 PM (13 years ago)
Author:
jpawlick
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sw

    v1 v1  
     1This command tells the agent to switch weapons. The weapons are defined as follows:
     2 * 1 = Gauntlet.
     3 * 2 = Machinegun.
     4 * 3 = Shotgun.
     5 * 4 = Grenade Launcher.
     6 * 5 = Rocket Launcher.
     7 * 6 = Lightning Gun.
     8 * 7 = Railgun.
     9 * 8 = Plasma Pistol.
     10 * 9 = BFG.
     11
     12'''Parameters:'''
     13 * This command takes no parameters.
     14
     15'''Responds:'''
     16 * ''X'' where X is the ammunition on the weapon being switched to. It only responds if the weapon switched to is a valid weapon.
     17
     18'''Reports:'''
     19 * ''done'' once one the switch has begun.
     20 * ''invalid_weapon'' if the entity does not have the weapon or the number provided was invalid.
     21 * ''popped'' if popped by [[po]].
     22 * ''forgotten'' if deleted by [[fa]] or [[fm]].
     23 * ''replaced'' if replaced by a command scheduled with 'r'.
     24
     25'''Example:'''
     26 * User sends: "n sw 512 5"
     27 * Bot replies: "rs sw 512 20"
     28 * Bot replies: "cp sw 512 done"
     29 * Bot switches weapon during the game update phase.