Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bakugo
Copy link

@bakugo bakugo commented Jun 6, 2025

Fixes ValveSoftware/Source-1-Games#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TF2] Gas Passer may be thrown through walls and objects.
1 participant