Explosions

Discussion in 'Mapping Questions & Discussion' started by xomp, Feb 12, 2011.

  1. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    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.
     
  2. Huckle

    Huckle L4: Comfortable Member

    Messages:
    150
    Positive Ratings:
    87
    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.
     
  3. Lancey

    aa Lancey Currently On: ?????

    Messages:
    3,076
    Positive Ratings:
    1,314
    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: Feb 12, 2011
  4. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    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:

    [​IMG]

    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!
     
  5. Zhan

    Zhan L5: Dapper Member

    Messages:
    208
    Positive Ratings:
    114
  6. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    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.
     
  7. Lancey

    aa Lancey Currently On: ?????

    Messages:
    3,076
    Positive Ratings:
    1,314
    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.
     
  8. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    8
    Cheers, I shall give this a try!