Project MMO

Project MMO

10M Downloads

Anti-Cheese Option To Require Movement

SomewhatDamaged opened this issue · 1 comments

commented

Describe the solution you'd like
A way to limit XP gain until someone has moved a specific distance from the last point they gained such XP.

[AntiCheese.Movement]
    [AntiCheese.Movement.RIDING]
        moved_distance = 5

Basically, this would mean you cannot get RIDING xp until you have moved at least 5 blocks distance from the last point you were awarded RIDING xp.

Why is this feature needed
Force people to move to get certain xp types—RIDING being the big one. Could also be used to encourage moving around while mining.

Describe alternatives you've considered
Nothing. Not a thing. Just sedentary existence. Return to coral.

Additional context

Lynx.Pinx.Uppx.mp4
commented

So, the culprit here isn't the anti-cheese. It's the riding event. Riding currently just procs every 10 ticks as long as you are riding a vehicle. There isn't any distance captured in the event.

What might work from a configuration standpoint is to have an AFK anti-cheese for riding with really quick activation/cooldown times so that no XP is awarded for standing still but will resume as soon as they move. The diminishing configuration could be removed completely in this case.

This doesn't help in the case of someone finding a way to not be stationary like making a flowing water loop or scripting a horse to run in circles. What might make sense is to make the AFK distance configurable so that you can say "not moving at least 10m is considered AFK to me". Since this could be applied to configurations individually you could have a wide range for riding but a small range for swimming.