Here is a video of the issue I am having. When putting the vector/angle for the screen outside of the PostDrawOpaqueRenderables hook, the render just throws a complete fit. However, if I define the variables in the hook, all is well. I've even tried making a local variable and then assigning it to the global position/ang variable, but it's not having it. Anyone ever have this bug before? It also throws a fit about using Angle:RotateAroundAxis()... Not sure what's going on here, but any help would be appreciated.
Why you're having all ATM displays in for loop?
Why not just ENT:Draw() or ENT:DrawTransulents()?
Because the ATMs built into evocity_v4b1 are static and cannot be removed without editing the map.
Can you post full code of the hook then?
Here is the pastebin
Angles are userdata, so using functions on them will affect on origin
https://files.facepunch.com/forum/upload/104786/c984e48c-d0eb-41b9-8fd5-215d8ccf1b2b/srcds_2019-03-14_00-37-38.png
Interesting, this helps me tremendously. I was not aware that setting one angle equal to another was by reference and not value.
Always check when you use tables and userdata. Also when using methods with no returns
Sorry, you need to Log In to post a reply to this thread.