Skip to content
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

Serverside pl:GetAimVector issue when using Context menu #6018

Open
penolakushari opened this issue Oct 6, 2024 · 2 comments
Open

Serverside pl:GetAimVector issue when using Context menu #6018

penolakushari opened this issue Oct 6, 2024 · 2 comments
Labels
Net compat This issue requires breaking network compatibility to solve so it will be queued.

Comments

@penolakushari
Copy link

Came across an issue with GetAimVector, appears serverside when player is using C-menu and their aim angle at world's pitch axis is 0 or close to it, it results in jerky movement which can be observed in vanilla tools' ghost previews, like thrusters or wheels, and the vector that is being returned doesn't seem to go between 0.02 and -0.02.
Clientside function works without such issues.

I've also took some print()'s when moving the aim vector around when the issue was happening:
Image

GMod version: 2024.08.09
Tested it on current live version and 64 bit branch, issue persisted, same without addons.

Steps to reproduce:
Can be done with anything that gets player's "GetAimVector" serverside, primarily vanilla tools that spawn ghost previews for their entities.
With the tool out, open context menu, and try to move the cursor around the game area, and it should have that jitter/deadzone around the 0 pitch.

Video shows how it behaves on my end with Wheel, Thruster and Ragdoll Mover tools.

https://youtu.be/mPAQNc_pnJo

@robotboy655 robotboy655 added the Net compat This issue requires breaking network compatibility to solve so it will be queued. label Oct 7, 2024
@robotboy655
Copy link
Contributor

This is just float imprecision issue, due to the reduced precision the world clicker aim angle is networked at.

@homonovus
Copy link

related request: Facepunch/garrysmod-requests#2408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Net compat This issue requires breaking network compatibility to solve so it will be queued.
Projects
None yet
Development

No branches or pull requests

3 participants