Added more stuff

master
AlmTech 5 years ago
parent b3a74b18fd
commit 615bd55ab4
  1. 19
      gamemode/engine/core/server/sv_player_init.lua
  2. 15
      gamemode/engine/derma/cl_main_menu.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

@ -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