CGamePlayerHurt (CS)

From AlliedModders Wiki
Jump to: navigation, search


Basic Information

  • Classname: CGamePlayerHurt.
  • Inheriting Instance: game_player_hurt.
  • Description: Unlike the trigger_hurt, this entity will apply damage (or health) to a player without that player being in a specific place.


Class Hierarchy


Entity Data

None.


Entity Attributes

  • Name (targetname) - Property used to identify entities.
  • Master (master) - The name of a multisource (or game_team_master) entity. A master must usually be active in order for the entity to work. Thus they act almost like an on/off switch, in their simplest form, and like an AND gate in the case of the multisource.
  • Damage To Apply (dmg) - This is the amount of damage to apply to the player that activated the entity. Using a negative number heals the player.


Entity Flags

// Spawn Flag.
#define SF_PKILL_FIREONCE  0x0001 // Remove the entity after firing.


HLSDK Reference


Related Links