Info zombie spawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Typo)
(Reformat)
Line 1: Line 1:
{{l4d series point|info_zombie_spawn}} It is an entity used to spawn a zombie.
{{stub}}
{{stub}}
{{l4d series point|info_zombie_spawn}} It is used to spawn a zombie manually.
== Keyvalues ==
== Keyvalues ==
* {{KV Targetname}}
{{KV|Population|string|Zombie population to choose among.}}
* {{KV Angles}}
{{KV|Attack On Spawn|boolean|Whether this zombie should always attack on spawn. Note that this only affects tanks and witches at this time, all others always attack on spawn.}}
* '''Population''' <code><[[string]]></code>
{{KV|Offer Spawned Tank to PZs|boolean|since=L4D2}}
:A set of infected to spawn. See left4dead\scripts\population.txt for possible values.
{{KV Targetname}}
* '''AttackOnSpawn''' <code><[[bool]]></code>
{{KV Angles}}
:Forces the spawned zombie to attack instantly (has to be added with [[SmartEdit]] at the moment)
{{KV Parentname}}
* '''Parent''' <code><[[targetname]]></code>
 
:The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
* '''Offer Spawned Tank to PZs''' <code><[[bool]]></code>
:Offer this tank to a Player on spawn?
== Flags ==
* none
== Inputs ==
== Inputs ==
*'''SpawnZombie'''
{{IO|SpawnZombie|Spawn a zombie now.}}
:Spawns a random infected.
{{IO|StartleZombie|Startle the zombie (witches only).|since=L4D2}}
*{{l4d2 add|'''StartleZombie'''}}
{{I Targetname}}
:Startle the zombie (witches only).
{{I Parentname}}
 
== Outputs ==
== Outputs ==
*'''OnSpawnNormal'''
{{IO|OnSpawnNormal|Fired when the spawner creates a normal infected.}}
:Fired when the spawner creates a normal infected.
{{IO|OnSpawnSmoker|Fired when the spawner creates a Smoker.}}
*'''OnSpawnSmoker'''
{{IO|OnSpawnBoomer|Fired when the spawner creates a Boomer.}}
:Fired when the spawner creates a Smoker.
{{IO|OnSpawnHunter|Fired when the spawner creates a Hunter.}}
*'''OnSpawnBoomer'''
{{IO|OnSpawnSpitter|Fired when the spawner creates a Spitter.}}
:Fired when the spawner creates a Boomer.
{{IO|OnSpawnJockey|Fired when the spawner creates a Jockey.}}
*'''OnSpawnHunter'''
{{IO|OnSpawnCharger|Fired when the spawner creates a Charger.}}
:Fired when the spawner creates a Hunter.
{{IO|OnSpawnWitch|Fired when the spawner creates a Witch.}}
*'''OnSpawnSpitter'''
{{IO|OnSpawnTank|Fired when the spawner creates a Tank.}}
:Fired when the spawner creates a Spitter.
*'''OnSpawnJockey'''
:Fired when the spawner creates a Jockey.
*'''OnSpawnCharger'''
:Fired when the spawner creates a Charger.
*'''OnSpawnWitch'''
:Fired when the spawner creates a Witch.
*'''OnSpawnTank'''
:Fired when the spawner creates a Tank.
{{O Targetname}}
{{O Targetname}}



Revision as of 07:25, 12 August 2011

Stub

This article or section is a stub. You can help by expanding it.

Template:L4d series point It is used to spawn a zombie manually.

Keyvalues

Population ([todo internal name (i)]) <string>
Zombie population to choose among.
Attack On Spawn ([todo internal name (i)]) <boolean>
Whether this zombie should always attack on spawn. Note that this only affects tanks and witches at this time, all others always attack on spawn.
Offer Spawned Tank to PZs ([todo internal name (i)]) <boolean> (in all games since Left 4 Dead 2)
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.
Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Inputs

SpawnZombie
Spawn a zombie now.
StartleZombie  (in all games since Left 4 Dead 2)
Startle the zombie (witches only).


Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

Outputs

OnSpawnNormal
Fired when the spawner creates a normal infected.
OnSpawnSmoker
Fired when the spawner creates a Smoker.
OnSpawnBoomer
Fired when the spawner creates a Boomer.
OnSpawnHunter
Fired when the spawner creates a Hunter.
OnSpawnSpitter
Fired when the spawner creates a Spitter.
OnSpawnJockey
Fired when the spawner creates a Jockey.
OnSpawnCharger
Fired when the spawner creates a Charger.
OnSpawnWitch
Fired when the spawner creates a Witch.
OnSpawnTank
Fired when the spawner creates a Tank.


See also