From 08040147b9b446f22e70a0a25c2aca39e3295547 Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Fri, 29 Nov 2019 20:11:07 +0100 Subject: [PATCH] Fixed player movement speed --- .../engine/core/server/sv_player_init.lua | 7 +++++ gamemode/settings/sv_settings.lua | 28 +++++++++++-------- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/gamemode/engine/core/server/sv_player_init.lua b/gamemode/engine/core/server/sv_player_init.lua index 4de9961..ca01ddc 100644 --- a/gamemode/engine/core/server/sv_player_init.lua +++ b/gamemode/engine/core/server/sv_player_init.lua @@ -26,6 +26,13 @@ local function setUpPlayer( ply ) if( char ~= nil ) then charnametxt = " spawned as '" .. char.name .. "'." end + + -- set player speeds + ply:SetWalkSpeed( Quantum.Server.Settings.PlayerSpeeds.walk ) + ply:SetRunSpeed( Quantum.Server.Settings.PlayerSpeeds.run ) + ply:SetCrouchedWalkSpeed( Quantum.Server.Settings.PlayerSpeeds.duck) + ply:SetMaxSpeed( Quantum.Server.Settings.PlayerSpeeds.run ) + Quantum.Debug( tostring( ply ) .. charnametxt ) end diff --git a/gamemode/settings/sv_settings.lua b/gamemode/settings/sv_settings.lua index 8edb141..802fc4d 100644 --- a/gamemode/settings/sv_settings.lua +++ b/gamemode/settings/sv_settings.lua @@ -18,11 +18,6 @@ Quantum.Server.Settings.Inventory = { Width = 5 } ---- Features to be added --- -Quantum.Server.Settings.MaxJobLevel = 250 -Quantum.Server.Settings.MaxJobSlots = 2 -Quantum.Server.Settings.MaxSkillLevel = 100 - Quantum.Server.Settings.SpawnLocations = { ["rp_truenorth_v1a_livin"] = { @@ -32,12 +27,10 @@ Quantum.Server.Settings.SpawnLocations = { } -Quantum.Server.Settings.Licenses = { - Driving = { title = "Driving License", desc = "This permits you to operate and pilot any motorized vehicle in a public area.", cost = 1000 } -} - -Quantum.Server.Settings.Titles = { - dev = "Developer," +Quantum.Server.Settings.PlayerSpeeds = { + walk = 180, + run = 280, + duck = 50 } Quantum.Server.Settings.DamageScale = { -- The scale of the damage for each hitgroup @@ -74,4 +67,17 @@ Quantum.Server.Settings.IdlePainSounds.Male = { "vo/npc/male01/moan05.wav" } +--- Features to be added --- +Quantum.Server.Settings.MaxJobLevel = 250 +Quantum.Server.Settings.MaxJobSlots = 2 +Quantum.Server.Settings.MaxSkillLevel = 100 + + +Quantum.Server.Settings.Licenses = { + Driving = { title = "Driving License", desc = "This permits you to operate and pilot any motorized vehicle in a public area.", cost = 1000 } +} + +Quantum.Server.Settings.Titles = { + dev = "Developer," +} \ No newline at end of file