From 592a146230a9ad0b6a59716b4c9fc13ef5451317 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 10 Jun 2024 21:01:55 +0500 Subject: [PATCH] fix server error (again) (stupid) --- beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua b/beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua index 85ac97e..87d6b4d 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua @@ -4,10 +4,7 @@ end local landang = Angle(0, 0, 0) local lastGroundSpeed = 0 - -if CLIENT then - CreateConVar("Beatrun_RollSpeedLoss", 1, {FCVAR_REPLICATED, FCVAR_ARCHIVE}, "", 0, 1) -end +local rollspeedloss = CreateConVar("Beatrun_RollSpeedLoss", 1, {FCVAR_REPLICATED, FCVAR_ARCHIVE}, "", 0, 1) local function SafetyRollThink(ply, mv, cmd) local speed = mv:GetVelocity().z @@ -44,7 +41,7 @@ local function SafetyRollThink(ply, mv, cmd) vel.x = 0 vel.y = 0 - local speedloss = GetConVar("Beatrun_RollSpeedLoss"):GetBool() + local speedloss = rollspeedloss:GetBool() local speedLimit = GetConVar("Beatrun_SpeedLimit"):GetInt() if speedloss then