Player (Left 4 Dead series): Difference between revisions
Jump to navigation
Jump to search
Note:Bot zombies' player entity exists for 7 seconds after they died while survivor bot's player entity remains forever (or until human player takes their places)
Note:Survivor bots, SI and Tank's classname in-game is also
Warning:This entity is not intended to be placed in a map manually. Doing so will result in an instant fatal error on map load!
Important:This is a preserved entity in 








.
If the game has round restart mechanics this entity may not behave as expected:
Note:These keyvalues should be changed on a player with AddOutput.
Warning:Can't switch items when HUD is disabled
m (Nescius moved page Player/Left 4 Dead series to Player (Left 4 Dead series): -) |
(tabs) |
||
Line 1: | Line 1: | ||
{{Ent not in fgd|nolink=1}} | {{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)|custom2alt=Half-Life series | |||
| custom3=player (Counter-Strike series)|custom3alt=Counter-Strike series | |||
| portal=1 | |||
| portal2=1 | |||
| tf2=1 | |||
}} | |||
{{CD|CTerrorPlayer}} | {{CD|CTerrorPlayer}} | ||
Revision as of 16:35, 24 June 2024
![]() |
---|
CTerrorPlayer |
player
is a point entity available in Left 4 Dead series. Human players of any team are this entity.


player
.











If the game has round restart mechanics this entity may not behave as expected:
|
Keyvalues

- 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.

- 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 the
ReleaseSurvivorPositions
input from info_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.