summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-04-30 20:15:02 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-04-30 20:15:02 -0400
commitadcec79b09baa5b6804795077caae8ad7e6c0394 (patch)
tree005db3dde02b7082fa8c6611d2911da9c1b6e88b /gamemode/init.lua
parent603b64b1a93b36f04d25018ec3f53b16dcd84019 (diff)
downloadgmstranded-adcec79b09baa5b6804795077caae8ad7e6c0394.tar.gz
gmstranded-adcec79b09baa5b6804795077caae8ad7e6c0394.tar.bz2
gmstranded-adcec79b09baa5b6804795077caae8ad7e6c0394.zip
Added mineing resources
Diffstat (limited to 'gamemode/init.lua')
-rw-r--r--gamemode/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua
index a4c480a..5b1fa5a 100644
--- a/gamemode/init.lua
+++ b/gamemode/init.lua
@@ -4,10 +4,12 @@ include( "init_static.lua")
AddCSLuaFolder("client",false)
AddCSLuaFolder("craftablesystem",true)
AddCSLuaFolder("itemsystem",true)
+AddCSLuaFolder("shared",true)
includeFolder("server",false)
includeFolder("craftablesystem",true)
includeFolder("itemsystem",true)
+includeFolder("shared",true)
AddCSLuaFile( "configure_me.lua" )
@@ -131,7 +133,7 @@ end
-- Cancel process
concommand.Add( "gms_cancelprocess", function( ply, cmd, args )
ply:CancelProcess()
-
+
end )
@@ -937,6 +939,7 @@ concommand.Add( "gms_makefire", GM.MakeCampfire )
---------------------------------------------------------------------------------------------------- */
function GM:PlayerInitialSpawn( ply )
+ print("--------Inital spawn called!---------")
ply:SetTeam( 1 )
ply.Skills = {}
@@ -996,6 +999,7 @@ function GM:PlayerInitialSpawn( ply )
ply.FeatureUnlocks = tbl["unlocks"]
ply.MaxResources = ( ply.Skills["Survival"] * 5 ) + 25
+ print("Setting MaxResources to " .. ply.MaxResources)
ply:SendMessage( "Loaded character successfully.", 3, Color( 255, 255, 255, 255 ) )
ply:SendMessage( "Last visited on " .. tbl.date .. ", enjoy your stay.", 10, Color( 255, 255, 255, 255 ) )