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
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -359,15 +359,17 @@ const (
359
359
360
360
// PlayerHurt signals that a player has been damaged.
361
361
typePlayerHurtstruct {
362
-
Player*common.Player// May be nil if the demo is partially corrupt (player is 'unconnected', see #156 and #172).
363
-
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).
364
-
Healthint
365
-
Armorint
366
-
Weapon*common.Equipment// May be EqUnknown for world-damage (falling / bomb).
367
-
WeaponStringstring// Wrong for CZ, M4A1-S etc.
368
-
HealthDamageint
369
-
ArmorDamageint
370
-
HitGroupHitGroup
362
+
Player*common.Player// May be nil if the demo is partially corrupt (player is 'unconnected', see #156 and #172).
363
+
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).
364
+
Healthint
365
+
Armorint
366
+
Weapon*common.Equipment// May be EqUnknown for world-damage (falling / bomb).
367
+
WeaponStringstring// Wrong for CZ, M4A1-S etc.
368
+
HealthDamageint
369
+
ArmorDamageint
370
+
HealthDamageTakenint// HealthDamage excluding over-damage (e.g. if player has 5 health and is hit for 15 damage this would be 5 instead of 15)
371
+
ArmorDamageTakenint// ArmorDamage excluding over-damage (e.g. if player has 5 armor and is hit for 15 armor damage this would be 5 instead of 15)
372
+
HitGroupHitGroup
371
373
}
372
374
373
375
// PlayerConnect signals that a player has started connecting.
0 commit comments