-
Notifications
You must be signed in to change notification settings - Fork 72
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
Non-stock weapons (such as TFA weapons) do not render their base viewmodels #1432
Comments
It is not opt-in though. If the weapon is based on the TTT2 base, the value is automatically set to true: So I guess TFA doesn't use the TTT2 weapon base? |
Yes, that is correct. TFA does implement a number of methods that are required for TTT weapons though. I would expect that this property either default-true if |
IMO we should definitely prevent this unexpected breakage; unexpected because TFA weapons don't do hacky render stuff with the Viewmodel. I would be fine with default-true in the I don't think we should cripple weapons that go out of their way to have TTT compatibility while not using the WDYT @TimGoll ? |
I can prevent this issue by explictily checking for |
Can confirm, 0e8e177 fixes this issue. |
Awesome, thanks for testing |
Your version of TTT2 (mandatory)
v0.13.0b (both workshop and git)
Describe the bug (mandatory)
Non-stock weapons do not render their base viewmodels by default. This appears to be due to #1342 being opt-in to rendering the base viewmodel rather than opt-out. Any weapons which are not aware of this property will not render correctly.
This can be fairly simply fixed by setting that property to
true
on any weapon which does not have it set.To reproduce
Steps to reproduce the behaviour:
Expected behaviour
The viewmodels render.
Context (please provide as much as you can)
Mostly the same as #1411.
Screenshots
The text was updated successfully, but these errors were encountered: