Difference between revisions of "Game Events (Source)"

From AlliedModders Wiki
Jump to: navigation, search
(Half-Life 2 Server Events)
(Counter-Strike: Source Events)
Line 161: Line 161:
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
=== ===
+
=== player_spawn ===
{{qnotice|}}<br>
+
{{qnotice|player spawned in game}}<br>
 +
{{begin-hl2msg|player_score|string}}
 +
{{hl2msg|short|userid}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
=== ===
+
=== player_shoot ===
{{qnotice|}}<br>
+
{{qnotice|Player shoot his weapon}}<br>
 +
{{begin-hl2msg|player_shoot|string}}
 +
{{hl2msg|short|userid}}
 +
{{hl2msg|byte|weapon}}
 +
{{hl2msg|byte|mode}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
=== ===
+
=== player_use ===
{{qnotice|}}<br>
+
{{qnotice|???}}<br>
 +
{{begin-hl2msg|player_use|string}}
 +
{{hl2msg|short|userid}}
 +
{{hl2msg|short|entity}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  

Revision as of 23:05, 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}}}


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: Unknown

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


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


player_spawn

Note: player spawned in game

Name: player_score
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: ???

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


Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}

Note:
|} |}