mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 05:13:02 +05:00
fix server error (again) (stupid)
This commit is contained in:
parent
5874381120
commit
592a146230
1 changed files with 2 additions and 5 deletions
|
@ -4,10 +4,7 @@ end
|
||||||
|
|
||||||
local landang = Angle(0, 0, 0)
|
local landang = Angle(0, 0, 0)
|
||||||
local lastGroundSpeed = 0
|
local lastGroundSpeed = 0
|
||||||
|
local rollspeedloss = CreateConVar("Beatrun_RollSpeedLoss", 1, {FCVAR_REPLICATED, FCVAR_ARCHIVE}, "", 0, 1)
|
||||||
if CLIENT then
|
|
||||||
CreateConVar("Beatrun_RollSpeedLoss", 1, {FCVAR_REPLICATED, FCVAR_ARCHIVE}, "", 0, 1)
|
|
||||||
end
|
|
||||||
|
|
||||||
local function SafetyRollThink(ply, mv, cmd)
|
local function SafetyRollThink(ply, mv, cmd)
|
||||||
local speed = mv:GetVelocity().z
|
local speed = mv:GetVelocity().z
|
||||||
|
@ -44,7 +41,7 @@ local function SafetyRollThink(ply, mv, cmd)
|
||||||
vel.x = 0
|
vel.x = 0
|
||||||
vel.y = 0
|
vel.y = 0
|
||||||
|
|
||||||
local speedloss = GetConVar("Beatrun_RollSpeedLoss"):GetBool()
|
local speedloss = rollspeedloss:GetBool()
|
||||||
local speedLimit = GetConVar("Beatrun_SpeedLimit"):GetInt()
|
local speedLimit = GetConVar("Beatrun_SpeedLimit"):GetInt()
|
||||||
|
|
||||||
if speedloss then
|
if speedloss then
|
||||||
|
|
Loading…
Reference in a new issue