-
-
Notifications
You must be signed in to change notification settings - Fork 445
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
Fix ability to move server-side vehicles that are far away from the player #3391
Fix ability to move server-side vehicles that are far away from the player #3391
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🚀
I think it would be good to make |
In that case it'd probably be better to link it with the syncer radius and make them configurable together. On its own there's not much of a reason to be able to configure this radius EDIT: Adds the ability to disable it which is actually pretty useful, I stand corrected and thus implemented it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 🎉
Added a configurable server setting for it. You can configure it as follows during runtime: Which should satisfy this. |
Just to be sure... If client will set position for vehicle locally - will car appear locally to him? |
If you're not the syncer, even if the vehicle appears to be near you on your client, you cannot enter it. Instead attempting to the enter the vehicle will reset its position to the position stored on the server. It has always been like this and the PR does not change that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for this PR, please update https://wiki.multitheftauto.com/wiki/SetServerConfigSetting and https://wiki.multitheftauto.com/wiki/Server_mtaserver.conf where necessary. |
…layer (multitheftauto#3391) * Fix ability to move server-side vehicles that are far away from the player * Fix wrongly named radius define * Add vehicle contact sync radius server setting * Add vehicle_contact_sync_radius to mtaserver.conf template * Add dimension checks
fixes #3389
Adds extra checks to ensure that players cannot use setElementPosition client-side to move vehicles that are far away from them. Essentially closes loopholes that made it possible for players to become the syncer of said vehicles.