This article's documentation is for anything that uses the Source engine. Click here for more information.

Player (Counter-Strike series): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Ent not in fgd|nolink=1}} {{Tabs|player|source=1|main=source | custom1=player (Left 4 Dead series)|custom1alt=Left 4 Dead series | custom2=player (Half-Life series)|custom2a...")
 
(unneeded info)
Line 14: Line 14:


== Inputs ==
== Inputs ==
{{IO|OnRescueZoneTouch|Fired when a [[hostage_entity|hostage]] is rescued. This input is also available in the code for {{l4d}} and {{l4d2}}.}}
{{IO|OnRescueZoneTouch|Fired when a [[hostage_entity|hostage]] is rescued.}}

Revision as of 00:26, 27 July 2024

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
CCSPlayer
CBaseMultiplayerPlayer
CBasePlayer
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

player is a point entity available in all Source Source games. The player itself or a bot. NPCs are not players. This entity still exists even if the player is dead.

Icon-Important.pngImportant:This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Alien SwarmAlien Swarm: Reactive DropPortal 2Counter-Strike: Global Offensive.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.

Inputs

OnRescueZoneTouch
Fired when a hostage is rescued.