Closed Mrkrabz closed 8 years ago
Yup, it's set by this part: https://github.com/wyozi/3d2d-imgui/blob/master/lua/autorun/client/3d2dimgui.lua#L632-L635 which I still don't know if it is a good idea but can't easily change anymore either.
For now the best way to fix that would be to clone the angle and pass that to the method (ie. Angle(lang.p, lang.y, lang.r)
)
You really should fix this, and make a copy before you modify the angle.
https://github.com/wyozi/3d2d-imgui/blob/master/tdui.lua#L743-L746
Trying to run this code:
lang constantly gets set between 3 Angles 90.000 90.000 0.000 -0.000 0.000 0.000 -0.000 -90.000 90.000 Doing the local var inside the hook, or putting the angle directly into the Render part works fine (I'm reading from a table however so cannot).
The position however is fine.