player
![]() |
---|
CTerrorPlayer |
player
is a point entity available in Left 4 Dead series. Human players of any team are this entity.
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
player
.![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Counter-Strike: Source](/w/images/thumb/a/ad/Css_icon.png/16px-Css_icon.png)
![Half-Life 2: Deathmatch](/w/images/thumb/8/80/Hl2dm_icon.png/32px-Hl2dm_icon.png)
![Day of Defeat: Source](/w/images/thumb/6/65/Dods_icon.png/16px-Dods_icon.png)
![Portal](/w/images/thumb/6/6d/Portal_icon.png/16px-Portal_icon.png)
![Team Fortress 2](/w/images/thumb/8/84/Tf2-16px.png/16px-Tf2-16px.png)
![Left 4 Dead](/w/images/thumb/a/ad/Icon-L4D.png/16px-Icon-L4D.png)
![Left 4 Dead 2](/w/images/thumb/8/8b/Icon-L4D2.png/16px-Icon-L4D2.png)
![Alien Swarm](/w/images/thumb/d/d9/As_icon.png/16px-As_icon.png)
![Portal 2](/w/images/thumb/3/3c/Portal2_icon.png/16px-Portal2_icon.png)
![Counter-Strike: Global Offensive](/w/images/thumb/8/85/Csgo_icon.png/16px-Csgo_icon.png)
- On a new round, its properties including its position 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.
Keyvalues
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
- Health
(health)
<integer> - The player's health.
- Maximum Health
(max_health)
<integer> - The value of "health" cannot exceed this.
Inputs
SetHealth
<integer>- Sets the player's health. Values clamped between 0 and
max_health
.
SetHUDVisibility
<boolean>- Hides or displays the HUD.
![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)
SetFogController
<string>- Sets the
env_fog_controller
to use.
SpeakResponseConcept
<string>- Speak the specified response concept immediately.
IgnoreFallDamage
<float>- Prevent the player from taking fall damage for [n] seconds, but reset back to taking fall damage after the first impact (so players will be hurt if they bounce off what they hit).
IgnoreFallDamageWithoutReset
<float>- Absolutely prevent the player from taking fall damage for [n] seconds.
Note:Should use "OnStartTrouch - !activator". Consider the Time to be short, if there's another ledge they could jump off while being in the "no damage" timer.
SetCommentaryStatueMode
<boolean>- When set to 1 player bot will be stopped and have hp set to 1048576 (2^20). Setting it back to 0 will leave the bot with 1 hp
DisableLedgeHang
- Disable ledge hanging by player.
EnableLedgeHang
- Enable ledge hanging by player.
TeleportToSurvivorPosition
<string>- Teleport a player to an
info_survivor_position
entity, then freezes them. To unfreeze them, use theReleaseSurvivorPositions
input frominfo_director
or the player'sReleaseFromSurvivorPosition
input.
ReleaseFromSurvivorPosition
- Unfreezes and releases the player from an
info_survivor_position
entity if they are at one.
CancelCurrentScene
- Cancels scene that's currently playing. Used in c6m3 to stop L4D2 survivors talking with L4D1 survivors when they start the elevator.
OnRescueZoneTouch
SetGlowEnabled
<boolean> (only in)
- Sets if this player is allowed to glow through walls if not visible.