mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-19 14:43:47 +03:00
Upload
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
--[[
|
||||
| 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.uniqueID = "comp_adhesive"
|
||||
ITEM.name = "Buteleczka mocnego kleju"
|
||||
ITEM.description = "Pomarańczowa buteleczka zawierająca bardzo lepki materiał. Bardzo trudny do usunięcia po nałożeniu i upływie czasu, aby się osadził."
|
||||
ITEM.category = "Crafting"
|
||||
ITEM.model = "models/willardnetworks/props/spicyglue.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(98.4, 229.73, 85.26),
|
||||
ang = Angle(17.97, 246.81, 0),
|
||||
fov = 2.21
|
||||
}
|
||||
ITEM.colorAppendix = {["blue"] = "Ten przedmiot można stworzyć dzięki umiejętności Medycyny."}
|
||||
ITEM.maxStackSize = 24
|
||||
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
| 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.uniqueID = "comp_alcohol"
|
||||
ITEM.name = "Alkohol"
|
||||
ITEM.description = "Czysty alkohol wyekstraktowany z napoju alkoholowego."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/food/prop_bar_bottle_e.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "Ten przedmiot można stworzyć dzięki umiejętności Medycyny."}
|
||||
ITEM.maxStackSize = 24
|
||||
@@ -0,0 +1,38 @@
|
||||
--[[
|
||||
| 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.uniqueID = "antidote"
|
||||
ITEM.name = "Antidotum"
|
||||
ITEM.description = "Dziwaczna strzykawka wypełniona fioletowym płynem mogącym obniżyć poziom toksyn w organizmie."
|
||||
ITEM.category = "Medical"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/medx.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "Ten przedmiot można stworzyć dzięki umiejętności Medycyny.", ["red"] = "Ten przedmiot może obniżyć ilość „gazu” w postaci."}
|
||||
ITEM.useSound = "medicina/nmrih_syringe.ogg"
|
||||
|
||||
ITEM.functions.Use = {
|
||||
name = "Zastosuj",
|
||||
OnRun = function(item)
|
||||
local client = item.player
|
||||
local character = item.player:GetCharacter()
|
||||
|
||||
client:EmitSound(item.useSound)
|
||||
|
||||
if character:GetGasPoints() >= 120 then
|
||||
client:ChatNotifyLocalized("Wstrzykujesz antidotum do swojego ciała... jednak nie czujesz się inaczej. *Nie już nie mogę zrobić, to jest już właśnie koniec...*")
|
||||
elseif (character:GetGasPoints() - 45 <= 0) then
|
||||
character:SetGasPoints(0)
|
||||
client:ChatNotifyLocalized("Czujesz się teraz o wiele lepiej!")
|
||||
else
|
||||
character:SetGasPoints(character:GetGasPoints() - 45)
|
||||
end
|
||||
end
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
--[[
|
||||
| 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.uniqueID = "comp_bloodsyringe"
|
||||
ITEM.name = "Strzykawka z krwią"
|
||||
ITEM.description = "Strzykawka wypełniona ludzką krwią."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/syringeammo.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "Ten przedmiot można stworzyć dzięki umiejętności Medycyny."}
|
||||
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
| 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.uniqueID = "comp_chemcomp"
|
||||
ITEM.name = "Silny związek chemiczny"
|
||||
ITEM.description = "Butelka z rafinowaną substancją chemiczną. Może być rozbita na oddzielne związki chemiczne."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/medjar.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "Ten przedmiot można stworzyć dzięki umiejętności Medycyny."}
|
||||
ITEM.maxStackSize = 16
|
||||
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
| 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.uniqueID = "comp_chemicals"
|
||||
ITEM.name = "Butelka z chemikaliami"
|
||||
ITEM.description = "Butelka z resztkami nierafinowanej substancji chemicznej. Można ją przerobić na coś bardziej użytecznego."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/props/glue.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "Ten przedmiot można stworzyć dzięki umiejętności Medycyny."}
|
||||
ITEM.maxStackSize = 24
|
||||
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
| 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.uniqueID = "comp_purifier"
|
||||
ITEM.name = "Oczyszczacz"
|
||||
ITEM.description = "Dziwny proszek, który może oczyścić każdą mieszaninę lub substancję z wszelkich toksycznych związków."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/pill_bottle.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "Ten przedmiot można stworzyć dzięki umiejętności Medycyny."}
|
||||
ITEM.maxStackSize = 16
|
||||
@@ -0,0 +1,144 @@
|
||||
--[[
|
||||
| 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.uniqueID = "comp_syringe"
|
||||
ITEM.name = "Strzykawka"
|
||||
ITEM.description = "Strzykawka w której możesz trzymać płyn, przydatna do zabiegów medycznych."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/syringeammo.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "Ten przedmiot można stworzyć dzięki umiejętności Wytwarzania."}
|
||||
ITEM.useSound = "items/medshot4.wav"
|
||||
ITEM.openedItem = "comp_bloodsyringe"
|
||||
ITEM.openRequirementAmount = 1
|
||||
|
||||
ITEM.functions.DrawBlood = {
|
||||
name = "Pobierz krew",
|
||||
OnRun = function(item)
|
||||
local client = item.player
|
||||
|
||||
ix.chat.Send(client, "me", "zaczyna pobierać z siebie krew!")
|
||||
client:Freeze(true)
|
||||
client:SetAction("Drawing Blood", 5, function()
|
||||
client:Freeze(false)
|
||||
|
||||
if client:Health() <= 10 then
|
||||
client:NotifyLocalized("Nie masz wystarczająco dużo punktów zdrowia, aby bezpiecznie pobrać krew.")
|
||||
return false
|
||||
end
|
||||
|
||||
local inventory = client:GetCharacter():GetInventory()
|
||||
local requirementAmount = item.openRequirementAmount or 1
|
||||
|
||||
if item.openedItem then
|
||||
local openedItemName = ix.item.list[item.openedItem] and ix.item.list[item.openedItem].name or item.openedItem
|
||||
if not inventory:Add(item.openedItem, requirementAmount) then
|
||||
client:NotifyLocalized("Potrzebujesz "..requirementAmount.." slotów w ekwipunku dla strzykawki.")
|
||||
return false
|
||||
end
|
||||
|
||||
client:NotifyLocalized("Pobrałeś krew za pomocą "..item.name.." oraz otrzymałeś "..openedItemName)
|
||||
|
||||
client:SetHealth(client:Health() - 10)
|
||||
client:EmitSound(item.useSound)
|
||||
|
||||
item:Remove()
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end)
|
||||
|
||||
return false
|
||||
end,
|
||||
OnCanRun = function(item)
|
||||
local client = item.player
|
||||
return client:Health() > 10
|
||||
end
|
||||
}
|
||||
|
||||
ITEM.functions.DrawBloodTarget = {
|
||||
name = "Pobierz krew od kogoś",
|
||||
OnRun = function(item)
|
||||
local client = item.player
|
||||
local target = client:GetEyeTrace().Entity
|
||||
local startPos = target:GetPos()
|
||||
|
||||
if not target:IsPlayer() then
|
||||
client:NotifyLocalized("Musisz patrzeć na prawidłowy cel, aby pobrać jej krew.")
|
||||
return false
|
||||
end
|
||||
|
||||
ix.chat.Send(client, "me", "zaczyna pobierać krew z " .. target:GetName())
|
||||
client:Freeze(true)
|
||||
client:SetAction("Drawing Blood", 5, function()
|
||||
client:Freeze(false)
|
||||
|
||||
if target:Health() <= 10 then
|
||||
client:NotifyLocalized("Cel nie ma wystarczająco dużo punktów zdrowia, aby bezpiecznie pobrać krew.")
|
||||
return false
|
||||
end
|
||||
|
||||
if client:GetPos():Distance(target:GetPos()) > 150 then
|
||||
client:NotifyLocalized("Jesteś zbyt daleko od celu.")
|
||||
return false
|
||||
end
|
||||
|
||||
local inventory = client:GetCharacter():GetInventory()
|
||||
local requirementAmount = item.openRequirementAmount or 1
|
||||
|
||||
if item.openedItem then
|
||||
local openedItemName = ix.item.list[item.openedItem] and ix.item.list[item.openedItem].name or item.openedItem
|
||||
if not inventory:Add(item.openedItem, requirementAmount) then
|
||||
client:NotifyLocalized("Potrzebujesz "..requirementAmount.." slotów w ekwipunku dla strzykawki.")
|
||||
return false
|
||||
end
|
||||
|
||||
client:NotifyLocalized("Pobrałeś krew za pomocą "..item.name.." oraz otrzymałeś "..openedItemName)
|
||||
|
||||
target:SetHealth(target:Health() - 10)
|
||||
client:EmitSound(item.useSound)
|
||||
|
||||
item:Remove()
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end)
|
||||
|
||||
return false
|
||||
end,
|
||||
OnCanRun = function(item)
|
||||
local client = item.player
|
||||
local target = client:GetEyeTrace().Entity
|
||||
|
||||
if not target:IsPlayer() or target:Health() <= 10 then
|
||||
return false
|
||||
end
|
||||
|
||||
if client:GetPos():Distance(target:GetPos()) > 150 then
|
||||
client:NotifyLocalized("Jesteś zbyt daleko od celu.")
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
}
|
||||
|
||||
-- am doing this cuz im not sure if the item instances this function or not!! and am too lazy to check!
|
||||
ITEM.functions.Use = {
|
||||
OnRun = function(item)
|
||||
return false
|
||||
end,
|
||||
OnCanRun = function(item)
|
||||
return false
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user