diff options
Diffstat (limited to 'entities')
| -rw-r--r-- | entities/entities/art_chest/init.lua | 2 | ||||
| -rw-r--r-- | entities/entities/art_lootchest/init.lua | 3 |
2 files changed, 4 insertions, 1 deletions
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 |
