SwiftlyS2

EventPlayerHurt

Interface EventPlayerHurt

Namespace: SwiftlyS2.Shared.GameEventDefinitions

Assembly: SwiftlyS2.CS2.dll

Event "player_hurt"

public interface EventPlayerHurt : IGameEvent<EventPlayerHurt>

Implements

Properties

ActualArmor

remaining armor points


type: int

int ActualArmor { get; set; }
Property Value

ActualDmgArmor

damage done to armor


type: int

int ActualDmgArmor { get; set; }
Property Value

ActualDmgHealth

damage done to health


type: int

int ActualDmgHealth { get; set; }
Property Value

ActualHealth

remaining health points


type: int

int ActualHealth { get; set; }
Property Value

ActualHitGroup

hitgroup that was damaged


type: HitGroup_t

HitGroup_t ActualHitGroup { get; set; }
Property Value

Armor

remaining armor points


type: byte


See SwiftlyS2.Shared.GameEventDefinitions.EventPlayerHurt.ActualArmor.

[Obsolete("The declared type may not match the actual value. Use ActualArmor instead.")]
byte Armor { get; set; }
Property Value

Attacker

player who attacked


type: player_controller_and_pawn

int Attacker { get; set; }
Property Value

AttackerController

player who attacked


type: player_controller_and_pawn

CCSPlayerController AttackerController { get; }
Property Value

AttackerPawn

player who attacked


type: player_controller_and_pawn

CCSPlayerPawn AttackerPawn { get; }
Property Value

AttackerPlayer

IPlayer? AttackerPlayer { get; }
Property Value

DmgArmor

damage done to armor


type: byte


See SwiftlyS2.Shared.GameEventDefinitions.EventPlayerHurt.ActualDmgArmor.

[Obsolete("The declared type may not match the actual value. Use ActualDmgArmor instead.")]
byte DmgArmor { get; set; }
Property Value

DmgHealth

damage done to health


type: short


See SwiftlyS2.Shared.GameEventDefinitions.EventPlayerHurt.ActualDmgHealth.

[Obsolete("The declared type may not match the actual value. Use ActualDmgHealth instead.")]
short DmgHealth { get; set; }
Property Value

Health

remaining health points


type: byte


See SwiftlyS2.Shared.GameEventDefinitions.EventPlayerHurt.ActualHealth.

[Obsolete("The declared type may not match the actual value. Use ActualHealth instead.")]
byte Health { get; set; }
Property Value

HitGroup

hitgroup that was damaged


type: byte


See SwiftlyS2.Shared.GameEventDefinitions.EventPlayerHurt.ActualHitGroup.

[Obsolete("The declared type may not match the actual value. Use ActualHitGroup instead.")]
byte HitGroup { get; set; }
Property Value

UserId

player who was hurt


type: player_controller_and_pawn

int UserId { get; set; }
Property Value

UserIdController

player who was hurt


type: player_controller_and_pawn

CCSPlayerController UserIdController { get; }
Property Value

UserIdPawn

player who was hurt


type: player_controller_and_pawn

CCSPlayerPawn UserIdPawn { get; }
Property Value

UserIdPlayer

IPlayer? UserIdPlayer { get; }
Property Value

Weapon

weapon name attacker used, if not the world


type: string

string Weapon { get; set; }
Property Value

On this page