Env player blocker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(swapped entity template and reworded beginning)
No edit summary
 
(8 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{CD|CEnv_Blocker}}
{{CD|CEnv_Blocker}}
{{entity|type=e0|env_player_blocker|game=Left 4 Dead series}} It blocks any PC/NPC from entering of the specified type, very simmilar to Clip brushes, but in point entity form.<br>
{{This is a|point entity|name=env_player_blocker|game=Left 4 Dead series}} It blocks any Survivor and Special Infected from entering of the specified type, very similar to clip brushes, but in point entity form.
Examples of its use can be found in L4D1 Authoring Tools SDK content, such as the l4d_airport03_garage.vmf crescendo event.<br>
 
It has been added to maps using [[Commentary_System]] files a lot. Simply because they work like clip brushes, but they are point entities which can easily be added to fix "God Spots" or unintentional access to places without compiling the map again.
Examples of its use can be found in L4D1 Authoring Tools SDK content, such as the l4d_airport03_garage.vmf Crescendo Event.<br>
It has been added to maps using [[Commentary System]] files a lot. Simply because they work like clip brushes, but they are point entities which can easily be added to fix "God Spots" or unintentional access to places without re-compiling the map.
 
{{warning|This entity has prediction errors. Moving against it will feel jittery. In {{l4d2}} use {{ent|env_physics_blocker}} instead.}}
{{note|Angled collision boxes are not possible using this entity}}


== Keyvalues ==
== Keyvalues ==
{{KV|Mins|intn=boxmins|vector}}
{{KV Targetname}}
{{KV|Maxs|intn=boxmaxs|vector}}
{{KV|Mins|intn=mins|vector}}
{{KV|Maxs|intn=maxs|vector}}
An outlined box is displayed in Hammer when Mins/Maxs are specified.
An outlined box is displayed in Hammer when Mins/Maxs are specified.
{{KV|Initial State|intn=initialstate|choices|Initial state of the blocker}}
{{KV|Initial State|intn=initialstate|choices|Initial state of the blocker}}
Line 16: Line 21:
:* 2 : Player Infected
:* 2 : Player Infected
:* 3 : All Special Infected (Player and AI)
:* 3 : All Special Infected (Player and AI)
{{KV Targetname}}


== Inputs ==
== Inputs ==
{{IO|Enable|Enables the Blocker}}
{{I|Enable|Enables the Blocker}}
{{IO|Disable|Disables the Blocker}}
{{I|Disable|Disables the Blocker}}
 
==See also==
* [[env_physics_blocker]]

Latest revision as of 18:05, 24 May 2025

C++ Class hierarchy
CEnv_Blocker
CBaseEntity

env_player_blocker is a point entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It blocks any Survivor and Special Infected from entering of the specified type, very similar to clip brushes, but in point entity form.

Examples of its use can be found in L4D1 Authoring Tools SDK content, such as the l4d_airport03_garage.vmf Crescendo Event.
It has been added to maps using Commentary System files a lot. Simply because they work like clip brushes, but they are point entities which can easily be added to fix "God Spots" or unintentional access to places without re-compiling the map.

Warning.pngWarning:This entity has prediction errors. Moving against it will feel jittery. In Left 4 Dead 2 use env_physics_blocker instead.
Note.pngNote:Angled collision boxes are not possible using this entity

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Mins (mins) <vector>
Maxs (maxs) <vector>

An outlined box is displayed in Hammer when Mins/Maxs are specified.

Initial State (initialstate) <choices>
Initial state of the blocker
  • 0 : Disabled
  • 1 : Enabled
Blocks (BlockType) <choices>
What should be blocked
  • 0 : Everyone
  • 1 : Survivors
  • 2 : Player Infected
  • 3 : All Special Infected (Player and AI)

Inputs

Enable
Enables the Blocker
Disable
Disables the Blocker

See also