Added more stuff

master
AlmTech 5 years ago
parent b3a74b18fd
commit 615bd55ab4
  1. 17
      gamemode/engine/core/server/sv_player_init.lua
  2. 15
      gamemode/engine/derma/cl_main_menu.lua

@ -10,12 +10,11 @@ Quantum.Server.Player = {}
local ply = FindMetaTable( "Player" )
function GM:PlayerInitialSpawn( ply )
ply.isloaded = true -- REMOVE THIS WHEN MYSQL DB IS ADDED
end
--ply.isloaded = true -- REMOVE THIS WHEN MYSQL DB IS ADDED
function GM:PlayerSpawn( ply )
end
ply:SetModel( "models/player/Group03/male_04.mdl" )
local function setUpPlayer( ply )
if( ply:GetModel() ~= nil ) then
ply:SetupHands()
@ -24,3 +23,13 @@ function GM:PlayerSpawn( ply )
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

@ -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
Loading…
Cancel
Save