wow purist is fixed

This commit is contained in:
Jonny_Bro (Nikita) 2023-08-18 20:13:32 +05:00
parent c68a4694ff
commit 6040fb4126

View file

@ -5,10 +5,8 @@ end
local PuristModeForce = CreateConVar("Beatrun_PuristModeForce", 0, {FCVAR_REPLICATED, FCVAR_ARCHIVE}, "Force players to adhere to purist rules", 0, 1)
local function PuristMove(ply, mv, cmd)
local PuristMode = tobool(ply:GetInfo("Beatrun_PuristMode"))
if not ply:OnGround() and not ply:GetGrappling() then
if (PuristMode or PuristModeForce:GetBool()) and ply:WaterLevel() == 0 then
if (tobool(ply:GetInfo("Beatrun_PuristMode")) or PuristModeForce:GetBool()) and ply:WaterLevel() == 0 then
mv:SetForwardSpeed(mv:GetForwardSpeed() * 0.001)
mv:SetSideSpeed(mv:GetSideSpeed() * 0.001)