Qbox-project / qbx_taxijob

GNU General Public License v3.0
2 stars 8 forks source link

[BUG] Taxijob distance calculation exploitation #5

Open adweex opened 1 year ago

adweex commented 1 year ago

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:

  1. Start an npc mission and don't go to the objective just drive around freely

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 image

ArturMichalak commented 5 months ago

I have two ideas: