Need help with plugins or servers? Join our Discord

Modding Database

Up to date with Steam · checked 24s ago· Viewing build 6745 (Oct 02 2026)

player_hurt

game event

Declared in game.gameevents, replacing the one in core.gameevents · local: not sent to clients

Named in the code or data of server.

Deadworks (C#), as PlayerHurtEvent
[GameEventHandler("player_hurt")]
public HookResult OnPlayerHurt(PlayerHurtEvent args) {
	// args.UseridController, args.UseridPawn, args.AttackerController, args.AttackerPawn,
	// args.Attackerentid, args.Health, args.Armor, args.Weapon, args.DmgHealth, args.DmgArmor,
	// args.Hitgroup, args.Type
	return HookResult.Continue;
}

Fields

FieldTypeDeadworks propertyValve's comment
useridplayer_controller_and_pawn
UseridController CBasePlayerController?
UseridPawn CBasePlayerPawn?
user ID who was hurt
attackerplayer_controller_and_pawn
AttackerController CBasePlayerController?
AttackerPawn CBasePlayerPawn?
user id who attacked
attackerentidlong
Attackerentid int
entity id who attacked, if attacker not a player, and userid therefore invalid
healthshort
Health int
remaining health points
armorbyte
Armor int
remaining armor points
weaponstring
Weapon string
weapon name attacker used, if not the world
dmg_healthshort
DmgHealth int
damage done to health
dmg_armorbyte
DmgArmor int
damage done to armor
hitgroupbyte
Hitgroup int
hitgroup that was damaged
typelong
Type int
damage type

History

  1. 6696–6745first dumped