Game events added: Difference between revisions
Jump to navigation
Jump to search
(New page: What game events have been added? ===player_class=== Fires when a player's class changes * userid int * class int - The class to which the player changed (Scout=0, rifleman=1, grenadier=2...) |
|||
Line 11: | Line 11: | ||
* amount int - how many points were received (usually 1) | * amount int - how many points were received (usually 1) | ||
* reason string - The reason why the player score changed (defusal,tank/building/player/command vehicle killed, 100rep points, 200heal points, 2 buildings sabotaged etc.) | * reason string - The reason why the player score changed (defusal,tank/building/player/command vehicle killed, 100rep points, 200heal points, 2 buildings sabotaged etc.) | ||
===vehicle_purchase=== | |||
Fires when a player purchases or recustomizes a vehicle | |||
* userid int | |||
* recustomized bool - False if this is a new vehicle, true if they changed loadout at a repair pad | |||
* cost int - How much it costs (possibly negative if new loadout is cheaper from recustomizing) | |||
* chassis string - The name of the chassis (includes team eg "NF Light Tank") |
Revision as of 08:41, 4 March 2009
What game events have been added?
player_class
Fires when a player's class changes
- userid int
- class int - The class to which the player changed (Scout=0, rifleman=1, grenadier=2, engineer=3)
player_score
Fires when a player's score changes
- userid int
- amount int - how many points were received (usually 1)
- reason string - The reason why the player score changed (defusal,tank/building/player/command vehicle killed, 100rep points, 200heal points, 2 buildings sabotaged etc.)
vehicle_purchase
Fires when a player purchases or recustomizes a vehicle
- userid int
- recustomized bool - False if this is a new vehicle, true if they changed loadout at a repair pad
- cost int - How much it costs (possibly negative if new loadout is cheaper from recustomizing)
- chassis string - The name of the chassis (includes team eg "NF Light Tank")