@ -40,5 +40,8 @@ hook.Add( "PlayerSpawn", "Quantum_Player_Respawn", function( pl )
Quantum.Debug( "Respawning player at nearest spawnpoint." )
pl:SetPos( spawnpos )
pl:SetAngles( spawnangle )
elseif( pl.isloaded ) then
pl:SetPos( Quantum.Server.Settings.InitSpawnLocation.pos )
pl:SetAngles( Quantum.Server.Settings.InitSpawnLocation.ang )
end
end)
@ -23,8 +23,7 @@ if SERVER then
function GM:KeyRelease( ply, key )
if( keyfuncs[key] ) then keyfuncs[key]( ply ) end
function GM:ShowHelp( ply ) keyfuncs["openCharMenu"]( ply ) end
function GM:ShowTeam( ply ) keyfuncs["mainMenu"]( ply ) end
function GM:ShowHelp( ply ) keyfuncs["mainMenu"]( ply ) end
function GM:ShowSpare2( ply ) keyfuncs["intro"]( ply ) end
@ -60,6 +60,7 @@ end
local function setupCharacter( pl, char )
pl.isloaded = true
pl.deathpos = nil
pl:Spawn()
pl:SetMaxHealth( char.maxhealth )
pl:SetHealth( char.health )
@ -18,6 +18,11 @@ Quantum.Server.Settings.Inventory = {
Width = 5
}
Quantum.Server.Settings.InitSpawnLocation = {
pos = Vector( 5054.682617, 3152.809326, 168.031250 ),
ang = Angle( 3.009660, 89.639153, 0.000000 )
Quantum.Server.Settings.SpawnLocations = {
["rp_truenorth_v1a_livin"] = {