cssharp logoCssharp Docs

游戏事件列表

从 vpk 获取的游戏事件列表

以下是所有从 vpk 获取的游戏事件列表,在 cssharp 中,这些事件的类名通常是 snake case 转成 pascal case 并在开头加一个 Event,例如 EventPlayerSpawn 类代表 player_spawn 事件。

核心游戏事件

server_spawn

send once a server starts

字段数据类型简介
hostnamestringpublic host name
addressstringhostame, IP or DNS name
portshortserver port
gamestringgame dir
mapnamestringmap name
addonnamestringaddon name
maxplayerslongmax players
osstringWIN32, LINUX
dedicatedbooltrue if dedicated server
passwordbooltrue if password protected

server_pre_shutdown

server is about to be shut down

字段数据类型简介
reasonstringreason why server is about to be shut down

server_shutdown

server shut down

字段数据类型简介
reasonstringreason why server was shut down

server_message

a generic server message

字段数据类型简介
textstringthe message text

server_cvar

a server console var has changed

字段数据类型简介
cvarnamestringcvar name, eg "mp_roundtime"
cvarvaluestringnew cvar value

player_activate

字段数据类型简介
useridplayer_controlleruser ID on server

player_connect_full

player has sent final message in the connection sequence

字段数据类型简介
useridplayer_controlleruser ID on server (unique on server)

player_full_update

字段数据类型简介
useridplayer_controlleruser ID on server
countshortNumber of this full update

player_connect

a new client connected

字段数据类型简介
namestringplayer name
useridplayer_controlleruser ID on server (unique on server)
networkidstringplayer network (i.e steam) id
xuiduint64steam id
addressstringip:port
botbool

player_disconnect

a client was disconnected

字段数据类型简介
useridplayer_controlleruser ID on server
reasonshortsee networkdisconnect enum protobuf
namestringplayer name
networkidstringplayer network (i.e steam) id
xuiduint64steam id
PlayerIDshort

player_info

a player changed his name

字段数据类型简介
namestringplayer name
useridplayer_controlleruser ID on server (unique on server)
steamiduint64player network (i.e steam) id
botbooltrue if player is a AI bot

player_spawn

player spawned in game

字段数据类型简介
useridplayer_controller_and_pawn

player_team

字段数据类型简介
useridplayer_controller_and_pawn
teambyteteam id
oldteambyteold team id
disconnectboolteam change because player disconnects
silentbool
namestring
isbotbool

local_player_team

字段数据类型简介

local_player_controller_team

字段数据类型简介

player_changename

字段数据类型简介
useridplayer_controlleruser ID on server
oldnamestringplayers old (current) name
newnamestringplayers new name

player_hurt

字段数据类型简介
useridplayer_controller_and_pawnplayer who was hurt
attackerplayer_controller_and_pawnplayer who attacked
healthbyteremaining health points

player_chat

a public player chat

字段数据类型简介
teamonlybooltrue if team only chat
useridplayer_controllerchatting player
playeridshortchatting player ID
textstringchat text

local_player_pawn_changed

字段数据类型简介

teamplay_broadcast_audio

emits a sound to everyone on a team

字段数据类型简介
teambyteunique team id
soundstringname of the sound to emit

finale_start

字段数据类型简介
rushesshort

player_stats_updated

字段数据类型简介
forceuploadbool

user_data_downloaded

fired when achievements/stats are downloaded from Steam or XBox Live

字段数据类型简介

ragdoll_dissolved

字段数据类型简介
entindexlong

team_info

info about team

字段数据类型简介
teamidbyteunique team id
teamnamestringteam name eg "Team Blue"

team_score

team score changed

字段数据类型简介
teamidbyteteam id
scoreshorttotal team score

hltv_cameraman

a spectator/player is a cameraman

字段数据类型简介
useridplayer_controllercamera man entity index

hltv_chase

shot of a single entity

字段数据类型简介
target1player_controllerprimary traget index
target2player_controllersecondary traget index or 0
distanceshortcamera distance
thetashortview angle horizontal
phishortview angle vertical
inertiabytecamera inertia
ineyebytediretcor suggests to show ineye

hltv_rank_camera

a camera ranking

字段数据类型简介
indexbytefixed camera index
rankfloatranking, how interesting is this camera view
targetplayer_controllerbest/closest target entity

hltv_rank_entity

an entity ranking

字段数据类型简介
useridplayer_controllerplayer slot
rankfloatranking, how interesting is this entity to view
targetplayer_controllerbest/closest target entity

hltv_fixed

show from fixed view

字段数据类型简介
posxlongcamera position in world
posylong
poszlong
thetashortcamera angles
phishort
offsetshort
fovfloat
targetplayer_controllerfollow this player

hltv_message

a HLTV message send by moderators

字段数据类型简介
textstring

hltv_status

general HLTV status

字段数据类型简介
clientslongnumber of HLTV spectators
slotslongnumber of HLTV slots
proxiesshortnumber of HLTV proxies
masterstringdisptach master IP:port

hltv_title

字段数据类型简介
textstring

hltv_chat

a HLTV chat msg sent by spectators

字段数据类型简介
textstring
steamIDuint64steam id

hltv_versioninfo

字段数据类型简介
versionlong

hltv_replay

字段数据类型简介
delaylongnumber of seconds in killer replay delay
reasonlongreason for replay (ReplayEventType_t)

hltv_replay_status

字段数据类型简介
reasonlongreason for hltv replay status change ()

demo_start

字段数据类型简介
local1
dota_combatlog_listlocalCSVCMsgList_GameEvents that are combat log events
dota_hero_chase_listlocalCSVCMsgList_GameEvents
dota_pick_hero_listlocalCSVCMsgList_GameEvents

demo_stop

字段数据类型简介

demo_skip

字段数据类型简介
local1
playback_ticklongcurrent playback tick
skipto_ticklongtick we're going to
user_message_listlocalCSVCMsgList_UserMessages
dota_hero_chase_listlocalCSVCMsgList_GameEvents

map_shutdown

字段数据类型简介

map_transition

字段数据类型简介

hostname_changed

字段数据类型简介
hostnamestring

difficulty_changed

字段数据类型简介
newDifficultyshort
oldDifficultyshort
strDifficultystringnew difficulty as string

game_message

a message send by game logic to everyone

字段数据类型简介
targetbyte0 = console, 1 = HUD
textstringthe message text

game_newmap

send when new map is completely loaded

字段数据类型简介
mapnamestringmap name
transitionbooltrue if this is a transition from one map to another

round_start

字段数据类型简介
timelimitlonground time limit in seconds
fraglimitlongfrag limit in seconds
objectivestringround objective

round_end

字段数据类型简介
winnerbytewinner team/user i
reasonbytereson why team won
messagestringend round message
timefloat

round_start_pre_entity

字段数据类型简介

round_start_post_nav

字段数据类型简介

round_freeze_end

字段数据类型简介

teamplay_round_start

round restart

字段数据类型简介
full_resetboolis this a full reset of the map

player_death

a game event, name may be 32 charaters long

字段数据类型简介
useridplayer_controller_and_pawnuser ID who died
attackerplayer_controller_and_pawnuser ID who killed

player_footstep

字段数据类型简介
useridplayer_pawn

player_hintmessage

字段数据类型简介
hintmessagestringlocalizable string of a hint

break_breakable

字段数据类型简介
entindexlong
useridplayer_pawn
materialbyteBREAK_GLASS, BREAK_WOOD, etc

broken_breakable

字段数据类型简介
entindexlong
useridplayer_pawn
materialbyteBREAK_GLASS, BREAK_WOOD, etc

break_prop

字段数据类型简介
entindexlong
useridplayer_pawn
player_heldbool
player_thrownbool
player_droppedbool

entity_killed

字段数据类型简介
entindex_killedlong
entindex_attackerlong
entindex_inflictorlong
damagebitslong

door_close

字段数据类型简介
useridplayer_pawnWho closed the door
checkpointboolIs the door a checkpoint door

vote_started

字段数据类型简介
issuestring
param1string
votedatastring
teambyte
initiatorlongentity id of the player who initiated the vote
reliable1this event is reliable

vote_failed

字段数据类型简介
teambyte
reliable1this event is reliable

vote_passed

字段数据类型简介
detailsstring
param1string
teambyte
reliable1this event is reliable

vote_changed

字段数据类型简介
yesVotesbyte
noVotesbyte
potentialVotesbyte

vote_cast_yes

字段数据类型简介
teambyte
entityidlongentity id of the voter

vote_cast_no

字段数据类型简介
teambyte
entityidlongentity id of the voter

achievement_event

字段数据类型简介
achievement_namestringnon-localized name of achievement
cur_valshort# of steps toward achievement
max_valshorttotal # of steps in achievement

achievement_earned

字段数据类型简介
playerplayer_controllerentindex of the player
achievementshortachievement ID

achievement_write_failed

字段数据类型简介

bonus_updated

字段数据类型简介
numadvancedshort
numbronzeshort
numsilvershort
numgoldshort

spec_target_updated

字段数据类型简介
useridplayer_controller_and_pawnspectating player
targetehandleehandle of the target

spec_mode_updated

字段数据类型简介
useridplayer_controller_and_pawnspectating player

entity_visible

字段数据类型简介
useridplayer_controllerThe player who sees the entity
subjectlongEntindex of the entity they see
classnamestringClassname of the entity they see
entitynamestringname of the entity they see

gameinstructor_draw

字段数据类型简介

gameinstructor_nodraw

字段数据类型简介

flare_ignite_npc

字段数据类型简介
entindexlongentity ignited

helicopter_grenade_punt_miss

字段数据类型简介

physgun_pickup

字段数据类型简介
targetehandleentity picked up

inventory_updated

字段数据类型简介
itemdefshort
itemidlong

cart_updated

字段数据类型简介

store_pricesheet_updated

字段数据类型简介

item_schema_initialized

字段数据类型简介

drop_rate_modified

字段数据类型简介

event_ticket_modified

字段数据类型简介

gc_connected

字段数据类型简介

instructor_start_lesson

字段数据类型简介
useridplayer_controllerThe player who this lesson is intended for
hint_namestringName of the lesson to start. Must match instructor_lesson.txt
hint_targetlongentity id that the hint should display at. Leave empty if controller target
vr_movement_typebyte
vr_single_controllerbool
vr_controller_typebyte

instructor_close_lesson

字段数据类型简介
useridplayer_controllerThe player who this lesson is intended for
hint_namestringName of the lesson to start. Must match instructor_lesson.txt

instructor_server_hint_create

create a hint using data supplied entirely by the server/map. Intended for hints to smooth playtests before content is ready to make the hint unneccessary. NOT INTENDED AS A SHIPPABLE CRUTCH

字段数据类型简介
useridplayer_controlleruser ID of the player that triggered the hint
hint_entindexlongentity id of the env_instructor_hint that fired the event
hint_namestringwhat to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout)
hint_replace_keystringtype name so that messages of the same type will replace each other
hint_targetlongentity id that the hint should display at
hint_activator_useridplayer_controllerplayerslot of the activator
hint_timeoutshorthow long in seconds until the hint automatically times out, 0 = never
hint_icon_onscreenstringthe hint icon to use when the hint is onscreen. e.g. "icon_alert_red"
hint_icon_offscreenstringthe hint icon to use when the hint is offscreen. e.g. "icon_alert"
hint_captionstringthe hint caption. e.g. "#ThisIsDangerous"
hint_activator_captionstringthe hint caption that only the activator sees e.g. "#YouPushedItGood"
hint_colorstringthe hint color in "r,g,b" format where each component is 0-255
hint_icon_offsetfloathow far on the z axis to offset the hint from entity origin
hint_rangefloatrange before the hint is culled
hint_flagslonghint flags
hint_bindingstringbindings to use when use_binding is the onscreen icon
hint_allow_nodraw_targetboolif false, the hint will dissappear if the target entity is invisible
hint_nooffscreenboolif true, the hint will not show when outside the player view
hint_forcecaptionboolif true, the hint caption will show even if the hint is occluded
hint_local_player_onlyboolif true, only the local player will see the hint
hint_start_soundstringGame sound to play
hint_layoutfilestringPath for Panorama layout file
hint_vr_panel_typeshortAttachment type for the Panorama panel
hint_vr_height_offsetfloatHeight offset for attached panels
hint_vr_offset_xfloatoffset for attached panels
hint_vr_offset_yfloatoffset for attached panels
hint_vr_offset_zfloatoffset for attached panels

instructor_server_hint_stop

destroys a server/map created hint

字段数据类型简介
hint_namestringThe hint to stop. Will stop ALL hints with this name
hint_entindexlongentity id of the env_instructor_hint that fired the event

set_instructor_group_enabled

字段数据类型简介
groupstring
enabledshort

clientside_lesson_closed

字段数据类型简介
lesson_namestring

dynamic_shadow_light_changed

字段数据类型简介

gameevents

gameui_hidden

字段数据类型简介

player_team

player change his team

字段数据类型简介
useridplayer_controller_and_pawnplayer
teambyteteam id
oldteambyteold team id
disconnectboolteam change because player disconnects
silentbool
isbotbooltrue if player is a bot

player_chat

a public player chat

字段数据类型简介
teamonlybooltrue if team only chat
useridshortchatting player
textstringchat text

player_score

players scores changed

字段数据类型简介
useridplayer_controlleruser ID on server
killsshort# of kills
deathsshort# of deaths
scoreshorttotal game score

player_shoot

player shoot his weapon

字段数据类型简介
useridplayer_controller_and_pawnuser ID on server
weaponbyteweapon ID
modebyteweapon mode

game_init

sent when a new game is started

字段数据类型简介

game_newmap

send when new map is completely loaded

字段数据类型简介
mapnamestringmap name

game_start

a new game starts

字段数据类型简介
roundslimitlongmax round
timelimitlongtime limit
fraglimitlongfrag limit
objectivestringround objective

game_end

a game ended

字段数据类型简介
winnerbytewinner team/user id

round_announce_match_point

字段数据类型简介

round_announce_final

字段数据类型简介

round_announce_last_round_half

字段数据类型简介

round_announce_match_start

字段数据类型简介

round_announce_warmup

字段数据类型简介

warmup_end

字段数据类型简介

round_end

字段数据类型简介
winnerbytewinner team/user i
reasonbytereson why team won
messagestringend round message
legacybyteserver-generated legacy value

round_end_upload_stats

字段数据类型简介

round_officially_ended

字段数据类型简介

round_time_warning

字段数据类型简介

ugc_map_info_received

字段数据类型简介
published_file_iduint64

ugc_map_unsubscribed

字段数据类型简介
published_file_iduint64

ugc_map_download_error

字段数据类型简介
published_file_iduint64
error_codelong

ugc_file_download_finished

字段数据类型简介
hcontentuint64id of this specific content (may be image or map)

ugc_file_download_start

字段数据类型简介
hcontentuint64id of this specific content (may be image or map)
published_file_iduint64id of the associated content package

begin_new_match

字段数据类型简介

dm_bonus_weapon_start

字段数据类型简介
timeshortThe length of time that this bonus lasts
PosshortLoadout position of the bonus weapon

survival_announce_phase

字段数据类型简介
phaseshortThe phase #

break_prop

字段数据类型简介
entindexlong
useridplayer_pawn

player_decal

字段数据类型简介
useridplayer_pawn

entity_visible

字段数据类型简介
useridplayer_controllerThe player who sees the entity
subjectshortEntindex of the entity they see
classnamestringClassname of the entity they see
entitynamestringname of the entity they see

instructor_server_hint_create

create a hint using data supplied entirely by the server/map. Intended for hints to smooth playtests before content is ready to make the hint unneccessary. NOT INTENDED AS A SHIPPABLE CRUTCH

字段数据类型简介
useridplayer_controlleruser ID of the player that triggered the hint
hint_namestringwhat to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout)
hint_replace_keystringtype name so that messages of the same type will replace each other
hint_targetlongentity id that the hint should display at
hint_activator_useridplayer_controlleruserid id of the activator
hint_timeoutshorthow long in seconds until the hint automatically times out, 0 = never
hint_icon_onscreenstringthe hint icon to use when the hint is onscreen. e.g. "icon_alert_red"
hint_icon_offscreenstringthe hint icon to use when the hint is offscreen. e.g. "icon_alert"
hint_captionstringthe hint caption. e.g. "#ThisIsDangerous"
hint_activator_captionstringthe hint caption that only the activator sees e.g. "#YouPushedItGood"
hint_colorstringthe hint color in "r,g,b" format where each component is 0-255
hint_icon_offsetfloathow far on the z axis to offset the hint from entity origin
hint_rangefloatrange before the hint is culled
hint_flagslonghint flags
hint_bindingstringbindings to use when use_binding is the onscreen icon
hint_gamepad_bindingstringgamepad bindings to use when use_binding is the onscreen icon
hint_allow_nodraw_targetboolif false, the hint will dissappear if the target entity is invisible
hint_nooffscreenboolif true, the hint will not show when outside the player view
hint_forcecaptionboolif true, the hint caption will show even if the hint is occluded
hint_local_player_onlyboolif true, only the local player will see the hint

instructor_server_hint_stop

destroys a server/map created hint

字段数据类型简介
hint_namestringThe hint to stop. Will stop ALL hints with this name

read_game_titledata

read user titledata from profile

字段数据类型简介
controllerIdshortController id of user

write_game_titledata

write user titledata in profile

字段数据类型简介
controllerIdshortController id of user

reset_game_titledata

reset user titledata; do not automatically write profile

字段数据类型简介
controllerIdshortController id of user

weaponhud_selection

字段数据类型简介
useridplayer_controller_and_pawnPlayer who this event applies to
modebyteEWeaponHudSelectionMode (switch / pickup / drop)
entindexlongWeapon entity index

vote_ended

字段数据类型简介

vote_started

字段数据类型简介
issuestring
param1string
teambyte
initiatorlongentity id of the player who initiated the vote

vote_changed

字段数据类型简介
vote_option1byte
vote_option2byte
vote_option3byte
vote_option4byte
vote_option5byte
potentialVotesbyte

vote_cast

字段数据类型简介
vote_optionbytewhich option the player voted on
teamshort
useridplayer_controllerplayer who voted

vote_options

字段数据类型简介
countbyteNumber of options - up to MAX_VOTE_OPTIONS
option1string
option2string
option3string
option4string
option5string

endmatch_mapvote_selecting_map

字段数据类型简介
countbyteNumber of "ties"
slot1byte
slot2byte
slot3byte
slot4byte
slot5byte
slot6byte
slot7byte
slot8byte
slot9byte
slot10byte

endmatch_cmm_start_reveal_items

字段数据类型简介

inventory_updated

字段数据类型简介

client_loadout_changed

字段数据类型简介

add_player_sonar_icon

字段数据类型简介
useridplayer_controller
pos_xfloat
pos_yfloat
pos_zfloat

door_open

字段数据类型简介
useridplayer_pawnWho closed the door
entindexlong

door_closed

字段数据类型简介
useridplayer_pawnWho closed the door
entindexlong

door_break

字段数据类型简介
entindexlong
dmgstatelong

add_bullet_hit_marker

字段数据类型简介
useridplayer_controller
boneshort
pos_xshort
pos_yshort
pos_zshort
ang_xshort
ang_yshort
ang_zshort
start_xshort
start_yshort
start_zshort
hitbool

cstrikeevents

player_death

a game event, name may be 32 characters long

字段数据类型简介
useridplayer_controller_and_pawnuser who died
attackerplayer_controller_and_pawnplayer who killed
assisterplayer_controller_and_pawnplayer who assisted in the kill
assistedflashboolassister helped with a flash
weaponstringweapon name killer used
weapon_itemidstringinventory item id of weapon killer used
weapon_fauxitemidstringfaux item id of weapon killer used
weapon_originalowner_xuidstring
headshotboolsingals a headshot
dominatedshortdid killer dominate victim with this kill
revengeshortdid killer get revenge on victim with this kill
wipeshortis the kill resulting in squad wipe
penetratedshortnumber of objects shot penetrated before killing target
noreplayboolif replay data is unavailable, this will be present and set to false
noscopeboolkill happened without a scope, used for death notice icon
thrusmokeboolhitscan weapon went through smoke grenade
attackerblindboolattacker was blind from flashbang
distancefloatdistance to victim in meters
dmg_healthshortdamage done to health
dmg_armorbytedamage done to armor
hitgroupbytehitgroup that was damaged
attackerinairboolattacker was in midair

other_death

字段数据类型简介
otheridshortother entity ID who died
othertypestringother entity type
attackershortuser ID who killed
weaponstringweapon name killer used
weapon_itemidstringinventory item id of weapon killer used
weapon_fauxitemidstringfaux item id of weapon killer used
weapon_originalowner_xuidstring
headshotboolsingals a headshot
penetratedshortnumber of objects shot penetrated before killing target
noscopeboolkill happened without a scope, used for death notice icon
thrusmokeboolhitscan weapon went through smoke grenade
attackerblindboolattacker was blind from flashbang

player_hurt

字段数据类型简介
useridplayer_controller_and_pawnplayer index who was hurt
attackerplayer_controller_and_pawnplayer index who attacked
healthbyteremaining health points
armorbyteremaining armor points
weaponstringweapon name attacker used, if not the world
dmg_healthshortdamage done to health
dmg_armorbytedamage done to armor
hitgroupbytehitgroup that was damaged

bullet_damage

字段数据类型简介
victimplayer_controller_and_pawnplayer index who was hurt
attackerplayer_controller_and_pawnplayer index who attacked
distancefloathow far the bullet travelled before it hit the player
damage_dir_xfloatdirection vector of the bullet
damage_dir_yfloatdirection vector of the bullet
damage_dir_zfloatdirection vector of the bullet
num_penetrationsbytehow many surfaces were penetrated
no_scopeboolwas the shooter noscoped?
in_airboolwas the shooter jumping?

item_purchase

字段数据类型简介
useridplayer_controller
teamshort
loadoutshort
weaponstring

bomb_beginplant

字段数据类型简介
useridplayer_controller_and_pawnplayer who is planting the bomb
siteshortbombsite index

bomb_abortplant

字段数据类型简介
useridplayer_controller_and_pawnplayer who is planting the bomb
siteshortbombsite index

bomb_planted

字段数据类型简介
useridplayer_controller_and_pawnplayer who planted the bomb
siteshortbombsite index

bomb_defused

字段数据类型简介
useridplayer_controller_and_pawnplayer who defused the bomb
siteshortbombsite index

bomb_exploded

字段数据类型简介
useridplayer_controller_and_pawnplayer who planted the bomb
siteshortbombsite index

bomb_dropped

字段数据类型简介
useridplayer_controller_and_pawnplayer who dropped the bomb
entindexlong

bomb_pickup

字段数据类型简介
useridplayer_pawnplayer pawn who picked up the bomb

defuser_dropped

字段数据类型简介
entityidlongdefuser's entity ID

defuser_pickup

字段数据类型简介
entityidlongdefuser's entity ID
useridplayer_controller_and_pawnplayer who picked up the defuser

announce_phase_end

字段数据类型简介

cs_intermission

字段数据类型简介

bomb_begindefuse

字段数据类型简介
useridplayer_controller_and_pawnplayer who is defusing
haskitbool

bomb_abortdefuse

字段数据类型简介
useridplayer_controller_and_pawnplayer who was defusing

hostage_follows

字段数据类型简介
useridplayer_controller_and_pawnplayer who touched the hostage
hostageshorthostage entity index

hostage_hurt

字段数据类型简介
useridplayer_controller_and_pawnplayer who hurt the hostage
hostageshorthostage entity index

hostage_killed

字段数据类型简介
useridplayer_controller_and_pawnplayer who killed the hostage
hostageshorthostage entity index

hostage_rescued

字段数据类型简介
useridplayer_controller_and_pawnplayer who rescued the hostage
hostageshorthostage entity index
siteshortrescue site index

hostage_stops_following

字段数据类型简介
useridplayer_controller_and_pawnplayer who rescued the hostage
hostageshorthostage entity index

hostage_rescued_all

字段数据类型简介

hostage_call_for_help

字段数据类型简介
hostageshorthostage entity index

vip_escaped

字段数据类型简介
useridplayer_controllerplayer who was the VIP

vip_killed

字段数据类型简介
useridplayer_controllerplayer who was the VIP
attackerplayer_controlleruser ID who killed the VIP

player_radio

字段数据类型简介
useridplayer_controller_and_pawn
slotshort

bomb_beep

字段数据类型简介
entindexlongc4 entity

weapon_fire

字段数据类型简介
useridplayer_controller_and_pawn
weaponstringweapon name used
silencedboolis weapon silenced

weapon_fire_on_empty

字段数据类型简介
useridplayer_controller_and_pawn
weaponstringweapon name used

grenade_thrown

字段数据类型简介
useridplayer_controller_and_pawn
weaponstringweapon name used

weapon_reload

字段数据类型简介
useridplayer_controller_and_pawn

weapon_zoom

字段数据类型简介
useridplayer_controller_and_pawn

silencer_detach

字段数据类型简介
useridplayer_controller_and_pawn

inspect_weapon

字段数据类型简介
useridplayer_controller_and_pawn

weapon_zoom_rifle

字段数据类型简介
useridplayer_controller_and_pawn

player_spawned

字段数据类型简介
useridplayer_controller_and_pawn
inrestartbooltrue if restart is pending

item_pickup

字段数据类型简介
useridplayer_controller
itemstringeither a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs'
silentbool
defindexlong

item_pickup_slerp

字段数据类型简介
useridplayer_controller
indexshort
behaviorshort

item_pickup_failed

字段数据类型简介
useridplayer_controller
itemstring
reasonshort
limitshort

item_remove

字段数据类型简介
useridplayer_controller
itemstringeither a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs'
defindexlong

ammo_pickup

字段数据类型简介
useridplayer_controller
itemstringeither a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs'
indexlongthe weapon entindex

item_equip

字段数据类型简介
useridplayer_controller
itemstringeither a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs'
defindexlong
canzoombool
hassilencerbool
issilencedbool
hastracersbool
weptypeshort
ispaintedbool

enter_buyzone

字段数据类型简介
useridplayer_controller
canbuybool

exit_buyzone

字段数据类型简介
useridplayer_controller
canbuybool

buytime_ended

字段数据类型简介

enter_bombzone

字段数据类型简介
useridplayer_controller
hasbombbool
isplantedbool

exit_bombzone

字段数据类型简介
useridplayer_controller
hasbombbool
isplantedbool

enter_rescue_zone

字段数据类型简介
useridplayer_controller

exit_rescue_zone

字段数据类型简介
useridplayer_controller

silencer_off

字段数据类型简介
useridplayer_controller

silencer_on

字段数据类型简介
useridplayer_controller

buymenu_open

字段数据类型简介

buymenu_close

字段数据类型简介
useridplayer_controller

round_prestart

sent before all other round restart actions

字段数据类型简介

round_poststart

sent after all other round restart actions

字段数据类型简介

round_end

字段数据类型简介
winnerbytewinner team/user i
reasonbytereson why team won
messagestringend round message
legacybyteserver-generated legacy value
player_countshorttotal number of players alive at the end of round, used for statistics gathering, computed on the server in the event client is in replay when receiving this message
nomusicbyteif set, don't play round end music, because action is still on-going

grenade_bounce

字段数据类型简介
useridplayer_controller_and_pawn

hegrenade_detonate

字段数据类型简介
useridplayer_controller_and_pawn
entityidshort
xfloat
yfloat
zfloat

flashbang_detonate

字段数据类型简介
useridplayer_controller_and_pawn
entityidshort
xfloat
yfloat
zfloat

smokegrenade_detonate

字段数据类型简介
useridplayer_controller_and_pawn
entityidshort
xfloat
yfloat
zfloat

smokegrenade_expired

字段数据类型简介
useridplayer_controller_and_pawn
entityidshort
xfloat
yfloat
zfloat

molotov_detonate

字段数据类型简介
useridplayer_controller_and_pawn
xfloat
yfloat
zfloat

decoy_detonate

字段数据类型简介
useridplayer_controller_and_pawn
entityidshort
xfloat
yfloat
zfloat

decoy_started

字段数据类型简介
useridplayer_pawn
entityidshort
xfloat
yfloat
zfloat

tagrenade_detonate

字段数据类型简介
useridplayer_controller
entityidshort
xfloat
yfloat
zfloat

inferno_startburn

字段数据类型简介
entityidshort
xfloat
yfloat
zfloat

inferno_expire

字段数据类型简介
entityidshort
xfloat
yfloat
zfloat

inferno_extinguish

字段数据类型简介
entityidshort
xfloat
yfloat
zfloat

decoy_firing

字段数据类型简介
useridplayer_controller_and_pawn
entityidshort
xfloat
yfloat
zfloat

bullet_impact

字段数据类型简介
useridplayer_controller_and_pawn
xfloat
yfloat
zfloat

player_footstep

字段数据类型简介
useridplayer_controller_and_pawn

player_jump

字段数据类型简介
useridplayer_controller

player_blind

字段数据类型简介
useridplayer_controller
attackerplayer_controlleruser ID who threw the flash
entityidshortthe flashbang going off
blind_durationfloat

player_falldamage

字段数据类型简介
useridplayer_controller_and_pawn
damagefloat

door_moving

字段数据类型简介
useridplayer_controller_and_pawn
entindexlong

mb_input_lock_success

字段数据类型简介

mb_input_lock_cancel

字段数据类型简介
字段数据类型简介
arealong
blockedbool
字段数据类型简介

achievement_info_loaded

字段数据类型简介

spec_mode_updated

字段数据类型简介
useridplayer_controllerentindex of the player

hltv_changed_mode

字段数据类型简介
oldmodelong
newmodelong
obs_targetlong

cs_game_disconnected

字段数据类型简介

cs_round_final_beep

字段数据类型简介

cs_round_start_beep

字段数据类型简介

cs_win_panel_round

字段数据类型简介
show_timer_defendbool
show_timer_attackbool
timer_timeshort
final_eventbytedefine in cs_gamerules.h
funfact_tokenstring
funfact_playerplayer_controller
funfact_data1long
funfact_data2long
funfact_data3long

cs_win_panel_match

字段数据类型简介

cs_match_end_restart

字段数据类型简介

cs_pre_restart

字段数据类型简介

show_deathpanel

字段数据类型简介
victimplayer_controller_and_pawnendindex of the one who was killed
killerehandleentindex of the killer entity
killer_controllerplayer_controller
hits_takenshort
damage_takenshort
hits_givenshort
damage_givenshort

hide_deathpanel

字段数据类型简介

player_avenged_teammate

字段数据类型简介
avenger_idplayer_controller
avenged_player_idplayer_controller

achievement_earned_local

字段数据类型简介
achievementshortachievement ID
splitscreenplayershortsplitscreen ID

repost_xbox_achievements

字段数据类型简介
splitscreenplayershortsplitscreen ID

match_end_conditions

字段数据类型简介
fragslong
max_roundslong
win_roundslong
timelong

round_mvp

字段数据类型简介
useridplayer_controller
reasonshort
valuelong
musickitmvpslong
nomusicbyte
musickitidlong

show_survival_respawn_status

字段数据类型简介
loc_tokenstring
durationlong
useridplayer_controller_and_pawn

client_disconnect

字段数据类型简介

gg_killed_enemy

字段数据类型简介
victimidplayer_controlleruser ID who died
attackeridplayer_controlleruser ID who killed
dominatedshortdid killer dominate victim with this kill
revengeshortdid killer get revenge on victim with this kill
bonusbooldid killer kill with a bonus weapon?

switch_team

字段数据类型简介
numPlayersshortnumber of active players on both T and CT
numSpectatorsshortnumber of spectators
avg_rankshortaverage rank of human players
numTSlotsFreeshort
numCTSlotsFreeshort

write_profile_data

字段数据类型简介

trial_time_expired

字段数据类型简介
useridplayer_controllerplayer whose time has expired

update_matchmaking_stats

字段数据类型简介

player_reset_vote

字段数据类型简介
useridplayer_controller
votebool

enable_restart_voting

字段数据类型简介
enablebool

sfuievent

字段数据类型简介
actionstring
datastring
slotbyte

start_vote

字段数据类型简介
useridplayer_controller
typebyte
vote_parametershort

player_given_c4

字段数据类型简介
useridplayer_controlleruser ID who received the c4

bot_takeover

字段数据类型简介
useridplayer_controller_and_pawn
botidplayer_controller
pfloat
yfloat
rfloat

jointeam_failed

字段数据类型简介
useridplayer_controller
reasonbyte0 = team_full

teamchange_pending

字段数据类型简介
useridplayer_controller
toteambyte

material_default_complete

字段数据类型简介

cs_prev_next_spectator

字段数据类型简介
nextbool

nextlevel_changed

a game event, name may be 32 characters long

字段数据类型简介
nextlevelstring
mapgroupstring
skirmishmodestring

seasoncoin_levelup

字段数据类型简介
useridplayer_controller
categoryshort
rankshort

tournament_reward

字段数据类型简介
defindexlong
totalrewardslong
accountidlong

start_halftime

字段数据类型简介

ammo_refill

字段数据类型简介
useridplayer_controller
successbool

parachute_pickup

字段数据类型简介
useridplayer_controller

parachute_deploy

字段数据类型简介
useridplayer_controller

dronegun_attack

字段数据类型简介
useridplayer_controller

drone_dispatched

字段数据类型简介
useridplayer_controller
priorityshort
drone_dispatchedshort

loot_crate_visible

字段数据类型简介
useridplayer_controllerplayer entindex
subjectshortcrate entindex
typestringtype of crate (metal, wood, or paradrop)

loot_crate_opened

字段数据类型简介
useridplayer_controllerplayer entindex
typestringtype of crate (metal, wood, or paradrop)

open_crate_instr

字段数据类型简介
useridplayer_controllerplayer entindex
subjectshortcrate entindex
typestringtype of crate (metal, wood, or paradrop)

smoke_beacon_paradrop

字段数据类型简介
useridplayer_controller
paradropshort

survival_paradrop_spawn

字段数据类型简介
entityidshort

survival_paradrop_break

字段数据类型简介
entityidshort

drone_cargo_detached

字段数据类型简介
useridplayer_controller
cargoshort
deliveredbool

drone_above_roof

字段数据类型简介
useridplayer_controller
cargoshort

choppers_incoming_warning

字段数据类型简介
globalbool

firstbombs_incoming_warning

字段数据类型简介
globalbool

dz_item_interaction

字段数据类型简介
useridplayer_controllerplayer entindex
subjectshortcrate entindex
typestringtype of crate (metal, wood, or paradrop)

survival_teammate_respawn

字段数据类型简介
useridplayer_controller

survival_no_respawns_warning

字段数据类型简介
useridplayer_controller

survival_no_respawns_final

字段数据类型简介
useridplayer_controller

player_ping

字段数据类型简介
useridplayer_controller_and_pawn
entityidshort
xfloat
yfloat
zfloat
urgentbool

player_ping_stop

字段数据类型简介
entityidshort

player_sound

字段数据类型简介
useridplayer_controller_and_pawn
radiusint
durationfloat
stepbool

guardian_wave_restart

字段数据类型简介

team_intro_start

字段数据类型简介

team_intro_end

字段数据类型简介

bullet_flight_resolution

字段数据类型简介
useridplayer_controller_and_pawn
pos_xshort
pos_yshort
pos_zshort
ang_xshort
ang_yshort
ang_zshort
start_xshort
start_yshort
start_zshort

game_phase_changed

字段数据类型简介
new_phaseshort

clientside_reload_custom_econ

字段数据类型简介
steamidstring

目录

核心游戏事件server_spawnserver_pre_shutdownserver_shutdownserver_messageserver_cvarplayer_activateplayer_connect_fullplayer_full_updateplayer_connectplayer_disconnectplayer_infoplayer_spawnplayer_teamlocal_player_teamlocal_player_controller_teamplayer_changenameplayer_hurtplayer_chatlocal_player_pawn_changedteamplay_broadcast_audiofinale_startplayer_stats_updateduser_data_downloadedragdoll_dissolvedteam_infoteam_scorehltv_cameramanhltv_chasehltv_rank_camerahltv_rank_entityhltv_fixedhltv_messagehltv_statushltv_titlehltv_chathltv_versioninfohltv_replayhltv_replay_statusdemo_startdemo_stopdemo_skipmap_shutdownmap_transitionhostname_changeddifficulty_changedgame_messagegame_newmapround_startround_endround_start_pre_entityround_start_post_navround_freeze_endteamplay_round_startplayer_deathplayer_footstepplayer_hintmessagebreak_breakablebroken_breakablebreak_propentity_killeddoor_closevote_startedvote_failedvote_passedvote_changedvote_cast_yesvote_cast_noachievement_eventachievement_earnedachievement_write_failedbonus_updatedspec_target_updatedspec_mode_updatedentity_visiblegameinstructor_drawgameinstructor_nodrawflare_ignite_npchelicopter_grenade_punt_missphysgun_pickupinventory_updatedcart_updatedstore_pricesheet_updateditem_schema_initializeddrop_rate_modifiedevent_ticket_modifiedgc_connectedinstructor_start_lessoninstructor_close_lessoninstructor_server_hint_createinstructor_server_hint_stopset_instructor_group_enabledclientside_lesson_closeddynamic_shadow_light_changedgameeventsgameui_hiddenplayer_teamplayer_chatplayer_scoreplayer_shootgame_initgame_newmapgame_startgame_endround_announce_match_pointround_announce_finalround_announce_last_round_halfround_announce_match_startround_announce_warmupwarmup_endround_endround_end_upload_statsround_officially_endedround_time_warningugc_map_info_receivedugc_map_unsubscribedugc_map_download_errorugc_file_download_finishedugc_file_download_startbegin_new_matchdm_bonus_weapon_startsurvival_announce_phasebreak_propplayer_decalentity_visibleinstructor_server_hint_createinstructor_server_hint_stopread_game_titledatawrite_game_titledatareset_game_titledataweaponhud_selectionvote_endedvote_startedvote_changedvote_castvote_optionsendmatch_mapvote_selecting_mapendmatch_cmm_start_reveal_itemsinventory_updatedclient_loadout_changedadd_player_sonar_icondoor_opendoor_closeddoor_breakadd_bullet_hit_markercstrikeeventsplayer_deathother_deathplayer_hurtbullet_damageitem_purchasebomb_beginplantbomb_abortplantbomb_plantedbomb_defusedbomb_explodedbomb_droppedbomb_pickupdefuser_droppeddefuser_pickupannounce_phase_endcs_intermissionbomb_begindefusebomb_abortdefusehostage_followshostage_hurthostage_killedhostage_rescuedhostage_stops_followinghostage_rescued_allhostage_call_for_helpvip_escapedvip_killedplayer_radiobomb_beepweapon_fireweapon_fire_on_emptygrenade_thrownweapon_reloadweapon_zoomsilencer_detachinspect_weaponweapon_zoom_rifleplayer_spawneditem_pickupitem_pickup_slerpitem_pickup_faileditem_removeammo_pickupitem_equipenter_buyzoneexit_buyzonebuytime_endedenter_bombzoneexit_bombzoneenter_rescue_zoneexit_rescue_zonesilencer_offsilencer_onbuymenu_openbuymenu_closeround_prestartround_poststartround_endgrenade_bouncehegrenade_detonateflashbang_detonatesmokegrenade_detonatesmokegrenade_expiredmolotov_detonatedecoy_detonatedecoy_startedtagrenade_detonateinferno_startburninferno_expireinferno_extinguishdecoy_firingbullet_impactplayer_footstepplayer_jumpplayer_blindplayer_falldamagedoor_movingmb_input_lock_successmb_input_lock_cancelnav_blockednav_generateachievement_info_loadedspec_mode_updatedhltv_changed_modecs_game_disconnectedcs_round_final_beepcs_round_start_beepcs_win_panel_roundcs_win_panel_matchcs_match_end_restartcs_pre_restartshow_deathpanelhide_deathpanelplayer_avenged_teammateachievement_earned_localrepost_xbox_achievementsmatch_end_conditionsround_mvpshow_survival_respawn_statusclient_disconnectgg_killed_enemyswitch_teamwrite_profile_datatrial_time_expiredupdate_matchmaking_statsplayer_reset_voteenable_restart_votingsfuieventstart_voteplayer_given_c4bot_takeoverjointeam_failedteamchange_pendingmaterial_default_completecs_prev_next_spectatornextlevel_changedseasoncoin_leveluptournament_rewardstart_halftimeammo_refillparachute_pickupparachute_deploydronegun_attackdrone_dispatchedloot_crate_visibleloot_crate_openedopen_crate_instrsmoke_beacon_paradropsurvival_paradrop_spawnsurvival_paradrop_breakdrone_cargo_detacheddrone_above_roofchoppers_incoming_warningfirstbombs_incoming_warningdz_item_interactionsurvival_teammate_respawnsurvival_no_respawns_warningsurvival_no_respawns_finalplayer_pingplayer_ping_stopplayer_soundguardian_wave_restartteam_intro_startteam_intro_endbullet_flight_resolutiongame_phase_changedclientside_reload_custom_econ