Difference between revisions of "Game Events (Source)"

From AlliedModders Wiki
Jump to: navigation, search
(SourceForts Events: moved to own page)
(Hidden: Source Events: moved to own page)
Line 266: Line 266:
  
  
= Hidden: Source Events =
 
  
=== player_death ===
 
{{qnotice|When a player dies}}
 
{{begin-hl2msg|player_death|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|short|attacker}}
 
{{hl2msg|string|weapon}}
 
{{hl2msg|bool|headshot}}
 
{{end-hl2msg}}
 
 
=== player_hurt ===
 
{{qnotice|When a player is hurt}}
 
{{begin-hl2msg|player_hurt|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|short|attacker}}
 
{{hl2msg|float|damage}}
 
{{hl2msg|bool|hidden}}
 
{{end-hl2msg}}
 
 
=== alarm_trigger ===
 
{{qnotice|When an alarm is triggered}}
 
{{begin-hl2msg|alarm_trigger|string}}
 
{{hl2msg|float|posx}}
 
{{hl2msg|float|posy}}
 
{{hl2msg|float|posz}}
 
{{end-hl2msg}}
 
 
=== material_check ===
 
{{qnotice|When the player's materials are checked}}
 
{{begin-hl2msg|material_check|string}}
 
{{hl2msg|long|vmt_CRC}}
 
{{hl2msg|long|bump_CRC}}
 
{{end-hl2msg}}
 
 
=== extraction_start ===
 
{{qnotice|When the extraction starts}}
 
{{begin-hl2msg|extraction_start|string}}
 
{{hl2msg|float|time}}
 
{{end-hl2msg}}
 
 
=== extraction_stop ===
 
{{qnotice|When the extraction stops}}
 
{{begin-hl2msg|extraction_stop|string}}
 
{{end-hl2msg}}
 
 
=== player_location ===
 
{{qnotice|When the player location changes}}
 
{{begin-hl2msg|player_location|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|location}}
 
{{end-hl2msg}}
 
 
=== iris_radio ===
 
{{qnotice|When iris_radio is used}}
 
{{begin-hl2msg|iris_radio|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|short|message}}
 
{{end-hl2msg}}
 
 
=== game_round_restart ===
 
{{qnotice|When the round restarts}}
 
{{begin-hl2msg|game_round_restart|string}}
 
{{end-hl2msg}}
 
 
=== game_round_end ===
 
{{qnotice|When the round ends}}
 
{{begin-hl2msg|game_round_end|string}}
 
{{end-hl2msg}}
 
 
=== game_round_start ===
 
{{qnotice|When the round starts}}
 
{{begin-hl2msg|game_round_start|string}}
 
{{end-hl2msg}}
 
  
 
= Perfect Dark: Source =
 
= Perfect Dark: Source =

Revision as of 15:44, 8 June 2007

Generic Source Events

team_info

Note: Info about team

Name: team_info
Structure:
byte teamid {{{3}}}
string teamname {{{3}}}


team_score

Note: Team score changed

Name: team_info
Structure:
byte teamid {{{3}}}
short score {{{3}}}


player_team

Note: Player change his team

Name: player_team
Structure:
short userid {{{3}}}
byte team {{{3}}}
byte oldteam {{{3}}}
bool disconnect {{{3}}}


player_class

Note: A player changed his class

Name: player_class
Structure:
short userid {{{3}}}
string class {{{3}}}


player_death

Note: A game event, name may be 32 charaters long

Name: player_death
Structure:
short userid {{{3}}}
short attacker {{{3}}}


player_hurt

Note: A player was hurt

Name: player_hurt
Structure:
short userid {{{3}}}
short attacker {{{3}}}
byte health {{{3}}}


player_chat

Note: A public player chat

Name: player_chat
Structure:
bool teamonly {{{3}}}
short userid {{{3}}}
string text {{{3}}}


player_score

Note: Players scores changed

Name: player_score
Structure:
short userid {{{3}}}
short kills {{{3}}}
short deaths {{{3}}}
short score {{{3}}}


player_spawn

Note: player spawned in game

Name: player_spawn
Structure:
short userid {{{3}}}


player_shoot

Note: Player shoot his weapon

Name: player_shoot
Structure:
short userid {{{3}}}
byte weapon {{{3}}}
byte mode {{{3}}}


player_use

Note: When a player uses an option

Name: player_use
Structure:
short userid {{{3}}}
short entity {{{3}}}


player_changename

Note: Player changed name

Name: player_changename
Structure:
string userid {{{3}}}
string oldname {{{3}}}
string newname {{{3}}}


game_newmap

Note: Send when new map is completely loaded

Name: game_newmap
Structure:
string mapname {{{3}}}


game_start

Note: A new game starts

Name: game_start
Structure:
long roundslimit {{{3}}}
long timelimit {{{3}}}
long fraglimit {{{3}}}
string objective {{{3}}}


game_end

Note: A game ended

Name: game_end
Structure:
byte winner {{{3}}}


round_start

Note: The round started

Name: player_changename
Structure:
long timelimit {{{3}}}
long fraglimit {{{3}}}
string objective {{{3}}}


round_end

Note: The round ended

Name: round_end
Structure:
byte winner {{{3}}}
byte reason {{{3}}}
string message {{{3}}}


game_message

Note: A game message

Name: game_message
Structure:
byte target {{{3}}}
string text {{{3}}}


break_breakable

Note: A breakable (func_break) is broken.

Name: break_breakable
Structure:
long entindex {{{3}}}
short userid {{{3}}}
byte material {{{3}}}


break_prop

Note: A breakable prop is broken.

Name: break_prop
Structure:
long entindex {{{3}}}
short userid {{{3}}}


Generic Source Server Events

server_spawn

Note: Send once a server starts

Name: server_start
Structure:
string hostname {{{3}}}
string address {{{3}}}
string port {{{3}}}
string game {{{3}}}
string mapname {{{3}}}
long maxplayers {{{3}}}
string os {{{3}}}
bool dedicated {{{3}}}
bool password {{{3}}}


server_shutdown

Note: Server shut down

Name: server_shutdown
Structure:
string reason {{{3}}}


server_cvar

Note: A server console var has changed

Name: server_cvar
Structure:
string cvarname {{{3}}}
string cvarvalue {{{3}}}


server_msg

Note: A generic server message

Name: server_message
Structure:
string text {{{3}}}


server_addban

Note: When the server has a ban added

Name: server_addban
Structure:
string name {{{3}}}
string userid {{{3}}}
string networkid {{{3}}}
string ip {{{3}}}
string duration {{{3}}}
string by {{{3}}}
bool kicked {{{3}}}


server_removeban

Note: When the server has a ban removed

Name: server_removeban
Structure:
string networkid {{{3}}}
string ip {{{3}}}
stsring by {{{3}}}


player_connect

Note: A new player connected

Name: player_connect
Structure:
string name {{{3}}}
byte index {{{3}}}
short userid {{{3}}}
string networkid {{{3}}}
string address {{{3}}}


player_info

Note: A player changed his name

Name: player_info
Structure:
string name {{{3}}}
byte index {{{3}}}
short userid {{{3}}}
string networkid {{{3}}}
bool bot {{{3}}}


player_disconnect

Note: A client was disconnected

Name: player_disconnect
Structure:
short userid {{{3}}}
string reason {{{3}}}
string name {{{3}}}
string networkid {{{3}}}


player_activate

Note: A client has entered the game (connected and loaded)

Name: player_activate
Structure:
short userid {{{3}}}


player_say

Note: When a client sends a message in chat

Name: player_say
Structure:
short userid {{{3}}}
string text {{{3}}}


Game Events

These are all the games that the Source engine covers.






Perfect Dark: Source

player_death

Note: When a player dies

Name: player_death
Structure:
short userid {{{3}}}
short attacker {{{3}}}
string weapon {{{3}}}
string victimname {{{3}}}
string killername {{{3}}}
short kllstrk {{{3}}}


koth_hill_activated

Note: When koth_hill is activated

Name: koth_hill_activated
Structure:
float posx {{{3}}}
float posy {{{3}}}
float posz {{{3}}}
short id {{{3}}}


koth_hill_deactivated

Note: When koth_hill is deactivated

Name: koth_hill_deactivated
Structure:
short id {{{3}}}


koth_hill_taken

Note: When koth_hill is taken

Name: koth_hill_taken
Structure:
short id {{{3}}}
short userid {{{3}}}
short team {{{3}}}


koth_hill_close_to_capture

Note: When koth_hill is near capture

Name: koth_hill_close_to_capture
Structure:
short tick {{{3}}}


koth_hill_captured

Note: When koth_hill is captured

Name: koth_hill_captured
Structure:


koth_hill_lost

Note: When koth_hill is lost

Name: koth_hill_lost
Structure:
short id {{{3}}}


popacap_close_to_point

Note: Unknown

Name: popacap_close_to_point
Structure:
short tick {{{3}}}


ctb_spawn_activated

Note: Unknown

Name: ctb_spawn_activated
Structure:
float posx {{{3}}}
float posy {{{3}}}
float posz {{{3}}}
short id {{{3}}}
short team {{{3}}}


ctb_spawn_deactivated

Note: Uknown

Name: ctb_spawn_deactivated
Structure:
short id {{{3}}}


weapon_set

Note: When a player's weapon is set

Name: weapon_set
Structure:
string name {{{3}}}
string list {{{3}}}


Iron Grip Events

player_death

Note:

Name: player_death
Structure:
short userid {{{3}}}
short attacker {{{3}}}
string weapon {{{3}}}
bool headshot {{{3}}}