Detect Airblast?

Discussion in 'Mapping Questions & Discussion' started by TyeZenneth, Jul 29, 2015.

  1. TyeZenneth

    TyeZenneth L6: Sharp Member

    Messages:
    333
    Positive Ratings:
    275
    I know it's possible through the use of things like func_breakable to detect whenever players use damaging attacks, even down to the different damage types, but is there any way to detect non-damaging attacks against props or brushes? Stuff like airblasts, or jarate, or mad milk. That sort of thing.
     
  2. KubeKing

    aa KubeKing Back home in Jupiter, things are getting harder

    Messages:
    1,211
    Positive Ratings:
    1,374
    I'm bumping this thread for you. I think knowing how to do this would be beneficial for a lot of mappers, especially those looking into making custom gamemode, training, or pyro-jumping maps.
     
    • Thanks Thanks x 1
  3. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,071
    Positive Ratings:
    832
    I don't think this is possible in Hammer. I think it would take a SourceMod plugin.
     
    • Thanks Thanks x 1
  4. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,031
    Positive Ratings:
    3,975
  5. KubeKing

    aa KubeKing Back home in Jupiter, things are getting harder

    Messages:
    1,211
    Positive Ratings:
    1,374
  6. Ynders

    aa Ynders absolutely gormful

    Messages:
    403
    Positive Ratings:
    513
    You miiiiight be able to hack a funky system for detecting airblasts if you get a tf_point_weapon_mimic and set it to spawn an invisible(model set to empty.mdl) rocket with 0 velocity(if you can do that) and then have a func_breakable behind it, filtered to only break from explosive damage. This system is obviously unpredictable and you'd have to rely on no soldiers or demomen shooting the wall.
     
  7. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    702
    Positive Ratings:
    198
    Bumping this thread because I'm interested to know, and there have been updates since the last post. Speaking of which:
    How does that help detect an airblast? All it would pick up is a explosion from a rocket, not a pyro's airblast.
     
  8. Vel0city

    aa Vel0city personal pick-pocketing parrot

    Messages:
    1,884
    Positive Ratings:
    1,488
    Since it's the airblast that gives the rocket the speed to impact the func_breakable. Nothing else can do that.
     
  9. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    702
    Positive Ratings:
    198
    That would still detect the explosion of a rocket, not an airblast. It would be like detecting the ripple on a pond, not the stone that caused the ripple.
     
  10. Vel0city

    aa Vel0city personal pick-pocketing parrot

    Messages:
    1,884
    Positive Ratings:
    1,488
    Well it's the only thing that can be done afaik. It's a Source limitation.

    Also, off topic: somehow I'm a veteran now.
     
  11. zahndah

    aa zahndah professional letter

    Messages:
    715
    Positive Ratings:
    618
    You get veteran after passing 300 positive ratings im quite sure
     
  12. Hyperion

    aa Hyperion L16: Grid Member

    Messages:
    810
    Positive Ratings:
    617
    Maybe with invisible holiday ball and triggers
     
  13. Egan

    aa Egan

    Messages:
    1,302
    Positive Ratings:
    1,478
    I was thinking, btw, that it could be possible to use an env_microphone to detect a certain sound, but it appears you can only filter to specific entities. I tried setting one up to detect the flamethrower entity - and then possibly only loud noises (like an airblast) - but the filter didn't seem to work. The entity did function detecting player walk noises in the radius - so it functions at least.

    Might be something to look into further, maybe someone has an idea to put next to it to get it working. I mean, it's already kindof a hack, but what else can we do but hack.
     
  14. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    702
    Positive Ratings:
    198
    Could you not have a filter for the sound file names?