Player (Counter-Strike series): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LanguageBar}}
{{TabsBar|main=Player}}
{{Ent not in fgd|nolink=1}}
{{Ent not in fgd|nolink=1}}
{{Tabs|player|source=1|main=source
{{Preserved entity|all}}
| custom1=player (Left 4 Dead series)|custom1alt=Left 4 Dead series
| custom2=player (Half-Life series)|custom2alt=Half-Life series
| custom3=player (Counter-Strike series)|custom3alt=Counter-Strike series
| portal=1
| portal2=1
| tf2=1
}}
{{CD|CCSPlayer}}
{{CD|CCSPlayer}}
{{this is a|point entity|name=player}} 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 ==
{{IO|OnRescueZoneTouch|Fired when a [[hostage_entity|hostage]] is rescued.}}
{{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).