Game Events (Source)

From AlliedModders Wiki
Revision as of 23:59, 7 June 2007 by Shane (talk | contribs) (Counter-Strike: Source Events)
Jump to: navigation, search

Half-Life 2 Events

Half-Life 2 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}}}


Counter-Strike: 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}}}


Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}