Compare commits

..

2 commits

Author SHA1 Message Date
592a146230
fix server error (again) (stupid) 2024-06-10 21:01:55 +05:00
5874381120
Fix errors on server side 2024-06-10 20:00:29 +05:00
4 changed files with 3 additions and 8 deletions

View file

@ -41,7 +41,6 @@ beatrun.convars.disablegrapple=Disables grapple ability
beatrun.convars.puristmode=Purist mode is a clientside preference that severely weakens the ability to strafe while in the air, which is how ME games handle this.\n0 = No restrictions\n1 = Reduced move speed in the air
beatrun.convars.quickturnground=Enables quickturning with secondary attack while on the ground
beatrun.convars.quickturnhandsonly=Enables quickturning with "Runner Hands" only
beatrun.convars.rollspeedloss=Whether or not the player will lose speed when rolling
beatrun.convars.showspeedometer=Toggle speedometer visibility
beatrun.convars.totsugekiaudio=Toggle Totsugeki audio

View file

@ -41,7 +41,6 @@ beatrun.convars.disablegrapple=Переключить крюк-кошку
beatrun.convars.puristmode=Режим Purist это клиентский параметр который сильно снижает движение игрока в стороны будучи в воздухе, прямо как в оригинальное ME.\n0 = Нет ограничений\n1 = Снижает движение игрока в воздухе в стороны
beatrun.convars.quickturnground=Переключить Quickturn будучи на земле
beatrun.convars.quickturnhandsonly=Переключить Quickturn только с "Runner Hands"
beatrun.convars.rollspeedloss=Переключить потерю скорости при перекате
beatrun.convars.showspeedometer=Переключить спидометр
beatrun.convars.totsugekiaudio=Переключить звуки Totsugeki

View file

@ -13,7 +13,7 @@ if SERVER then
v:SetNW2Int("DataCubes", 0)
v:SetNW2Int("DataBanked", 0)
if v:GetMoveType() == MOVETYPE_NOCLIP then
v:SetMoveType(MOVETYPE_WALK)
v:Spawn()

View file

@ -4,10 +4,7 @@ end
local landang = Angle(0, 0, 0)
local lastGroundSpeed = 0
if CLIENT then
CreateClientConVar("Beatrun_RollSpeedLoss", 1, true, true, language.GetPhrase("beatrun.convars.rollspeedloss"), 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