Player (Counter-Strike series): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
{{Ent not in fgd|nolink=1}}
{{Ent not in fgd|nolink=1}}
{{CD|CCSPlayer}}
{{CD|CCSPlayer}}
{{this is a|point entity|name=player|game=Counter-Strike series}} The player itself or a [[bot]]. [[NPC]]s are not players. This entity still exists even if the player is dead.
{{this is a|entity|name=player|game=Counter-Strike series}} The player itself or a [[bot]]. [[NPC]]s are not players. This entity still exists even if the player is dead.


{{PreservedEnt|all}}
{{PreservedEnt|all}}

Revision as of 09:05, 15 September 2024

English (en)Translate (Translate)
edit
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 an entity available in Counter-Strike seriesCounter-Strike series Counter-Strike series. 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.
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.