Generic Source Events

From AlliedModders Wiki
Revision as of 17:28, 8 June 2007 by FlyingMongoose (talk | contribs) (Generic Source Events)
Jump to: navigation, search
Refer back to Game Events (Source) for more events.

These 'should' apply to all Source engine games

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