Fixed spawning bug

master
E. Almqvist 5 years ago
parent f6eb87399e
commit cb0cdc69e3
  1. 3
      gamemode/engine/core/server/sv_player_spawning.lua
  2. 2
      gamemode/settings/sv_settings.lua

@ -11,7 +11,8 @@ end)
local function getNearestSpawn( pl ) local function getNearestSpawn( pl )
local spawnposdist = {} local spawnposdist = {}
for id, spawnpoint in pairs( Quantum.Server.Settings.SpawnLocations[ game.GetMap() ] ) do if( !Quantum.Server.Settings.SpawnLocations[string.lower(game.GetMap())] ) then return Vector(0,0,0), Angle(0,0,0) end
for id, spawnpoint in pairs( Quantum.Server.Settings.SpawnLocations[string.lower(game.GetMap())] ) do
spawnposdist[id] = { dist = spawnpoint.pos:Distance( pl.deathpos ), spawnpos = spawnpoint.pos, angle = spawnpoint.ang } spawnposdist[id] = { dist = spawnpoint.pos:Distance( pl.deathpos ), spawnpos = spawnpoint.pos, angle = spawnpoint.ang }
end end

@ -40,7 +40,7 @@ Quantum.Server.Settings.SpawnLocations = {
["Graveyard"] = { pos = Vector( 6220.7700195313, -12982.192382813, 248 ), ang = Angle( 0, -136.18241882324, 0 ) } ["Graveyard"] = { pos = Vector( 6220.7700195313, -12982.192382813, 248 ), ang = Angle( 0, -136.18241882324, 0 ) }
}, },
["RP_SouthSide"] = { ["rp_southside_day"] = {
["Hospital"] = { pos = Vector( 7586.4912109375, 5226.1508789063, 7.6475238800049 ), ang = Angle( 0, -127.80423736572, 0 ) } ["Hospital"] = { pos = Vector( 7586.4912109375, 5226.1508789063, 7.6475238800049 ), ang = Angle( 0, -127.80423736572, 0 ) }
} }

Loading…
Cancel
Save