mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +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 = "Bottle of Strong Adhesive"
|
||||
ITEM.description = "A orange bottle containing a very sticky material. Very hard to remove once placed down and given time to settle."
|
||||
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"] = "This item can be made with the Medicine skill."}
|
||||
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 = "Alcohol"
|
||||
ITEM.description = "Alcohol substance extracted from various alcholic beverages."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/food/prop_bar_bottle_e.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "You can acquire this item via the Medicine skill."}
|
||||
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 = "Antidote"
|
||||
ITEM.description = "A strange syringe filled with purple liquid can reduce toxin levels in your body.."
|
||||
ITEM.category = "Medical"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/medx.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "This item can be made through the Medical skill.", ["red"] = "This item can lower the amount of 'Gas' your character has."}
|
||||
ITEM.useSound = "medicina/nmrih_syringe.ogg"
|
||||
|
||||
ITEM.functions.Use = {
|
||||
name = "Apply",
|
||||
OnRun = function(item)
|
||||
local client = item.player
|
||||
local character = item.player:GetCharacter()
|
||||
|
||||
client:EmitSound(item.useSound)
|
||||
|
||||
if character:GetGasPoints() >= 120 then
|
||||
client:ChatNotifyLocalized("You inject the antidote in your body... but don't feel any different. *There's nothing else to be done, this is it for me...*")
|
||||
elseif (character:GetGasPoints() - 45 <= 0) then
|
||||
character:SetGasPoints(0)
|
||||
client:ChatNotifyLocalized("You feel a lot better now!")
|
||||
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 = "Blood Syringe"
|
||||
ITEM.description = "A syringe filled with human blood."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/syringeammo.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "This item can be made with the Medicine skill."}
|
||||
@@ -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 = "Strong Chemical Compound"
|
||||
ITEM.description = "A bottle of refined chemical matter. Can be broken down into separate chemical compounds."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/medjar.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "This item can be made with the Medicine skill."}
|
||||
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 = "Bottle of Chemicals"
|
||||
ITEM.description = "A bottle of leftover unrefined chemical matter. Can be refined into something more useful.."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/props/glue.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "You can acquire this item via the Medicine skill."}
|
||||
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 = "Purifier"
|
||||
ITEM.description = "Strange dust used to reduce toxic compounds in substances."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/pill_bottle.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "This item can be made with the Medicine skill."}
|
||||
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 = "Syringe"
|
||||
ITEM.description = "A syringe able to contain liquid-like substances, useful for medicinal purposes."
|
||||
ITEM.category = "Medicine Components"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.model = "models/willardnetworks/skills/syringeammo.mdl"
|
||||
ITEM.colorAppendix = {["blue"] = "This item can be made with the Crafting skill."}
|
||||
ITEM.useSound = "items/medshot4.wav"
|
||||
ITEM.openedItem = "comp_bloodsyringe"
|
||||
ITEM.openRequirementAmount = 1
|
||||
|
||||
ITEM.functions.DrawBlood = {
|
||||
name = "Draw Blood",
|
||||
OnRun = function(item)
|
||||
local client = item.player
|
||||
|
||||
ix.chat.Send(client, "me", "starts to draw blood from themselves!")
|
||||
client:Freeze(true)
|
||||
client:SetAction("Drawing Blood", 5, function()
|
||||
client:Freeze(false)
|
||||
|
||||
if client:Health() <= 10 then
|
||||
client:NotifyLocalized("You don't have enough health to draw blood safely.")
|
||||
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("You need "..requirementAmount.." inventory slot for the syringe")
|
||||
return false
|
||||
end
|
||||
|
||||
client:NotifyLocalized("You've extracted blood with the "..item.name.." and been given a "..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 = "Draw Blood from Someone",
|
||||
OnRun = function(item)
|
||||
local client = item.player
|
||||
local target = client:GetEyeTrace().Entity
|
||||
local startPos = target:GetPos()
|
||||
|
||||
if not target:IsPlayer() then
|
||||
client:NotifyLocalized("You need to look at a valid target to draw their blood.")
|
||||
return false
|
||||
end
|
||||
|
||||
ix.chat.Send(client, "me", "starts to draw blood from " .. target:GetName())
|
||||
client:Freeze(true)
|
||||
client:SetAction("Drawing Blood", 5, function()
|
||||
client:Freeze(false)
|
||||
|
||||
if target:Health() <= 10 then
|
||||
client:NotifyLocalized("The target doesn't have enough health to draw blood safely.")
|
||||
return false
|
||||
end
|
||||
|
||||
if client:GetPos():Distance(target:GetPos()) > 150 then
|
||||
client:NotifyLocalized("You are too far away from the target.")
|
||||
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("You need "..requirementAmount.." inventory slot for the syringe")
|
||||
return false
|
||||
end
|
||||
|
||||
client:NotifyLocalized("You've extracted blood with the "..item.name.." and been given a "..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("You are too far away from the target.")
|
||||
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