sapphonie / StAC-tf2

steph's anticheat (StAC). a built-from-scratch sourcemod based solution to cheating in Team Fortress 2.
https://sappho.io
GNU General Public License v3.0
117 stars 21 forks source link

Aimsnap detection false positive with RotateClientSmooth #161

Open flleeppyy opened 1 year ago

flleeppyy commented 1 year ago

On some of our servers we have RTD, and discovered a false positive with one of the perks called "Drunk Walk". We'd like to keep that perk in our servers, but we don't want it to keep triggering the anti-cheat.

I develop a custom private version of the plugin that we use. The code linked here is the same in the private version. I'm not sure what I should modify to avoid triggering the aimsnap detection.

Here is the code that is triggering a false positive https://github.com/Phil25/RTD/blob/c103ad986b1bb5aa537c78d5d45cbc18bae4e0e6/scripting/rtd/perks/drunkwalk.sp#L56C1-L56C1

Video of it happening https://safe.fleepy.tv/files/vMAOWwUB.mp4

sapphonie commented 1 year ago

What version of StAC on what version of SourceMod are you running

flleeppyy commented 1 year ago

StAC 6.0.4 Sourcemod 1.11 build 6936

Phil25 commented 10 months ago

Hey, thanks for opening the issue @flleeppyy!

I was hoping for StAC to allow ignoring offenses for certain clients through natives. This way Drunk Walk could temporary disable aimsnap detection for the player and enable it back once the perk ends. I see there already is some progress to creating an API (https://github.com/sapphonie/StAC-tf2/pull/138), and I'm happy to contribute with a PR myself. RTD can utilize it in the next release.

If this is not the desired approach this feature of the perk will be simply be disabled when StAC is detected.

MAGNAT2645 commented 9 months ago

I use same code from RotateClientSmooth in my plugins but i don't get false positive detections.