Info zombie border: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Initial creation of info_zombie_border article.)
 
m (→‎Inputs: Substituted IO templates)
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{l4d2 brush|info_zombie_border}} No zombies will spawn behind this entity.
{{CD|CZombieBorder|CServerOnlyPointEntity}}
{{todo|Figure out how the entity works in-game.}}
{{this is a|point entity|name=info_zombie_border|game=Left 4 Dead 2}} It prevents any A.I. controlled infected to spawn behind it. If infected already exists before its spawned or re-enabled, the infected will discard themselves through deletion or suicide. The criteria to be behind this entity is only by position, so Line of Sight is not required.
{{stub}}


==KeyValues==
This is an aggressive way to prevent infected spawning, use with caution.
*{{KV Targetname}}
__NOTOC__
*{{KV Angles}}
== Keyvalues ==
*{{KV Parentname}}
{{KV Targetname}}
*{{KV EnableDisable}}
{{KV Angles}}


==Inputs==
== Inputs ==
*{{I Targetname}}
{{I|Enable}}
*{{I Parentname}}
{{I|Disable|Enable/Disable this entity from blocking spawns}}
*{{KV EnableDisable}}


==Outputs==
==Uses in official maps==
*{{O Targetname}}
The following maps use info_zombie_border.
; c3m1_plankcountry
* Named as<code>no_zombies_east_river</code>. Placed at where the ferry stops at after when the survivors start it, with its back facing the other side of the river.
** Receives a<code>Disable</code>input when the ferry is started, allowing infected to spawn at the other side again.


==See also==
== See also ==
==External links==
* [https://www.youtube.com/watch?v=WF9O7JaIlCs| Quick video demonstration of how info_zombie_border works]
[[category:Left 4 Dead 2]]
* {{ent|func_nav_attribute_region}}
* {{ent|func_nav_blocker}}

Latest revision as of 11:01, 21 April 2025

C++ Class hierarchy
CZombieBorder
CServerOnlyPointEntity
CServerOnlyEntity
CBaseEntity

info_zombie_border is a point entity available in Left 4 Dead 2 Left 4 Dead 2. It prevents any A.I. controlled infected to spawn behind it. If infected already exists before its spawned or re-enabled, the infected will discard themselves through deletion or suicide. The criteria to be behind this entity is only by position, so Line of Sight is not required.

This is an aggressive way to prevent infected spawning, use with caution.

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

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
Disable
Enable/Disable this entity from blocking spawns

Uses in official maps

The following maps use info_zombie_border.

c3m1_plankcountry
  • Named asno_zombies_east_river. Placed at where the ferry stops at after when the survivors start it, with its back facing the other side of the river.
    • Receives aDisableinput when the ferry is started, allowing infected to spawn at the other side again.

See also