Explosions

xomp

L1: Registered
Jun 28, 2008
33
8
Hi,

I'm trying to make a func_breakable explode on damage and kill the players within it's blast radius. I've tried using an env_explosion with the func_breakable and gave the explosion damage and explosion radius a high number but when I shoot this block it just breaks and no explosion or damage is done.

I'm no expert in this stuff so if someone could maybe help? It would be greatly appreciated.
 

Huckle

L3: Member
May 31, 2010
149
101
For doing damage, trigger_hurt is your friend. Just bind it to a trigger-textured brush of your choice, set damage and damage type. Start as inactive and toggle it with your input of choice. :)

I'm not sure the env_explosion actually damages players, I think it can only break other entities but I haven't done any experimenting. On the vdc page it also says "Bug:This entity will not do damage if it is parented." so check if you've done that.
 

lana

Currently On: ?????
aa
Sep 28, 2009
3,075
2,778
env_explosion can damage players while parented. I've done so in the past. Also, trigger_hurt isn't the solution to this problem.

If all else fails, point_hurt applies damage to all objects in a radius.

Edit:

As far as I can tell there should be no problem in using an env_explosion. Are you sure you've set it up right?
 
Last edited:

xomp

L1: Registered
Jun 28, 2008
33
8
Thanks, I managed to find out what was going awry :)

Last question. I can't seem to get my stuff to respawn after it's destroyed. I have a func_breakable and a env_explosion setup.

Here is the properties:

uj7Qv.jpg


I am trying to make the func_breakable named "redtnt" explode on break and kill the player (which that part works) but then after some time (for testing I said 5 seconds) I would like for the func_breakable to spawn again (using ForceSpawn).

Any help is appreciated!
 

xomp

L1: Registered
Jun 28, 2008
33
8
Thanks for that Zhan, I managed to get it working :) Would you or anyone else know how I can change the explosion sprite for env_explosion? It seems when I click "Browse" there is nothing showing up in sprites/.. at all :( I would like for a somewhat noticeable explosion for this if at all possible.
 

lana

Currently On: ?????
aa
Sep 28, 2009
3,075
2,778
TF2 uses particles for their explosions. I recommend making your actual explosion invisible, adding an info_particle_system set to ExplosionCore_MidAir in order to get a proper effect.