-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add render.getViewSetup #1854
Add render.getViewSetup #1854
Conversation
The main data I need is the origin and angles; the other stuff is nice but not necessary for my use case, hence getViewPosAndAngles (since I'd prefer to run this in a rendering hook) |
By the way just so it's clear eyePos and eyeAngles do not serve my purpose here as they have been coded to use LocalPlayer():EyePos() rather than the EyePos() function. So they won't get the eye position and angles from a CalcView override. |
You can make the getViewSetup function return a struct wrapper. Then the other function can be removed. |
Need to test this while using calcview to see if my comment update is true. I just gave it my best guess. |
* Add render.getViewSetup * Add this too * oops * Update render.lua * Update render.lua --------- Co-authored-by: thegrb93 <grbrown93@sbcglobal.net> 38379b6
* Add render.getViewSetup * Add this too * oops * Update render.lua * Update render.lua --------- Co-authored-by: thegrb93 <grbrown93@sbcglobal.net> 38379b6
Adds render.getViewSetup()