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; }ActualDmgArmor
damage done to armor
type: int
int ActualDmgArmor { get; set; }ActualDmgHealth
damage done to health
type: int
int ActualDmgHealth { get; set; }ActualHealth
remaining health points
type: int
int ActualHealth { get; set; }ActualHitGroup
hitgroup that was damaged
type: HitGroup_t
HitGroup_t ActualHitGroup { get; set; }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; }Attacker
player who attacked
type: player_controller_and_pawn
int Attacker { get; set; }AttackerController
player who attacked
type: player_controller_and_pawn
CCSPlayerController AttackerController { get; }AttackerPawn
player who attacked
type: player_controller_and_pawn
CCSPlayerPawn AttackerPawn { get; }AttackerPlayer
IPlayer? AttackerPlayer { get; }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; }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; }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; }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; }UserId
player who was hurt
type: player_controller_and_pawn
int UserId { get; set; }UserIdController
player who was hurt
type: player_controller_and_pawn
CCSPlayerController UserIdController { get; }UserIdPawn
player who was hurt
type: player_controller_and_pawn
CCSPlayerPawn UserIdPawn { get; }UserIdPlayer
IPlayer? UserIdPlayer { get; }Weapon
weapon name attacker used, if not the world
type: string
string Weapon { get; set; }