|
Back to Tutorials Page
Adding Hostages to Your First Map
By Matrixfan Last changed
Sep 09, 2006
In this tutorial I will teach you how to add hostages to your
first map. During this tutorial you will create hostage
spawn points and a rescue zone.
For this tutorial I will be using the same map from
this
tutorial.
The completed map
can be downloaded from
here.
Creating the Rescue Zone
In the Texture Browser,
filter for "toolstrigger" and select the texture.

Using the brush tool, create a box
on one side of the map. The size I used was 128x256x96. This box
will become the hostage rescue zone. We use the
Trigger texture because it will become transparent in the 3D view
port.
Right click the newly created box and click "Tie to Entity".
From the drop down list, select "func_hostage_rescue". Click apply and
the rescue zone is done.
Hostages
Hostages are placed with
the entity creation tool and are point entities. Select the tool
from the left toolbar and then, in the 3D view port, place an entity
on the side of the map opposite the rescue zone. Right click the
newly created entity and choose properties, from the drop down list
choose "hostage_entity". Create two more so that you have
three hostages.
Rescue Decal
The last thing we need to do is create the rescue zone decal, so
that people know where to go.
Open up the Texture
Browser and filter for "militiahostagerescue", select the texture.
On the left toolbar, select the Overlay Application tool

and then click inside of
the rescue zone. You should now see the decal on the ground. If
necessary, select the overlay entity you made, right click, and
choose transform. Insert the appropriate Z rotation value.
Last Step
Once the map is compiled,
and running in CSS, there is one last step you must do to get the
hostages working in game. If you do not remember to do this, the
hostages will not move.
Go to the console, by
default the key is " ~ ", and enter the command "sv_cheats
1" then enter "nav_generate. CSS will analyze your map and then
reload the level.
Final Result
Congratulations, you have successfully made a hostage rescue map!
I hope this tutorial was easy to understand, if you have any
questions or comments, I can be reached at
matrixfan@countermap2.com
Back to Tutorials Page
|