Pick up the crowbar of research scientist Gordon Freeman, who finds himself on an alien-infested Earth being picked to the bone, its resources depleted, its populace dwindling. Freeman is thrust into the unenviable role of rescuing the world from the wrong he unleashed back at Black Mesa. And a lot of people, people he cares about, are counting on him.

Report article Half Life 2- Zombie Scripting

This will teach you how to make a Zombie Run across a T-Junction ahed of you in a corridor and then mysteriously Disappear

Posted by True_Life on Oct 8th, 2009 digg this super bookmark
Intermediate Mapping/Technical.


Before we start, lets take a look at what we are going to produce,



NOTE: MAKE SURE ALL THE ENTITY NAMES CONTAIN NO SPACES OR THIS WILL NOT WORK

Step 1}

The first Thing we want to do is create a corridor for the player to walk up. For this to work effectivly the corridor should be no shorter that 250 World Units (That's just Over 20 foot if you want to be exact)PhotobucketAs you can see my T-Junction Dosen't lead anywhere but yours can.

Step 2}

The next thing to do is create a zombie that is faceing the direction you want it to run in ( prefrably Right to Left) and give it the name  "zombie" (without quotation marks)Photobucket

Step  3}

The next thing you want to do is create a Ai_relationship, This is basically so the Zombie Dosen't attack you, and give it the values you see on the picture  Photobucket

Step 4}

Now you need to place a Scripted_sequence on THE OPPOSITE SIDE OF THE CORRIDOR this is where your Zombie is going to run to, Once you have created the scripted sequence give it the values on the picturePhotobucket

Step 5}

Once you have done this, Place a Logic_relay next to it, we are doing this because scripted sequenced work better if they are activated by a logic_relay (don't know why) Once you have done this give it the following values from the picturePhotobucket

Step 6}

Now create a Ambient_generic this will provide the sound for when the zombie runs across the path in front of you, You can really use any sound you want, but for this tutorial i'm goung to use the "playground memories" soundPhotobucketPhotobucket

Step 7}

Now you need to create a trigger once and the start of the corridor AT LEAST 250 unit AWAY from the zombie, we do this so the player can't run up and kill the zombie, or see it disappeare as this would look cheap

Photobucket

Step 8}

This is the part where it all comes together, In the output tab of the Trigger_once add a new output with the following values below

Photobucket

Now go to the output tab of the logic relay and enter the following

PhotobucketFINAL NOTES: This should now create what you saw in the video at the top of the page, you can change the names if you are a bit more advanced, or for added effect you can click the flag "GAG" on the zombie to prevent it from making any noise

Comments
PiLp15
PiLp15 Oct 9 2009, 3:04am says:

Haha thanks this will come in handy i'm sure ^^ thanks again m8!

+1 vote     reply to comment
Necromunger
Necromunger Nov 9 2009, 11:32pm says:

not really scripting but awesome tutorial

+1 vote     reply to comment
Post a Comment

Only registered members can share their thoughts. So come on! Join the community today (totally free) and do things you never thought possible.

Track this game Profile
Icon
Half-Life 2
Platforms
PC, X360, PS3, XBOX
Developer & Publisher
Valve
Engine
Source
Contact
Send Message
Official Page
Half-life2.com
Release Date
Released Nov 16, 2004
Game Watch
Track this game
Bookmark
Digg Super bookmark
Tutorial
Browse
Tutorials
Report Abuse
Report article
Bookmark
Digg Super bookmark
Related Games
Half-Life 2
Half-Life 2
Single & Multiplayer First Person Shooter
Related Engines
Source
Source
Commercial Released Nov 1, 2004
Related Groups
Valve
Valve
Developer & Publisher