mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-18 22:23:46 +03:00
Upload
This commit is contained in:
21
gamemodes/ixhl2rp/plugins/armbands/cl_hooks.lua
Normal file
21
gamemodes/ixhl2rp/plugins/armbands/cl_hooks.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
function PLUGIN:PopulateCharacterInfo(client, character, tooltip)
|
||||
local armbandData = client:GetNetVar("armbands", {})
|
||||
|
||||
for armband, color in pairs(armbandData) do
|
||||
local panel = tooltip:AddRow("armband")
|
||||
panel:SetBackgroundColor(color)
|
||||
panel:SetText("Nosi na ramieniu " .. armband)
|
||||
panel:SizeToContents()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Czarna opaska"
|
||||
ITEM.description = "Kawałek taniego czarnego materiału, wyglądający na oderwany z niegdyś porządnego ubrania. Brzegi są wciąż szorstkie i postrzępione. Emanuje pogardą lub lekceważeniem wobec tych, którzy zdecydują się ją założyć."
|
||||
ITEM.color = Color(200, 200, 200)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Niebieska opaska lojalistyczna"
|
||||
ITEM.description = "Niebieska opaska służąca do identyfikacji statusu lojalistycznego."
|
||||
ITEM.color = Color(50, 50, 255)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Zielona opaska lojalistyczna"
|
||||
ITEM.description = "Zielona opaska służąca do identyfikacji statusu lojalistycznego."
|
||||
ITEM.color = Color(0, 255, 0)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Jasnoszara opaska"
|
||||
ITEM.description = "Kawałek materiału, który otacza ramię. Kolor matowy jasnoszary, nie wydaje się być niczym specjalnym."
|
||||
ITEM.color = Color(145, 145, 145)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Brown ICOBT Armband"
|
||||
ITEM.description = "A brown armband wrapped around the arm, representing the values and membership of the ICOBT."
|
||||
ITEM.color = Color(144, 74, 59)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Pomarańczowa opaska lojalistyczna"
|
||||
ITEM.description = "Pomarańczowa opaska służąca do identyfikacji statusu lojalistycznego."
|
||||
ITEM.color = Color(255, 100, 0)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Fioletowa opaska CAB"
|
||||
ITEM.description = "Opaska służąca do identyfikacji statusu lojalistycznego. Przeznaczona dla członków Civil Authority Board."
|
||||
ITEM.color = Color(150, 0, 255)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Czerwona opaska lojalistyczna"
|
||||
ITEM.description = "Czerwona opaska służąca do identyfikacji statusu lojalistycznego."
|
||||
ITEM.color = Color(255, 0, 0)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Biała opaska lojalistyczna"
|
||||
ITEM.description = "Biała opaska służąca do identyfikacji statusu lojalistycznego."
|
||||
ITEM.color = Color(255, 255, 255)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Biała opaska kolaboranta z gwieździstą wstążką"
|
||||
ITEM.description = "Kawałek białego materiału noszony na ramieniu. Wygląda na to, że ma przyklejony ozdobny medal z gwiazdą i wstążką dookoła."
|
||||
ITEM.color = Color(255, 255, 255)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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 = "Żółta opaska lojalistyczna"
|
||||
ITEM.description = "Żółta opaska służąca do identyfikacji statusu lojalistycznego."
|
||||
ITEM.color = Color(255, 255, 0)
|
||||
@@ -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.base = "base_genericequipable"
|
||||
ITEM.name = "Armband"
|
||||
ITEM.description = "Kawałek materiału noszony na ramieniu."
|
||||
ITEM.model = "models/willardnetworks/armband.mdl"
|
||||
ITEM.category = "misc"
|
||||
ITEM.color = Color(255, 255, 255)
|
||||
|
||||
if (CLIENT) then
|
||||
function ITEM:PopulateTooltip(tooltip)
|
||||
local name = tooltip:GetRow("name")
|
||||
name:SetBackgroundColor(self.color)
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:OnEquipped(client)
|
||||
local armbands = client:GetNetVar("armbands", {})
|
||||
armbands[self.name[1]:lower() .. self.name:Right(#self.name - 1)] = self.color
|
||||
|
||||
client:SetNetVar("armbands", armbands)
|
||||
end
|
||||
|
||||
function ITEM:OnUnequipped(client)
|
||||
local armbands = client:GetNetVar("armbands", {})
|
||||
armbands[self.name[1]:lower() .. self.name:Right(#self.name - 1)] = nil
|
||||
|
||||
client:SetNetVar("armbands", armbands)
|
||||
end
|
||||
17
gamemodes/ixhl2rp/plugins/armbands/sh_plugin.lua
Normal file
17
gamemodes/ixhl2rp/plugins/armbands/sh_plugin.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
PLUGIN.name = "Armbands"
|
||||
PLUGIN.author = "Aspect™"
|
||||
PLUGIN.description = "Adds wearable armband items."
|
||||
|
||||
ix.util.Include("cl_hooks.lua")
|
||||
ix.util.Include("sv_hooks.lua")
|
||||
24
gamemodes/ixhl2rp/plugins/armbands/sv_hooks.lua
Normal file
24
gamemodes/ixhl2rp/plugins/armbands/sv_hooks.lua
Normal file
@@ -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/
|
||||
--]]
|
||||
|
||||
|
||||
function PLUGIN:CharacterLoaded(character)
|
||||
local client = character:GetPlayer()
|
||||
local items = character:GetInventory():GetItems()
|
||||
local armbands = {}
|
||||
|
||||
for _, item in pairs(items) do
|
||||
if (item.base != "base_armbands" or !item:GetData("equip")) then continue end
|
||||
|
||||
armbands[item.name[1]:lower() .. item.name:Right(#item.name - 1)] = item.color
|
||||
end
|
||||
|
||||
client:SetNetVar("armbands", armbands)
|
||||
end
|
||||
Reference in New Issue
Block a user