Photon-GitHub / AntiCheatAddition

An anticheat with nieche checks to cover cheats usually not covered by anticheats.
GNU General Public License v3.0
147 stars 43 forks source link

🟢 | Suggestion -> Scaffold instant rotation check. #655

Closed Regomy closed 1 week ago

Regomy commented 1 week ago
Details

I suggest to add a check, which check if player instant rotate from 134.495 pitch to 75 pitch and same with yaw and starting place blocks, this check is flag this player. For sample: player cannot to do perfect rots (hack clients can do it), u can add any factor, that the check is not flagging legit players, factors same with code below.

// this is our check
if (lastPitch % 1 != 0 && pitch % 1 == 0) {
  // this is our factor
 if (yawDelta > 10 && pitchDelta > 2) {

 }
}
Photon-GitHub commented 1 week ago

I have a similar PerfectRotation check. Still, you should be careful to say that a player cannot do such things. Especially with fast client movements, such packets can be sent by vanilla players.