Difference between revisions of "Game Events (Source)"

From AlliedModders Wiki
Jump to: navigation, search
(Counter-Strike: Source Events: + player_team)
(Counter-Strike: Source Events)
Line 39: Line 39:
 
{{hl2msg|byte|oldteam}}
 
{{hl2msg|byte|oldteam}}
 
{{hl2msg|bool|disconnect}}
 
{{hl2msg|bool|disconnect}}
 +
{{end-hl2msg}}
 +
 +
=== player_class ===
 +
{{qnotice|A player changed his class}}<br>
 +
{{begin-hl2msg|player_class|string}}
 +
{{hl2msg|short|userid}}
 +
{{hl2msg|string|class}}
 +
{{end-hl2msg}}
 +
 +
=== player_death ===
 +
{{qnotice|A game event, name may be 32 charaters long}}<br>
 +
{{begin-hl2msg|player_death|string}}
 +
{{hl2msg|short|userid}}
 +
{{hl2msg|short|attacker}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}

Revision as of 22:49, 7 June 2007

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}}}


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}}}