Skip to content
Success

Changes

Summary

  1. WeaponInput.c: Fix few issues with the logic about reloading (commit: 9ef0afb) (details)
  2. Server: Add dynamic delay for weapons (commit: 3c103a9) (details)
  3. Hit.c: Remove some debug code (commit: af3144b) (details)
Commit 9ef0afb199dd17025657b9c82c4e1811c4e3b3f6 by 16738302+Haxk20
WeaponInput.c: Fix few issues with the logic about reloading

There is still likely to cause an issue. We need a timer for
checking when the reload was canceled so we dont cancel a shot 10
minutes after reloading in rare cases.
(commit: 9ef0afb)
The file was modified Source/Server/Packets/WeaponInput.c (diff)
Commit 3c103a96a9032cf7bbfa4d7bbc10760056e62c9b by 16738302+Haxk20
Server: Add dynamic delay for weapons

OpenSpades does things a bit differently where it adjusts the next shot
so the delay between the 2 shots is always the right amount.
This breaks our anticheat. It turns out this logic
can also be used for clients with static delay that do not adjust
like BetterSpades without breaking anything.

So lets adjust our code to make dynamic delay work smashing
2 issues with 1
(commit: 3c103a9)
The file was modified Source/Server/Player.c (diff)
The file was modified Source/Server/Structs/TimerStruct.h (diff)
The file was modified Source/Server/Packets/PacketManager.c (diff)
The file was modified Source/Server/Packets/Hit.c (diff)
The file was modified Source/Server/Packets/Hit.c (diff)