Skip to content

Conversation

@TW1STaL1CKY
Copy link
Contributor

Sometimes, random pieces of viewmodels (arms, floating guns) would appear briefly during rounds. Today, I noticed I was able to reliably trigger the bug by making a mimic bot use ironsights while looking towards the center of the map.
I couldn't find exactly what the root cause was, but I did find it was the LocalPlayer's viewmodel entity briefly rendering another weapon...

This PR patches out the issue. Spectating players in first-person still works fine.

Demo of the bug (I'm spamming right-click to make the bot use ironsights):
https://github.com/user-attachments/assets/49c7dfa0-4823-47f5-95be-4858198b9e7d

Copy link
Member

@TimGoll TimGoll left a comment

Choose a reason for hiding this comment

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

Okay, this is wild. I think I've never noticed this. And even if, to see that connection here, impressive. Well done!

@TimGoll TimGoll added the type/bug Something isn't working label Apr 17, 2025
@TimGoll TimGoll merged commit ec6340d into TTT-2:master Apr 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants