Env player blocker: Difference between revisions
Jump to navigation
Jump to search
m (Add internal names of keyval keys) |
(added more examples of use to beginning of page) |
||
Line 1: | Line 1: | ||
{{l4d series point|env_player_blocker}} It blocks any PC/NPC from entering of the specified type. | {{l4d series point|env_player_blocker}} It blocks any PC/NPC from entering of the specified type.<br> | ||
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 also been used a lot in L4D2's _Commentary files in the maps folder. Those have been used to block areas where survivors could remain unharmed by infected. Or in the case of C4M2_Sugarmill_a, where Survivors are blocked from jumping onto a set of pipes to gain higher ground prematurely.<br> | |||
This entity is a very useful option for clips that must be toggled on and off during gameplay. | |||
== Keyvalues == | == Keyvalues == |
Revision as of 19:09, 8 August 2021
Template:L4d series point It blocks any PC/NPC from entering of the specified type.
Examples of its use can be found in L4D1 Authoring Tools SDK content, such as the l4d_airport03_garage.vmf crescendo event.
It has also been used a lot in L4D2's _Commentary files in the maps folder. Those have been used to block areas where survivors could remain unharmed by infected. Or in the case of C4M2_Sugarmill_a, where Survivors are blocked from jumping onto a set of pipes to gain higher ground prematurely.
This entity is a very useful option for clips that must be toggled on and off during gameplay.
Keyvalues
- Mins (boxmins) <vector>
- Maxs (boxmaxs) <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
ortarget
).
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