fixed purist for real

This commit is contained in:
Jonny_Bro (Nikita) 2023-06-05 15:05:26 +05:00
parent 4a8f7dff5a
commit dde82ac56b
2 changed files with 3 additions and 3 deletions

View file

@ -225,7 +225,7 @@ local function BeatrunHUD()
surface.SetTextPos(scrw * 0.015 + vp.z, scrh * 0.9 + vp.x)
surface.DrawText("Lv." .. ply:GetLevel())
if PuristMode:GetBool() then
if tobool(LocalPlayer():GetInfo("Beatrun_PuristMode")) then
surface.SetDrawColor(230, 230, 230)
surface.SetMaterial(MELogo)
surface.DrawTexturedRect(scrw * 0.00125 + vp.z, scrh * 0.9 + vp.x + SScaleY(16) * 0.25, SScaleX(16), SScaleY(16))

View file

@ -1,11 +1,11 @@
if CLIENT then
CreateClientConVar("Beatrun_PuristMode", "1", true, true, "Purist mode is a clientside preference that severely weakens the ability to strafe while in the air, which is how Mirror's Edge games handle this.\n0 = No restrictions\n1 = Reduced move speed in the air", 0, 1)
CreateClientConVar("Beatrun_PuristMode", "1", true, true, "Purist mode is a clientside preference that severely weakens the ability to strafe while in the air, which is how Mirror's Edge games handle this.\n0 = No restrictions\n1 = Reduced move speed in the air")
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 = ply:GetConVar("Beatrun_PuristMode")
local PuristMode = tobool(ply:GetInfo("Beatrun_PuristMode"))
if not ply:OnGround() and not ply:GetGrappling() then
if (PuristMode:GetBool() or PuristModeForce:GetBool()) and ply:WaterLevel() == 0 then