Exploding canisters not exploding

  • Thread starter Thread starter Drakon
  • Start date Start date
D

Drakon

Guest
I've got some canisters, like the ones in ravenholm, but they won't explode. I'm assuming they should be something like the exploding barrels - just load the physics_prop with the barrel model and they are set to go. I tried with both models of the canister (01a and 02a) but neither will explode no matter what I do to them.
Anyone know why?

This is the model for one of them:
models/props_c17/canister01a.mdl
 
The canisters are just props, they have no functions other than being able to be tossed around by you grav gun.

To make them explode is a different matter. You have to use the i/0 (output/input) system.

Step 1:
Create your "prop_physics" and put it where you want it, I uesed the model "models/propes_C17\oildrum001_explosive.mdl". Then name it, say "Barrel01" using the properties window (ALT+ENTER whilst selected), so you can refer to it later using the i/o system.

Step 2:
Create a "env_explotion" at the top or somewere on the surface of the barrel. (making sure the "env_explotion" isnt colliding with the barrel prop).
name it anything, say "explotion01".

Step 3: the i/o
In the properties window of the "prop_physics" barrel, go to the outputs tab, and enter the following information.

click add at the bottom then enter the following information:

n/a = leave blank

My ouput named
OnHealthChanged
Target enteties named explotion01
via this input explode
with a parameter overide of n/a
after a delay in second of 0.00
Fire once only TRUE



My ouput named OnHealthChanged
Target enteties named barrel01
via this input break
with a parameter overide of n/a
after a delay in second of 0.00
Fire once only TRUE

This means (in basic terms):
When you shoot the barrel ("OnHealthChanged"), the barrel with disapear ("Break"), and the explotion entity will explode. All at the same time. Thus simulating the barrel exploding when you shoot.

This is very basic, but it answers your question, you can add more effects, and make it more complicated, like for example, the barrel setting on fire for 2 seconds when you shoot it then exploding (like in HL2). This is supprisingly no more complicated. But it envolves another entity (env_fire) and another output in the barrel01 "prop_physics".

If you are unsure of anything ask away, or mail me at:

[email protected]
http://www.halflife2.net/forums/[email protected]
 
...Marcus, the explosive barrel prop and the explosive canisters do explode when damaged. No env_explosion is necessary.

Drakon, those two long canisters are supposed to be used as physics_cannister [sic] entities, but I thought the pink one would also explode. Maybe not. props_junk/gascan001a.mdl and props_junk/metalgascan.mdl are probably explosive.
 
Back
Top