We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f36fec commit b1b5431Copy full SHA for b1b5431
events/events.go
@@ -350,11 +350,11 @@ const (
350
// PlayerHurt signals that a player has been damaged.
351
type PlayerHurt struct {
352
Player *common.Player
353
- Attacker *common.Player
+ Attacker *common.Player // May be nil if the player is taking world damage (e.g. fall damage).
354
Health int
355
Armor int
356
- Weapon *common.Equipment
357
- WeaponString string // Wrong for CZ, M4A1-S etc.
+ Weapon *common.Equipment // May be EqUnknown for world-damage (falling / bomb).
+ WeaponString string // Wrong for CZ, M4A1-S etc.
358
HealthDamage int
359
ArmorDamage int
360
HitGroup HitGroup
0 commit comments