[TF2] Prevent inspecting weapons in more scenarios #1130
+60
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
First, I know that there's a similar pr already. I personally was working on this since maybe 2 or 3 weeks ago (check this), but my pr is more general, and also complementary except for the flamethrower which i didn't notice.
Fixes the first issue in ValveSoftware/Source-1-Games#4273
Prevents inspecting when:
I have also checked the other pr's code and it works for what it says (charging mangler, stickybombs, mediguns but i personally don't agree about that)
Videos
Desktop.2025.03.03.-.18.22.12.10.DVR.mp4
Desktop.2025.03.03.-.18.23.50.11.DVR.mp4
Desktop.2025.03.03.-.18.24.32.12.DVR.mp4
Desktop.2025.03.03.-.18.25.58.13.DVR.mp4
Desktop.2025.03.19.-.00.18.53.09.DVR.mp4
Finally, players can still inspect when taunting (noticeable when eating sandvich, eureka effect teleport), inspect and then zoom in, and charge with the classic but I have already spent more time that i would like on this and it's nitpicky c: