ModernUO/Projects/UOContent/Mobiles
Kamron Batman 146abad36e
feat: Adds a movement throttle system. Removes Fastwalk system. (#1511)
### Summary

- Removes Fastwalk system
  - Removed the following settings:
    - `movement.enableFastWalkPrevention`
    - `movement.fastwalkExemptionLevel`
- Adds movement throttle system.
  - Adds the following settings:
    - `movement.throttleReset` - Default value is `1000` (1 second).
    - `movement.throttleThreshold` - Default value is `400` (400ms).

### Movement Throttling

This new system will trigger if a player requests 400ms (configurable) worth of movements quicker than wall clock time. When this happens, the player is throttled (all incoming packets to the server are halted) until wall clock time catches up with the requests. Upon each throttle, the player receives enough credit to handle up to 400ms of "lag" as a grace/catch-up.


### Developer Notes
We use two throttle queues to prevent an infinite loop.
2023-09-27 20:53:22 -07:00
..
Abilities fix: Fixes stabled, abilities targeting self, and unsummon memory leak (#1418) 2023-07-03 09:45:22 -07:00
AI fix: Hireables should not drop their pack (#1503) 2023-09-17 17:24:59 -07:00
Animals feat: Adds Stamina System to overhaul overweight. (#1465) 2023-09-16 17:52:54 -07:00
Familiars fix: Codegens familiars (#1473) 2023-08-25 20:51:38 -07:00
Guards fix: Codegens guards (#1474) 2023-08-25 20:59:11 -07:00
Healers fix: Codegens healers and fixes flamespurt trap (#1475) 2023-08-25 21:20:13 -07:00
Hireables fix: Hireables should not drop their pack (#1503) 2023-09-17 17:24:59 -07:00
Monsters fix: Codegens familiars (#1473) 2023-08-25 20:51:38 -07:00
Special feat: Adds Stamina System to overhaul overweight. (#1465) 2023-09-16 17:52:54 -07:00
Townfolk fix: Replaces FindItem(s)ByType(s) implementation with BFS strategy (#1454) 2023-08-18 22:05:28 -07:00
Vendors fix: Fixes arbitrage by adjusting prices. (#1500) 2023-09-15 19:22:35 -07:00
BaseCreature.cs fix: Fixes more packet initializations (#1507) 2023-09-19 00:02:17 -07:00
NPCSpeeds.cs fix: Makes NPC active movement half think speed (#1256) 2022-11-20 20:05:43 -08:00
PlayerMobile.cs feat: Adds a movement throttle system. Removes Fastwalk system. (#1511) 2023-09-27 20:53:22 -07:00
VirtualMountItem.cs feat: Adds Stamina System to overhaul overweight. (#1465) 2023-09-16 17:52:54 -07:00