Skip to content

Commit e638c6b

Browse files
committed
feat: add more game events
1 parent 7a5f284 commit e638c6b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/demoinfocs/game_events.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ func newGameEventHandler(parser *parser, ignoreBombsiteIndexNotFound bool) gameE
124124
"bomb_planted": delayIfNoPlayers(geh.bombPlanted), // Plant finished
125125
"bot_takeover": delay(geh.botTakeover), // Bot got taken over
126126
"buytime_ended": nil, // Not actually end of buy time, seems to only be sent once per game at the start
127+
"choppers_incoming_warning": nil, // Helicopters are coming (Danger zone mode)
127128
"cs_intermission": nil, // Dunno, only in locally recorded (POV) demo
128129
"cs_match_end_restart": nil, // Yawn
129130
"cs_pre_restart": nil, // Not sure, doesn't seem to be important
@@ -140,6 +141,7 @@ func newGameEventHandler(parser *parser, ignoreBombsiteIndexNotFound bool) gameE
140141
"enter_buyzone": nil, // Dunno, only in locally recorded (POV) demo
141142
"exit_buyzone": nil, // Dunno, only in locally recorded (POV) demo
142143
"flashbang_detonate": geh.flashBangDetonate, // Flash exploded
144+
"firstbombs_incoming_warning": nil, // First wave artillery incoming (Danger zone mode)
143145
"hegrenade_detonate": geh.heGrenadeDetonate, // HE exploded
144146
"hostage_killed": geh.hostageKilled, // Hostage killed
145147
"hostage_hurt": geh.hostageHurt, // Hostage hurt
@@ -172,6 +174,8 @@ func newGameEventHandler(parser *parser, ignoreBombsiteIndexNotFound bool) gameE
172174
"player_spawn": nil, // Player spawn
173175
"player_spawned": nil, // Only present in locally recorded (POV) demos
174176
"player_given_c4": nil, // Dunno, only present in locally recorded (POV) demos
177+
"player_ping": nil, // When a player uses the "ping system" added with the operation Broken Fang, only present in locally recorded (POV) demos
178+
"player_ping_stop": nil, // When a player's ping expired, only present in locally recorded (POV) demos
175179

176180
// Player changed team. Delayed for two reasons
177181
// - team IDs of other players changing teams in the same tick might not have changed yet
@@ -192,10 +196,13 @@ func newGameEventHandler(parser *parser, ignoreBombsiteIndexNotFound bool) gameE
192196
"round_start": geh.roundStart, // Round started
193197
"round_time_warning": nil, // Round time warning
194198
"server_cvar": nil, // Dunno
199+
"show_survival_respawn_status": nil, // Dunno, (Danger zone mode)
200+
"survival_paradrop_spawn": nil, // A paradrop is coming (Danger zone mode)
195201
"smokegrenade_detonate": geh.smokeGrenadeDetonate, // Smoke popped
196202
"smokegrenade_expired": geh.smokeGrenadeExpired, // Smoke expired
197203
"switch_team": nil, // Dunno, only present in POV demos
198204
"tournament_reward": nil, // Dunno
205+
"vote_cast": nil, // Dunno, only present in POV demos
199206
"weapon_fire": delayIfNoPlayers(geh.weaponFire), // Weapon was fired
200207
"weapon_fire_on_empty": nil, // Sounds boring
201208
"weapon_reload": geh.weaponReload, // Weapon reloaded

0 commit comments

Comments
 (0)