Difference between revisions of "Empires Events"

From AlliedModders Wiki
Jump to: navigation, search
(Created page with ":''Refer back to Game Events (Source) for more events.'' === switching_to_new_map === {{qnotice|}}<br> {{begin-hl2msg|switching_to_new_map|string}} {{hl2msg|string|mapnam...")
 
(Included the game events from Empires)
 
Line 75: Line 75:
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
=== structure_built ===
+
=== commander_elected_player ===
{{qnotice|structure fully built. fired client-side. commander only. same team.}}<br>
 
{{begin-hl2msg|structure_built|string}}
 
{{hl2msg|short|entindex|structure entity index}}
 
{{end-hl2msg}}
 
=== structure_power_outage ===
 
{{qnotice|structure out of power. fired client-side. commander only. same team.}}<br>
 
{{begin-hl2msg|structure_power_outage|string}}
 
{{hl2msg|short|entindex|structure entity index}}
 
{{end-hl2msg}}
 
=== resource_start_capture ===
 
{{qnotice|Used to show the capture hud panel}}<br>
 
{{begin-hl2msg|resource_start_capture|string}}
 
{{hl2msg|short|userid|user id that is starting the capture}}
 
{{hl2msg|short|entindex|resource point getting capped}}
 
{{hl2msg|short|type|type of resource point}}
 
{{hl2msg|short|capteam|team that is capping}}
 
{{hl2msg|short|ownerteam|team that currently owns the point (check for unassigned)}}
 
{{end-hl2msg}}
 
=== resource_end_capture ===
 
{{qnotice|Used to hide the capture hud panel}}<br>
 
{{begin-hl2msg|resource_end_capture|string}}
 
{{hl2msg|short|userid|user id that is starting the capture}}
 
{{hl2msg|short|entindex|resource point that got captured}}
 
{{end-hl2msg}}
 
=== resource_break_capture ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|resource_break_capture|string}}
 
{{hl2msg|short|entindex|}}
 
{{hl2msg|float|time_remaining|}}
 
{{end-hl2msg}}
 
=== resource_extract ===
 
{{qnotice|Resource point has extracted some resources}}<br>
 
{{begin-hl2msg|resource_extract|string}}
 
{{hl2msg|short|entindex|resource point that extracted the resources}}
 
{{hl2msg|short|amount|resource point that extracted the resources}}
 
{{end-hl2msg}}
 
=== resource_captured ===
 
{{qnotice|When a resource point gets fully captured by a team}}<br>
 
{{begin-hl2msg|resource_captured|string}}
 
{{hl2msg|short|entindex|entity index of the captrd point}}
 
{{hl2msg|short|type|the resource point type that got captured}}
 
{{hl2msg|short|team|team that captured the point}}
 
{{end-hl2msg}}
 
=== power_requested ===
 
{{qnotice|An entity is requesting a power connection}}<br>
 
{{begin-hl2msg|power_requested|string}}
 
{{hl2msg|short|teamid|The team who's power system got updated}}
 
{{hl2msg|short|entid|The entity index that is requesting a power connection}}
 
{{end-hl2msg}}
 
=== power_removed ===
 
{{qnotice|An entity is requesting a power connection}}<br>
 
{{begin-hl2msg|power_removed|string}}
 
{{hl2msg|short|teamid|The team who's power system got updated}}
 
{{hl2msg|short|entid|The entity index that is requesting a power connection}}
 
{{end-hl2msg}}
 
=== power_updated ===
 
{{qnotice|When the power nexus gets updated}}<br>
 
{{begin-hl2msg|power_updated|string}}
 
{{hl2msg|None|None|}}
 
{{end-hl2msg}}
 
=== enter_pregame ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|enter_pregame|string}}
 
{{hl2msg|None|None|}}
 
{{end-hl2msg}}
 
=== enter_vehicle ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|enter_vehicle|string}}
 
{{hl2msg|short|userid|}}
 
{{hl2msg|short|seat|}}
 
{{hl2msg|short|entidx|}}
 
{{end-hl2msg}}
 
=== exit_vehicle ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|exit_vehicle|string}}
 
{{hl2msg|short|userid|}}
 
{{hl2msg|short|seat|}}
 
{{hl2msg|short|entidx|}}
 
{{end-hl2msg}}
 
=== show_freezepanel ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|show_freezepanel|string}}
 
{{hl2msg|short|killer|entindex of the killer entity}}
 
{{end-hl2msg}}
 
=== hide_freezepanel ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|hide_freezepanel|string}}
 
{{hl2msg|None|None|}}
 
{{end-hl2msg}}
 
=== freezecam_started ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|freezecam_started|string}}
 
{{hl2msg|None|None|}}
 
{{end-hl2msg}}
 
=== spawn_map_changed ===
 
{{qnotice|Called when a tgate is built, removed, or power state changes}}<br>
 
{{begin-hl2msg|spawn_map_changed|string}}
 
{{hl2msg|short|teamid|}}
 
{{end-hl2msg}}
 
=== overviewmap_key_released ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|overviewmap_key_released|string}}
 
{{hl2msg|None|None|}}
 
{{end-hl2msg}}
 
=== slot_key_pressed ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|slot_key_pressed|string}}
 
{{hl2msg|short|slot|}}
 
{{end-hl2msg}}
 
=== ironsight_key_pressed ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|ironsight_key_pressed|string}}
 
{{hl2msg|None|None|}}
 
{{end-hl2msg}}
 
=== ability_key_pressed ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|ability_key_pressed|string}}
 
{{hl2msg|None|None|}}
 
{{end-hl2msg}}
 
=== weapon_reload ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|weapon_reload|string}}
 
{{hl2msg|short|userid|}}
 
{{hl2msg|bool|manual|player manually started the reload}}
 
{{end-hl2msg}}
 
=== weapon_fire_at_40 ===
 
 
{{qnotice|}}<br>
 
{{qnotice|}}<br>
{{begin-hl2msg|weapon_fire_at_40|string}}
+
{{begin-hl2msg|commander_elected_player|string}}
{{hl2msg|short|userid|}}
+
{{hl2msg|short|elected_nf_comm_id|player id of the elected NF commander}}
{{hl2msg|string|weapon|used weapon name}}
+
{{hl2msg|short|elected_be_comm_id|player id of the elected BE commander}}
{{hl2msg|short|weaponid|used weapon ID}}
 
{{hl2msg|short|count|number of bullets}}
 
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== entity_visible ===
+
 
{{qnotice|}}<br>
+
=== commander_vote ===
{{begin-hl2msg|entity_visible|string}}
+
{{qnotice|called when a player casts a vote for a player to be the commander}}<br>
{{hl2msg|short|userid|The player who sees the entity}}
+
{{begin-hl2msg|commander_vote|string}}
{{hl2msg|long|subject|Entindex of the entity they see}}
+
{{hl2msg|bool|team|the team of the player casting the vote}}
{{hl2msg|string|classname|Classname of the entity they see}}
+
{{hl2msg|short|voter_id|the id of the player casting the vote}}
{{hl2msg|string|entityname|name of the entity they see}}
+
{{hl2msg|short|player_id|the id of the player who is being voted for}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== player_left_bunker_building ===
+
 
{{qnotice|}}<br>
+
=== research_completed ===
{{begin-hl2msg|player_left_bunker_building|string}}
+
{{qnotice|called when a research is completed}}<br>
{{hl2msg|short|userid|The player who left the bunker}}
+
{{begin-hl2msg|research_completed|string}}
{{hl2msg|short|entidx|The bunker they left}}
+
{{hl2msg|short|team|the team number of the completed research}}
 +
{{hl2msg|short|research_index|the index of the researched item}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== player_entered_bunker_building ===
+
 
 +
=== player_class ===
 
{{qnotice|}}<br>
 
{{qnotice|}}<br>
{{begin-hl2msg|player_entered_bunker_building|string}}
+
{{begin-hl2msg|player_class|string}}
{{hl2msg|short|userid|The player who entered the bunker}}
+
{{hl2msg|local|userid|user id of the player}}
{{hl2msg|short|entidx|The bunker they entered}}
+
{{hl2msg|local|class|class of the player}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== player_entered_commander_mode ===
+
 
 +
=== player_score ===
 
{{qnotice|}}<br>
 
{{qnotice|}}<br>
{{begin-hl2msg|player_entered_commander_mode|string}}
+
{{begin-hl2msg|player_score|string}}
{{hl2msg|short|userid|Player who entered commander mode}}
+
{{hl2msg|local|userid|user id of the player}}
 +
{{hl2msg|local|amount|score of the player}}
 +
{{hl2msg|local|reason|}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== player_enter_commander_mode_failed ===
+
 
{{qnotice|}}<br>
+
=== player_revive ===
{{begin-hl2msg|player_enter_commander_mode_failed|string}}
+
{{qnotice|called when a player is revived}}<br>
{{hl2msg|short|userid|Player who tried to enter commander mode}}
+
{{begin-hl2msg|player_revive|string}}
 +
{{hl2msg|local|reviver_userid|used id of the player that is doing the reviving}}
 +
{{hl2msg|local|revivee_userid|used id of the player that is being revived}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== player_left_commander_mode ===
+
 
{{qnotice|}}<br>
+
=== vehicle_purchase ===
{{begin-hl2msg|player_left_commander_mode|string}}
+
{{qnotice|called when a player purchases a vehicle}}<br>
{{hl2msg|short|userid|Player who left commander mode}}
+
{{begin-hl2msg|vehicle_purchase|string}}
 +
{{hl2msg|local|userid|user id of the player who purchased the vehicle}}
 +
{{hl2msg|local|recustomized|whether the purchased vehicle is new or being recustomized}}
 +
{{hl2msg|local|cost|cost of the vehicle purchased}}
 +
{{hl2msg|local|chassis|type of chassis of the vehicle being purchased}}
 +
{{hl2msg|local|builtfromwages|is the vehicle built from wages}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== player_restocked_from_supply_struct ===
+
 
{{qnotice|}}<br>
+
=== vehicle_enter ===
{{begin-hl2msg|player_restocked_from_supply_struct|string}}
+
{{qnotice|called when a player enters a vehicle}}<br>
{{hl2msg|short|userid|Player who was restocked}}
+
{{begin-hl2msg|vehicle_enter|string}}
{{hl2msg|short|entidx|Entity they got supply from}}
+
{{hl2msg|local|userid|user id of the player who entered the vehicle}}
 +
{{hl2msg|local|vehicleid|id of the vehicle being entered}}
 +
{{hl2msg|local|seat|seat of the vehicle that is being entered}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== player_opened_armoury_menu ===
+
 
{{qnotice|}}<br>
+
=== vehicle_exit ===
{{begin-hl2msg|player_opened_armoury_menu|string}}
+
{{qnotice|called when a player exits a vehicle}}<br>
{{hl2msg|short|userid|Player opened kit menu from armoury}}
+
{{begin-hl2msg|vehicle_enter|string}}
 +
{{hl2msg|local|userid|user id of the player who exited the vehicle}}
 +
{{hl2msg|local|vehicleid|id of the vehicle being exited}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== commander_move_2d ===
+
 
{{qnotice|}}<br>
+
=== vehicle_death ===
{{begin-hl2msg|commander_move_2d|string}}
+
{{qnotice|called when a vehicles dies}}<br>
{{hl2msg|1|local|Local only}}
+
{{begin-hl2msg|vehicle_death|string}}
{{hl2msg|short|userid|Player that moved the commander camera}}
+
{{hl2msg|local|vehicleid|id of the vehicle destroyed}}
 +
{{hl2msg|local|lastplayeruserid|user id of the last player driving the vehicle}}
 +
{{hl2msg|local|lastexittime|}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== commander_move_z ===
+
 
{{qnotice|}}<br>
+
=== achievement_earned ===
{{begin-hl2msg|commander_move_z|string}}
+
{{qnotice|called when an achievement is earned}}<br>
{{hl2msg|1|local|Local only}}
+
{{begin-hl2msg|achievement_earned|string}}
{{hl2msg|short|userid|Player that moved the commander camera up/down}}
+
{{hl2msg|byte|player|entity index of the player getting the achievement}}
 +
{{hl2msg|short|achievement|id of the achievement}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== commander_minimap_move ===
+
 
{{qnotice|}}<br>
+
=== empires_round_over ===
{{begin-hl2msg|commander_minimap_move|string}}
+
{{qnotice|called when a round ends}}<br>
{{hl2msg|1|local|}}
+
{{begin-hl2msg|empires_round_over|string}}
{{hl2msg|short|userid|Player that moved the commander camera}}
+
{{hl2msg|local|winner|id of the winning team}}
{{end-hl2msg}}
 
=== player_exited_tgate ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|player_exited_tgate|string}}
 
{{hl2msg|short|userid|Player that left the gate}}
 
{{end-hl2msg}}
 
=== commander_left_valid_area ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|commander_left_valid_area|string}}
 
{{hl2msg|short|userid|The commander that left valid "airspace"}}
 
{{end-hl2msg}}
 
=== commander_entered_valid_area ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|commander_entered_valid_area|string}}
 
{{hl2msg|short|userid|The commander that entered valid "airspace"}}
 
{{end-hl2msg}}
 
=== round_win ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|round_win|string}}
 
{{hl2msg|short|team|The winning team}}
 
{{hl2msg|short|type|Type of win}}
 
{{end-hl2msg}}
 
=== transport_gate_created ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|transport_gate_created|string}}
 
{{hl2msg|short|teamid|Team that created the gate}}
 
{{hl2msg|short|entindex|Entity id of the new gate}}
 
{{end-hl2msg}}
 
=== last_tgate_destroyed ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|last_tgate_destroyed|string}}
 
{{hl2msg|short|teamid|Team who's last tgate got pwnd}}
 
{{end-hl2msg}}
 
=== player_stats_updated ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|player_stats_updated|string}}
 
{{hl2msg|bool|forceupload|}}
 
{{end-hl2msg}}
 
=== failed_to_build ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|failed_to_build|string}}
 
{{hl2msg|1|local|}}
 
{{hl2msg|short|userid|the commander that tried to build something with no power}}
 
{{hl2msg|short|reason|(eBuildErrorReason) 0: Ok, 1: No Power, 2: No Line of sight, 3: obstruction, 4: invalid build area}}
 
{{end-hl2msg}}
 
=== commander_hint_closed ===
 
{{qnotice|The local commander closed a hint (used to re-evaluate tiered hints)}}<br>
 
{{begin-hl2msg|commander_hint_closed|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== commander_selected_structure ===
 
{{qnotice|The local commander selected a structure}}<br>
 
{{begin-hl2msg|commander_selected_structure|string}}
 
{{hl2msg|1|local|}}
 
{{hl2msg|short|type|structure type}}
 
{{hl2msg|short|entindex|Entity id of the selected structure}}
 
{{end-hl2msg}}
 
=== commander_flash_assembler_start ===
 
{{qnotice|Causes the assembler to flash}}<br>
 
{{begin-hl2msg|commander_flash_assembler_start|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== commander_flash_assembler_stop ===
 
{{qnotice|Causes the assembler to stop flashing}}<br>
 
{{begin-hl2msg|commander_flash_assembler_stop|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== commander_start_build_mode ===
 
{{qnotice|Local commander is in structure placement mode}}<br>
 
{{begin-hl2msg|commander_start_build_mode|string}}
 
{{hl2msg|1|local|}}
 
{{hl2msg|short|type|structure type}}
 
{{end-hl2msg}}
 
=== commander_flash_supply_icon_start ===
 
{{qnotice|Start flashing the supply station build icon}}<br>
 
{{begin-hl2msg|commander_flash_supply_icon_start|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== commander_flash_supply_icon_stop ===
 
{{qnotice|Stop flashing the supply station build icon}}<br>
 
{{begin-hl2msg|commander_flash_supply_icon_stop|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== commander_start_structure_build ===
 
{{qnotice|Start a structure building}}<br>
 
{{begin-hl2msg|commander_start_structure_build|string}}
 
{{hl2msg|short|team|The team that is building the structure}}
 
{{hl2msg|short|type|The structure type}}
 
{{end-hl2msg}}
 
=== promoted_to_commander ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|promoted_to_commander|string}}
 
{{hl2msg|short|userid|The user that got promoted to commander}}
 
{{hl2msg|short|teamid|The team of the promoted commander}}
 
{{end-hl2msg}}
 
=== timeleft_10m ===
 
{{qnotice|10 minutes left of the round}}<br>
 
{{begin-hl2msg|timeleft_10m|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== timeleft_5m ===
 
{{qnotice|5 minutes left of the round}}<br>
 
{{begin-hl2msg|timeleft_5m|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== timeleft_1m ===
 
{{qnotice|1 minute left of the round}}<br>
 
{{begin-hl2msg|timeleft_1m|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== timeleft_30s ===
 
{{qnotice|30 seconds left of the round}}<br>
 
{{begin-hl2msg|timeleft_30s|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== timeleft_10s ===
 
{{qnotice|10 seconds left of the round}}<br>
 
{{begin-hl2msg|timeleft_10s|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== timeleft_5s ===
 
{{qnotice|5 seconds left of the round}}<br>
 
{{begin-hl2msg|timeleft_5s|string}}
 
{{hl2msg|1|local|}}
 
{{end-hl2msg}}
 
=== ach_hospital_duty_progress ===
 
{{qnotice|progress towards hospital duty achievement. fired client-side. commander only. same team.}}<br>
 
{{begin-hl2msg|ach_hospital_duty_progress|string}}
 
{{hl2msg|short|progress|}}
 
{{end-hl2msg}}
 
=== ach_high_maintenance_progress ===
 
{{qnotice|progress towards high maintenance achievement. fired client-side. commander only. same team.}}<br>
 
{{begin-hl2msg|ach_high_maintenance_progress|string}}
 
{{hl2msg|short|progress|}}
 
{{end-hl2msg}}
 
=== forward_spawn_created ===
 
{{qnotice|Fired once a forward spawn has been created. A forward spawn is defined by any created spawn point that causes the spawn cluster centroid to be split}}<br>
 
{{begin-hl2msg|forward_spawn_created|string}}
 
{{hl2msg|short|teamid|}}
 
{{end-hl2msg}}
 
=== research_complete ===
 
{{qnotice|Fired when a research has finished researching}}<br>
 
{{begin-hl2msg|research_complete|string}}
 
{{hl2msg|short|teamid|}}
 
{{hl2msg|short|researchid|}}
 
{{end-hl2msg}}
 
=== show_annotation ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|show_annotation|string}}
 
{{hl2msg|float|worldPosX|}}
 
{{hl2msg|float|worldPosY|}}
 
{{hl2msg|float|worldPosZ|}}
 
{{hl2msg|float|worldNormalX|}}
 
{{hl2msg|float|worldNormalY|}}
 
{{hl2msg|float|worldNormalZ|}}
 
{{hl2msg|long|id|}}
 
{{hl2msg|string|text|name (unlocalized)}}
 
{{hl2msg|float|lifetime|}}
 
{{hl2msg|long|visibilityBitfield|bitfield of the players that can see this}}
 
{{hl2msg|long|follow_entindex|if this is set, follow this entity}}
 
{{hl2msg|bool|show_distance|}}
 
{{hl2msg|string|play_sound|}}
 
{{hl2msg|bool|show_effect|}}
 
{{end-hl2msg}}
 
=== hide_annotation ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|hide_annotation|string}}
 
{{hl2msg|long|id|}}
 
{{end-hl2msg}}
 
=== end_training_session ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|end_training_session|string}}
 
{{hl2msg|string|course|}}
 
{{hl2msg|bool|successful|}}
 
{{end-hl2msg}}
 
=== nav_blocked ===
 
{{qnotice|}}<br>
 
{{begin-hl2msg|nav_blocked|string}}
 
{{hl2msg|long|area|}}
 
{{hl2msg|bool|blocked|}}
 
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== nav_generate ===
+
 
 +
=== spec_target_updated ===
 
{{qnotice|}}<br>
 
{{qnotice|}}<br>
{{begin-hl2msg|nav_generate|string}}
+
{{begin-hl2msg|spec_target_updated|string}}
{{hl2msg|None|None|}}
 
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== medkit_heal ===
+
 
 +
=== update_marker_hud ===
 
{{qnotice|}}<br>
 
{{qnotice|}}<br>
{{begin-hl2msg|medkit_heal|string}}
+
{{begin-hl2msg|update_marker_hud|string}}
{{hl2msg|1|local|}}
 
{{hl2msg|local|entindex|entity index of medkit}}
 
{{hl2msg|local|ownerid|user id of medkit owner}}
 
{{hl2msg|local|userid|user id of player healed}}
 
{{hl2msg|local|amount|amount of health restored}}
 
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== emp_structure ===
+
 
 +
=== local_player_entered_comm ===
 
{{qnotice|}}<br>
 
{{qnotice|}}<br>
{{begin-hl2msg|emp_structure|string}}
+
{{begin-hl2msg|local_player_entered_comm|string}}
{{hl2msg|1|local|}}
 
{{hl2msg|local|entindex|entity index of structure}}
 
{{hl2msg|local|userid|user id of player}}
 
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== setup_compass_rotation ===
+
 
 +
=== local_player_exited_comm ===
 
{{qnotice|}}<br>
 
{{qnotice|}}<br>
{{begin-hl2msg|setup_compass_rotation|string}}
+
{{begin-hl2msg|local_player_exited_comm|string}}
{{hl2msg|long|rotation|}}
 
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== tgate_use ===
+
 
 +
=== local_player_entered_vehicle ===
 
{{qnotice|}}<br>
 
{{qnotice|}}<br>
{{begin-hl2msg|tgate_use|string}}
+
{{begin-hl2msg|local_player_entered_vehicle|string}}
{{hl2msg|short|userid|}}
 
 
{{end-hl2msg}}
 
{{end-hl2msg}}
=== attacked_radarkit ===
+
 
 +
=== local_player_exited_vehicle ===
 
{{qnotice|}}<br>
 
{{qnotice|}}<br>
{{begin-hl2msg|attacked_radarkit|string}}
+
{{begin-hl2msg|local_player_exited_vehicle|string}}
{{hl2msg|short|userid|}}
 
 
{{end-hl2msg}}
 
{{end-hl2msg}}

Latest revision as of 16:24, 27 July 2016

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: