diff --git a/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties b/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties index 9028390..1b062e5 100644 --- a/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties +++ b/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties @@ -42,7 +42,6 @@ beatrun.convars.puristmode=Purist mode is a clientside preference that severely beatrun.convars.quickturnground=Enables quickturning with secondary attack while on the ground beatrun.convars.quickturnhandsonly=Enables quickturning with "Runner Hands" only beatrun.convars.showspeedometer=Toggle speedometer visibility -beatrun.convars.totsugekiaudio=Toggle Totsugeki audio # HUD beatrun.hud.course=Course: %s diff --git a/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties b/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties index a2a2285..b33ed92 100644 --- a/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties +++ b/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties @@ -42,7 +42,6 @@ beatrun.convars.puristmode=Режим Purist это клиентский пар beatrun.convars.quickturnground=Переключить Quickturn будучи на земле beatrun.convars.quickturnhandsonly=Переключить Quickturn только с "Runner Hands" beatrun.convars.showspeedometer=Переключить спидометр -beatrun.convars.totsugekiaudio=Переключить звуки Totsugeki # HUD beatrun.hud.course=Курс: %s diff --git a/beatrun/gamemodes/beatrun/content/resource/localization/uk/beatrun.properties b/beatrun/gamemodes/beatrun/content/resource/localization/uk/beatrun.properties index 0e3ac56..d6c5278 100644 --- a/beatrun/gamemodes/beatrun/content/resource/localization/uk/beatrun.properties +++ b/beatrun/gamemodes/beatrun/content/resource/localization/uk/beatrun.properties @@ -42,7 +42,6 @@ beatrun.convars.puristmode=Режим Purist - це клієнтський па beatrun.convars.quickturnground = Переключити Quickturn будучи на землі beatrun.convars.quickturnhandsonly=Переключити Quickturn тільки з "Runner Hands" beatrun.convars.showSpeedometer=Нічого сказати -beatrun.convars.totsugekiAudio=Увімкнути голос "Totsugeki" # HUD beatrun.hud.course=Курс: %s diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/Dive.lua b/beatrun/gamemodes/beatrun/gamemode/sh/Dive.lua index 98701f0..1120744 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/Dive.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/Dive.lua @@ -3,9 +3,7 @@ local totsugekispam = CreateConVar("Beatrun_TotsugekiSpam", 0, {FCVAR_REPLICATED local totsugekiheading = CreateConVar("Beatrun_TotsugekiHeading", 0, {FCVAR_REPLICATED, FCVAR_ARCHIVE}, "", 0, 1) local totsugekidir = CreateConVar("Beatrun_TotsugekiDir", 0, {FCVAR_REPLICATED, FCVAR_ARCHIVE}, "", 0, 1) -if CLIENT then - CreateClientConVar("Beatrun_TotsugekiAudio", 1, true, true, language.GetPhrase("beatrun.convars.totsugekiaudio"), 0, 1) -end +local totsugekiaudio = CreateConVar("Beatrun_TotsugekiAudio", 1, {FCVAR_REPLICATED, FCVAR_ARCHIVE}, "", 0, 1) local function Dive(ply, mv, cmd) if (not ply:GetDive() or ply:GetDive() and ply.QuakeJumping and totsugeki:GetBool() and totsugekispam:GetBool()) and ply:GetCrouchJump() and mv:KeyPressed(IN_ATTACK2) then @@ -33,7 +31,7 @@ local function Dive(ply, mv, cmd) if ply:UsingRH() and ply:GetActiveWeapon():GetQuakeJumping() and totsugeki:GetBool() then if SERVER then - if GetConVar("Beatrun_TotsugekiAudio"):GetBool() then + if totsugekiaudio:GetBool() then ply:EmitSound("misc/totsugeki" .. math.random(1, 2) .. ".mp3", 60, 100, 1, CHAN_VOICE) end