From 9ba957b99603590b099f4bcd22a9cc86525dbcde Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 2 Sep 2017 17:34:27 -0400 Subject: Various debugging things --- entities/entities/art_chest/init.lua | 2 +- entities/entities/art_lootchest/init.lua | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'entities') diff --git a/entities/entities/art_chest/init.lua b/entities/entities/art_chest/init.lua index e2d70e1..fb0fef5 100644 --- a/entities/entities/art_chest/init.lua +++ b/entities/entities/art_chest/init.lua @@ -7,7 +7,7 @@ local track = nrequire("inventory/sv_invtracker.lua") --local invfuncs = include("../../../gamemode/shared/inventory_common.lua") function ENT:Initialize() self.Openedby = {} - self:SetModel("models/props_junk/Rock001a.mdl") + self:SetModel(self.Model or "models/props_junk/Rock001a.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_NONE) self:SetSolid(SOLID_VPHYSICS) diff --git a/entities/entities/art_lootchest/init.lua b/entities/entities/art_lootchest/init.lua index 2ef04a7..4e6dd52 100644 --- a/entities/entities/art_lootchest/init.lua +++ b/entities/entities/art_lootchest/init.lua @@ -11,6 +11,9 @@ ENT.lastused = CurTime() function ENT:Use(ply) local nowtime = CurTime() print("Last used time:",self.lastused,"now it's ",nowtime) + for i = self.lastused,nowtime,100 do + + end self.lastused = nowtime print("Ply opened:",ply) self.Openedby[ply] = true -- cgit v1.2.3-70-g09d2