Empires Events

From AlliedModders Wiki
Jump to: navigation, search
Refer back to Game Events (Source) for more events.

switching_to_new_map

Note:

Name: switching_to_new_map
Structure:
string mapname name of the map to switch


point_captured

Note: Called when a point is capture

Name: point_captured
Structure:
bool team the team that captured the point
short location the location of the point


point_neutral

Note: Called when a point becomes neutral

Name: point_neutral
Structure:
bool team the team that neutralized the point
short location the location of the point


player_death

Note: Called when a player dies

Name: player_death
Structure:
short userid user ID of the player who died
short attacker user ID of the player who killed
byte hide team to hide the kill message from
string weapon name of the weapon used to kill the player


game_end

Note: Called when the game ends

Name: game_end
Structure:
bool team team who won
short entity the entity players spectate at the end of the round


voice_command

Note:

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


commander_alert

Note:

Name: commander_alert
Structure:
bool team which team the 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: called when the commander vote begins

Name: commander_vote_time
Structure:
short time time left in the vote
bool commander_exists allows us to use this even for warmup time on commander-less maps


commander_tactic_time

Note: called when the tactics time for a commander begins

Name: commander_tactic_time
Structure:
short time the tactic time left
short panel which tactics panel is currently being viewed


commander_end_tactical_discussion

Note: called when an elected commander wishes to end the tactic time

Name: commander_end_tactical_discussion
Structure:
short team which team would like to end tactics time


commander_elected_player

Note:

Name: commander_elected_player
Structure:
short elected_nf_comm_id player id of the elected NF commander
short elected_be_comm_id player id of the elected BE commander


commander_vote

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

Name: commander_vote
Structure:
bool team the team of the player casting the vote
short voter_id the id of the player casting the vote
short player_id the id of the player who is being voted for


research_completed

Note: called when a research is completed

Name: research_completed
Structure:
short team the team number of the completed research
short research_index the index of the researched item


player_class

Note:

Name: player_class
Structure:
local userid user id of the player
local class class of the player


player_score

Note:

Name: player_score
Structure:
local userid user id of the player
local amount score of the player
local reason


player_revive

Note: called when a player is revived

Name: player_revive
Structure:
local reviver_userid used id of the player that is doing the reviving
local revivee_userid used id of the player that is being revived


vehicle_purchase

Note: called when a player purchases a vehicle

Name: vehicle_purchase
Structure:
local userid user id of the player who purchased the vehicle
local recustomized whether the purchased vehicle is new or being recustomized
local cost cost of the vehicle purchased
local chassis type of chassis of the vehicle being purchased
local builtfromwages is the vehicle built from wages


vehicle_enter

Note: called when a player enters a vehicle

Name: vehicle_enter
Structure:
local userid user id of the player who entered the vehicle
local vehicleid id of the vehicle being entered
local seat seat of the vehicle that is being entered


vehicle_exit

Note: called when a player exits a vehicle

Name: vehicle_enter
Structure:
local userid user id of the player who exited the vehicle
local vehicleid id of the vehicle being exited


vehicle_death

Note: called when a vehicles dies

Name: vehicle_death
Structure:
local vehicleid id of the vehicle destroyed
local lastplayeruserid user id of the last player driving the vehicle
local lastexittime


achievement_earned

Note: called when an achievement is earned

Name: achievement_earned
Structure:
byte player entity index of the player getting the achievement
short achievement id of the achievement


empires_round_over

Note: called when a round ends

Name: empires_round_over
Structure:
local winner id of the winning team


spec_target_updated

Note:

Name: spec_target_updated
Structure:


update_marker_hud

Note:

Name: update_marker_hud
Structure:


local_player_entered_comm

Note:

Name: local_player_entered_comm
Structure:


local_player_exited_comm

Note:

Name: local_player_exited_comm
Structure:


local_player_entered_vehicle

Note:

Name: local_player_entered_vehicle
Structure:


local_player_exited_vehicle

Note:

Name: local_player_exited_vehicle
Structure: