Search
Username:
Password:

Register or Reset Password

SUBMISSIONS
Counter Strike
   New Maps
   New Tutorials
   New Skins
   New GUI's
   New Sounds
   New Threads
Other
   Media
   Gamers
   Clans
   Studios
Making A Zombie Which Attacks Players!
Difficulty: Intermediate
Category: CS:S > MappingAuthor(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 agoTags: making, make, attack, zombie, monster, animation, animating, animate, player, hurt, trigger, damage
Feedback (5)
chizley .
BananiteY2M
Posted 23 days ago
Thanks for the tutorial, i didn't know this was possible in cs:S
- Bananite
Miss_Poupou .
BananiteY2M
Posted 2 months ago
Nice tut !!!

easy to understand , helpful screenshot Good Job !!!
- Bananite
Starving Hobo .
Y2M
Posted 2 months ago
=D glad you found it of use.
-
CYoung .
No Borders, No NationsY2M
Posted 3 months ago
Good Tut, worked well with a test map of mine, thanks!
Deathlykiller .
BananiteY2M
Posted 3 months ago
Nice
- Bananite
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.
Assessment
The community's verdict.
User Rating [+]
9.4/10
bScore
9.4/10
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.
Stamps
This Tutorial in a nutshell...
Comprehensive & Concise
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.





Added by...
Ranked 3884th ( 5) with 334 points.

[+] Donate
Vote for Submitter
Like this tut? Vote Starving Hobo . for one or more monthly awards.
You must login or register to access this!
Related Tutorials