Counter-Strike: Source/Scripting/Game Events
Jump to navigation
Jump to search
Warning:Some events have parameter 'class' which cannot be accessed with dot syntax, i.e.
Tip:To see what events fire during the game, download this script (right click and Save Page), place it into your
This article lists game events in Counter-Strike Source, in addition to the base game events. These were retrieved from modevents.res in the resource folder.
params.class, as class is a reserved word in Squirrel. Instead, use string indexing like so: params["class"]scripts/vscripts/ folder and run script_execute showevents in console.Todo: Distinguish which events are clientside and/or serverside
achievement_earned
- player (byte) - entindex of the player
- achievement (short) - achievement ID
achievement_earned_local
- achievement (short) - achievement ID
bomb_abortdefuse
- userid (short) - player who was defusing
bomb_abortplant
- userid (short) - player who is planting the bomb
- site (short) - bombsite index
bomb_beep
- entindex (long) - c4 entity
bomb_begindefuse
- userid (short) - player who is defusing
- haskit (bool)
bomb_beginplant
- userid (short) - player who is planting the bomb
- site (short) - bombsite index
bomb_defused
- userid (short) - player who defused the bomb
- site (short) - bombsite index
bomb_dropped
- userid (short) - player who dropped the bomb
bomb_exploded
- userid (short) - player who planted the bomb
- site (short) - bombsite index
bomb_pickup
- userid (short) - player who picked up the bomb
bomb_planted
- userid (short) - player who planted the bomb
- site (short) - bombsite index
- posx (short) - position x
- posy (short) - position y
bullet_impact
Impact position of a bullet fired by a weapon. This is sent for every impact including penetration.
- userid (short) - Player ID who fired
- x (float) - world coordinate X
- y (float) - world coordinate Y
- z (float) - world coordinate Z
christmas_gift_grab
Called when a player picks up a holiday_gift; used for achievement tracking
- userid (short)
cs_win_panel_match
- t_score (short)
- ct_score (short)
- t_kd (float)
- ct_kd (float)
- t_objectives_done (short)
- ct_objectives_done (short)
- t_money_earned (long)
- ct_money_earned (long)
cs_win_panel_round
- show_timer_defend (bool)
- show_timer_attack (bool)
- timer_time (short)
- final_event (byte) - define in cs_gamerules.h
- funfact_token (string)
- funfact_player (short)
- funfact_data1 (long)
- funfact_data2 (long)
- funfact_data3 (long)
door_moving
- entindex (long)
- userid (short)
flashbang_detonate
- userid (short)
- x (float)
- y (float)
- z (float)
freezecam_started
grenade_bounce
- userid (short)
hegrenade_detonate
- userid (short)
- x (float)
- y (float)
- z (float)
hide_freezepanel
hostage_call_for_help
- hostage (short) - hostage entity index
hostage_follows
- userid (short) - player who touched the hostage
- hostage (short) - hostage entity index
hostage_hurt
- userid (short) - player who hurt the hostage
- hostage (short) - hostage entity index
hostage_killed
- userid (short) - player who killed the hostage
- hostage (short) - hostage entity index
hostage_rescued
- userid (short) - player who rescued the hostage
- hostage (short) - hostage entity index
- site (short) - rescue site index
hostage_rescued_all
hostage_stops_following
- userid (short) - player who rescued the hostage
- hostage (short) - hostage entity index
item_pickup
- userid (short)
- item (string) - either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs'
match_end_conditions
- frags (long)
- max_rounds (long)
- win_rounds (long)
- time (long)
- area (long)
- blocked (bool)
player_avenged_teammate
- avenger_id (short)
- avenged_player_id (short)
player_blind
Sent each tick that a flashbang is strong enough to blind the player. Used to allow bots to be blinded by flashbangs.
- userid (short) - Which player is affected by this flash.
player_death
a game event, name may be 32 characters long
- userid (short) - user ID who died
- attacker (short) - user ID who killed
- weapon (string) - weapon name killer used
- headshot (bool) - singals a headshot
- dominated (short) - did killer dominate victim with this kill
- revenge (short) - did killer get revenge on victim with this kill
player_decal
- userid (short)
player_falldamage
- userid (short)
- damage (float)
player_footstep
- userid (short)
player_hurt
- userid (short) - player index who was hurt
- attacker (short) - player index who attacked
- health (byte) - remaining health points
- armor (byte) - remaining armor points
- weapon (string) - weapon name attacker used, if not the world
- dmg_health (byte) - damage done to health
- dmg_armor (byte) - damage done to armor
- hitgroup (byte) - hitgroup that was damaged
player_stats_updated
- forceupload (bool)
round_freeze_end
round_mvp
- userid (short)
- reason (short) - see list
show_freezepanel
- killer (short) - entindex of the killer entity
smokegrenade_detonate
- userid (short)
- x (float)
- y (float)
- z (float)
spec_target_updated
teamplay_round_start
round restart
- full_reset (bool) - is this a full reset of the map
vip_escaped
- userid (short) - player who was the VIP
vip_killed
- userid (short) - player who was the VIP
- attacker (short) - user ID who killed the VIP
weapon_fire
Sent when a weapon is fired. Also sent when attacking with the knife.
- userid (short)
- weapon (string) - weapon name used
weapon_fire_on_empty
Sent when a weapon is attempted to be fired with no ammo remaining.
- userid (short)
- weapon (string) - weapon name used
weapon_reload
- userid (short)
weapon_zoom
- userid (short)