[**Tutorial**] Making zombies rise from the dead

  • Thread starter Thread starter Gamefreak
  • Start date Start date
G

Gamefreak

Guest
This is a tutorial on how to make zombies get up from being "dead" on the floor.

I started with a box room with a light, a player start and some simple textures.

Step 1:

Place a npc_zombie entity. Go into its settings and give it a name. For this tutorial, i will be using wakeupzomb1.

Step 2:

Place a scripted_sequence entity where you want him to lay. Make sure the yellow line in the 2D views is pointing the way you want him to lay. Give the script a name. For this tutorial, i used zombwakescript1. Go to the target NPC setting in it and set it to the name of your zombie.

Step 3:

Go into the scripts settings, and go to the flags tab. Make sure these flags are checked:

attachment.php

(Check button number 3, 4, and 5.)
Step 4:

Place a brush where you want your player to be able to wake the zombie up. Texture it with the nodraw texture by typing tools in the texture filter and selecting the yellow thumbnail that says NoDraw. Select the brush and press ctrl+T and set its class to Trigger_once.

Step 5:

Go into the outputs of the trigger and click add. Set the setting for the output to what this screenshot shows:

attachment.php


(Optional) Step 6:

Place a blood decal under the zombie for added effect.

attachment.php


Step 7:

Compile your map and load. You should have something like this:

attachment.php

attachment.php



**Note**
I highly recommend you place the zombie in a different room then the player. As i have yet to find a way to make the zombie "teleport" to his location. which means if you watch him when he first spawns, you see him walk to his "dead" place and get down.


I hope someone benefits from this tutorial and learns something. And also feel free to add this to any site if you want too. Feedback is welcomed. Thanks.
 
Sorry, forgot a very importent step but i cant edit my post anymore.

In the scripts settings, set the pre action idle animation to slump_b and the action animation to slumprise_b. Sorry for the confusion. If a mod could somehow edit this into my first post i would be greatfull. thanks.
 
Ok, I followed your instructionsto the letter, but, after compiling and entering the scene, when I hit the 'trigger' brush, I see the zombie rise, then immediately fall down dead. How do I make him attack the person that triggered his rise? Hope you see this!, btw thanks for a well written piece.
 
Y'know, couldn't you juse skip all of this by using the zombie slump prefab?
 
Back
Top