This commit is contained in:
lifestorm
2024-08-05 18:40:29 +03:00
parent 9f505a0646
commit c6d9b6f580
8044 changed files with 1853472 additions and 21 deletions

View File

@@ -0,0 +1,202 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
PLUGIN.name = "Storage Resize"
PLUGIN.author = "Gr4Ss"
PLUGIN.description = "Resizes the storage containers."
--[[
ix.container.Register(model, {
name = "Crate",
description = "A simple wooden create.",
width = 4,
height = 4,
locksound = "",
opensound = ""
})
]]--
ix.container.Register("models/props_junk/wood_crate001a.mdl", {
name = "Crate",
description = "A simple wooden crate.",
width = 6,
height = 6,
})
ix.container.Register("models/props_junk/wood_crate002a.mdl", {
name = "Large Crate",
description = "A large wooden crate.",
width = 10,
height = 10,
})
ix.container.Register("models/props_c17/lockers001a.mdl", {
name = "Locker",
description = "A white locker.",
width = 8,
height = 8,
})
ix.container.Register("models/props_wasteland/controlroom_storagecloset001a.mdl", {
name = "Large Metal Cabinet",
description = "A green metal cabinet.",
width = 9,
height = 9,
})
ix.container.Register("models/props_wasteland/controlroom_storagecloset001b.mdl", {
name = "Large Metal Cabinet",
description = "A green metal cabinet.",
width = 9,
height = 9,
})
ix.container.Register("models/props_wasteland/controlroom_filecabinet001a.mdl", {
name = "File Cabinet",
description = "A metal filing cabinet.",
width = 5,
height = 3
})
ix.container.Register("models/props_wasteland/controlroom_filecabinet002a.mdl", {
name = "Medium File Cabinet",
description = "A metal filing cabinet.",
width = 5,
height = 8,
})
ix.container.Register("models/props_lab/filecabinet02.mdl", {
name = "File Cabinet",
description = "A metal filing cabinet.",
width = 5,
height = 3
})
ix.container.Register("models/props_c17/furniturefridge001a.mdl", {
name = "Refrigerator",
description = "A metal box for keeping food in.",
width = 6,
height = 7,
})
ix.container.Register("models/props_wasteland/kitchen_fridge001a.mdl", {
name = "Large Refrigerator",
description = "A large metal box for storing even more food in.",
width = 9,
height = 9,
})
ix.container.Register("models/props_junk/trashbin01a.mdl", {
name = "Trash Bin",
description = "What do you expect to find in here?",
width = 7,
height = 3,
})
ix.container.Register("models/props_junk/trashdumpster01a.mdl", {
name = "Dumpster",
description = "A dumpster meant to stow away trash. It emanates an unpleasant smell.",
width = 9,
height = 9
})
ix.container.Register("models/items/ammocrate_smg1.mdl", {
name = "Ammo Crate",
description = "A heavy crate that stores ammo.",
width = 8,
height = 6,
OnOpen = function(entity, activator)
local closeSeq = entity:LookupSequence("Close")
entity:ResetSequence(closeSeq)
timer.Simple(2, function()
if (entity and IsValid(entity)) then
local openSeq = entity:LookupSequence("Open")
entity:ResetSequence(openSeq)
end
end)
end
})
ix.container.Register("models/items/ammocrate_rockets.mdl", {
name = "Ammo Crate",
description = "A heavy crate that stores ammo.",
width = 8,
height = 6,
OnOpen = function(entity, activator)
local closeSeq = entity:LookupSequence("Close")
entity:ResetSequence(closeSeq)
timer.Simple(2, function()
if (entity and IsValid(entity)) then
local openSeq = entity:LookupSequence("Open")
entity:ResetSequence(openSeq)
end
end)
end
})
ix.container.Register("models/items/ammocrate_ar2.mdl", {
name = "Ammo Crate",
description = "A heavy crate that stores ammo.",
width = 8,
height = 6,
OnOpen = function(entity, activator)
local closeSeq = entity:LookupSequence("Close")
entity:ResetSequence(closeSeq)
timer.Simple(2, function()
if (entity and IsValid(entity)) then
local openSeq = entity:LookupSequence("Open")
entity:ResetSequence(openSeq)
end
end)
end
})
ix.container.Register("models/items/ammocrate_grenade.mdl", {
name = "Ammo Crate",
description = "A heavy crate that stores ammo.",
width = 8,
height = 6,
OnOpen = function(entity, activator)
local closeSeq = entity:LookupSequence("Close")
entity:ResetSequence(closeSeq)
timer.Simple(2, function()
if (entity and IsValid(entity)) then
local openSeq = entity:LookupSequence("Open")
entity:ResetSequence(openSeq)
end
end)
end
})
ix.container.Register("models/props_forest/footlocker01_closed.mdl", {
name = "Footlocker",
description = "A small chest to store belongings in.",
width = 6,
height = 5
})
ix.container.Register("models/items/item_item_crate.mdl", {
name = "Item Crate",
description = "A crate to store some belongings in.",
width = 5,
height = 4
})
ix.container.Register("models/props_c17/cashregister01a.mdl", {
name = "Cash Register",
description = "A register with some buttons and a drawer.",
width = 2,
height = 2
})