Player (Counter-Strike series): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
{{TabsBar|main=Player}}
{{TabsBar|main=Player}}
{{Ent not in fgd|nolink=1}}
{{Ent not in fgd|nolink=1}}
{{Preserved entity|all}}
{{CD|CCSPlayer}}
{{CD|CCSPlayer}}
{{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.
{{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}}


== Inputs ==
== Inputs ==
{{I|OnRescueZoneTouch|Fired when touching a {{ent|func_hostage_rescue}}. If the player is a CT, shows the {{code|<nowiki>#</nowiki>Hint_hostage_rescue_zone}} help text onscreen.}}
{{I|OnRescueZoneTouch|Fired when touching a {{ent|func_hostage_rescue}}. If the player is a CT, shows the <code>#Hint_hostage_rescue_zone</code> help text onscreen, if the player hasn't seen it yet that round. {{confusion|This is an input, despite starting with "{{mono|On}}" (which is usually used for outputs).}}}}

Latest revision as of 06:28, 8 May 2025

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.
Recycle-warning.png
This is a preserved entity.
If the game has round restart mechanics this entity may not behave as expected.
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.

Inputs

OnRescueZoneTouch
Fired when touching a func_hostage_rescue. If the player is a CT, shows the #Hint_hostage_rescue_zone help text onscreen, if the player hasn't seen it yet that round.
Warning.pngRisk of Confusion:This is an input, despite starting with "On" (which is usually used for outputs).