This commit is contained in:
lifestorm
2024-08-05 18:40:29 +03:00
parent 9f505a0646
commit c6d9b6f580
8044 changed files with 1853472 additions and 21 deletions

View 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("They are wearing a " .. armband)
panel:SizeToContents()
end
end

View File

@@ -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 = "Black Armband"
ITEM.description = "A piece of cheap black fabric, seemingly torn from once a fair clothing piece, its edges still rough and tattered. It emanates an air of contempt or disregard towards those who choose to don it."
ITEM.color = Color(200, 200, 200)

View File

@@ -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 = "Blue collaborator armband"
ITEM.description = "A piece of blue fabric material worn around the arm."
ITEM.color = Color(50, 50, 255)

View File

@@ -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 = "Green collaborator armband"
ITEM.description = "A piece of green fabric material worn around the arm."
ITEM.color = Color(0, 255, 0)

View File

@@ -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 = "Light Grey Armband"
ITEM.description = "A piece of fabric that goes around the arm. Coloured a dull light grey, doesn't seem to be anything special."
ITEM.color = Color(145, 145, 145)

View File

@@ -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)

View File

@@ -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 = "Orange collaborator armband"
ITEM.description = "A piece of orange fabric material worn around the arm."
ITEM.color = Color(255, 100, 0)

View File

@@ -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 = "Purple CCA armband"
ITEM.description = "A piece of purple fabric material worn around the arm. This one is intended for members of the Combine Civil Administration."
ITEM.color = Color(150, 0, 255)

View File

@@ -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 = "Red collaborator armband"
ITEM.description = "A piece of red fabric material worn around the arm."
ITEM.color = Color(255, 0, 0)

View File

@@ -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 = "White collaborator armband"
ITEM.description = "A piece of white fabric material worn around the arm."
ITEM.color = Color(255, 255, 255)

View File

@@ -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 = "White collaborator armband w/ a Star Ribbon"
ITEM.description = "A piece of white fabric material worn around the arm. It seems to have a fancy Star medal with a ribbon around it stuck on."
ITEM.color = Color(255, 255, 255)

View File

@@ -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 = "Yellow collaborator armband"
ITEM.description = "A piece of yellow fabric material worn around the arm."
ITEM.color = Color(255, 255, 0)

View File

@@ -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 = "A piece of fabric material worn around the arm."
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

View 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")

View 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