|
Back to Tutorials Page
Adding a Bombsite to Your First Map
By Matrixfan Last changed
Sep 09, 2006
In this tutorial I will teach you how to add a bomb site to
your first map and also how to make the bomb trigger and
explosion.
For this tutorial I will be using the same map from
this
tutorial.
The completed map
can be downloaded from
here.
Creating the Bombsite
In the Texture Browser,
filter for "toolstrigger" and select the texture.

Using the brush tool, create a box in the center of the map and
click enter. This box defines where the bombsite will be. 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_bomb_target". Click apply and
the bombsite is done.
Exploding Objects
You have the bombsite made and the bomb will work, but how
about making something explode when the bomb does? Lets start small
with some crates. Open the Texture Browser and filter for "crate",
select a wooden one that you like. Using the brush tool, create a
64x64x64 cube and place it inside of the bombsite. Once the crate is
created, you will find that the texture does not fit it correctly.
With the crate selected, click the texture application tool. In the
window that pops up, click "Fit" and the crate should now look
normal.
Copy and paste the crate a few times and move them around
so it looks appropriate.
Select all of the crates
and "Right Click > Tie to Entity". From the drop down menu choose "func_breakable".
We will need to change several of its properties so that it works
right.
Name:
crates
Strength: 0
Material Type: wood
Now go to the "Flags" tab at the top, and check "Only Break on
Trigger" this will make it so that the crate will not break when
shot.
Now we need to edit the func_bomb_target's properties so that it
triggers the func_breakable. Right click the func_bomb_target and go
to properties. Click the tab named "Outputs". Click "Add" near the
bottom and use the follow settings:
My
output named: BombExplode
Targets entities named:
crates
Via this input: Break
Target Decal
We are almost done. We have a bombsite and crates, we just need
to place a target decal on the ground so that players will know were
the bombsite is. Open the Texture Browser and filter for "{target"
pick one of them. Now we will need to use the decal application
tool. The button is on the left toolbar and looks like this:
 All
you need to do now is click on the ground near the bombsite and the
decal will appear.
Final Result
Congratulations, you have successfully added a bombsite to your 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
|