|
|
Making A Zombie Which Attacks Players! Difficulty: Intermediate |
| Category: CS:S > Mapping | Author(s): Starving Hobo |

In this tutorial I will show you how to make a zombie attack players that get too close in Counter-Strike: Source. This is a follow up to my other tutorial about making a walking zombie, so make sure you finish that tutorial first:
http://www.fpsbanana.com/tuts/5772
Right now we are ready to go!
1. Adding the Triggers
--------------------------
Okay, let's start. In front of Bob the zombie, we are going to create two brushes covered in the "trigger" texture. When a player enters the trigger Bob will stop in his tracks and hit the player(s) who were crazy enough to get so close! For ease, keep your trigger brushes seperated for the time being. You should have something that looks a little like this:
Refer to screenshot A
Now that we have the triggers, let's configure them!
2. Configuring the "trigger_multiple"
-----------------------------------------
Okay, at the moment they are just brushes and don't do anything, this is not the effect we want! We are going to tie them to triggers of two different kinds.
Okay we are going to set up the first trigger, tie it to an entity (CTRL + T) and make it a "trigger_multiple" this will tell Bob when he should stop and strike, and when he should continue with his normal zombie business.
Set the fields:
Parent - zombie
Delay Before Reset - 0
Refer to screenshot B
Leave the rest as it is.
Then add these outputs, our "trigger_hurt" entity hasn't yet been created so "hurt" will be red, but just copy what I have got.
Refer to screenshot C
3. Configuring the "trigger_hurt"
-------------------------------------
This is so the player will be damaged by Bob when he is striking.
Tie the remaining trigger to a "trigger_hurt" (CTRL + T) and set the fields as follows:
Name - Hurt
Parent- zombie
You can experiment with the damage, as it stands, it should deal the player 10 damage per second
Refer to screenshot D
That's that out of the way!
4. Finishing Off
------------------
Place both of the triggers on top of each other, in front of Bob. And compile the map!
When you are in game, go in front of Bob, he will strike and attack you! Ouch Bob! Stop it!
Refer to screenshot E
You may want to adjust the size of the triggers, making the trigger shorter would mean players have to get closer before Bob strikes, and vice versa. Experiment until you get the perfect effect.
Also, in the "trigger_multiple" outputs you can change "swatleftmid" to one of Bob's other animations which you can find using the same process we used to find "walk" in the other tutorial.
5. Recap
----------
In this tutorial you have learnt how to make models carry out different processes when triggered leading to some interesting effects like we have just done. Enjoy animating models in your maps!
-Starving Hobo
|
| Added: 3 months ago | Tags: making, make, attack, zombie, monster, animation, animating, animate, player, hurt, trigger, damage |
 Add Feedback Provide constructive feedback. What is "constructive"?You cannot post yet!Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop. To post in this submission register or login. |
 You cannot assess yet!Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure. To vote on this submission register or login. This Tutorial in a nutshell... Comprehensive & Concise 1 x Comprehensive 1 x Concise 1 x Helpful 1 x Informative You cannot stamp yet!Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login. Want more? Find related tuts. |