Info zombie border: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(removed stub template)
m (→‎Inputs: Substituted IO templates)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{l4d2 point|info_zombie_border}} Any infected, aside from to be Player Controlled ones, will not be allowed to spawn or be discarded so long they are behind this entity. Line of sight is not a necessary concern for this entity, but only if an infected's origin would be located behind this entity.
{{CD|CZombieBorder|CServerOnlyPointEntity}}
 
{{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.
Before using this, it might be wise to consult if using [[func_nav_blocker]] to block out the only way to a preceding undesired path out entirely, or applying attributes capable of infected spawning manipulation (like<code>OBSCURED</code>or<code>NO_MOBS</code>attributes) with [[func_nav_attribute_region]], is what you need.


This is an aggressive way to prevent infected spawning, use with caution.
__NOTOC__
== Keyvalues ==
== Keyvalues ==
{{KV BaseEntity|l4d2=1}}
{{KV Targetname}}
{{KV EnableDisable}}
{{KV Angles}}


== Inputs ==
== Inputs ==
{{I BaseEntity|l4d2=1}}
{{I|Enable}}
{{I EnableDisable}}
{{I|Disable|Enable/Disable this entity from blocking spawns}}
 
== Outputs ==
{{O BaseEntity|l4d=1}}


==Uses in official maps==
==Uses in official maps==
Line 19: Line 17:
* 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.
* 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.
** Receives a<code>Disable</code>input when the ferry is started, allowing infected to spawn at the other side again.
== See also ==
* [https://www.youtube.com/watch?v=WF9O7JaIlCs| Quick video demonstration of how info_zombie_border works]
* {{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