diff --git a/gamemode/engine/core/server/sv_player_init.lua b/gamemode/engine/core/server/sv_player_init.lua index 2952f17..4f755a8 100644 --- a/gamemode/engine/core/server/sv_player_init.lua +++ b/gamemode/engine/core/server/sv_player_init.lua @@ -10,17 +10,26 @@ Quantum.Server.Player = {} local ply = FindMetaTable( "Player" ) function GM:PlayerInitialSpawn( ply ) - ply.isloaded = true -- REMOVE THIS WHEN MYSQL DB IS ADDED + --ply.isloaded = true -- REMOVE THIS WHEN MYSQL DB IS ADDED + end -function GM:PlayerSpawn( ply ) - - ply:SetModel( "models/player/Group03/male_04.mdl" ) - +local function setUpPlayer( ply ) + if( ply:GetModel() ~= nil ) then ply:SetupHands() else Quantum.Error( tostring(ply) .. " doesn't have a valid model. Unable to set up hands!" ) end Quantum.Debug( tostring( ply ) .. " spawned." ) +end + +function GM:PlayerSpawn( ply ) + + if( !ply.isloaded ) then + ply:Spectate( OBS_MODE_CHASE ) + else + setUpPlayer( ply ) + end + end \ No newline at end of file diff --git a/gamemode/engine/derma/cl_main_menu.lua b/gamemode/engine/derma/cl_main_menu.lua new file mode 100644 index 0000000..046ada7 --- /dev/null +++ b/gamemode/engine/derma/cl_main_menu.lua @@ -0,0 +1,15 @@ +-- __ _ _______ _ __ +-- / / /\ | | |__ __| | | \ \ +-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \ +-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > > +-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / +-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ + +local function mainMenu() + local sw, sh = ScrW(), ScrH() + if( !f ) then + local f = vgui.Create( "DFrame" ) + f:SetTitle( "Main Menu" ) + f:SetSize( sw, sh ) + end +end \ No newline at end of file