Rocket pass through and trigger

Rad

Newbie
Joined
Jul 11, 2003
Messages
54
Reaction score
0
How could I go about making something that a rocket could fly through, not explode, and trigger something else at the same time?

Initially I was hoping to use glass, and onBreak to trigger something, but the rockets just explode when they hit the glass (though the trigger does work). It's been a long time since I played through hl2 so I wasn't sure if rockets could fly through glass without exploding, but I seem to remember that happening.

If there's no way you can make a rocket fly through glass without exploding (but still breaking the glass), are there any other obvious options I have to accomplish this?

Thanks!
 
Um... I have no idea but if you could set it so the glass starts off in its shattered state, then have whatever it is activate when a hole appears. Because it may be able to fly through then.
 
assuming the rocket in flight makes a noise, you could place an env_microphone near where you want the trigger to be and set the level so it's triggered by the passing rockets. your environment would probably need to be fairly quiet though
 
The trigger_rpgfire entity can detect when an RPG is fired within it. Env_microphone supports a Max Range. Perhaps you could employ them together: activate a microphone in the trigger when an RPG is fired in the surrounding area.
 
does trigger_rpgfire detect non-player-carried RPG rockets, like those from a func_tank or APC?
 
Thanks for the replies so far.

Couple things... when glass is somewhat broken, a rocket CAN fly through it, and even appear to do "damage" to it, but it doesn't actually trigger as damage. If I shoot the exact same part with a pistol, it will register as damage, but a rocket that doesn't explode will not. Odd...

Also odd, even though we can hear a rocket as it flies, the env_mic will not. I can walk up to the mic, explode the rocket near the mic, etc, but a rocket flying directly next to the mic doesn't register as a sound.

Any other thoughts on this? I'm trying stuff one by one but not getting anywhere unfortunately. The only thing I can think of doing now is getting into the RPG's code and somehow making it not break when it goes through glass, but I didn't really want to get into that, since that would require it to be an actual mod and not just a map.
 
Back
Top