update (conf): Added conf for Anti-Knock back

sorry about that. forgot to make one
This commit is contained in:
MDIC
2022-08-05 20:57:32 -04:00
parent eaa8e3fc3e
commit 4a7c1f436d
2 changed files with 4 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ Anticheat.IgnoreControlHack = 1
Anticheat.DetectZaxisHack =1
Anticheat.AntiSwimHack = 1
Anticheat.DetectGravityHack = 1
Anticheat.AntiKnockBack = 1
# Anticheat.StricterFlyHackCheck
# Description: Checks moveflag ascending (may give false positives)

View File

@@ -693,6 +693,9 @@ void AnticheatMgr::AntiSwimHackDetection(Player* player, MovementInfo movementIn
// basic detection
void AnticheatMgr::AntiKnockBackHactDetection(Player* player, MovementInfo movementInfo)
{
if (!sConfigMgr->GetOption<bool>("Anticheat.AntiKnockBack", true))
return;
ObjectGuid key = player->GetGUID();
//if a knockback helper is not passed then we ignore