Skip to content

Commit 1bcd368

Browse files
committed
events: add unused known events (avoiding ParserWarn)
1 parent 67056f4 commit 1bcd368

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

game_events.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,23 @@ func newGameEventHandler(parser *Parser) gameEventHandler {
117117
"decoy_detonate": geh.decoyDetonate, // Decoy exploded/expired
118118
"decoy_started": delay(geh.decoyStarted), // Decoy started. Delayed because projectile entity is not yet created
119119
"endmatch_cmm_start_reveal_items": nil, // Drops
120+
"entity_visible": nil, // Dunno, only in locally recorded demo
121+
"enter_bombzone": nil, // Dunno, only in locally recorded demo
122+
"exit_bombzone": nil, // Dunno, only in locally recorded demo
123+
"enter_buyzone": nil, // Dunno, only in locally recorded demo
124+
"exit_buyzone": nil, // Dunno, only in locally recorded demo
120125
"flashbang_detonate": geh.flashBangDetonate, // Flash exploded
121126
"hegrenade_detonate": geh.heGrenadeDetonate, // HE exploded
122127
"hltv_chase": nil, // Don't care
123128
"hltv_fixed": nil, // Dunno
124129
"hltv_status": nil, // Don't know
125130
"inferno_expire": geh.infernoExpire, // Incendiary expired
126131
"inferno_startburn": delay(geh.infernoStartBurn), // Incendiary exploded/started. Delayed because inferno entity is not yet created
132+
"inspect_weapon": nil, // Dunno, only in locally recorded demo
127133
"item_equip": delay(geh.itemEquip), // Equipped / weapon swap, I think. Delayed because of #142 - Bot entity possibly not yet created
128134
"item_pickup": delay(geh.itemPickup), // Picked up or bought? Delayed because of #119 - Equipment.UniqueID()
129135
"item_remove": geh.itemRemove, // Dropped?
136+
"jointeam_failed": nil, // Dunno, only in locally recorded demo
130137
"other_death": nil, // Dunno
131138
"player_blind": delay(geh.playerBlind), // Player got blinded by a flash. Delayed because Player.FlashDuration hasn't been updated yet
132139
"player_changename": nil, // Name change
@@ -139,6 +146,7 @@ func newGameEventHandler(parser *Parser) gameEventHandler {
139146
"player_hurt": geh.playerHurt, // Player got hurt
140147
"player_jump": geh.playerJump, // Player jumped
141148
"player_spawn": nil, // Player spawn
149+
"player_given_c4": nil, // Dunno, only present in POV demos
142150

143151
// Player changed team. Delayed for two reasons
144152
// - team IDs of other players changing teams in the same tick might not have changed yet
@@ -150,6 +158,7 @@ func newGameEventHandler(parser *Parser) gameEventHandler {
150158
"round_announce_match_start": nil, // Special match start announcement
151159
"round_announce_warmup": nil, // Dunno
152160
"round_end": geh.roundEnd, // Round ended and the winner was announced
161+
"round_end_upload_stats": nil, // Dunno, only present in POV demos
153162
"round_freeze_end": geh.roundFreezeEnd, // Round start freeze ended
154163
"round_mvp": geh.roundMVP, // Round MVP was announced
155164
"round_officially_ended": geh.roundOfficiallyEnded, // The event after which you get teleported to the spawn (=> You can still walk around between round_end and this event)
@@ -160,11 +169,13 @@ func newGameEventHandler(parser *Parser) gameEventHandler {
160169
"server_cvar": nil, // Dunno
161170
"smokegrenade_detonate": geh.smokeGrenadeDetonate, // Smoke popped
162171
"smokegrenade_expired": geh.smokeGrenadeExpired, // Smoke expired
172+
"switch_team": nil, // Dunno, only present in POV demos
163173
"tournament_reward": nil, // Dunno
164174
"weapon_fire": delayIfNoPlayers(geh.weaponFire), // Weapon was fired
165175
"weapon_fire_on_empty": nil, // Sounds boring
166176
"weapon_reload": geh.weaponReload, // Weapon reloaded
167177
"weapon_zoom": nil, // Zooming in
178+
"weapon_zoom_rifle": nil, // Dunno, only in locally recorded demo
168179
}
169180

170181
return geh

0 commit comments

Comments
 (0)