Half-Life 2 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:
|
|
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:
|
|
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:
|
|
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}}}
|
|
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:
|
|
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:
|
|
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:
|
|
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
player_death
Note: When a client dies
Name:
|
player_death
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
attacker
|
{{{3}}}
|
string
|
weapon
|
{{{3}}}
|
bool
|
headshot
|
{{{3}}}
|
|
player_hurt
Note: When a client is damaged
Name:
|
player_hurt
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
attacker
|
{{{3}}}
|
byte
|
health
|
{{{3}}}
|
byte
|
armor
|
{{{3}}}
|
string
|
weapon
|
{{{3}}}
|
byte
|
dmg_health
|
{{{3}}}
|
byte
|
dmg_armor
|
{{{3}}}
|
byte
|
hitgroup
|
{{{3}}}
|
|
bomb_beginplant
Note: When the bomb is starting to get planted
Name:
|
bomb_beginplant
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
site
|
{{{3}}}
|
|
bomb_abortplant
Note: When the bomb planter stops planting the bomb
Name:
|
bomb_abortplant
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
site
|
{{{3}}}
|
|
bomb_plant
Note: When the bomb has been planted
Name:
|
bomb_planted
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
site
|
{{{3}}}
|
short
|
posx
|
{{{3}}}
|
short
|
posy
|
{{{3}}}
|
|
bomb_defused
Note: When the bomb has been defused
Name:
|
bomb_defused
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
site
|
{{{3}}}
|
|
bomb_exploded
Note: When the bomb explodes
Name:
|
bomb_exploded
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
site
|
{{{3}}}
|
|
bomb_dropped
Note: When the bomb is dropped by a client
Name:
|
bomb_dropped
|
Structure:
|
|
bomb_pickup
Note: When the bomb is picked up by a client
Name:
|
bomb_pickup
|
Structure:
|
|
bomb_begindefuse
Note: When the bomb is started to be defused
Name:
|
bomb_begindefuse
|
Structure:
|
short
|
userid
|
{{{3}}}
|
bool
|
haskit
|
{{{3}}}
|
|
bomb_abortdefuse
Note: When the bomb defusal is stopped
Name:
|
bomb_abortdefuse
|
Structure:
|
|
hostage_follows
Note: When the hostage begins following a client
Name:
|
hostage_follows
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
hostage
|
{{{3}}}
|
|
hostage_hurt
Note: When a hostage is damaged
Name:
|
hostage_hurt
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
hostage
|
{{{3}}}
|
|
hostage_killed
Note: When a hostage is killed
Name:
|
hostage_killed
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
hostage
|
{{{3}}}
|
|
hostage_rescued
Note: When a hostage is rescued
Name:
|
hostage_rescued
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
hostage
|
{{{3}}}
|
short
|
site
|
{{{3}}}
|
|
hostage_stops_following
Note: When a hostage stops following a client
Name:
|
hostage_stops_following
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
hostage
|
{{{3}}}
|
|
hostage_rescued_all
Note: When all the hostages are rescued
Name:
|
hostage_rescued_all
|
Structure:
|
|
hostage_call_for_help
Note: When the hostage calls for help
Name:
|
hostage_call_for_help
|
Structure:
|
|
vip_escaped
Note: When the VIP escapes
Name:
|
vip_escaped
|
Structure:
|
|
vip_killed
Note: When the VIP is killed
Name:
|
vip_killed
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
attacker
|
{{{3}}}
|
|
player_radio
Note: When the player uses radio commands
Name:
|
player_radio
|
Structure:
|
short
|
userid
|
{{{3}}}
|
short
|
slot
|
{{{3}}}
|
|
bomb_beep
Note: Every time the bomb beep sound happens
Name:
|
bomb_beep
|
Structure:
|
|
weapon_fire
Note: Every time a client fires their weapon
Name:
|
weapon_fire
|
Structure:
|
short
|
userid
|
{{{3}}}
|
string
|
weapon
|
{{{3}}}
|
|
weapon_fire_on_empty
Note: Every time a client fires their weapon and it's empty
Name:
|
weapon_fire_on_empty
|
Structure:
|
short
|
userid
|
{{{3}}}
|
string
|
weapon
|
{{{3}}}
|
|
weapon_reload
Note: Every time a client reloads their weapon
Name:
|
weapon_reload
|
Structure:
|
|
weapon_zoom
Note: Every time a client zooms a scoped weapon
Name:
|
weapon_zoom
|
Structure:
|
|
item_pickup
Note: Every time an item is picked up (generally weapons)
Name:
|
item_pickup
|
Structure:
|
short
|
userid
|
{{{3}}}
|
string
|
item
|
{{{3}}}
|
|
grenade_bounce
Note: Every time a grenade bounces
Name:
|
grenade_bounce
|
Structure:
|
|
hegrenade_detonate
Note: Every time a hegrenade explodes
Name:
|
hegrenade_detonate
|
Structure:
|
|
flashbang_detonate
Note: Every time a flashbang detonates
Name:
|
flashbang_detonate
|
Structure:
|
|
smokegrenade_detonate
Note: Every time a smokegrenade detonates
Name:
|
flashbang_detonate
|
Structure:
|
short
|
userid
|
{{{3}}}
{{end-hl2msg}
|
|