ModernUO/Projects/Server/Events
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
..
AccountLoginEvent.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
AggressiveActionEvent.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
CharacterCreatedEvent.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
EventSink.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
GameLoginEvent.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
MovementEvent.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
ServerCrashedEvent.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
ServerListEvent.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
SocketConnectionEvent.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
SpeechEvent.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00