Game events added: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==point_captured==
==point_captured==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Team captured a capture point}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|point_captured|string}}
{{hl2msg|bool|team|entity picked up}}
{{hl2msg|bool|team|Team that captured the point}}
{{hl2msg|short|location|entity picked up}}
{{hl2msg|short|location|Location where the point was captured}}
{{end-hl2msg}}
{{end-hl2msg}}


==point_neutral==
==point_neutral==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Team neutralized a capture point}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|point_neutral|string}}
{{hl2msg|bool|team|entity picked up}}
{{hl2msg|bool|team|Team that neutralized the point}}
{{hl2msg|short|location|entity picked up}}
{{hl2msg|short|location|Location where the point was neutralized}}
{{end-hl2msg}}
{{end-hl2msg}}


==player_death==
==player_death==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|A player has died}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|player_death|string}}
{{hl2msg|short|userid|user ID who died}}
{{hl2msg|short|userid|User ID who died}}
{{hl2msg|short|attacker|user ID who killed}}
{{hl2msg|short|attacker|User ID who killed}}
{{hl2msg|byte|hide|team to hide the message from}}
{{hl2msg|byte|hide|Team to hide the message from}}
{{hl2msg|sstring|weapon|weapon name killed used}}
{{hl2msg|sstring|weapon|Weapon name killed used}}
{{end-hl2msg}}
{{end-hl2msg}}


==game_end==
==game_end==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Triggered at game end}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|game_end|string}}
{{hl2msg|bool|team|which team won}}
{{hl2msg|bool|team|The team that won}}
{{hl2msg|short|entity|entity to watch}}
{{hl2msg|short|entity|Entity to watch}}
{{end-hl2msg}}
{{end-hl2msg}}


==voice_command==
==voice_command==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Triggered when a player uses a voice command}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|voice_command|string}}
{{hl2msg|bool|team|which team message is for}}
{{hl2msg|bool|team|Which team message is for}}
{{hl2msg|short|command|what message to play}}
{{hl2msg|short|command|What message to play}}
{{hl2msg|byte|sub|sub identifier for some messages}}
{{hl2msg|byte|sub|Sub identifier for some messages}}
{{end-hl2msg}}
{{end-hl2msg}}


==commander_alert==
==commander_alert==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Triggered when a commander alert is played}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|commander_alert|string}}
{{hl2msg|bool|team|which team message is for}}
{{hl2msg|bool|team|Which team message is for}}
{{hl2msg|short|command|what message to play}}
{{hl2msg|short|command|What message to play}}
{{hl2msg|float|coord_x|x coordinate}}
{{hl2msg|float|coord_x|X coordinate of alert}}
{{hl2msg|float|coord_y|y coordinate}}
{{hl2msg|float|coord_y|Y coordinate of alert}}
{{hl2msg|float|coord_z|z coordinate}}
{{hl2msg|float|coord_z|Z coordinate of alert}}
{{end-hl2msg}}
{{end-hl2msg}}


==commander_vote_time==
==commander_vote_time==
{{qnotice|when the vote for a commander begins}}<br>
{{qnotice|When the vote for a commander begins (This fires every second the of the vote time)}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|commander_vote_time|string}}
{{hl2msg|short|time|time left in the vote}}
{{hl2msg|short|time|Time left in the vote}}
{{hl2msg|bool|commander_exists|allows us to use this event for warmup time on CVless maps}}
{{hl2msg|bool|commander_exists|Whether or not a command vehicle is present}}
{{end-hl2msg}}
{{end-hl2msg}}


==commander_vote==
==commander_vote==
{{qnotice|when a player casts a vote for a player to be the commander}}<br>
{{qnotice|When a player casts a vote for a player to be the commander}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|commander_vote|string}}
{{hl2msg|bool|team|which team}}
{{hl2msg|bool|team|Which team}}
{{hl2msg|short|voter_id|who is casting the vote}}
{{hl2msg|short|voter_id|Voting player}}
{{hl2msg|short|player_id|who the vote is for}}
{{hl2msg|short|player_id|Votee}}
{{end-hl2msg}}
{{end-hl2msg}}


==player_class==
==player_class==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Triggered when a player changes classes}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|player_class|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|userid|User Id}}
{{hl2msg|local|class|entity picked up}}
{{hl2msg|local|class|Class changed to}}
{{end-hl2msg}}
{{end-hl2msg}}


==player_score==
==player_score==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Triggered when a player retrieves points}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|player_score|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|userid|User ID}}
{{hl2msg|local|amount|entity picked up}}
{{hl2msg|local|amount|Amount of points received}}
{{hl2msg|local|reason|entity picked up}}
{{hl2msg|local|reason|The reason the player received points}}
{{end-hl2msg}}
{{end-hl2msg}}


==vehicle_purchase==
==vehicle_purchase==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Triggered when a player purchases a vehicle}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|vehicle_purchase|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|userid|User ID}}
{{hl2msg|local|recustomized|entity picked up}}
{{hl2msg|local|recustomized|Is the vehicles new or recustomized?}}
{{hl2msg|local|cost|entity picked up}}
{{hl2msg|local|cost|Resource cost}}
{{hl2msg|local|chassis|entity picked up}}
{{hl2msg|local|chassis|Chassis Type}}
{{end-hl2msg}}
{{end-hl2msg}}


==vehicle_enter==
==vehicle_enter==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Triggered when a player enters a vehicle}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|vehicle_enter|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|userid|User ID}}
{{hl2msg|local|vehicleid|entity picked up}}
{{hl2msg|local|vehicleid|ID of vehicle the player entered}}
{{hl2msg|local|seat|entity picked up}}
{{hl2msg|local|seat|Seat of the vehicle the player entered}}
{{end-hl2msg}}
{{end-hl2msg}}


==vehicle_exit==
==vehicle_exit==
{{qnotice|Player picked up a physgun (OB only)}}<br>
{{qnotice|Triggered when a player exits a vehicle}}<br>
{{begin-hl2msg|point_captured|string}}
{{begin-hl2msg|vehicle_exit|string}}
{{hl2msg|local|userid|entity picked up}}
{{hl2msg|local|userid|User ID}}
{{hl2msg|local|vehicleid|entity picked up}}
{{hl2msg|local|vehicleid|ID of vehicle the player exited}}
{{end-hl2msg}}
{{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