Game events added: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
What game events have been added? | What game events have been added? | ||
==Player== | |||
===player_class=== | ===player_class=== | ||
Fires when a player's class changes | Fires when a player's class changes | ||
Line 12: | Line 13: | ||
* "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== | |||
===vehicle_purchase=== | ===vehicle_purchase=== | ||
Fires when a player purchases a vehicle | Fires when a player purchases a vehicle | ||
Line 23: | Line 25: | ||
* "cost" "int" - How much it costs (possibly negative if new loadout is cheaper from recustomizing) | * "cost" "int" - How much it costs (possibly negative if new loadout is cheaper from recustomizing) | ||
* "vehicleid" "int" - The entity id of the vehicle | * "vehicleid" "int" - The entity id of the vehicle | ||
===vehicle_enter=== | |||
Fires when a player enters a vehicle (or changes seat?) | |||
* "userid" "int" | |||
* "vehicleid" "int" | |||
* "seat" "int" | |||
===vehicle_exit=== | |||
Fires when a player exits a vehicle | |||
* "userid" "int" | |||
* "vehicleid" "int" | |||
<strike>* "seat" "int"</strike> - I assume this won't be of interest |
Revision as of 18:36, 18 March 2009
What game events have been added?
Player
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
vehicle_purchase
Fires when a player purchases a vehicle
- "userid" "int"
- "cost" "int" - How much it costs.
- "vehicleid" "int" - The entity id of the vehicle
vehicle_recustomize
Fires when a player recustomizes a vehicle
- "userid" "int"
- "cost" "int" - How much it costs (possibly negative if new loadout is cheaper from recustomizing)
- "vehicleid" "int" - The entity id of the vehicle
vehicle_enter
Fires when a player enters a vehicle (or changes seat?)
- "userid" "int"
- "vehicleid" "int"
- "seat" "int"
vehicle_exit
Fires when a player exits a vehicle
- "userid" "int"
- "vehicleid" "int"
* "seat" "int" - I assume this won't be of interest