Game events added: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
What game events have been added?
==point_captured==
{{qnotice|Team captured a capture point}}<br>
{{begin-hl2msg|point_captured|string}}
{{hl2msg|bool|team|Team that captured the point}}
{{hl2msg|short|location|Location where the point was captured}}
{{end-hl2msg}}


===player_class===
==point_neutral==
Fires when a player's class changes
{{qnotice|Team neutralized a capture point}}<br>
* "userid" "int"
{{begin-hl2msg|point_neutral|string}}
* "class" "int" - The class to which the player changed (Scout=0, rifleman=1, grenadier=2, engineer=3)
{{hl2msg|bool|team|Team that neutralized the point}}
{{hl2msg|short|location|Location where the point was neutralized}}
{{end-hl2msg}}


===player_score===
==player_death==
Fires when a player's score changes
{{qnotice|A player has died}}<br>
* "userid" "int"
{{begin-hl2msg|player_death|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_purchase===
==game_end==
Fires when a player purchases or recustomizes a vehicle
{{qnotice|Triggered at game end}}<br>
* "userid" "int"
{{begin-hl2msg|game_end|string}}
* "cost" "int" - How much it costs (possibly negative if new loadout is cheaper from recustomizing)
{{hl2msg|bool|team|The team that won}}
* "vehicleid" "int" - The entity id of the vehicle
{{hl2msg|short|entity|Entity to watch}}
{{end-hl2msg}}


===vehicle_recustomize===
==voice_command==
Fires when a player purchases or recustomizes a vehicle
{{qnotice|Triggered when a player uses a voice command}}<br>
* "userid" "int"
{{begin-hl2msg|voice_command|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}}
 
==commander_alert==
{{qnotice|Triggered when a commander alert is played}}<br>
{{begin-hl2msg|commander_alert|string}}
{{hl2msg|bool|team|Which team message is for}}
{{hl2msg|short|command|What message to play}}
{{hl2msg|float|coord_x|X coordinate of alert}}
{{hl2msg|float|coord_y|Y coordinate of alert}}
{{hl2msg|float|coord_z|Z coordinate of alert}}
{{end-hl2msg}}
 
==commander_vote_time==
{{qnotice|When the vote for a commander begins (This fires every second the of the vote time)}}<br>
{{begin-hl2msg|commander_vote_time|string}}
{{hl2msg|short|time|Time left in the vote}}
{{hl2msg|bool|commander_exists|Whether or not a command vehicle is present}}
{{end-hl2msg}}
 
==commander_vote==
{{qnotice|When a player casts a vote for a player to be the commander}}<br>
{{begin-hl2msg|commander_vote|string}}
{{hl2msg|bool|team|Which team}}
{{hl2msg|short|voter_id|Voting player}}
{{hl2msg|short|player_id|Votee}}
{{end-hl2msg}}
 
==player_class==
{{qnotice|Triggered when a player changes classes}}<br>
{{begin-hl2msg|player_class|string}}
{{hl2msg|local|userid|User Id}}
{{hl2msg|local|class|Class changed to}}
{{end-hl2msg}}
 
==player_score==
{{qnotice|Triggered when a player retrieves points}}<br>
{{begin-hl2msg|player_score|string}}
{{hl2msg|local|userid|User ID}}
{{hl2msg|local|amount|Amount of points received}}
{{hl2msg|local|reason|The reason the player received points}}
{{end-hl2msg}}
 
==vehicle_purchase==
{{qnotice|Triggered when a player purchases a vehicle}}<br>
{{begin-hl2msg|vehicle_purchase|string}}
{{hl2msg|local|userid|User ID}}
{{hl2msg|local|recustomized|Is the vehicles new or recustomized?}}
{{hl2msg|local|cost|Resource cost}}
{{hl2msg|local|chassis|Chassis Type}}
{{end-hl2msg}}
 
==vehicle_enter==
{{qnotice|Triggered when a player enters a vehicle}}<br>
{{begin-hl2msg|vehicle_enter|string}}
{{hl2msg|local|userid|User ID}}
{{hl2msg|local|vehicleid|ID of vehicle the player entered}}
{{hl2msg|local|seat|Seat of the vehicle the player entered}}
{{end-hl2msg}}
 
==vehicle_exit==
{{qnotice|Triggered when a player exits a vehicle}}<br>
{{begin-hl2msg|vehicle_exit|string}}
{{hl2msg|local|userid|User ID}}
{{hl2msg|local|vehicleid|ID of vehicle the player exited}}
{{end-hl2msg}}

Latest revision as of 05:26, 6 May 2010

point_captured

Note: Team captured a capture point

Name: point_captured
Structure:
bool team Team that captured the point
short location Location where the point was captured


point_neutral

Note: Team neutralized a capture point

Name: point_neutral
Structure:
bool team Team that neutralized the point
short location Location where the point was neutralized


player_death

Note: A player has died

Name: player_death
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: Triggered at game end

Name: game_end
Structure:
bool team The team that won
short entity Entity to watch


voice_command

Note: Triggered when a player uses a voice command

Name: voice_command
Structure:
bool team Which team message is for
short command What message to play
byte sub Sub identifier for some messages


commander_alert

Note: Triggered when a commander alert is played

Name: commander_alert
Structure:
bool team Which team message is for
short command What message to play
float coord_x X coordinate of alert
float coord_y Y coordinate of alert
float coord_z Z coordinate of alert


commander_vote_time

Note: When the vote for a commander begins (This fires every second the of the vote time)

Name: commander_vote_time
Structure:
short time Time left in the vote
bool commander_exists Whether or not a command vehicle is present


commander_vote

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

Name: commander_vote
Structure:
bool team Which team
short voter_id Voting player
short player_id Votee


player_class

Note: Triggered when a player changes classes

Name: player_class
Structure:
local userid User Id
local class Class changed to


player_score

Note: Triggered when a player retrieves points

Name: player_score
Structure:
local userid User ID
local amount Amount of points received
local reason The reason the player received points


vehicle_purchase

Note: Triggered when a player purchases a vehicle

Name: vehicle_purchase
Structure:
local userid User ID
local recustomized Is the vehicles new or recustomized?
local cost Resource cost
local chassis Chassis Type


vehicle_enter

Note: Triggered when a player enters a vehicle

Name: vehicle_enter
Structure:
local userid User ID
local vehicleid ID of vehicle the player entered
local seat Seat of the vehicle the player entered


vehicle_exit

Note: Triggered when a player exits a vehicle

Name: vehicle_exit
Structure:
local userid User ID
local vehicleid ID of vehicle the player exited