summaryrefslogtreecommitdiff
path: root/gamemode
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode')
-rw-r--r--gamemode/cl_panels.lua1
-rw-r--r--gamemode/client/cl_inventory.lua33
-rw-r--r--gamemode/client/cl_quickmenu.lua1
-rw-r--r--gamemode/client/cl_syncronize.lua6
-rw-r--r--gamemode/init.lua2
-rw-r--r--gamemode/itemsystem/common_dropable.lua2
-rw-r--r--gamemode/itemsystem/common_plantable.lua2
-rw-r--r--gamemode/itemsystem/items/gunchunks.lua1
-rw-r--r--gamemode/processes.lua3
9 files changed, 0 insertions, 51 deletions
diff --git a/gamemode/cl_panels.lua b/gamemode/cl_panels.lua
index 70b6740..4a284e9 100644
--- a/gamemode/cl_panels.lua
+++ b/gamemode/cl_panels.lua
@@ -844,7 +844,6 @@ function PANEL:SetInfo( name, tbl )
img:SetPos(20, 10)
img:SetSize(self:GetWide()-40, self:GetTall()-40)
img:SetImage("vgui/avatar_default")
- PrintTable(tbl)
if (tbl.Results != nil) then
for k,v in pairs(tbl.Results) do
diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua
index 2534b91..cb41f2d 100644
--- a/gamemode/client/cl_inventory.lua
+++ b/gamemode/client/cl_inventory.lua
@@ -1,4 +1,3 @@
-print("Custom Inventory Loaded")
local invxsize = 800
local invysize = 500
@@ -117,8 +116,6 @@ local function createPanel()
end
local function createMenuFor(menu, tbl)
- print("Createing actions for:")
- PrintTable(tbl)
for k,v in pairs(tbl) do
if(isfunction(v)) then --This is a dead-end, add the menu
local thisoption = menu:AddOption(k,v)
@@ -386,7 +383,6 @@ function PANEL:Init()
slot:SetText("")
slot:SetTooltip(createTooltipTextFor(v.Req))
slot.DoClick = function()
- --print("I want to combine a " .. v.Name)
LocalPlayer():ConCommand("gms_MakeCombination Combinations " .. v.Name)
end
@@ -532,8 +528,6 @@ function PANEL:Init()
self.PanelProxy = {}
self.PanelProxy.cp = self.ControlPanel
self.PanelProxy.MatSelect = function(self,cmd,matlist,bool,x,y)
- print("MatSelect's cmd is:")
- print(cmd)
local grid = vgui.Create( "DGrid" )
grid:SetPos( 0, 0 )
grid:SetCols( 5 )
@@ -541,18 +535,14 @@ function PANEL:Init()
grid:SetRowHeight( 64 )
local MatSelectPanel = {}
MatSelectPanel.AddMaterial = function(name, path)
- print("Adding material:")
- PrintTable(name)
end
if(matlist != nil) then
for k,v in pairs(matlist) do
local vitem = vgui.Create("DButton")
vitem:SetText("")
vitem:SetSize(64,64)
- --print("Adding item for:" .. v)
vitem:SetImage(v)
vitem.DoClick = function()
- print("Running " .. cmd .. " " .. v)
RunConsoleCommand(cmd, v)
end
vitem.Paint = function(self,w,h)
@@ -570,16 +560,10 @@ function PANEL:Init()
self.PanelProxy.cp:Clear()
end
self.PanelProxy.AddItem = function(self,item)
- print("----------AddItem called!--------------")
- print("Adding:")
- print(item)
local output = self.cp:AddItem(item)
- print("-----------AddItem finished!-----------")
return output
end
self.PanelProxy.AddControl = function(self,type,table)
- print("Adding control...")
- print("Type:" .. type)
if(type == "Header") then
self.cp:ControlHelp(table.Description)
elseif(type == "Slider") then
@@ -605,8 +589,6 @@ function PANEL:Init()
curcolor.r = GetConVar(colorvars["Red"]):GetInt()
curcolor.g = GetConVar(colorvars["Green"]):GetInt()
curcolor.b = GetConVar(colorvars["Blue"]):GetInt()
- print("Color convars are:")
- PrintTable(colorvars)
color_cube:SetColor( curcolor )
color_cube:SetSize(200,200)
@@ -627,7 +609,6 @@ function PANEL:Init()
end
DComboBox.OnSelect = function( panel, index, value )
for k,v in pairs(table.Options[value]) do
- print("Setting " .. k .. " to " .. v)
GetConVar(k):SetInt(v)
end
end
@@ -660,18 +641,11 @@ function PANEL:Init()
elseif(type == "Button") then
self.cp:Button(table.Label,table.Command)
else
- print("I wanted to add a control, but I haven't written it yet!")
- print("Type:" .. type)
- print("Table:")
- PrintTable(table)
- print("I am:")
- PrintTable(self)
debug.Trace()
end
end
if(self.ControlPanel.AddControl == nil) then
- print("Control panel's AddControl is nil!")
end
--self.ControlPanel:SetSize((dPanelWidth/3)*2,dPanelWidth)
--self.ControlPanel:SetPos(dPanelWidth/3,0)
@@ -684,7 +658,6 @@ function PANEL:Init()
if(istable(j)) then
local isprohibitied = true
for l,m in pairs(GMS.AllowedStools) do
- print("Checking: " .. j.ItemName)
if(j.ItemName == m) then
isprohibitied = false
end
@@ -695,13 +668,10 @@ function PANEL:Init()
for n,o in pairs(j) do
btable[n] = o
end
- print("Btable is:")
- PrintTable(btable)
button:SetText(btable.Text)
--button.Name = j.Text
button.PanelCreate = j.CPanelFunction
--self.Tools:Add
- print("adding " .. j.Text)
button.DoClick = function()
--print("Before calling function, PanelProxy is:")
--PrintTable(self.PanelProxy)
@@ -729,10 +699,7 @@ function PANEL:EnableControlPanel( button )
button:SetSelected( true )
self.LastSelected = button
- print(button.Name)
local cp = controlpanel.Get( button.Name )
- print("got control panel for:")
- print(cp)
--if ( !cp:GetInitialized() ) then
--cp:FillViaTable( button )
--end
diff --git a/gamemode/client/cl_quickmenu.lua b/gamemode/client/cl_quickmenu.lua
index 2ce0bbb..a6961c5 100644
--- a/gamemode/client/cl_quickmenu.lua
+++ b/gamemode/client/cl_quickmenu.lua
@@ -1,5 +1,4 @@
function GM:OnContextMenuOpen()
- print("Context menu hooked correctly")
local Menu = DermaMenu() -- Is the same as vgui.Create( "DMenu" )
Menu:AddOption( "Simple option" ) -- Add a simple option.
diff --git a/gamemode/client/cl_syncronize.lua b/gamemode/client/cl_syncronize.lua
index fa60de0..f84799d 100644
--- a/gamemode/client/cl_syncronize.lua
+++ b/gamemode/client/cl_syncronize.lua
@@ -1,11 +1,9 @@
--Makes sure the player knows about things like inventory, skills, experience ect.
net.Receive( "gms_SetResource", function( length, pl)
- print("Setresources message sent from server")
local name = net.ReadString()
if(GMS.GetResourceByName(name).UniqueData) then
local restable = net.ReadTable()
- PrintTable(restable)
if(Resources[name] == nil) then
Resources[name] = {}
end
@@ -14,12 +12,8 @@ net.Receive( "gms_SetResource", function( length, pl)
if(Resources[name] == nil) then
Resources[name] = 0
end
- print("Getting with bitcount:" .. GMS.NETINT_BITCOUNT)
local num = net.ReadInt(GMS.NETINT_BITCOUNT)
- print("Resource name: " .. name)
- print("Resource num: " .. num)
Resources[name] = num
end
- print("Finished resource get")
GAMEMODE:ReloadSpawnMenu()
end)
diff --git a/gamemode/init.lua b/gamemode/init.lua
index da03d24..04f5637 100644
--- a/gamemode/init.lua
+++ b/gamemode/init.lua
@@ -937,7 +937,6 @@ concommand.Add( "gms_makefire", GM.MakeCampfire )
---------------------------------------------------------------------------------------------------- */
function GM:PlayerInitialSpawn( ply )
- print("--------Inital spawn called!---------")
ply:SetTeam( 1 )
ply.Skills = {}
@@ -997,7 +996,6 @@ 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 ) )
diff --git a/gamemode/itemsystem/common_dropable.lua b/gamemode/itemsystem/common_dropable.lua
index 34ca905..046d628 100644
--- a/gamemode/itemsystem/common_dropable.lua
+++ b/gamemode/itemsystem/common_dropable.lua
@@ -9,8 +9,6 @@ function genericMakeDroppable(tbl)
genericDropResource(player,tbl.Name,1)
end
local dropall = function(player)
- PrintTable(Resources)
- print("Ammount:" .. Resources[tbl.Name])
genericDropResource(player,tbl.Name,Resources[tbl.Name])
end
local drophalf = function(player)
diff --git a/gamemode/itemsystem/common_plantable.lua b/gamemode/itemsystem/common_plantable.lua
index 9c86491..668ca74 100644
--- a/gamemode/itemsystem/common_plantable.lua
+++ b/gamemode/itemsystem/common_plantable.lua
@@ -23,8 +23,6 @@ local function plant(player, resourcename)
pent:SetPos(tr.HitPos)
pent.GrowTime = tbl.GrowTime
pent.OnGrow = tbl.OnGrow
- print("Setting seed's owner to:")
- print(player)
pent:SetOwner(player)
pent:Spawn()
end
diff --git a/gamemode/itemsystem/items/gunchunks.lua b/gamemode/itemsystem/items/gunchunks.lua
index 412ae68..a262e37 100644
--- a/gamemode/itemsystem/items/gunchunks.lua
+++ b/gamemode/itemsystem/items/gunchunks.lua
@@ -25,7 +25,6 @@ for k,v in pairs(materials) do
ITEM.Description = "A part of a weapon!"
local filename = string.Replace(v .. " " .. j," ","_")
local directory = "items/weaponparts/" .. filename .. ".png"
- print("File for " .. ITEM.Name .. " is " .. directory)
ITEM.Icon = directory
ITEM.UniqueData = false
genericMakeDroppable(ITEM)
diff --git a/gamemode/processes.lua b/gamemode/processes.lua
index 58a2b48..e11da6b 100644
--- a/gamemode/processes.lua
+++ b/gamemode/processes.lua
@@ -709,9 +709,6 @@ local plant_generic = {
for k,v in pairs(plant_generic) do
local PROCESS = {}
function PROCESS:OnStart()
- print("time:" .. self.Time)
- print("Cancel")
- print(self.Cancel)
self.Owner:MakeProcessBar( "Planting " .. v[1], self.Time, self.Cancel)
end
function PROCESS:OnStop()