To make a bomb you need to use env_explosion.
Select the entity tool.
Choose env_explosion from the pulldown menu.
Place it in your map.
To make the env_explosion explode, you need to use either a trigger brush, a button, or a logic_timer.
Double click on the env_explosion. And give your env_explosion a name. Click apply.
Also, if you want the explosion to go off more than once then go to the "flags" tab, and put a check mark in the checkbox next to "repeatable", click apply.
Trigger_Multiple
Now, we will use the trigger brush to explode the bomb. Draw the trigger brush and double-click on it, hit Ctrl-t on your keyboard. From the pulldown menu select trigger_multiple. Then click apply.
Now, select the "output" tab on the dialog box. Click "add"
Put on "my output named" - OnStartTouch
(that means when they touch the trigger the action will start)
"targets entities named" - boom
(that is the name of our env_explosion)
"via this input" - explode
(this is what you want the named entity to do)
"with parameter of override of" (not used)
"after a delay in seconds of" - 0.00
(this is used to delay the action should be necessary, for example if you set it to five, then five seconds after someone touched it, it would explode.)
After you change your settings, don't forget to click apply.
Arrange the trigger_multiple and the env_explosion like it is shown in the pic above. Now when you compile the map this will act like a little land mine, and when someone steps on it, it will explode. Compile the map and test it out. (Note: when you compile the map the trigger_multiple and the env_explosion will be an invisible, so you have to remember where they are to test it.)
Button
To make a button, draw a small brush using whatever texture you want. Double-click on the brush, and hit Ctrl-t on your keyboard. From the pulldown menu select func_button. Then click apply
Now, select the "output" tab on the dialog box. Click "add"
Put on "my output named" - OnPressed
(that means when they press the button the action will start)
"targets entities named" - boom
(that is the name of our env_explosion)
"via this input" - explode
(this is what you want the named entity to do)
"with parameter of override of" (not used)
"after a delay in seconds of" - 0.00
(this is used to delay the action should be necessary, for example if you set it to five, then five seconds after someone pressed the button, it would explode.)
Click apply
Compile your map, press the button and watch the explosion.
logic_timer
The final way to make a bomb explode, is to use a logic_timer. Select the entity tool, Choose logic_timer from the pulldown menu, and place it in your map. Next, Double-click on the logic timer.
Name - whatever
(you can give the name if you want to, but for this it is not necessary)
Start Disabled - no
(put no because, you want it to start active)
use random timer - Yes
(you want the bomb to be random, so you would say yes here)
minimum random interval 3 (the minimum wait time between explosions)
maximum random interval 100 (the longest it will wait to fire,)
refire interval (not used) (you would only used this if you were not using random)
( so anywhere between 3 and 100 seconds the bomb will randomly fire)
Now, select the "output" tab on the dialog box. Click "add"
Put in
"my output named" - OnTimer
(that means when the time is up the action will take place)
"targets entities named" - boom
(that is the name of our env_explosion)
"via this input" - explode
(this is what you want the named entity to do)
"with parameter of override of" (not used)
"after a delay in seconds of" - 0.00
(this is used to delay the action should be necessary, for example if you set it to five, then five seconds after someone pressed the button, it would explode.)
Click apply
Compile your map, and watch the explosion.
dod_bombtarget
These can be used to blow up walls and stuff.
First, Select the entity tool, Choose dod_bombtarget from the pulldown menu, and place it in your map.
Then draw a brush using a brick texture and make a wall.
Use the carve tool and cut the wall into three sections.
Select the middle section. Hit Ctrl-t on your keyboard, from the pulldown menu select func_breakable. Click apply. And give it a name, I named mine wall1. Change the material type to cinder block. Click apply
click the "flags" tab. Put a checkmark in the checkbox next to "only break on trigger" this way if someone shoots the wall or throws a grenade at it it will not break.
Click apply
Place your dod_bombtarget next to the wall and line it up nice and neat. Double-click on your dod_bombtarget and select which team you want to be able to plant their bomb , then click apply.
Now, select the "output" tab on the dialog box. Click "add"
Put in
"my output named" - OnBombExploded (that means when bomb explodes the action will take place)
"targets entities named" - wall1
(that is the name of our wall)
"via this input" - break
(this is what you want the named entity to do)
"with parameter of override of" (not used)
"after a delay in seconds of" - 0.00
(this is used to delay the action should be necessary, for example if you set it to five, then five seconds after someone pressed the button, it would explode.)
Now we need, Bombs for the players to pick up, use the entity tool to place a prop_static in your map. Double-click on the prop static and change the world model to "models/props_crates/tnt_dump.mdl" click apply
then using the trigger texture draw a brush enclosing the model of the TNT. Double-click on the brush and Hit Ctrl-t and change the trigger brush into a "dod_bomb_dispenser". Click apply and you are done.
Compile the map, join the correct team, and plant the bomb.
That's the basics, now you can be creative with it, for example you can put an explosion in front of the tank model, on a timer and it will look like the tank is firing.
Put another env_explosion downrange from the tank name it " boom2". then dubbleclick on the timer select the "output" tab and click add. then add
"my output named" - OnTimer
"targets entities named" - boom2
"via this input" - explode
"with parameter of override of" (not used)
"after a delay in seconds of" - 3 (this way when the tank fires three seconds later the other explosion will go off and it will look like that's where the shell landed that the tank fired.)
Don't forget to check the "repeatable" checkbox under the "flags" tab on the env_explosion.
The rest is up to you.