mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-18 22:23:46 +03:00
Upload
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
--[[
|
||||
| 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 = "Bandaże dla Vortigaunta"
|
||||
ITEM.description = "Dla rannego lub nie - bandaże spełnią swoją rolę."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_bandage.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Legs"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["hooks"] = 2 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
|
||||
ITEM.colorAppendix = {
|
||||
blue = "Pasuje na slot od kajdan",
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
--[[
|
||||
| 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 = "Bandana dla Vortigaunta"
|
||||
ITEM.description = "Dyskrecja to podstawa, nikt nie chciałby wiedzieć, że napada Cię Vortigaunt."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/head_facewrap.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-0.76, -0.13, 200),
|
||||
ang = Angle(90.05, 189.72, 0),
|
||||
fov = 2.5
|
||||
}
|
||||
ITEM.outfitCategory = "Glasses"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.bodyGroups = {
|
||||
["face"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
--[[
|
||||
| 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 = "Pas dla Vortigaunta"
|
||||
ITEM.description = "Pas stworzony do użytku przez ludzi, ale ciekawski Vortigaunt może go przymierzyć."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_belt.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Hands"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["meat"] = 3 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
|
||||
ITEM.colorAppendix = {
|
||||
blue = "Pasuje na slot na pas",
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
| 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 = "Kapelusz typu 'Boonie' dla Vortigaunta"
|
||||
ITEM.description = "Kapelusz z szerokim rondem. Utrzymuje słońce z dala od głowy Vortigaunta."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/head_boonie.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.iconCam = {
|
||||
ang = Angle(25.370000839233,399.98999023438,0),
|
||||
pos = Vector(-138.86999511719,-116.79000091553,85.76000213623),
|
||||
fov = 3.82,
|
||||
}
|
||||
ITEM.outfitCategory = "Head"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["head"] = 6 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
| 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 = "Czapka szefa kuchni dla Vortigaunta"
|
||||
ITEM.description = "Vortigaunty znane są z ich zamiłowania do gotowania, tym razem mogą to nawet pokazać przez swój ubiór."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/head_chefhat.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-138.87, -116.79, 85.76),
|
||||
ang = Angle(25.28, 400.12, 0),
|
||||
fov = 4.26
|
||||
}
|
||||
ITEM.outfitCategory = "Head"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["head"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
--[[
|
||||
| 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 = "Fedora dla Vortigaunta"
|
||||
ITEM.description = "Rzadko spotykany stylowy kapelusz przywodzący na myśl minione czasy, z pewnością żadna żywa istota nie spodziewałaby się zobaczyć Vortigaunta z taką dripuwą."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/fedora_item.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Head"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.iconCam = {
|
||||
ang = Angle(25,220.0299987793,0),
|
||||
pos = Vector(509.64001464844,427.60998535156,310.23999023438),
|
||||
fov = 1.06,
|
||||
}
|
||||
ITEM.bodyGroups = {
|
||||
["head"] = 5 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Kaszkiet dla Vortigaunta"
|
||||
ITEM.description = "Stylowy oldschoolowy kaszkiet, który płasko leży na głowie... Niektóre Vortigaunty mają wysublimowany gust."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/head_hat2.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Head"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["head"] = 4 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Czapka budowlana dla Vortigaunta"
|
||||
ITEM.description = "Oznaczona znakiem Kombinatu z tyłu, te czapki budowlane są często noszone przez Civil Worker's Union."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/workercap_item.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Head"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["head"] = 3 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
| 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 = "Hełm Vortigaunta"
|
||||
ITEM.description = "Ochrona przed praktycznością, z dużą ilością szczęścia przeciwnik będzie mierzył troche wyżej."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/head_helmet.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-117.67, -98.6, 71.58),
|
||||
ang = Angle(25, 400, 0),
|
||||
fov = 4.42
|
||||
}
|
||||
ITEM.outfitCategory = "Head"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["head"] = 2 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Pas z pożywienia"
|
||||
ITEM.description = "Kolekcja smakowitych skór z headcraba, zebrana z zakątków.."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/n7/vorti_outfit/meat01.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Hands"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["meat"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Pas z mięsem z obrzeży"
|
||||
ITEM.description = "Bardzo trudne do zdobycia oraz bardzo cenne w tych czasach."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/n7/vorti_outfit/meat02.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Hands"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["meat"] = 2 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
--[[
|
||||
| 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 = "Obroża Vortigaunta"
|
||||
ITEM.description = "Ciężka, metalowa obroża z obcą technologią w środku. Po jej założeniu manipulacja energią Vortigaunta jest tłumiona. Nie można jej zdjąć bez specjalnych narzędzi."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/vortigaunt_collar.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Face"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = true
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["collar"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
|
||||
function ITEM:GetColorAppendix()
|
||||
return {
|
||||
["red"] = "ID Obroży: " .. self:GetData("collarID", "UNKNOWN")
|
||||
}
|
||||
end
|
||||
|
||||
function ITEM:OnInstanced()
|
||||
self:SetData("Locked", false)
|
||||
end
|
||||
|
||||
function ITEM:OnEquip(client)
|
||||
local vortPlugin = ix.plugin.Get("vortigaunts")
|
||||
local character = client:GetCharacter()
|
||||
local genericdata = character:GetGenericdata()
|
||||
|
||||
if character:GetFaction() != FACTION_VORT then return end
|
||||
|
||||
if self:GetData("collarID") == nil then
|
||||
self:SetData("collarID", tostring(vortPlugin:GenerateCollarID(character.id)))
|
||||
end
|
||||
|
||||
self:SetData("Locked", true)
|
||||
|
||||
character:SetCollarID(self:GetData("collarID"))
|
||||
character:SetCollarItemID(self:GetID())
|
||||
|
||||
if genericdata and genericdata.collarID == "N/A" then
|
||||
genericdata.collarID = character:GetCollarID()
|
||||
|
||||
character:SetGenericdata(genericdata)
|
||||
character:Save()
|
||||
end
|
||||
|
||||
if client:HasWeapon("ix_nightvision") then
|
||||
client:StripWeapon( "ix_nightvision" )
|
||||
end
|
||||
|
||||
if client:HasWeapon("ix_vortbeam") then
|
||||
client:StripWeapon( "ix_vortbeam" )
|
||||
end
|
||||
|
||||
if client:HasWeapon("ix_vortheal") then
|
||||
client:StripWeapon( "ix_vortheal" )
|
||||
end
|
||||
|
||||
if client:HasWeapon("ix_vshield") then
|
||||
client:StripWeapon( "ix_vshield" )
|
||||
end
|
||||
|
||||
if client:HasWeapon("ix_vmelee") then
|
||||
client:StripWeapon("ix_vmelee")
|
||||
end
|
||||
|
||||
if client:HasWeapon("ix_vortpyro") then
|
||||
client:StripWeapon( "ix_vortpyro" )
|
||||
end
|
||||
|
||||
if client:HasWeapon("ix_vortslam") then
|
||||
client:StripWeapon( "ix_vortslam" )
|
||||
end
|
||||
|
||||
if client:HasWeapon("ix_vortadvancedbeam") then
|
||||
client:StripWeapon( "ix_vortadvancedbeam" )
|
||||
end
|
||||
|
||||
client:Give("ix_vortsweep")
|
||||
|
||||
if (character:GetBackground() != "Kolaborator") then
|
||||
character:SetBackground("Biotyk")
|
||||
end
|
||||
|
||||
local worldmodel = ents.FindInSphere(client:GetPos(), 1);
|
||||
|
||||
for _, v in pairs(worldmodel) do
|
||||
if (v:GetClass() == "ix_nvlight" and v:GetOwner() == client) then
|
||||
v:Remove()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:OnLoadout()
|
||||
if (self:GetData("equip")) then
|
||||
local client = self.player
|
||||
local character = client:GetCharacter()
|
||||
character:SetCollarID(self:GetData("collarID"))
|
||||
character:SetCollarItemID(self:GetID())
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:OnUnEquip(client)
|
||||
local character = client:GetCharacter()
|
||||
|
||||
if character:GetFaction() != FACTION_VORT then return end
|
||||
|
||||
self:SetData("Locked", false)
|
||||
|
||||
character:SetCollarID(nil)
|
||||
character:SetCollarItemID(nil)
|
||||
|
||||
if client:HasWeapon("ix_vortsweep") then
|
||||
client:StripWeapon( "ix_vortsweep" )
|
||||
|
||||
if client.broomModel then
|
||||
client.broomModel:Remove()
|
||||
end
|
||||
end
|
||||
|
||||
client:Give("ix_nightvision")
|
||||
client:Give("ix_vortbeam")
|
||||
client:Give("ix_vortheal")
|
||||
client:Give("ix_vshield")
|
||||
client:Give("ix_vortslam")
|
||||
|
||||
if (character:GetBackground() != "Kolaborator") then
|
||||
character:SetBackground("Uwolniony")
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:CanEquipOutfit(client)
|
||||
local player = self.player or client
|
||||
local bgItems = player:GetCharacter():GetInventory():GetItemsByBase("base_bgclothes", true)
|
||||
for _, v in ipairs(bgItems) do
|
||||
if (v:GetData("equip") and v.maxArmor) then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
if !player:HasWhitelist(ix.faction.teams["vortigaunt"].index) then
|
||||
player:NotifyLocalized("Nie jesteś na whiteliście frakcji vortigaunt, nie ma to dla Ciebie żadnego użytku!")
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
ITEM:Hook("drop", function(item)
|
||||
if item:GetData("Locked") == true then
|
||||
item.player:NotifyLocalized("Obroża jest zamknięta, nie możesz jej upuścić!")
|
||||
return false
|
||||
end
|
||||
|
||||
if (item:GetData("equip")) then
|
||||
item:OnUnEquip(item.player)
|
||||
item:RemoveOutfit(item:GetOwner())
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,112 @@
|
||||
--[[
|
||||
| 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 = "Obroża Vortigaunta (fałszywa)"
|
||||
ITEM.description = "Ciężka, metalowa obroża z obcą technologią w środku. Po jej założeniu manipulacja energią Vortigaunta jest tłumiona. Nie można jej zdjąć bez specjalnych narzędzi."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/vortigaunt_collar.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Face"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = true
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["collar"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
|
||||
if (CLIENT) then
|
||||
function ITEM:GetName()
|
||||
if LocalPlayer():GetCharacter() then
|
||||
if LocalPlayer():GetMoveType() == MOVETYPE_NOCLIP or LocalPlayer():GetCharacter():GetFaction() == FACTION_VORT then
|
||||
return self.name
|
||||
end
|
||||
end
|
||||
|
||||
return string.sub( self.name, 1, string.len(self.name) - 7 )
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:GetColorAppendix()
|
||||
return {
|
||||
["red"] = "ID Obroży: " .. self:GetData("collarID", "UNKNOWN")
|
||||
}
|
||||
end
|
||||
|
||||
function ITEM:OnInstanced()
|
||||
self:SetData("Locked", false)
|
||||
end
|
||||
|
||||
function ITEM:OnEquip(client)
|
||||
local character = client:GetCharacter()
|
||||
|
||||
if (character:GetFaction() != FACTION_VORT) then
|
||||
return
|
||||
end
|
||||
|
||||
if (!self:GetData("collarOriginalOwnerCharacterID", nil) or self:GetData("collarID", nil) != character:GetCollarID() and self:GetData("collarOriginalOwnerCharacterID", nil)) then
|
||||
if (!self:GetData("collarID", nil)) then
|
||||
self:SetData("collarID", tostring(PLUGIN:GenerateCollarID(character.id)))
|
||||
self:SetData("collarOriginalOwnerCharacterID", character.id)
|
||||
elseif (character:GetData("CanResetFakeCollarDatafile") != false) then
|
||||
ix.plugin.list.combineutilities:CreateDatafile(client)
|
||||
|
||||
character:SetCollarID(self:GetData("collarID"))
|
||||
character:SetCollarItemID(self:GetID())
|
||||
|
||||
character:SetData("CanResetFakeCollarDatafile", false)
|
||||
|
||||
client:Notify("Poprzednie informacje z pliku danych zostały wymazane, generując nowe dane..")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:OnLoadout()
|
||||
if (self:GetData("equip")) then
|
||||
local client = self:GetOwner()
|
||||
local character = client:GetCharacter()
|
||||
|
||||
if (character:GetFaction() != FACTION_VORT) then return end
|
||||
|
||||
if (self:GetData("collarID", nil) and character:GetCollarID() != self:GetData("collarID") and character:GetData("CanResetFakeCollarDatafile") != false) then
|
||||
character:SetCollarID(self:GetData("collarID"))
|
||||
character:SetCollarItemID(self:GetID())
|
||||
end
|
||||
|
||||
self:Unequip(self:GetOwner())
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:CanEquipOutfit(client)
|
||||
local character = client:GetCharacter()
|
||||
|
||||
if (client:Team() != FACTION_VORT) then
|
||||
player:NotifyLocalized("Nie jesteś na whiteliście frakcji vortigaunt, nie ma to dla Ciebie żadnego użytku!")
|
||||
return false
|
||||
elseif (self:GetData("collarID", "N/A") != character:GetCollarID() and character:GetData("CanResetFakeCollarDatafile") == false) then
|
||||
client:Notify("Wyposażasz się w inną fałszywą obrożę, lecz plik danych się nie odnawia.")
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
function ITEM:OnUnEquip(client)
|
||||
end
|
||||
|
||||
ITEM:Hook("drop", function(item)
|
||||
local owner = item:GetOwner()
|
||||
|
||||
if (item:GetData("equip")) then
|
||||
item:OnUnEquip(owner)
|
||||
item:RemoveOutfit(owner)
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,46 @@
|
||||
--[[
|
||||
| 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 = "Haki Vortigaunta"
|
||||
ITEM.description = "Podstawowy element obroży oraz kajdanek, ociskają nogi Vortigaunta sprawiając mu ból."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/vortigaunt_hooks.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Shoes"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = true
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["hooks"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
|
||||
function ITEM:OnInstanced()
|
||||
self:SetData("Locked", false)
|
||||
end
|
||||
|
||||
function ITEM:OnEquip(client)
|
||||
self:SetData("Locked", true)
|
||||
end
|
||||
|
||||
function ITEM:OnUnEquip()
|
||||
self:SetData("Locked", false)
|
||||
end
|
||||
|
||||
ITEM:Hook("drop", function(item)
|
||||
if item:GetData("Locked") == true then
|
||||
item.player:NotifyLocalized("Twoja obroża jest zablokowana co oznacza, że nie możesz upuścić haków!")
|
||||
return false
|
||||
end
|
||||
|
||||
if (item:GetData("equip")) then
|
||||
item:RemoveOutfit(item:GetOwner())
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,35 @@
|
||||
--[[
|
||||
| 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 = "Haki Vortigaunta (fałszywe)"
|
||||
ITEM.description = "Podstawowy element obroży oraz kajdanek, ociskają nogi Vortigaunta sprawiając mu ból."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/vortigaunt_hooks.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Shoes"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = true
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["hooks"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
|
||||
if (CLIENT) then
|
||||
function ITEM:GetName()
|
||||
if LocalPlayer():GetCharacter() then
|
||||
if LocalPlayer():GetMoveType() == MOVETYPE_NOCLIP or LocalPlayer():GetCharacter():GetFaction() == FACTION_VORT then
|
||||
return self.name
|
||||
end
|
||||
end
|
||||
|
||||
return string.sub( self.name, 1, string.len(self.name) - 7 )
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,46 @@
|
||||
--[[
|
||||
| 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 = "Kajdany Vortigaunta"
|
||||
ITEM.description = "Metalowe kajdany połączone ze sobą, sprawiają bół podczas noszenia. Po założeniu nie można ich zdjąć."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/vortigaunt_shackles.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Legs"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = true
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["shackles"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
|
||||
function ITEM:OnInstanced()
|
||||
self:SetData("Locked", false)
|
||||
end
|
||||
|
||||
function ITEM:OnEquip(client)
|
||||
self:SetData("Locked", true)
|
||||
end
|
||||
|
||||
function ITEM:OnUnEquip()
|
||||
self:SetData("Locked", false)
|
||||
end
|
||||
|
||||
ITEM:Hook("drop", function(item)
|
||||
if item:GetData("Locked") == true then
|
||||
item.player:NotifyLocalized("Twoja obroża jest zablokowana co oznacza, że nie możesz upuścić kajdan!")
|
||||
return false
|
||||
end
|
||||
|
||||
if (item:GetData("equip")) then
|
||||
item:RemoveOutfit(item:GetOwner())
|
||||
end
|
||||
end)
|
||||
@@ -0,0 +1,35 @@
|
||||
--[[
|
||||
| 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 = "Kajdany Vortigaunta (fałszywe)"
|
||||
ITEM.description = "Metalowe kajdany połączone ze sobą, sprawiają bół podczas noszenia. Po założeniu nie można ich zdjąć."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/vortigaunt_shackles.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Legs"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = true
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["shackles"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
|
||||
if (CLIENT) then
|
||||
function ITEM:GetName()
|
||||
if LocalPlayer():GetCharacter() then
|
||||
if LocalPlayer():GetMoveType() == MOVETYPE_NOCLIP or LocalPlayer():GetCharacter():GetFaction() == FACTION_VORT then
|
||||
return self.name
|
||||
end
|
||||
end
|
||||
|
||||
return string.sub( self.name, 1, string.len(self.name) - 7 )
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,23 @@
|
||||
--[[
|
||||
| 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 = "Płyta z Antlion Guarda dla Vortigaunta"
|
||||
ITEM.description = "Stworzona z pancerza antilion guarda nie tylko zapewnia pancerz ale również pokazuje prawdziwego wojownika."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/n7/vorti_outfit/armor.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.maxArmor = 50
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 8 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Uniform roboczy dla Vortigaunta"
|
||||
ITEM.description = "Uniform z oznaczeniami Kombinatu. Wystarczający by zidentyfikować pracującego Vortigaunta."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_sweater_cwu.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 10 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Fartuch Vortigaunta z odznaką"
|
||||
ITEM.description = "Strój dla Vortigaunta naukowca, ten jest razem z odznaką."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_doc.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 3 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Fartuch Vortigaunta"
|
||||
ITEM.description = "Strój dla Vortigaunta naukowca."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_doc.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 2 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Bluza Vortigaunta"
|
||||
ITEM.description = "Specjalnie zrobiona bluza z dłuższą szyją tak aby pasowała na Vortigaunta, utrzyma go przy cieple nawet w najtrudniejszych warunkach."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_sweater.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 7 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Ponczo Vortigaunta"
|
||||
ITEM.description = "Ponczo stworzone ze znalezionych kawałków materiału pozszywanego razem ze sobą. Luźny design i wygodne wycięcia pozwalają na komfort i swobodę ruchów."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/n7/vorti_outfit/light01.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 4 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Własnoręczna narzuta Vortigaunta"
|
||||
ITEM.description = "Proste, zwykłe okrycie. Dobre do tego, by zapewnić ci przytulność w chłodną noc i niewiele więcej."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/n7/vorti_outfit/light02.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 5 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -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 = "Brązowy prochowiec Vortigaunta"
|
||||
ITEM.description = "Blady wytarty prochowiec, pomoże Vortigauntowi wtopić się w tłum."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/clothingitems/torso_refugee_coat.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-39.23, -7.19, 195.95),
|
||||
ang = Angle(77.11, 10.12, 0),
|
||||
fov = 4.05
|
||||
}
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.maxArmor = 25
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 1 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--[[
|
||||
| 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 = "Sweter dla Vortigaunta"
|
||||
ITEM.description = "Sweter stworzony dla ludzi... Ciekawski Vortigaunt może go podstępnie założyć. Idealny, aby utrzymać ciepło w nawet najtrudniejszych warunkach."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_sweater.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 9 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
--[[
|
||||
| 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 = "Pancerz Vortigaunta"
|
||||
ITEM.description = "Nie ma strachu przed ciemnościa jednak też nie ma powodu aby szybciej ją zobaczyć, podstawowy zestaw pancerza używany przez ludzi."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/props_c17/BriefCase001a.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Torso"
|
||||
ITEM.maxArmor = 25
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["torso"] = 6 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
--[[
|
||||
| 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 = "Brązowe spodnie dla Vortigaunta"
|
||||
ITEM.description = "Nawet pozaziemskie istoty wiedzą, że bez spodni ani rusz."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_pants.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Legs"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = false
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["shackles"] = 2 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
ITEM.colorAppendix = {
|
||||
blue = "Pasuje do gniazda kajdan",
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
--[[
|
||||
| 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 = "Ciemne spodnie dla Vortigaunta"
|
||||
ITEM.description = "Nawet pozaziemskie istoty wiedzą, że bez spodni ani rusz."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_pants2.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Legs"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = false
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["shackles"] = 3 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
--[[
|
||||
| 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 = "Granatowe spodnie dla Vortigaunta"
|
||||
ITEM.description = "Nawet pozaziemskie istoty wiedzą, że bez spodni ani rusz."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_pants3.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Legs"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = false
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["shackles"] = 4 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
--[[
|
||||
| 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 = "Ciemnoszare spodnie dla Vortigaunta"
|
||||
ITEM.description = "Nawet pozaziemskie istoty wiedzą, że bez spodni ani rusz."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.model = "models/willardnetworks/vort_clothingitems/vort_pants4.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.outfitCategory = "Legs"
|
||||
ITEM.factionList = {FACTION_VORT}
|
||||
ITEM.KeepOnDeath = false
|
||||
|
||||
ITEM.bodyGroups = {
|
||||
["shackles"] = 5 -- The actual name of the bodypart, then number in that bodypart (model-wise)
|
||||
}
|
||||
126
gamemodes/ixhl2rp/plugins/vortigaunts/items/sh_shackleskey.lua
Normal file
126
gamemodes/ixhl2rp/plugins/vortigaunts/items/sh_shackleskey.lua
Normal file
@@ -0,0 +1,126 @@
|
||||
--[[
|
||||
| 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 = "Klucz do kajdan"
|
||||
ITEM.model = "models/willardnetworks/props/vortkey.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.description = "Klucz do odblokowania elementów kajdan Vortigaunta."
|
||||
ITEM.category = "Vortigaunt"
|
||||
ITEM.colorAppendix = {["red"] = "Powinien być użyty tylko w Nexusie! Jest to przedmiot jednorazowego użytku."}
|
||||
|
||||
local usedOnItems = {"Obroża Vortigaunta", "Kajdany Vortigaunta", "Haki Vortigaunta"}
|
||||
|
||||
ITEM.functions.use = {
|
||||
name = "Użyj na sobie",
|
||||
tip = "applyTip",
|
||||
icon = "icon16/key.png",
|
||||
OnCanRun = function(item)
|
||||
if (item.entity) then return false end
|
||||
|
||||
local client = item.player
|
||||
if (client:GetMoveType() != MOVETYPE_NOCLIP or client:InVehicle()) then return false end
|
||||
|
||||
return CAMI.PlayerHasAccess(client, "Helix - Shackles Self Release")
|
||||
end,
|
||||
OnRun = function(item)
|
||||
local character = item.player:GetCharacter()
|
||||
local foundSomething = false
|
||||
local collarID = false
|
||||
if character:IsVortigaunt() then
|
||||
for _, v in pairs(character:GetInventory():GetItems()) do
|
||||
if table.HasValue( usedOnItems, v.name ) and v:GetData("equip") == true and v:GetData("Locked") then
|
||||
if v:GetData("collarID") then
|
||||
collarID = v:GetData("collarID")
|
||||
end
|
||||
v:SetData("Locked", false)
|
||||
foundSomething = true
|
||||
end
|
||||
end
|
||||
|
||||
if foundSomething then
|
||||
ix.combineNotify:AddImportantNotification(collarID and "WRN:// Klucz został użyty na biotyku z ID obroży: #" .. collarID or "WRN:// Klucz został użyty na biotyku z nieznanym ID obroży.", Color(255, 81, 0), item.player, item.player:GetPos())
|
||||
item.player:NotifyLocalized("Twoje kajdany nie są już zamknięte i możesz je zdjąć.")
|
||||
return false
|
||||
else
|
||||
item.player:NotifyLocalized("Nie masz na sobie żadnych zamkniętych kajdan...")
|
||||
return false
|
||||
end
|
||||
else
|
||||
item.player:NotifyLocalized("Nie jesteś Vortigauntem!")
|
||||
return false
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
ITEM.functions.give = {
|
||||
name = "Użyj na postaci",
|
||||
tip = "giveTip",
|
||||
icon = "icon16/key_go.png",
|
||||
OnCanRun = function(item)
|
||||
if (item.entity) then return false end
|
||||
|
||||
local trace = item.player:GetEyeTraceNoCursor()
|
||||
local target = trace.Entity
|
||||
if (!IsValid(target)) then
|
||||
return false
|
||||
end
|
||||
|
||||
if (CLIENT and target:GetClass() == "prop_ragdoll") then
|
||||
return true
|
||||
end
|
||||
|
||||
if (IsValid(target.ixPlayer)) then
|
||||
target = target.ixPlayer
|
||||
end
|
||||
|
||||
if (!target:IsPlayer() or !target:GetCharacter()) then
|
||||
return false
|
||||
end
|
||||
end,
|
||||
OnRun = function(item)
|
||||
local target = item.player:GetEyeTraceNoCursor().Entity
|
||||
if (!IsValid(target)) then
|
||||
return false
|
||||
end
|
||||
|
||||
if (IsValid(target.ixPlayer)) then
|
||||
target = target.ixPlayer
|
||||
end
|
||||
|
||||
local targetChar = target:GetCharacter()
|
||||
local foundSomething = false
|
||||
local collarID = false
|
||||
|
||||
if targetChar:IsVortigaunt() then
|
||||
for _, v in pairs(targetChar:GetInventory():GetItems()) do
|
||||
if table.HasValue( usedOnItems, v.name ) and v:GetData("equip") and v:GetData("Locked") then
|
||||
if v:GetData("collarID") then
|
||||
collarID = v:GetData("collarID")
|
||||
end
|
||||
v:SetData("Locked", false)
|
||||
foundSomething = true
|
||||
end
|
||||
end
|
||||
|
||||
if foundSomething then
|
||||
ix.combineNotify:AddImportantNotification(collarID and "WRN:// Klucz został użyty na biotyku z ID obroży: #" .. collarID or "WRN:// Klucz został użyty na biotyku z nieznanym ID obroży.", Color(255, 81, 0), item.player, item.player:GetPos())
|
||||
item.player:NotifyLocalized("Jego kajdany nie są już zamknięte i może je zdjąć.")
|
||||
else
|
||||
item.player:NotifyLocalized("Nie ma na sobie żadnych zamkniętych kajdan.")
|
||||
end
|
||||
else
|
||||
item.player:NotifyLocalized("Jest nie jest vortigauntem!")
|
||||
end
|
||||
|
||||
item.player:EmitSound("physics/metal/metal_box_strain1.wav", 110)
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user