Game events added: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
What game events have been added?
==point_captured==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{begin-hl2msg|point_captured|string}}
{{hl2msg|bool|team|entity picked up}}
{{hl2msg|short|location|entity picked up}}
{{end-hl2msg}}


==Player==
==point_neutral==
===player_class===
{{qnotice|Player picked up a physgun (OB only)}}<br>
Fires when a player's class changes
{{begin-hl2msg|point_captured|string}}
* "userid" "int"
{{hl2msg|bool|team|entity picked up}}
* "class" "int" - The class to which the player changed (Scout=0, rifleman=1, grenadier=2, engineer=3)
{{hl2msg|short|location|entity picked up}}
{{end-hl2msg}}


===player_score===
==player_death==
Fires when a player's score changes
{{qnotice|Player picked up a physgun (OB only)}}<br>
* "userid" "int"
{{begin-hl2msg|point_captured|string}}
* "amount" "int" - how many points were received (usually 1)
{{hl2msg|short|userid|user ID who died}}
* "reason" "string" - The reason why the player score changed (defusal,tank/building/player/command vehicle killed, 100rep points, 200heal points, 2 buildings sabotaged etc.)
{{hl2msg|short|attacker|user ID who killed}}
{{hl2msg|byte|hide|team to hide the message from}}
{{hl2msg|sstring|weapon|weapon name killed used}}
{{end-hl2msg}}


==Vehicle==
==game_end==
===vehicle_purchase===
{{qnotice|Player picked up a physgun (OB only)}}<br>
Fires when a player purchases a vehicle
{{begin-hl2msg|point_captured|string}}
* "userid" "int"
{{hl2msg|bool|team|which team won}}
* "cost" "int" - How much it costs.
{{hl2msg|short|entity|entity to watch}}
* "vehicleid" "int" - The entity id of the vehicle
{{end-hl2msg}}


===vehicle_recustomize===
==voice_command==
Fires when a player recustomizes a vehicle
{{qnotice|Player picked up a physgun (OB only)}}<br>
* "userid" "int"
{{begin-hl2msg|point_captured|string}}
* "cost" "int" - How much it costs (possibly negative if new loadout is cheaper from recustomizing)
{{hl2msg|bool|team|which team message is for}}
* "vehicleid" "int" - The entity id of the vehicle
{{hl2msg|short|command|what message to play}}
{{hl2msg|byte|sub|sub identifier for some messages}}
{{end-hl2msg}}


===vehicle_enter===
==commander_alert==
Fires when a player enters a vehicle (or changes seat?)
{{qnotice|Player picked up a physgun (OB only)}}<br>
* "userid" "int"
{{begin-hl2msg|point_captured|string}}
* "vehicleid" "int"
{{hl2msg|bool|team|which team message is for}}
* "seat" "int"
{{hl2msg|short|command|what message to play}}
{{hl2msg|float|coord_x|x coordinate}}
{{hl2msg|float|coord_y|y coordinate}}
{{hl2msg|float|coord_z|z coordinate}}
{{end-hl2msg}}


===vehicle_exit===
==commander_vote_time==
Fires when a player exits a vehicle
{{qnotice|when the vote for a commander begins}}<br>
* "userid" "int"
{{begin-hl2msg|point_captured|string}}
* "vehicleid" "int"
{{hl2msg|short|time|time left in the vote}}
* <strike>"seat" "int"</strike> - I assume this won't be of interest
{{hl2msg|bool|commander_exists|allows us to use this event for warmup time on CVless maps}}
{{end-hl2msg}}
 
==commander_vote==
{{qnotice|when a player casts a vote for a player to be the commander}}<br>
{{begin-hl2msg|point_captured|string}}
{{hl2msg|bool|team|which team}}
{{hl2msg|short|voter_id|who is casting the vote}}
{{hl2msg|short|player_id|who the vote is for}}
{{end-hl2msg}}
 
==player_class==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{begin-hl2msg|point_captured|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|class|entity picked up}}
{{end-hl2msg}}
 
==player_score==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{begin-hl2msg|point_captured|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|amount|entity picked up}}
{{hl2msg|local|reason|entity picked up}}
{{end-hl2msg}}
 
==vehicle_purchase==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{begin-hl2msg|point_captured|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|recustomized|entity picked up}}
{{hl2msg|local|cost|entity picked up}}
{{hl2msg|local|chassis|entity picked up}}
{{end-hl2msg}}
 
==vehicle_enter==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{begin-hl2msg|point_captured|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|vehicleid|entity picked up}}
{{hl2msg|local|seat|entity picked up}}
{{end-hl2msg}}
 
==vehicle_exit==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{begin-hl2msg|point_captured|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|vehicleid|entity picked up}}
{{end-hl2msg}}

Revision as of 04:16, 6 May 2010

point_captured

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
bool team entity picked up
short location entity picked up


point_neutral

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
bool team entity picked up
short location entity picked up


player_death

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
short userid user ID who died
short attacker user ID who killed
byte hide team to hide the message from
sstring weapon weapon name killed used


game_end

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
bool team which team won
short entity entity to watch


voice_command

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
bool team which team message is for
short command what message to play
byte sub sub identifier for some messages


commander_alert

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
bool team which team message is for
short command what message to play
float coord_x x coordinate
float coord_y y coordinate
float coord_z z coordinate


commander_vote_time

Note: when the vote for a commander begins

Name: point_captured
Structure:
short time time left in the vote
bool commander_exists allows us to use this event for warmup time on CVless maps


commander_vote

Note: when a player casts a vote for a player to be the commander

Name: point_captured
Structure:
bool team which team
short voter_id who is casting the vote
short player_id who the vote is for


player_class

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
local userid entity picked up
local class entity picked up


player_score

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
local userid entity picked up
local amount entity picked up
local reason entity picked up


vehicle_purchase

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
local userid entity picked up
local recustomized entity picked up
local cost entity picked up
local chassis entity picked up


vehicle_enter

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
local userid entity picked up
local vehicleid entity picked up
local seat entity picked up


vehicle_exit

Note: Player picked up a physgun (OB only)

Name: point_captured
Structure:
local userid entity picked up
local vehicleid entity picked up