Spawning Zombies With Info_zombie_spawn

This tutorial will show you how to spawn zombies WITHOUT using sv_cheats 1 at any place of your choice.

1. create an info_zombie_spawn entity where you want your zombie to spawn. Give it a name of your choice. I used z_spawn.

2. create a trigger brush where you want the player to trigger the zombie to spawn and press ctrl-t then make it a trigger_once.

3. go to the outputs tab of your trigger_once and click add. Then type in:
My output named -- OnStartTouch
Target entities named -- z_spawn (the name of your info_zombie_spawn)
Via this input -- SpawnZombie

4. now run your map and when your player walks into the trigger the zombie should spawn.

This next part will tell you how to spawn special infected.
Basically follow the above steps but for your info_zombie_spawn change population to the name of the zombie type you want to spawn. E.G. Hunter, Smoker, Boomer, etc.
However to do this you need to add this bit into your population folder located in Program Files/Steam/SteamApps/common/left 4 dead/left4dead/scripts

Open up the population file with notepad and paste this into the bottom. [Screenshot 4]

//------------------------------------------------
//Specific Special Infected
Smoker
{
Smoker 100
}

Hunter
{
Hunter 100
}

Boomer
{
Boomer 100
}

Tank
{
Tank 100
}

Witch
{
Witch 100
}


Once that is in you can spawn special infected through the same means as before.



To create a random zombie timer which will spawn zombies at random times.
First create you info_zombie_spawn with your desired population.
Second create a logic_time entity in your map somewhere and set its Use Random Time flag to Yes. Then set your desired max and min intervals.
Next go to its outputs tab. Click add and enter in.

My output named -- OnTimer
Target entities named -- z_spawn2 (the name of your info_zombie_spawn)
Via this input -- SpawnZombie

Now when you run your map a zombie should spawn at random intervals at your info_zombie_spawn.

0 comentarios: