source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

[TF2] Fix being able to throw the Gas Passer through walls

Open bakugo opened this issue 6 months ago • 0 comments

Fixes https://github.com/ValveSoftware/Source-1-Games/issues/3998

There's something about the Gas Passer's projectile model that makes it consistently pass through walls when thrown very close against them. Might be because the projectile is so much larger than the Jarate that it ends up spawning already inside the wall, but I'm not sure. Either way, this is easily fixed by doing a short trace to check if there's something solid immediately in front of the projectile when it's thrown, and forcing it to explode immediately if so.

This also kinda fixes throwing the Flying Guillotine through walls (which is not nearly as easy and consistent). The projectile will still travel through the wall, as no collision actually happened and it can't explode, but it will behave as if it did hit a wall, and won't hit any players on the other side.

bakugo avatar Jun 06 '25 17:06 bakugo