-
Notifications
You must be signed in to change notification settings - Fork 12
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
[BUG] Taxijob distance calculation exploitation #5
Labels
bug
Something isn't working
Comments
I have two ideas:
|
I fixed it by modifying calculateFareAmount() function .. it only adds to fare if you are moving closer to destrination
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Taxijob calculates distance well, however during npc missions the calculation is exploitable. You don't really have to do the jobs because you can take the npc anywhere you would like while getting money for it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
NPC should react if its not getting closer to the destination or we should stop the meter if player goes the wrong direction.
As far as i know there is no possible way to calculate distance just like the GPS do, or use that value.
One solution could be drawing an " airline " between the pickup point and destination point and use that value. (not the best option but solves the exploitation).
**Screenshots $$$ **

He will never return home
The text was updated successfully, but these errors were encountered: