The mod you are trying to view has ceased development and consequently been archived. If you are a member of this mod, can demonstrate that it is being actively developed and will be able to keep this profile up to date with the latest news, images, videos and downloads, please contact us with all details and we will consider its re-activation.

Aftermath is a hl2 mod which involves the player killing waves of the undead with your friends or alone using weapons, your knife or even blow them up with grenades and set them alight with Molotov's.

Report RSS Creating zombie spawns

this tutorial will show you how to create zombie spawns for zombie survival.

Posted by on - Intermediate Mapping/Technical

The spawn consists of a few entities and because of the system i implemented you only need one entity to make a spawn point.

First we need to spawn the few entities and set them up:

first spawn a npc_fastzombie and check the flags:
Long visibility
Think outside PVS
Template NPC
Ignore player push

also set it a name of : zombie
and the Next stop destination of: dest

next spawn a npc_template_maker and set it like this:
Start disabled : No
Name of template NPC : zombie
Visible to player? : Dont Care
Distance to player : Nearest

next spawn a ai_scriptedschedule and set it so its like this:
Name : zombie_schedule
Target NPC : zombie
Search radius : 0
All in radius : yes
AI state to set : ALERT
Schedule to run : set enemy to goal entity and run to goal entity
Interruptibility : death
Goal entity : !player

Next spawn a ai_relationship and set it so its like this:
Subject : zombie
Target : !player
Disposition : Hate
Start active : Yes

and set the flag the first flag on

Ok now we have the main workings of the spawning done now we have the actual spawn point to setup its not hard.

ok spawn a info_npc_spawn_destination were you want the zombies to spawn and set it like this:
Name : Spawn

ok thats all XD now we need to enable this on spawn so make a logic_auto and in the output set the entity to enable.

Right thats all but if you have multiple rooms with buyable doors then the spawns behind them doors need to be disabled on map load and enabled when the door is brought. to make extra spawn you only need to use the last entity: info_npc_spawn_destination and rename it.

Post comment Comments
carter7877
carter7877 - - 12 comments

sorry, what do you mean by rename it, i dont understand?? :(

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: