Skip to content
Success

Changes

Summary

  1. Server: New weapon checking logic (commit: 2d3c2e2) (details)
  2. WeaponInput.c: Do not allow weapon input of primary fire when reloading (commit: 71323f1) (details)
  3. PacketManager.c: Do not allow any sort of hit from player that is reloading (commit: 0f18341) (details)
  4. Server: Do not allow next shot if its invalid (commit: f62e580) (details)
Commit 2d3c2e21f793f03a00046fee9dc479762e92c6c3 by 16738302+Haxk20
Server: New weapon checking logic

This allows us to check for shotgun and at the same time
dont allow multibullet with it. There may be optimizations
for this later.

Cleaned up by DarkNeutrino
(commit: 2d3c2e2)
The file was modified Source/Server/Player.c (diff)
The file was modified Source/Util/Weapon.c (diff)
The file was modified Source/Server/Structs/PlayerStruct.h (diff)
The file was modified Source/Util/Weapon.h (diff)
The file was modified Source/Server/Packets/Hit.c (diff)
The file was modified Source/Server/Packets/PacketManager.c (diff)
Commit 71323f197c201bb75ffaf90b3c4848f64369b426 by 16738302+Haxk20
WeaponInput.c: Do not allow weapon input of primary fire when reloading

As title says. It makes no sense. Player cant reload and shoot at the same
time. And if they do so. Its most likely cheatong amd thus lets prevent this
from causing us any issues.
(commit: 71323f1)
The file was modified Source/Server/Packets/WeaponInput.c (diff)
Commit 0f183415653e5f5b270091c6a493ac1798e95b0c by 16738302+Haxk20
PacketManager.c: Do not allow any sort of hit from player that is reloading

Sometimes stuff like this doesnt even occur to me that players could
do this with modified client and we do not even check for it.
(commit: 0f18341)
The file was modified Source/Server/Packets/PacketManager.c (diff)
Commit f62e580759f4d06f241f6868c4f3ba1630e5a707 by 16738302+Haxk20
Server: Do not allow next shot if its invalid
(commit: f62e580)
The file was modified Source/Server/Player.c (diff)
The file was modified Source/Server/Packets/WeaponInput.c (diff)
The file was modified Source/Server/Packets/PacketManager.c (diff)
The file was modified Source/Server/Structs/PlayerStruct.h (diff)