Skip to content

GetPlayerCameraFrontVector #99

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

Open
colistro123 opened this issue May 6, 2025 · 2 comments
Open

GetPlayerCameraFrontVector #99

colistro123 opened this issue May 6, 2025 · 2 comments
Labels
bug Something isn't working compatibility Compatibility with latest version of SAMP depends on blue The feature might depend on MTA:SA source code

Comments

@colistro123
Copy link
Collaborator

Describe the bug
I'm quickly logging this for future reference. There are arithmetic issues when getting the camera matrices from the server. Certain values are nil meaning we cannot do any arithmetic on them.

Perhaps these camera vectors should be gathered on the client and sent over to the server via an event.
I'm marking this as a bug.

Related URLs
https://wiki.multitheftauto.com/wiki/GetCameraMatrix
https://forum.multitheftauto.com/topic/70120-help-getcameramatrix/

@colistro123 colistro123 added bug Something isn't working compatibility Compatibility with latest version of SAMP labels May 6, 2025
@NexiusTailer
Copy link
Contributor

NexiusTailer commented May 11, 2025

Manually sending such frequently changing data from client is redundant in my opinion, just like the case with GetPlayerAnimationIndex (in SA-MP both of those things are synced in regular synchronizations like aim or onfoot sync types, along with the player's position and other very basic data which always should be obtained as recent as possible from the server). I think if it has such nuances from MTA, it could be marked as "depends on blue" or something. I anyway will fix the potential script errors with arithmetics in the next PR (preventing it by early returns), but still.

@colistro123
Copy link
Collaborator Author

Manually sending such frequently changing data from client is redundant in my opinion, just like the case with GetPlayerAnimationIndex (in SA-MP both of those things are synced in regular synchronizations like aim or onfoot sync types, along with the player's position and other very basic data which always should be obtained as recent as possible from the server). I think if it has such nuances from MTA, it could be marked as "depends on blue" or something. I anyway will fix the potential script errors with arithmetics in the next PR (preventing it by early returns), but still.

Agreed. Sending it via event, practically not great and would introduce issues, although it seems like the only plausible solution as a workaround until full functionality is there.

@colistro123 colistro123 added the depends on blue The feature might depend on MTA:SA source code label May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compatibility Compatibility with latest version of SAMP depends on blue The feature might depend on MTA:SA source code
Projects
None yet
Development

No branches or pull requests

2 participants