Env physics blocker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{l4d2 point|env_physics_blocker}}
{{CD|CEnvPhysicsBlocker}}
{{stub}}
{{CD|C_EnvPhysicsBlocker|base=C_BaseEntity|client=1}}
{{this is a|point entity|name=env_physics_blocker|game=Left 4 Dead 2}} It blocks players and physics objects.


== Entity description ==
== Keyvalues ==
An entity which blocks players and physics objects.
{{KV Targetname}}
{{KV|Mins|intn=boxmins|vector}}
{{KV|Maxs|intn=boxmaxs|vector|
Used when angles are other value than 0 0 0. {{Bug*|Non zero angles cause vphysics objects to always be blocked by this entity ignoring BlockType}}}}
{{KV|Mins|intn=mins|vector|nofgd=1}}
{{KV|Maxs|intn=maxs|vector|nofgd=1|
Used when angles are 0 0 0}}


== Keyvalues ==
{{KV|Initial State|intn=initialstate|bool|Initial state of the blocker}}
* {{KV Targetname}}
:* 0 : Disabled
* {{ScrollBox|title=mins|
:* 1 : Enabled
; Mins <code><[[vector]]></code>
{{KV|Blocks|intn=BlockType|choices|What should be blocked}}
}}
:{| class=standard-table
* {{ScrollBox|title=maxs|
! Value || Description
; Maxs <code><[[vector]]></code>
|-
}}
| <code>0</code> || Everyone
* {{ScrollBox|title=initialstate|
|-
; Initial State <code><choices></code>
| <code>1</code> || Survivors
}}
|-
* {{ScrollBox|title=BlockType|
| <code>2</code> || Player Infected
; Blocks <code><choices></code>
|-
}}
| <code>3</code> || All Special Infected (Player and AI)
|-
| <code>4</code> || All players and physics objects
|}
{{KV Angles}}


== Inputs ==
== Inputs ==
{{I Targetname}}
{{I|Enable|Enables the Blocker}}
{{I EnableDisable}}
{{I|Disable|Disables the Blocker}}


== Outputs ==
== See also ==
{{O Targetname}}
* [[env_player_blocker]]


[[Category:Physics]]
[[Category:Physics]]

Latest revision as of 18:09, 24 May 2025

C++ Class hierarchy
CEnvPhysicsBlocker
CBaseEntity
C++ Class hierarchy (client)
C_EnvPhysicsBlocker
C_BaseEntity

env_physics_blocker is a point entity available in Left 4 Dead 2 Left 4 Dead 2. It blocks players and physics objects.

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 (boxmins) <vector>
Maxs (boxmaxs) <vector>
Used when angles are other value than 0 0 0.
Icon-Bug.pngBug*:Non zero angles cause vphysics objects to always be blocked by this entity ignoring BlockType
Mins (mins) <vector> !FGD
Maxs (maxs) <vector> !FGD
Used when angles are 0 0 0


Initial State (initialstate) <boolean>
Initial state of the blocker
  • 0 : Disabled
  • 1 : Enabled
Blocks (BlockType) <choices>
What should be blocked
Value Description
0 Everyone
1 Survivors
2 Player Infected
3 All Special Infected (Player and AI)
4 All players and physics objects
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

Enable
Enables the Blocker
Disable
Disables the Blocker

See also