Skip to content

Fixed not being able to use entities through water and clip brushes#1826

Merged
saibotk merged 1 commit intoTTT-2:masterfrom
TW1STaL1CKY:use-mask-fix
Jul 5, 2025
Merged

Fixed not being able to use entities through water and clip brushes#1826
saibotk merged 1 commit intoTTT-2:masterfrom
TW1STaL1CKY:use-mask-fix

Conversation

@TW1STaL1CKY
Copy link
Contributor

Currently, trying to use entities and pick up weapons through water and clip brushes doesn't work, even though your TargetId HUD says you can.
This was happening because the clientside trace was using MASK_ALL. I've now changed to MASK_SOLID + CONTENTS_DEBRIS, which is roughly the same mask that the TargetId HUD uses.

I'm aware #1821 exists which I assume would fix this problem when it's eventually merged in, but I thought I would patch this issue specifially while that PR is still in the works.

Copy link
Member

@saibotk saibotk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍 yes thats still good to have fixed here until i can work on the use PR again

@saibotk saibotk merged commit 717312d into TTT-2:master Jul 5, 2025
4 checks passed
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.

2 participants