Info zombie spawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Info zombie spawn}}{{CD|CInfoZombieSpawn}}
{{LanguageBar}}
{{CD|CInfoZombieSpawn}}
{{this is a|point entity|name=info_zombie_spawn|series=Left 4 Dead}} It is used to spawn a zombie manually. Generally, it is recommended to leave zombie spawning to the AI Director, however there may be uses for it, such as spawning a Tank in a train car like in The Sacrifice.
{{this is a|point entity|name=info_zombie_spawn|series=Left 4 Dead}} It is used to spawn a zombie manually. Generally, it is recommended to leave zombie spawning to the AI Director, however there may be uses for it, such as spawning a Tank in a train car like in The Sacrifice.
{{Bug|Trying to spawn spitter or jockey will result in common infected being spawned with a model of spitter or jockey respectively}}
{{Bug|hidetested=1|Trying to spawn spitter or jockey will result in common infected being spawned with a model of spitter or jockey respectively{{workaround|Using a commentary_zombie_spawner will spawn spitters and jockeys}}}}
__NOTOC__
__NOTOC__
==Keyvalues==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
{{KV|Population|intn=population|string|Zombie population to choose among.}}
{{KV|Population|intn=population|string|Zombie population to choose among.}}
{{KV|Attack On Spawn|intn=AttackOnSpawn|removed={{l4d2}}|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.}}
{{KV|Attack On Spawn|intn=AttackOnSpawn|only={{l4d}}|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.}}
{{KV|Offer Spawned Tank to PZs|intn=offer_tank|choices|only=l4d2}}
{{KV|Offer Spawned Tank to PZs|intn=offer_tank|choices|only={{l4d2}}}}
:*0: No
:*0: No
:*1: Yes
:*1: Yes
{{KV|Pitch Yaw Roll (Y Z X)|intn=angles|angles|Angles spawned zombie will have}}
{{KV|Pitch Yaw Roll (Y Z X)|intn=angles|angles|Angles spawned zombie will have}}


==Inputs==
== Inputs ==
{{IO|SpawnZombie|Spawn a zombie now.}}
{{I|SpawnZombie|Spawn a zombie now.}}
{{IO|StartleZombie|Startle the zombie (witches only).|only=l4d2}}
{{I|StartleZombie|Startle the zombie (witches only).|only={{l4d2}}}}


==Outputs==
== Outputs ==
{{IO|OnSpawnNormal|Fired when the spawner creates a Common Infected.}}
{{O|OnSpawnNormal|Fired when the spawner creates a Common Infected.}}
{{IO|OnSpawnSmoker|Fired when the spawner creates a Smoker.}}
{{O|OnSpawnSmoker|Fired when the spawner creates a Smoker.}}
{{IO|OnSpawnBoomer|Fired when the spawner creates a Boomer.}}
{{O|OnSpawnBoomer|Fired when the spawner creates a Boomer.}}
{{IO|OnSpawnHunter|Fired when the spawner creates a Hunter.}}
{{O|OnSpawnHunter|Fired when the spawner creates a Hunter.}}
{{IO|OnSpawnSpitter|Fired when the spawner creates a Spitter.|only=l4d2}}
{{O|OnSpawnSpitter|Fired when the spawner creates a Spitter.|only={{l4d2}}}}
{{IO|OnSpawnJockey|Fired when the spawner creates a Jockey.|only=l4d2}}
{{O|OnSpawnJockey|Fired when the spawner creates a Jockey.|only={{l4d2}}}}
{{IO|OnSpawnCharger|Fired when the spawner creates a Charger.|only=l4d2}}
{{O|OnSpawnCharger|Fired when the spawner creates a Charger.|only={{l4d2}}}}
{{IO|OnSpawnWitch|Fired when the spawner creates a Witch.}}
{{O|OnSpawnWitch|Fired when the spawner creates a Witch.}}
{{IO|OnSpawnTank|Fired when the spawner creates a Tank.}}
{{O|OnSpawnTank|Fired when the spawner creates a Tank.}}


==See also==
== See also ==
*[[commentary_zombie_spawner]] - An alternative entity for spawning common, special, and boss infected
* {{ent|commentary_zombie_spawner}} - An alternative entity for spawning common, special, and boss infected
*[[Left 4 Dead Infected Populations]]
* [[Left 4 Dead Infected Populations]]

Latest revision as of 20:21, 29 January 2025

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
CInfoZombieSpawn
CPointEntity
CBaseEntity

info_zombie_spawn is a point entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It is used to spawn a zombie manually. Generally, it is recommended to leave zombie spawning to the AI Director, however there may be uses for it, such as spawning a Tank in a train car like in The Sacrifice.

Icon-Bug.pngBug:Trying to spawn spitter or jockey will result in common infected being spawned with a model of spitter or jockey respectively
PlacementTip.pngWorkaround:Using a commentary_zombie_spawner will spawn spitters and jockeys

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

Population (population) <string>
Zombie population to choose among.
Attack On Spawn (AttackOnSpawn) <boolean> (only in Left 4 Dead)
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 (offer_tank) <choices> (only in Left 4 Dead 2)
  • 0: No
  • 1: Yes
Pitch Yaw Roll (Y Z X) (angles) <angles>
Angles spawned zombie will have

Inputs

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

Outputs

OnSpawnNormal
Fired when the spawner creates a Common 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  (only in Left 4 Dead 2)
Fired when the spawner creates a Spitter.
OnSpawnJockey  (only in Left 4 Dead 2)
Fired when the spawner creates a Jockey.
OnSpawnCharger  (only in Left 4 Dead 2)
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