From 587438112049d2f3c199d77d5ffeabea2cce8a73 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 10 Jun 2024 20:00:29 +0500 Subject: [PATCH] Fix errors on server side --- .../beatrun/content/resource/localization/en/beatrun.properties | 1 - .../beatrun/content/resource/localization/ru/beatrun.properties | 1 - beatrun/gamemodes/beatrun/gamemode/sh/DataTheft.lua | 2 +- beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties b/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties index 507db13..9028390 100644 --- a/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties +++ b/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties @@ -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 diff --git a/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties b/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties index 4507799..a2a2285 100644 --- a/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties +++ b/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties @@ -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 diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/DataTheft.lua b/beatrun/gamemodes/beatrun/gamemode/sh/DataTheft.lua index d184b26..8c6fe08 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/DataTheft.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/DataTheft.lua @@ -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() diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua b/beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua index eefbe6a..85ac97e 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/SafetyRoll.lua @@ -6,7 +6,7 @@ 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) + CreateConVar("Beatrun_RollSpeedLoss", 1, {FCVAR_REPLICATED, FCVAR_ARCHIVE}, "", 0, 1) end local function SafetyRollThink(ply, mv, cmd)