Fixed player movement speed

master
AlmTech Software 5 years ago
parent 346db9f1ad
commit 08040147b9
  1. 7
      gamemode/engine/core/server/sv_player_init.lua
  2. 28
      gamemode/settings/sv_settings.lua

@ -26,6 +26,13 @@ local function setUpPlayer( ply )
if( char ~= nil ) then if( char ~= nil ) then
charnametxt = " spawned as '" .. char.name .. "'." charnametxt = " spawned as '" .. char.name .. "'."
end 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 ) Quantum.Debug( tostring( ply ) .. charnametxt )
end end

@ -18,11 +18,6 @@ Quantum.Server.Settings.Inventory = {
Width = 5 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 = { Quantum.Server.Settings.SpawnLocations = {
["rp_truenorth_v1a_livin"] = { ["rp_truenorth_v1a_livin"] = {
@ -32,12 +27,10 @@ Quantum.Server.Settings.SpawnLocations = {
} }
Quantum.Server.Settings.Licenses = { Quantum.Server.Settings.PlayerSpeeds = {
Driving = { title = "Driving License", desc = "This permits you to operate and pilot any motorized vehicle in a public area.", cost = 1000 } walk = 180,
} run = 280,
duck = 50
Quantum.Server.Settings.Titles = {
dev = "Developer,"
} }
Quantum.Server.Settings.DamageScale = { -- The scale of the damage for each hitgroup 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" "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,"
}
Loading…
Cancel
Save