Env player blocker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(keyvalue fix)
m (clean up, replaced: {{ModernWarning| → {{warning|, See Also → See also)
Line 5: Line 5:
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.
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.


{{ModernWarning|Instead of being fully solid like a clip, players are able to enter its volume for a fraction of a second. Running against this entity, standing on top of it, or teleporting into it will cause the camera to jigger rapidly.}}
{{warning|Instead of being fully solid like a clip, players are able to enter its volume for a fraction of a second. Running against this entity, standing on top of it, or teleporting into it will cause the camera to jigger rapidly.}}


== Keyvalues ==
== Keyvalues ==
Line 25: Line 25:
{{IO|Disable|Disables the Blocker}}
{{IO|Disable|Disables the Blocker}}


== See Also ==
== See also ==
* [[env_physics_blocker]]
* [[env_physics_blocker]]

Revision as of 00:46, 4 January 2024

C++ Class hierarchy
CEnv_Blocker
CBaseEntity

Template:Entity It blocks any Survivor and Special Infected from entering of the specified type, very simmilar 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 compiling the map again.

Warning.pngWarning:Instead of being fully solid like a clip, players are able to enter its volume for a fraction of a second. Running against this entity, standing on top of it, or teleporting into it will cause the camera to jigger rapidly.

Keyvalues

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

Inputs

Enable
Enables the Blocker
Disable
Disables the Blocker

See also