You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/demoinfocs/events/events.go
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -196,7 +196,7 @@ type GrenadeEvent struct {
196
196
GrenadeType common.EquipmentType
197
197
Grenade*common.Equipment// Maybe nil for InfernoStart & InfernoExpired since we don't know the thrower (at least in old demos)
198
198
Position r3.Vector
199
-
Thrower*common.Player// May be nil if the demo is partially corrupt (player is 'unconnected', see #156 and #172).
199
+
Thrower*common.Player// May be nil with POV demos or if the demo is partially corrupt (player is 'unconnected', see #156 and #172).
200
200
GrenadeEntityIDint
201
201
}
202
202
@@ -301,7 +301,7 @@ const (
301
301
// BombEvent contains the common attributes of bomb events. Dont register
302
302
// handlers on this tho, you want BombEventIf for that.
303
303
typeBombEventstruct {
304
-
Player*common.Player
304
+
Player*common.Player// Can be nil with POV demos
305
305
SiteBombsite
306
306
}
307
307
@@ -414,7 +414,7 @@ const (
414
414
415
415
// PlayerHurt signals that a player has been damaged.
416
416
typePlayerHurtstruct {
417
-
Player*common.Player// May be nil if the demo is partially corrupt (player is 'unconnected', see #156 and #172).
417
+
Player*common.Player// May be nil with POV demos or if the demo is partially corrupt (player is 'unconnected', see #156 and #172).
418
418
Attacker*common.Player// May be nil if the player is taking world damage (e.g. fall damage) or if the demo is partially corrupt (player is 'unconnected', see #156 and #172).
419
419
Healthint
420
420
Armorint
@@ -583,6 +583,7 @@ const (
583
583
584
584
WarnTypeUnknownEquipmentIndex
585
585
WarnTypeMissingItemDefinitionIndex
586
+
WarnTypeStringTableParsingFailure// Should happen only with CS2 POV demos
586
587
)
587
588
588
589
// ParserWarn signals that a non-fatal problem occurred during parsing.
0 commit comments