Commit ec6340d
authored
Fixed ghost viewmodels briefly appearing from weapons held by other players (#1806)
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-4858198b9e7d1 parent 798de4c commit ec6340d
File tree
2 files changed
+6
-0
lines changed- gamemodes/terrortown/entities/weapons
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
888 | 893 | | |
889 | 894 | | |
890 | 895 | | |
| |||
0 commit comments