CGamePlayerHurt (CS)

From AlliedModders Wiki
Revision as of 19:32, 6 May 2009 by Arkshine (talk | contribs) (Added CGamePlayerHurt)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.


HLSDK Reference


Related Links