This commit is contained in:
lifestorm
2024-08-04 23:54:45 +03:00
parent 0e770b2b49
commit df294d03aa
7526 changed files with 4011945 additions and 15 deletions

View File

@@ -0,0 +1,36 @@
--[[
| 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.base = "base_stackable"
ITEM.maxStackSize = 16
ITEM.name = "Biyomacun"
ITEM.description = "Tuhaf malzemeyle dolu beyaz bir kavanoz."
ITEM.category = "Ingredient"
ITEM.model = "models/props_lab/jar01b.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.iconCam = {
pos = Vector(6.22, -199.61, 10.73),
ang = Angle(3.12, 91.84, 0),
fov = 3.64
}
ITEM.holdData = {
vectorOffset = {
right = -1.5,
up = 0,
forward = 0
},
angleOffset = {
right = 0,
up = 0,
forward = 0
},
}

View File

@@ -0,0 +1,92 @@
--[[
| 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/
--]]
local PLUGIN = PLUGIN
ITEM.name = "Combine Bataryası"
ITEM.model = "models/willardnetworks/gearsofindustry/wn_battery.mdl"
ITEM.category = "Combine"
ITEM.description = "Küçük, şarj edilebilir bir batarya. Arkasında bir şarj girişi ve batarya durumunu gösteren bir sayaç var."
ITEM.iconCam = {
pos = Vector(199.98, 5.3, 7.35),
ang = Angle(0.66, -178.43, 0),
fov = 3.08
}
function ITEM:OnInstanced(invID, x, y, item)
self:SetData("charge", 0)
end
ITEM.functions.SetFullCharge = { -- sorry, for name order.
name = "Set Full Charge",
tip = "repairTip",
icon = "icon16/wrench.png",
OnRun = function(item)
item:SetData("charge", 10)
return false
end,
OnCanRun = function(item)
local client = item.player
return IsValid(client) and client:IsAdmin()
end
}
-- Setting damageInfo manually because we're doing some weirdness with the item destruction.
function ITEM:OnEntityTakeDamage(entity, damageInfo)
entity.ixDamageInfo = {damageInfo:GetAttacker(), damage, damageInfo:GetInflictor()}
end
if (SERVER) then return end
function ITEM:PopulateTooltip(tooltip)
local charge = self:GetData("charge", 0)
local color = PLUGIN.chargeIndicatorColors[charge] or Color(255, 0, 0)
local name = tooltip:GetRow("name")
name:SetBackgroundColor(color)
local chargePnl = tooltip:AddRow("charge")
chargePnl:SetBackgroundColor(color)
chargePnl:SetText("Şarj: " .. (charge * 10) .. "%")
chargePnl:SizeToContents()
end
function ITEM:DrawEntity(entity)
if (entity.colorSetup) then return end
entity.GetBatteryColor = function()
local color = entity:GetNetVar("beeping", false) and Color(255, 0, 0) or PLUGIN.chargeIndicatorColors[entity:GetData("charge", 0)] or Color(0, 255, 255)
return Vector(color.r / 255, color.g / 255, color.b / 255)
end
entity.colorSetup = true
end
function ITEM:OnInventoryDraw(entity)
entity.GetBatteryColor = function()
local color = PLUGIN.chargeIndicatorColors[self:GetData("charge", 0)] or Color(255, 0, 0)
return Vector(color.r / 255, color.g / 255, color.b / 255)
end
end
matproxy.Add({
name = "BatteryColor",
init = function(self, mat, values)
self.ResultTo = values.resultvar
end,
bind = function(self, mat, ent)
if (ent.GetBatteryColor) then
mat:SetVector(self.ResultTo, ent:GetBatteryColor())
end
end
})

View File

@@ -0,0 +1,28 @@
--[[
| 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 = "Data-Disk"
ITEM.model = "models/willardnetworks/gearsofindustry/wn_data_card.mdl"
ITEM.category = "Combine"
ITEM.description = "Küçük, veri depolamak için ince bir metalik disk."
function ITEM:GetSkin()
return self:GetData("item") and 0 or 1
end
function ITEM:PopulateTooltip(tooltip)
local item = self:GetData("item")
local itemPnl = tooltip:AddRow("item")
itemPnl:SetBackgroundColor(derma.GetColor(item and "Info" or "Error", tooltip))
itemPnl:SetText(item and "Kodlanmış Öğe: " .. ix.item.list[item].name or "Diskte Kodlanmış Veri Yok")
itemPnl:SizeToContents()
end

View File

@@ -0,0 +1,94 @@
--[[
| 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 = "Item Label"
ITEM.model = "models/props_lab/box01a.mdl"
ITEM.description = "A label that can be applied on any item to change its name & description."
function ITEM:GetName()
local name = self:GetData("labelInfoName")
return self.name .. (name and (" \"" .. name .. "\"") or "")
end
function ITEM:GetDescription()
local description = self:GetData("labelInfoDesc")
return self.description .. (description and (" It reads: \"" .. description .. "\"") or "")
end
ITEM.functions.editAName = { -- Sorry, I wanted it at the top
name = "Edit Name",
icon = "icon16/tag_blue_edit.png",
OnRun = function(item, data)
local client = item.player
client:RequestString("Edit Label Name", "Bu etiketin sahip olması gereken adı girin:", function(name)
item:SetData("labelInfoName", name)
client:Notify("Bu etiketin adını değiştirdiniz.")
end, "")
return false
end
}
ITEM.functions.editDesc = {
name = "Edit Description",
icon = "icon16/tag_blue_edit.png",
OnRun = function(item, data)
local client = item.player
client:RequestString("Edit Label Description", "Bu etiketin sahip olması gereken açıklamayı girin:", function(description)
item:SetData("labelInfoDesc", description)
client:Notify("Bu etiketin adını değiştirdiniz.")
end, "")
return false
end
}
ITEM.functions.combined = {
OnRun = function(item, data)
local targetItem = ix.item.instances[data[1]]
if (!targetItem) then return false end
if (targetItem.functions.combine) then
client:Notify("Bu öğeye etiket uygulayamazsınız!")
return false
end
local client = item.player
if (targetItem.uniqueID == "itemlabel") then
client:Notify("Bir etiketi başka bir etikete uygulayamazsınız!")
return false
end
local name = item:GetData("labelInfoName", false)
local description = item:GetData("labelInfoDesc", false)
if (!name and !description) then
client:Notify("Etiket boş!")
return false
end
targetItem:SetData("labelName", name)
targetItem:SetData("labelDescription", description)
client:Notify("Etiketi şuna uyguladınız: " .. targetItem.name .. ".")
end,
OnCanRun = function(item, data)
return true
end
}