This commit is contained in:
lifestorm
2024-08-04 22:55:00 +03:00
parent 0e770b2b49
commit 94063e4369
7342 changed files with 1718932 additions and 14 deletions

View File

@@ -0,0 +1,130 @@
--[[
| 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/
--]]
FACTION.name = "Haute Autorité Administrative"
FACTION.description = "Un membre de la Haute Autorité Administrative"
FACTION.color = Color(144, 65, 233, 255)
FACTION.isDefault = false
-- Char Create Stuff
FACTION.noBackground = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/cityadmin.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/office.png"
-- Scoreboard stuff
FACTION.isGloballyRecognized = true
-- Gameplay stuff
FACTION.humanVoices = true
FACTION.allowForcefieldPassage = true
FACTION.allowForcefieldControl = true
FACTION.allowCIDCreator = true
FACTION.allowDatafile = true
FACTION.allowComputerLoginOverride = true
FACTION.allowUseGroupLock = true
FACTION.allowEnableRations = true
FACTION.allowCombineDoors = true
FACTION.allowCombineLock = true
FACTION.canHearRequests = true
FACTION.noSmuggler = true
FACTION.idInspectionText = "Administrator"
-- Tables
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
FACTION.npcRelations = {
["npc_combine_camera"] = D_LI,
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_rollermine"] = D_LI,
["npc_clawscanner"] = D_LI,
["npc_turret_floor"] = D_LI,
["npc_metropolice"] = D_LI,
["npc_combinedropship"] = D_LI,
["CombineElite"] = D_LI,
["npc_combinegunship"] = D_LI,
["npc_combine_s"] = D_LI,
["npc_hunter"] = D_LI,
["npc_helicopter"] = D_LI,
["CombinePrison"] = D_LI,
["PrisonShotgunner"] = D_LI,
["ShotgunSoldier"] = D_LI,
["npc_stalker"] = D_LI,
["npc_strider"] = D_LI,
}
FACTION.radioChannels = {"haa", "pc", "bc", "ota", "ac"}
-- Functions
function FACTION:OnCharacterCreated(client, character)
character:CreateIDCard()
-- Give clothing chosen upon char creation
local inventory = character:GetInventory()
inventory:Add("pda", 1)
inventory:Add("dob_card", 1)
-- Give clothing chosen upon char creation
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
function FACTION:OnTransferred(character)
local genericData = character:GetGenericdata()
genericData.combine = false
character:SetGenericdata(genericData)
end
FACTION_ADMIN = FACTION.index

View File

@@ -0,0 +1,34 @@
--[[
| 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/
--]]
FACTION.name = "BMDFlagSystem"
FACTION.description = "This is a shitty solution to quickly add a flag system to vendors. God this is awful but fuck it."
FACTION.color = Color(63, 142, 164, 255)
FACTION.isDefault = false
FACTION.factionImage = "materials/willardnetworks/faction_imgs/citizen.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/street.png"
FACTION.humanVoices = true
FACTION.allowRebelForcefieldPassage = true
FACTION.accessFlag = "B"
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl"
};
};
FACTION_BMDFLAGSYSTEM = FACTION.index

View File

@@ -0,0 +1,102 @@
--[[
| 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/
--]]
FACTION.name = "Citoyen"
FACTION.description = "Un citoyen humain ordinaire asservi par l'Union Universelle."
FACTION.color = Color(128, 128, 128, 255)
FACTION.isDefault = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/citizen.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/street.png"
FACTION.humanVoices = true
FACTION.allowRebelForcefieldPassage = true
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
function FACTION:OnCharacterCreated(client, character)
local inventory = character:GetInventory()
local background = character:GetBackground()
if (background == "Citoyen Relocalisé") then
inventory:Add("suitcase", 1)
inventory:Add("flashlight", 1)
inventory:Add("armband_grey", 1)
elseif (background == "Citoyen Local") then
inventory:Add("flashlight", 1)
inventory:Add("armband_grey", 1)
elseif (background == "Nomade") then
ix.config.Get("defaultOutcastChips")
inventory:Add("flashlight", 1)
inventory:Add("armband_black", 1)
else
inventory:Add("armband_grey", 1)
end
local credits = ix.config.Get("defaultCredits", 10)
if (background == "Nomade") then
credits = math.floor(credits / 2)
end
character:CreateIDCard(credits)
-- Give clothing chosen upon char creation
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
function FACTION:OnTransferred(character)
local genericData = character:GetGenericdata()
genericData.combine = false
character:SetGenericdata(genericData)
end
FACTION_CITIZEN = FACTION.index

View File

@@ -0,0 +1,154 @@
--[[
| 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/
--]]
FACTION.name = "Protection Civile"
FACTION.description = "Une unité de la Protection Civile."
FACTION.color = Color(50, 100, 150)
FACTION.isDefault = false
-- Char Create Stuff
FACTION.noAppearances = true
FACTION.noBackground = true
FACTION.noBeard = true
FACTION.ReadOptionDisabled = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/cp.png"
FACTION.selectImage = "materials/willardnetworks/faction_imgs/cp.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/nexus.png"
FACTION.humanVoices = true
-- Scoreboard Stuff
FACTION.isGloballyRecognized = false
FACTION.separateUnknownTab = true
-- Gameplay stuff
FACTION.noGenDesc = false
FACTION.isCombineFaction = true
FACTION.canSeeWaypoints = true
FACTION.canAddWaypoints = true
FACTION.alwaysDatafile = true
FACTION.allowEnableRations = true
FACTION.allowKickDoor = true
FACTION.noNeeds = false
FACTION.noGas = false
FACTION.radioChannels = {"pc", "ota", "ac", "haa"}
-- Tables
FACTION.models = {
female = {
"models/wn7new/metropolice/female_01.mdl",
"models/wn7new/metropolice/female_02.mdl",
"models/wn7new/metropolice/female_03.mdl",
"models/wn7new/metropolice/female_04.mdl",
"models/wn7new/metropolice/female_06.mdl",
"models/wn7new/metropolice/female_05.mdl"
};
male = {
"models/wn7new/metropolice/male_01.mdl",
"models/wn7new/metropolice/male_02.mdl",
"models/wn7new/metropolice/male_03.mdl",
"models/wn7new/metropolice/male_04.mdl",
"models/wn7new/metropolice/male_05.mdl",
"models/wn7new/metropolice/male_06.mdl",
"models/wn7new/metropolice/male_07.mdl",
"models/wn7new/metropolice/male_08.mdl",
"models/wn7new/metropolice/male_09.mdl",
"models/wn7new/metropolice/male_10.mdl"
}
}
FACTION.npcRelations = {
["npc_combine_camera"] = D_LI,
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_rollermine"] = D_LI,
["npc_clawscanner"] = D_LI,
["npc_turret_floor"] = D_LI,
["npc_metropolice"] = D_LI,
["npc_combinedropship"] = D_LI,
["CombineElite"] = D_LI,
["npc_combinegunship"] = D_LI,
["npc_combine_s"] = D_LI,
["npc_hunter"] = D_LI,
["npc_helicopter"] = D_LI,
["CombinePrison"] = D_LI,
["PrisonShotgunner"] = D_LI,
["ShotgunSoldier"] = D_LI,
["npc_stalker"] = D_LI,
["npc_strider"] = D_LI,
}
-- Functions
function FACTION:GetDefaultName(client)
return "C"..ix.config.Get("cityIndex", "13")..":RCT.UNION-"..Schema:ZeroNumber(math.random(1, 999), 3), true
end
function FACTION:OnCharacterCreated(client, character)
character:CreateIDCard()
local inventory = character:GetInventory()
inventory:Add("pda", 1)
inventory:Add("uniform_auxcp")
inventory:Add("mas_aux")
inventory:Add("handheld_radio")
inventory:Add("flashlight")
inventory:Add("smallbag")
inventory:Add("largebag")
character:SetSkill("guns", 5)
character:SetSkill("speed", 10)
character:SetData("equipBgClothes", true)
character:SetRadioChannel("pc")
end
function FACTION:OnNameChanged(client, oldValue, value)
if (oldValue == "") then return end
if (Schema:IsCombineRank(value, "i1") and !Schema:IsCombineRank(oldValue, "i1")) then
client:GetCharacter():SetClass(CLASS_CP_CPT)
// !Schema:IsCombineRank(oldValue, "i1/i2")) was breaking all this shit. I don't know why, but without it - stuff below works fine.
elseif Schema:IsCombineRank(value, "RL") then
client:GetCharacter():SetClass(CLASS_CP_CMD)
elseif Schema:IsCombineRank(value, "CmD") then
client:GetCharacter():SetClass(CLASS_CP_CMD)
// ^^^^^
elseif (Schema:IsCombineRank(oldValue, "RL") or Schema:IsCombineRank(oldValue, "CmD")) then
client:GetCharacter():SetClass(CLASS_CP)
end
end
function FACTION:OnTransferred(character)
character:SetName(self:GetDefaultName())
local genericData = character:GetGenericdata()
if (genericData) then
genericData.combine = true
character:SetGenericdata(genericData)
end
end
function FACTION:OnSpawn(client)
if (Schema:IsCombineRank(client:Name(), "i1")) then
client:GetCharacter():SetClass(CLASS_CP_CPT)
elseif (Schema:IsCombineRank(client:Name(), "RL")) or (Schema:IsCombineRank(client:Name(), "CmD")) then
client:GetCharacter():SetClass(CLASS_CP_CMD)
else
client:GetCharacter():SetClass(CLASS_CP)
end
end
FACTION_CP = FACTION.index

View File

@@ -0,0 +1,128 @@
--[[
| 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/
--]]
FACTION.name = "Ministry of Entertainment"
FACTION.description = "A member of the MOE."
FACTION.color = Color(144, 65, 233, 255)
FACTION.isDefault = false
-- Char Create Stuff
FACTION.noBackground = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/cityadmin.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/office.png"
-- Scoreboard stuff
FACTION.isGloballyRecognized = true
-- Gameplay stuff
FACTION.humanVoices = true
FACTION.allowForcefieldPassage = true
FACTION.allowCIDCreator = true
FACTION.allowDatafile = true
FACTION.allowComputerLoginOverride = true
FACTION.allowUseGroupLock = true
FACTION.allowEnableRations = true
FACTION.allowCombineDoors = true
FACTION.allowCombineLock = true
FACTION.canHearRequests = true
FACTION.noSmuggler = true
FACTION.idInspectionText = "Entertainment"
-- Tables
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
FACTION.npcRelations = {
["npc_combine_camera"] = D_LI,
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_rollermine"] = D_LI,
["npc_clawscanner"] = D_LI,
["npc_turret_floor"] = D_LI,
["npc_metropolice"] = D_LI,
["npc_combinedropship"] = D_LI,
["CombineElite"] = D_LI,
["npc_combinegunship"] = D_LI,
["npc_combine_s"] = D_LI,
["npc_hunter"] = D_LI,
["npc_helicopter"] = D_LI,
["CombinePrison"] = D_LI,
["PrisonShotgunner"] = D_LI,
["ShotgunSoldier"] = D_LI,
["npc_stalker"] = D_LI,
["npc_strider"] = D_LI,
}
FACTION.radioChannels = {"cca", "cmb", "cca-cwu"}
-- Functions
local translate = {nil, "torso", "legs", "shoes"}
translate[8] = "glasses"
function FACTION:OnCharacterCreated(client, character)
character:CreateIDCard()
local inventory = character:GetInventory()
inventory:Add("pda", 1)
-- Give clothing chosen upon char creation
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
function FACTION:OnTransferred(character)
local genericData = character:GetGenericdata()
genericData.combine = false
character:SetGenericdata(genericData)
end
FACTION_MOE = FACTION.index

View File

@@ -0,0 +1,87 @@
--[[
| 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/
--]]
FACTION.name = "Event"
FACTION.description = "Un personnage d'event, sshhhh."
FACTION.color = Color(255, 85, 20, 255)
FACTION.isDefault = false
FACTION.factionImage = "materials/willardnetworks/faction_imgs/event.png"
FACTION.selectImage = "materials/willardnetworks/faction_imgs/event.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/street.png"
FACTION.seeAll = true
FACTION.hidden = true
FACTION.humanVoices = true
FACTION.noNeeds = true
FACTION.noGas = true
FACTION.saveItemsAfterDeath = true
FACTION.noBackground = true
FACTION.isGloballyRecognized = false
FACTION.allowRebelForcefieldPassage = true
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
function FACTION:OnCharacterCreated(client, character)
local inventory = character:GetInventory()
character:CreateIDCard()
inventory:Add("flashlight")
inventory:Add("smallbag")
inventory:Add("largebag")
-- Give clothing chosen upon char creation
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
FACTION_EVENT = FACTION.index

View File

@@ -0,0 +1,134 @@
--[[
| 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/
--]]
FACTION.name = "Ministère de la Protection Civile"
FACTION.description = "A representative of the Union's paramilitary.."
FACTION.color = Color(50, 100, 150)
FACTION.isDefault = false
-- Char Create Stuff
FACTION.noBackground = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/cityadmin.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/office.png"
-- Scoreboard stuff
FACTION.isGloballyRecognized = false
-- Gameplay stuff
FACTION.humanVoices = true
FACTION.allowForcefieldPassage = true
FACTION.allowCIDCreator = true
FACTION.allowDatafile = true
FACTION.allowComputerLoginOverride = true
FACTION.allowUseGroupLock = true
FACTION.allowEnableRations = true
FACTION.allowCombineDoors = true
FACTION.allowCombineLock = true
FACTION.canHearRequests = true
FACTION.noSmuggler = true
FACTION.isCombineFaction = false
FACTION.canSeeWaypoints = true
FACTION.canAddWaypoints = true
FACTION.allowKickDoor = true
FACTION.idInspectionText = "Ministère de la Protection Civile"
-- Tables
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
FACTION.npcRelations = {
["npc_combine_camera"] = D_LI,
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_rollermine"] = D_LI,
["npc_clawscanner"] = D_LI,
["npc_turret_floor"] = D_LI,
["npc_metropolice"] = D_LI,
["npc_combinedropship"] = D_LI,
["CombineElite"] = D_LI,
["npc_combinegunship"] = D_LI,
["npc_combine_s"] = D_LI,
["npc_hunter"] = D_LI,
["npc_helicopter"] = D_LI,
["CombinePrison"] = D_LI,
["PrisonShotgunner"] = D_LI,
["ShotgunSoldier"] = D_LI,
["npc_stalker"] = D_LI,
["npc_strider"] = D_LI,
}
FACTION.radioChannels = {"haa", "utc", "ucmr", "pc",}
-- Functions
function FACTION:OnCharacterCreated(client, character)
character:CreateIDCard()
-- Give clothing chosen upon char creation
local inventory = character:GetInventory()
inventory:Add("pda", 1)
-- Give clothing chosen upon char creation
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
function FACTION:OnTransferred(character)
local genericData = character:GetGenericdata()
genericData.combine = true
character:SetGenericdata(genericData)
end
FACTION_MCP = FACTION.index

View File

@@ -0,0 +1,135 @@
--[[
| 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/
--]]
FACTION.name = "Ministère de L'économie"
FACTION.description = "A representative of the Union's paramilitary.."
FACTION.color = Color(207, 182, 42)
FACTION.isDefault = false
-- Char Create Stuff
FACTION.noBackground = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/cityadmin.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/office.png"
-- Scoreboard stuff
FACTION.isGloballyRecognized = false
FACTION.separateUnknownTab = true
-- Gameplay stuff
FACTION.humanVoices = true
FACTION.allowForcefieldPassage = true
FACTION.allowCIDCreator = true
FACTION.allowDatafile = true
FACTION.allowComputerLoginOverride = true
FACTION.allowUseGroupLock = true
FACTION.allowEnableRations = true
FACTION.allowCombineDoors = true
FACTION.allowCombineLock = true
FACTION.canHearRequests = true
FACTION.noSmuggler = true
FACTION.isCombineFaction = false
FACTION.canSeeWaypoints = true
FACTION.canAddWaypoints = true
FACTION.allowKickDoor = true
FACTION.idInspectionText = "Ministère de L'économie"
-- Tables
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
FACTION.npcRelations = {
["npc_combine_camera"] = D_LI,
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_rollermine"] = D_LI,
["npc_clawscanner"] = D_LI,
["npc_turret_floor"] = D_LI,
["npc_metropolice"] = D_LI,
["npc_combinedropship"] = D_LI,
["CombineElite"] = D_LI,
["npc_combinegunship"] = D_LI,
["npc_combine_s"] = D_LI,
["npc_hunter"] = D_LI,
["npc_helicopter"] = D_LI,
["CombinePrison"] = D_LI,
["PrisonShotgunner"] = D_LI,
["ShotgunSoldier"] = D_LI,
["npc_stalker"] = D_LI,
["npc_strider"] = D_LI,
}
FACTION.radioChannels = {"haa", "ucmr", "utc",}
-- Functions
function FACTION:OnCharacterCreated(client, character)
character:CreateIDCard()
-- Give clothing chosen upon char creation
local inventory = character:GetInventory()
inventory:Add("pda", 1)
-- Give clothing chosen upon char creation
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
function FACTION:OnTransferred(character)
local genericData = character:GetGenericdata()
genericData.combine = true
character:SetGenericdata(genericData)
end
FACTION_ME = FACTION.index

View File

@@ -0,0 +1,101 @@
--[[
| 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/
--]]
FACTION.name = "Union Civile de Médecine et de Recherche"
FACTION.description = "A member of the Medical Union"
FACTION.color = Color(63, 142, 164, 255)
FACTION.isDefault = false
-- Char Create Stuff
FACTION.noBackground = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/cwu.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/factory.png"
-- Gameplay stuff
FACTION.bIsBystanderTBC = true
FACTION.humanVoices = true
FACTION.idInspectionText = "Medic"
-- Tables
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
FACTION.npcRelations = {
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_turret_floor"] = D_LI,
}
FACTION.radioChannels = {"utc", "ucmr",}
-- Functions
function FACTION:OnCharacterCreated(client, character)
character:CreateIDCard()
local inventory = character:GetInventory()
inventory:Add("pda_cmu", 1)
inventory:Add("cmru_card", 1)
inventory:Add("torso_medic_shirt", 1)
inventory:Add("cmru_radio", 1)
-- Give clothing chosen upon char creation
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
function FACTION:OnTransferred(character)
local genericData = character:GetGenericdata()
genericData.combine = false
character:SetGenericdata(genericData)
end
FACTION_MEDICAL = FACTION.index

View File

@@ -0,0 +1,135 @@
--[[
| 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/
--]]
FACTION.name = "Ministère de lIllumination et de la Vérité"
FACTION.description = "A representative of the Union's paramilitary.."
FACTION.color = Color(255, 85, 51)
FACTION.isDefault = false
-- Char Create Stuff
FACTION.noBackground = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/cityadmin.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/office.png"
-- Scoreboard stuff
FACTION.isGloballyRecognized = false
FACTION.separateUnknownTab = true
-- Gameplay stuff
FACTION.humanVoices = true
FACTION.allowForcefieldPassage = true
FACTION.allowCIDCreator = true
FACTION.allowDatafile = true
FACTION.allowComputerLoginOverride = true
FACTION.allowUseGroupLock = true
FACTION.allowEnableRations = true
FACTION.allowCombineDoors = true
FACTION.allowCombineLock = true
FACTION.canHearRequests = true
FACTION.noSmuggler = true
FACTION.isCombineFaction = false
FACTION.canSeeWaypoints = true
FACTION.canAddWaypoints = true
FACTION.allowKickDoor = true
FACTION.idInspectionText = "Ministère de lIllumination et de la Vérité"
-- Tables
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
FACTION.npcRelations = {
["npc_combine_camera"] = D_LI,
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_rollermine"] = D_LI,
["npc_clawscanner"] = D_LI,
["npc_turret_floor"] = D_LI,
["npc_metropolice"] = D_LI,
["npc_combinedropship"] = D_LI,
["CombineElite"] = D_LI,
["npc_combinegunship"] = D_LI,
["npc_combine_s"] = D_LI,
["npc_hunter"] = D_LI,
["npc_helicopter"] = D_LI,
["CombinePrison"] = D_LI,
["PrisonShotgunner"] = D_LI,
["ShotgunSoldier"] = D_LI,
["npc_stalker"] = D_LI,
["npc_strider"] = D_LI,
}
FACTION.radioChannels = {"haa", "ucmr", "utc",}
-- Functions
function FACTION:OnCharacterCreated(client, character)
character:CreateIDCard()
-- Give clothing chosen upon char creation
local inventory = character:GetInventory()
inventory:Add("pda", 1)
-- Give clothing chosen upon char creation
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
function FACTION:OnTransferred(character)
local genericData = character:GetGenericdata()
genericData.combine = true
character:SetGenericdata(genericData)
end
FACTION_MIV = FACTION.index

View File

@@ -0,0 +1,142 @@
--[[
| 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/
--]]
FACTION.name = "O.T.A"
FACTION.description = "Un soldat transhumain produit par les Combines."
FACTION.color = Color(150, 50, 50, 255)
FACTION.isDefault = false
FACTION.radioChannels = {"ota", "pc", "bc", "haa", "utc"}
-- Char Create stuff
FACTION.noAppearances = true
FACTION.noBackground = true
FACTION.noBeard = true
FACTION.noGender = true
FACTION.noHair = true
FACTION.ReadOptionDisabled = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/ota.png"
FACTION.selectImage = "materials/willardnetworks/charselect/ota.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/nexus.png"
-- Scoreboard Stuff
FACTION.isGloballyRecognized = true
-- Gameplay stuff
FACTION.noNeeds = true
FACTION.noGenDesc = true
FACTION.saveItemsAfterDeath = true
FACTION.isCombineFaction = true
FACTION.canSeeWaypoints = true
FACTION.canAddWaypoints = true
FACTION.canRemoveWaypoints = true
FACTION.canUpdateWaypoints = true
FACTION.allLanguages = true
FACTION.alwaysDatafile = true
FACTION.allowForcefieldPassage = true
FACTION.allowForcefieldInfestationPassage = true
FACTION.allowEnableRations = true
FACTION.allowKickDoor = true
FACTION.noSmuggler = true
FACTION.maxHealth = 125
-- Tables
FACTION.models = {
"models/wn/ota_soldier.mdl"
}
FACTION.npcRelations = {
["npc_combine_camera"] = D_LI,
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_rollermine"] = D_LI,
["npc_clawscanner"] = D_LI,
["npc_turret_floor"] = D_LI,
["npc_combinedropship"] = D_LI,
["CombineElite"] = D_LI,
["npc_combinegunship"] = D_LI,
["npc_combine_s"] = D_LI,
["npc_hunter"] = D_LI,
["npc_helicopter"] = D_LI,
["CombinePrison"] = D_LI,
["PrisonShotgunner"] = D_LI,
["ShotgunSoldier"] = D_LI,
["npc_stalker"] = D_LI,
["npc_strider"] = D_LI,
}
-- Functions
function FACTION:GetDefaultName(client)
return "S"
.. (ix.config.Get("sectorIndex", "10"))
.. "/OWS.ECHO-"
.. Schema:ZeroNumber(math.random(1, 99), 2), true
end
function FACTION:OnCharacterCreated(client, character)
local inventory = character:GetInventory()
inventory:Add("smallbag")
inventory:Add("largebag")
inventory:Add("flashlight")
inventory:Add("pda", 1)
inventory:Add("uniform_ota")
inventory:Add("mask_ota")
inventory:Add("rappel_gear")
inventory:Add("mag_pouch")
inventory:Add("bullet_pouch")
character:SetData("equipBgClothes", true)
character:SetSkill("guns", 40)
character:SetSkill("speed", 40)
for _, v in pairs(ix.special.list) do
character:SetSpecial(v.uniqueID, 0)
end
end
function FACTION:OnNameChanged(client, oldValue, value)
local character = client:GetCharacter()
if (!Schema:IsCombineRank(oldValue, "OWS") and Schema:IsCombineRank(value, "OWS")) then
character:SetClass(CLASS_OWS)
elseif (!Schema:IsCombineRank(oldValue, "EOWS") and Schema:IsCombineRank(value, "EOWS")) then
character:SetClass(CLASS_EOW)
elseif (!Schema:IsCombineRank(oldValue, "ORD") and Schema:IsCombineRank(value, "ORD")) then
character:SetClass(CLASS_ORD)
elseif (!Schema:IsCombineRank(oldValue, "OWH") and Schema:IsCombineRank(value, "OWH")) then
character:SetClass(CLASS_CHA)
elseif (!Schema:IsCombineRank(oldValue, "APF") and Schema:IsCombineRank(value, "APF")) then
character:SetClass(CLASS_SUP)
elseif (!Schema:IsCombineRank(oldValue, "EOW") and Schema:IsCombineRank(value, "EOW")) then
character:SetClass(CLASS_EOW)
elseif (!Schema:IsCombineRank(oldValue, "OCS") and Schema:IsCombineRank(value, "OCS")) then
character:SetClass(CLASS_OCS)
elseif (!Schema:IsCombineRank(oldValue, "COMMANDER") and Schema:IsCombineRank(value, "COMMANDER")) then
character:SetClass(CLASS_OCS)
end
end
function FACTION:OnTransferred(character)
character:SetName(self:GetDefaultName())
character:SetModel(self.models[1])
local genericData = character:GetGenericdata()
genericData.combine = true
character:SetGenericdata(genericData)
end
FACTION_OTA = FACTION.index

View File

@@ -0,0 +1,117 @@
--[[
| 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/
--]]
FACTION.name = "Overwatch AI"
FACTION.description = "The central Overwatch network."
FACTION.color = Color(150, 50, 50, 255)
FACTION.isDefault = false
FACTION.noAppearances = true
FACTION.noAttributes = true
FACTION.noBackground = true
FACTION.noBeard = true
FACTION.noGender = true
FACTION.noHair = true
FACTION.noGenetics = true
FACTION.ReadOptionDisabled = true
FACTION.factionImage = "willardnetworks/faction_imgs/cmb.png"
FACTION.selectImage = "willardnetworks/faction_imgs/cmb.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/nexus.png"
FACTION.isGloballyRecognized = true
FACTION.noNeeds = true
FACTION.noGas = true
FACTION.noTBC = true
FACTION.noGenDesc = true
FACTION.saveItemsAfterDeath = true
FACTION.isCombineFaction = true
FACTION.canSeeWaypoints = true
FACTION.canAddWaypoints = true
FACTION.canRemoveWaypoints = true
FACTION.canUpdateWaypoints = true
FACTION.allLanguages = true
FACTION.allowForcefieldControl = true
FACTION.allowCIDCreator = true
FACTION.allowEnableRations = true
FACTION.allowCombineDoors = true
FACTION.allowCombineLock = true
FACTION.alwaysFlashlight = true
FACTION.alwaysDatafile = true
FACTION.canHearRequests = true
FACTION.noSmuggler = true
FACTION.idInspectionText = "Dispatch"
FACTION.models = {"models/dav0r/hoverball.mdl"}
FACTION.npcRelations = {
["npc_combine_camera"] = D_LI,
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_rollermine"] = D_LI,
["npc_clawscanner"] = D_LI,
["npc_turret_floor"] = D_LI,
["npc_metropolice"] = D_LI,
["npc_combinedropship"] = D_LI,
["CombineElite"] = D_LI,
["npc_combinegunship"] = D_LI,
["npc_combine_s"] = D_LI,
["npc_hunter"] = D_LI,
["npc_helicopter"] = D_LI,
["CombinePrison"] = D_LI,
["PrisonShotgunner"] = D_LI,
["ShotgunSoldier"] = D_LI,
["npc_stalker"] = D_LI,
["npc_strider"] = D_LI,
}
FACTION.radioChannels = {"ota-tac", "tac-3", "tac-4", "tac-5", "cmb", "cca", "mcp"}
function FACTION:GetDefaultName(client)
return "S"..ix.config.Get("sectorIndex", "10")..":SCN-"..Schema:ZeroNumber(math.random(1, 9), 1), true
end
function FACTION:OnNameChanged(client, oldValue, value)
if (oldValue == "") then return end
if (!Schema:IsCombineRank(oldValue, "SCN") and Schema:IsCombineRank(value, "SCN")
or !Schema:IsCombineRank(oldValue, "SHIELD") and Schema:IsCombineRank(value, "SHIELD")) then
client:GetCharacter():SetClass(CLASS_OW_SCANNER)
elseif (!Schema:IsCombineRank(value, "SCN") and !Schema:IsCombineRank(value, "SHIELD")) then
client:GetCharacter():SetClass(CLASS_OVERWATCH)
elseif (!Schema:IsCombineRank(value, "SCN") and !Schema:IsCombineRank(value, "Disp:AI")) then
client:GetCharacter():SetClass(CLASS_OW_SCANNER)
end
end
function FACTION:OnTransferred(character)
character:SetName(self:GetDefaultName())
character:SetModel(self.models[1])
local genericData = character:GetGenericdata()
genericData.combine = "overwatch"
character:SetGenericdata(genericData)
end
function FACTION:OnSpawn(client)
if (Schema:IsCombineRank(client:Name(), "SCN") or Schema:IsCombineRank(client:Name(), "SHIELD") or Schema:IsCombineRank(client:Name(), "Disp:AI")) then
client:GetCharacter():SetClass(CLASS_OW_SCANNER)
else
client:GetCharacter():SetClass(CLASS_OVERWATCH)
end
end
FACTION_OVERWATCH = FACTION.index

View File

@@ -0,0 +1,85 @@
--[[
| 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/
--]]
FACTION.name = "The Resistance"
FACTION.description = "A regular human living amongst Combine Rule- but all is not what it seems."
FACTION.color = Color(63, 142, 164, 255)
FACTION.isDefault = false
FACTION.factionImage = "materials/willardnetworks/faction_imgs/citizen.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/street.png"
FACTION.humanVoices = true
FACTION.allowRebelForcefieldPassage = true
FACTION.idInspectionText = "Citizen"
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
function FACTION:OnCharacterCreated(client, character)
local inventory = character:GetInventory()
local background = character:GetBackground()
character:CreateIDCard(credits)
-- Give clothing chosen upon char creation
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
function FACTION:OnTransferred(character)
local genericData = character:GetGenericdata()
genericData.combine = false
character:SetGenericdata(genericData)
end
FACTION_RESISTANCE = FACTION.index

View File

@@ -0,0 +1,94 @@
--[[
| 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/
--]]
FACTION.name = "Staff"
FACTION.description = "Membre de l'Administration de Willard - Echo One"
FACTION.color = Color(255, 85, 20, 255)
FACTION.isDefault = false
FACTION.factionImage = "materials/willardnetworks/faction_imgs/admin.png"
FACTION.selectImage = "materials/willardnetworks/faction_imgs/admin.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/street.png"
FACTION.noBackground = true
FACTION.noBeard = true
FACTION.noGender = true
FACTION.noGenetics = true
FACTION.noHair = true
FACTION.noAppearances = true
FACTION.isGloballyRecognized = true
FACTION.seeAll = true
FACTION.recogniseAll = true
FACTION.noNeeds = true
FACTION.noGas = true
FACTION.noTBC = true
FACTION.noGenDesc = true
FACTION.saveItemsAfterDeath = true
FACTION.canSeeWaypoints = true
FACTION.allLanguages = true
FACTION.allowForcefieldControl = true
FACTION.allowCIDCreator = true
FACTION.allowEnableRations = true
FACTION.allowComputerLoginOverride = true
FACTION.allowCombineDoors = true
FACTION.allowCombineLock = true
FACTION.alwaysFlashlight = true
FACTION.canHearRequests = true
FACTION.models = {"models/breen.mdl"}
FACTION.lockAllDoors = true
FACTION.npcRelations = {
["npc_combine_camera"] = D_LI,
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_rollermine"] = D_LI,
["npc_clawscanner"] = D_LI,
["npc_turret_floor"] = D_LI,
["npc_metropolice"] = D_LI,
["npc_combinedropship"] = D_LI,
["CombineElite"] = D_LI,
["npc_combinegunship"] = D_LI,
["npc_combine_s"] = D_LI,
["npc_hunter"] = D_LI,
["npc_helicopter"] = D_LI,
["CombinePrison"] = D_LI,
["PrisonShotgunner"] = D_LI,
["ShotgunSoldier"] = D_LI,
["npc_stalker"] = D_LI,
["npc_strider"] = D_LI,
}
function FACTION:GetDefaultName(client)
return client:SteamName(), false
end
function FACTION:OnCharacterCreated(client, character)
local inventory = character:GetInventory()
inventory:Add("smallbag")
inventory:Add("largebag")
character:SetData("equipBgClothes", true)
end
function FACTION:OnWhitelist(client)
local faction = ix.faction.teams["event"]
if (faction) then
client:SetWhitelisted(faction.index, true)
end
end
FACTION_SERVERADMIN = FACTION.index

View File

@@ -0,0 +1,151 @@
--[[
| 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/
--]]
FACTION.name = "Vortigaunt"
FACTION.description = "Un vortiguaunt libre."
FACTION.color = Color(138, 181, 40)
FACTION.isDefault = false
FACTION.noBeard = true
FACTION.noGender = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/vort.png"
FACTION.selectImage = "materials/willardnetworks/charselect/vort.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/xen.png"
FACTION.isGloballyRecognized = false
FACTION.noHair = true
FACTION.noGas = true
FACTION.bDrinkUnfilteredWater = true
FACTION.canEatRaw = true
FACTION.maxHealth = 200
FACTION.models = {
"models/willardnetworks/vortigaunt.mdl"
};
FACTION.weapons = {"ix_vortheal", "ix_vortbeam", "ix_nightvision", "ix_vshield", "ix_vortsweep"}
function FACTION:OnCharacterCreated(client, character)
local inventory = character:GetInventory()
local background = character:GetBackground()
local vortPlugin = ix.plugin.Get("vortigaunts")
client:Give("ix_vortsweep") -- i dont see any reason not to give all the vorts the sweep swep tbh
if (background == "Biotique" or background == "Libéré" or background == "Collaborateur") then
timer.Simple(5, function()
if (background == "Libéré") then
client:Give("ix_vshield")
client:Give("ix_nightvision")
client:Give("ix_vortbeam")
client:Give("ix_vortheal")
client:Give("ix_vortslam")
client:Give("ix_vshield")
if character:GetSkillLevel("vort") >= 50 then
client:Give("ix_vortpyro")
client:Give("ix_vortadvancedbeam")
end
elseif (background == "Collaborator") then
client:Give("ix_vshield")
client:Give("ix_nightvision")
client:Give("ix_vortbeam")
client:Give("ix_vortheal")
end
end)
if background == "Collaborateur" then
character:CreateIDCard(100)
inventory:Add("vortigaunt_trousers_brown", 1)
timer.Simple(3, function()
if IsValid(character) then
local genericdata = character:GetGenericdata()
if (genericdata) then
genericdata.socialCredits = (genericdata.socialCredits or 0) + 60
character:SetGenericdata(genericdata)
character:Save()
end
end
end)
character:SetData("equipBgClothes", true)
end
if (background == "Biotique") then
local uniqueID = tostring(vortPlugin:GenerateCollarID(character.id))
inventory:Add("vortigaunt_slave_hooks", 1)
inventory:Add("vortigaunt_slave_shackles", 1)
inventory:Add("vortigaunt_slave_collar", 1, {
collarID = uniqueID,
sterilizedCredits = 0
})
character:SetData("equipBgClothes", true)
timer.Simple(5, function()
if client then
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_vortslam") then
client:StripWeapon("ix_vortslam")
end
if client:HasWeapon("ix_vortpyro") then
client:StripWeapon("ix_vortpyro")
end
if client:HasWeapon("ix_vortadvancedbeam") then
client:StripWeapon("ix_vortadvancedbeam")
end
end
end)
end
else -- freed
timer.Simple(5, function()
client:Give("ix_vshield")
client:Give("ix_nightvision")
client:Give("ix_vortbeam")
client:Give("ix_vortheal")
client:Give("ix_vshield")
client:Give("ix_vortslam")
if character:GetSkillLevel("vort") >= 50 then
client:Give("ix_vortpyro")
client:Give("ix_vortadvancedbeam")
end
end)
end
end
function FACTION:OnSpawn(client)
client:SetLocalVar("vortalVision", false)
timer.Simple(0.1, function()
client:SetRunSpeed(ix.config.Get("runSpeed") * 1.25)
client:SetJumpPower(ix.config.Get("jumpPower") * 1.25)
end)
end
FACTION_VORT = FACTION.index

View File

@@ -0,0 +1,111 @@
--[[
| 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/
--]]
FACTION.name = "Union des Travailleurs Civils"
FACTION.description = "Un membre de l'UTC."
FACTION.color = Color(63, 142, 164, 255)
FACTION.isDefault = false
-- Char Create Stuff
FACTION.noBackground = true
FACTION.factionImage = "materials/willardnetworks/faction_imgs/cwu.png"
FACTION.selectImage = "materials/willardnetworks/charselect/citizen2.png"
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/factory.png"
-- Gameplay stuff
FACTION.bIsBystanderTBC = true
FACTION.humanVoices = true
FACTION.allowForcefieldInfestationPassage = true
FACTION.idInspectionText = "Worker"
-- Tables
FACTION.models = {
female = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"models/willardnetworks/citizens/female_04.mdl",
"models/willardnetworks/citizens/female_06.mdl",
"models/willardnetworks/citizens/female_05.mdl"
};
male = {
"models/willardnetworks/citizens/male_01.mdl",
"models/willardnetworks/citizens/male_02.mdl",
"models/willardnetworks/citizens/male_03.mdl",
"models/willardnetworks/citizens/male_04.mdl",
"models/willardnetworks/citizens/male_05.mdl",
"models/willardnetworks/citizens/male_06.mdl",
"models/willardnetworks/citizens/male_07.mdl",
"models/willardnetworks/citizens/male_08.mdl",
"models/willardnetworks/citizens/male_09.mdl",
"models/willardnetworks/citizens/male_10.mdl"
};
};
FACTION.npcRelations = {
["npc_turret_ceiling"] = D_LI,
["npc_cscanner"] = D_LI,
["npc_manhack"] = D_LI,
["npc_turret_floor"] = D_LI,
}
FACTION.radioChannels = {"utc", "ucmr",}
-- Functions
function FACTION:OnCharacterCreated(client, character)
character:CreateIDCard()
local background = character:GetBackground()
-- Give clothing chosen upon char creation
local inventory = character:GetInventory()
inventory:Add("pda", 1)
inventory:Add("cwu_card", 1)
inventory:Add("armband_purple", 1)
if (background == "Employé") then
inventory:Add("torso_yellow_worker_jacket", 1)
inventory:Add("cwu_radio", 1)
end
if (background == "Médecin") then
inventory:Add("torso_medic_shirt", 1)
inventory:Add("cmru_radio", 1)
end
local chosenClothes = character:GetData("chosenClothes")
if (istable(chosenClothes) and !table.IsEmpty(chosenClothes)) then
if chosenClothes.torso then
inventory:Add(chosenClothes.torso, 1)
end
if chosenClothes.legs then
inventory:Add(chosenClothes.legs, 1)
end
if chosenClothes.shoes then
inventory:Add(chosenClothes.shoes, 1)
end
if chosenClothes["8"] then
inventory:Add("glasses", 1)
end
character:SetData("equipBgClothes", true)
end
character:SetData("chosenClothes", nil)
end
function FACTION:OnTransferred(character)
local genericData = character:GetGenericdata()
genericData.combine = false
character:SetGenericdata(genericData)
end
FACTION_WORKERS = FACTION.index