Files
wnsrc/gamemodes/ixhl2rp/plugins/cigarettes/items/containerbags/sh_ciggie_pack.lua
lifestorm c6d9b6f580 Upload
2024-08-05 18:40:29 +03:00

34 lines
1.1 KiB
Lua

--[[
| 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/
--]]
ITEM.name = "Cigarette Pack"
ITEM.model = Model("models/willardnetworks/cigarettes/cigarette_pack_1.mdl")
ITEM.description = "A cigarette pack capable of holding precisely 8 cigarettes."
ITEM.allowNesting = true
ITEM.restriction = {"cigarette", "lighter"}
ITEM.noEquip = true
function ITEM:GetName()
return self:GetData("relabeled", false) and "Relabelled Cigarette Pack" or "Benefactor Edition Cigarette Pack"
end
function ITEM:GetDescription()
return self:GetData("relabeled", false) and "A relabelled cigarette pack capable of holding precisely 8 cigarettes." or "A Combine-issued cigarette pack capable of holding precisely 8 cigarettes."
end
function ITEM:GetModel()
return self:GetData("relabeled", false) and "models/willardnetworks/cigarettes/cigarette_pack_1.mdl" or "models/willardnetworks/cigarettes/cigarette_pack.mdl"
end
function ITEM:OnBagInitialized(inventory)
inventory:Add("cigarette", 8)
end