info_zombie_spawn

From Source Entities
Jump to navigation Jump to search

Code classes:

info_zombie_spawn is a point entity present in both L4d.pngL4d2-small.pngLeft 4 Dead games. It's used for manually spawning zombies in the map, like the tank inside a train car in The Sacrifice. Generally, it is recommended to leave zombie spawning to the game.

Keyvalues[edit | edit source]

Population (population) <string>
Zombie population to spawn from here.
Attack On Spawn (AttackOnSpawn) <boolean> (only available in L4d.png)
Tells the spawned zombie to find and attack survivors immediately. Note: This only applies to tanks and witches. All others will attack immediately.
Offer Spawned Tank to PZs (offer_tank) <boolean> (only available in L4d2-small.png)
If a tank is being spawned here, allow infected players to control it (versus mode).

Inputs[edit | edit source]

SpawnZombie
Makes a zombie spawn.
StartleZombie <string> (only available in L4d2-small.png)
If a witch was spawned here, this input makes it angry. Parameter is optional; specific survivor to attack.

Outputs[edit | edit source]

OnSpawnNormal
Fires when a common infected spawns.
OnSpawnSmoker
Fires when a smoker spawns.
OnSpawnBoomer
Fires when a boomer spawns.
OnSpawnHunter
Fires when a hunter spawns.
OnSpawnWitch
Fires when a witch spawns.
OnSpawnTank
Fires when a tank spawns.
OnSpawnSpitter  (only available in L4d2-small.png)
Fires when a spitter spawns.
OnSpawnJockey  (only available in L4d2-small.png)
Fires when a jockey spawns.
OnSpawnCharger  (only available in L4d2-small.png)
Fires when a charger spawns.