mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
129
gamemodes/darkrp/schema/factions/sh_administrator.lua
Normal file
129
gamemodes/darkrp/schema/factions/sh_administrator.lua
Normal file
@@ -0,0 +1,129 @@
|
||||
--[[
|
||||
| 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 = "Combine Civil Administration"
|
||||
FACTION.description = "A member of the Civil Authority."
|
||||
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 = {"cca", "cmb"}
|
||||
|
||||
-- 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 = false
|
||||
character:SetGenericdata(genericData)
|
||||
end
|
||||
|
||||
FACTION_ADMIN = FACTION.index
|
||||
34
gamemodes/darkrp/schema/factions/sh_bmdflagsystem.lua
Normal file
34
gamemodes/darkrp/schema/factions/sh_bmdflagsystem.lua
Normal 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
|
||||
99
gamemodes/darkrp/schema/factions/sh_business.lua
Normal file
99
gamemodes/darkrp/schema/factions/sh_business.lua
Normal file
@@ -0,0 +1,99 @@
|
||||
--[[
|
||||
| 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 = "Directorate of Business"
|
||||
FACTION.description = "A member of DOB."
|
||||
FACTION.color = Color(63, 142, 164, 255)
|
||||
FACTION.isDefault = false
|
||||
|
||||
-- Char Create Stuff
|
||||
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 = "Dob"
|
||||
|
||||
-- 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 = {"cca", "cmb", "cca-cwu"}
|
||||
|
||||
-- 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_cwu", 1)
|
||||
inventory:Add("cwu_card", 1)
|
||||
|
||||
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_BUSINESS = FACTION.index
|
||||
97
gamemodes/darkrp/schema/factions/sh_ccr.lua
Normal file
97
gamemodes/darkrp/schema/factions/sh_ccr.lua
Normal file
@@ -0,0 +1,97 @@
|
||||
--[[
|
||||
| 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 = "Combine Conscript Reserve"
|
||||
FACTION.description = "Combine Civil Reserve a Human meatshields"
|
||||
FACTION.color = Color(50, 100, 150)
|
||||
FACTION.isDefault = false
|
||||
|
||||
-- Char Create Stuff
|
||||
FACTION.noAppearances = false
|
||||
FACTION.noBackground = true
|
||||
FACTION.noBeard = false
|
||||
FACTION.ReadOptionDisabled = true
|
||||
FACTION.factionImage = "materials/willardnetworks/faction_imgs/citizen.png"
|
||||
FACTION.selectImage = "materials/willardnetworks/faction_imgs/citizen2.png"
|
||||
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/street.png"
|
||||
|
||||
FACTION.humanVoices = true
|
||||
|
||||
-- Scoreboard Stuff
|
||||
FACTION.isGloballyRecognized = false
|
||||
FACTION.separateUnknownTab = true
|
||||
|
||||
-- Gameplay stuff
|
||||
FACTION.noGenDesc = false
|
||||
FACTION.allowForcefieldInfestationPassage = true
|
||||
|
||||
FACTION.isCombineFaction = false
|
||||
FACTION.allowCombineDoors = true
|
||||
FACTION.noNeeds = false
|
||||
FACTION.noGas = false
|
||||
|
||||
-- Tables
|
||||
FACTION.models = {
|
||||
female = {
|
||||
"models/willardnetworks/conscripts/female_01.mdl",
|
||||
"models/willardnetworks/conscripts/female_02.mdl",
|
||||
"models/willardnetworks/conscripts/female_03.mdl",
|
||||
"models/willardnetworks/conscripts/female_04.mdl",
|
||||
"models/willardnetworks/conscripts/female_05.mdl",
|
||||
"models/willardnetworks/conscripts/female_06.mdl"
|
||||
};
|
||||
male = {
|
||||
"models/willardnetworks/conscripts/male_01.mdl",
|
||||
"models/willardnetworks/conscripts/male_02.mdl",
|
||||
"models/willardnetworks/conscripts/male_03.mdl",
|
||||
"models/willardnetworks/conscripts/male_04.mdl",
|
||||
"models/willardnetworks/conscripts/male_05.mdl",
|
||||
"models/willardnetworks/conscripts/male_06.mdl",
|
||||
"models/willardnetworks/conscripts/male_07.mdl",
|
||||
"models/willardnetworks/conscripts/male_08.mdl",
|
||||
"models/willardnetworks/conscripts/male_09.mdl",
|
||||
"models/willardnetworks/conscripts/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,
|
||||
}
|
||||
|
||||
function FACTION:OnCharacterCreated(client, character)
|
||||
character:CreateIDCard()
|
||||
|
||||
local inventory = character:GetInventory()
|
||||
inventory:Add("smallbag")
|
||||
inventory:Add("largebag")
|
||||
inventory:Add("ccr_radio")
|
||||
character:SetData("equipBgClothes", true)
|
||||
|
||||
end
|
||||
|
||||
FACTION_CCR = FACTION.index
|
||||
102
gamemodes/darkrp/schema/factions/sh_citizen.lua
Normal file
102
gamemodes/darkrp/schema/factions/sh_citizen.lua
Normal 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 = "Citizen"
|
||||
FACTION.description = "A regular human citizen enslaved by the Universal Union."
|
||||
FACTION.color = Color(63, 142, 164, 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 == "Yeniden Konumlandırılmış") then
|
||||
inventory:Add("suitcase", 1)
|
||||
inventory:Add("flashlight", 1)
|
||||
inventory:Add("armband_grey", 1)
|
||||
elseif (background == "Yerli") then
|
||||
inventory:Add("flashlight", 1)
|
||||
inventory:Add("armband_grey", 1)
|
||||
elseif (background == "Kaçkın") 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 == "Outcast") 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
|
||||
153
gamemodes/darkrp/schema/factions/sh_cp.lua
Normal file
153
gamemodes/darkrp/schema/factions/sh_cp.lua
Normal file
@@ -0,0 +1,153 @@
|
||||
--[[
|
||||
| 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 = "Civil Protection"
|
||||
FACTION.description = "A metropolice unit working as Civil Protection."
|
||||
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.allowEnableRations = true
|
||||
FACTION.allowKickDoor = true
|
||||
|
||||
FACTION.noNeeds = false
|
||||
FACTION.noGas = false
|
||||
|
||||
-- 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,
|
||||
}
|
||||
|
||||
-- Functions
|
||||
function FACTION:GetDefaultName(client)
|
||||
return "C"..ix.config.Get("cityIndex", "24")..":RCT.YELLO-"..Schema:ZeroNumber(math.random(1, 99), 2), true
|
||||
end
|
||||
|
||||
function FACTION:OnCharacterCreated(client, character)
|
||||
character:CreateIDCard()
|
||||
|
||||
local inventory = character:GetInventory()
|
||||
inventory:Add("pda", 1)
|
||||
inventory:Add("uniform_c8_cp")
|
||||
inventory:Add("mask_cp")
|
||||
inventory:Add("smallbag")
|
||||
inventory:Add("largebag")
|
||||
|
||||
character:SetSkill("guns", 5)
|
||||
character:SetSkill("speed", 10)
|
||||
|
||||
character:SetData("equipBgClothes", true)
|
||||
character:SetRadioChannel("tac-3")
|
||||
end
|
||||
|
||||
function FACTION:OnNameChanged(client, oldValue, value)
|
||||
if (oldValue == "") then return end
|
||||
|
||||
if (Schema:IsCombineRank(value, "RL") and !Schema:IsCombineRank(oldValue, "RL")) then
|
||||
client:GetCharacter():SetClass(CLASS_CP_RL)
|
||||
elseif (Schema:IsCombineRank(value, "CpT") and !Schema:IsCombineRank(oldValue, "CpT")) then
|
||||
client:GetCharacter():SetClass(CLASS_CP_CPT)
|
||||
elseif (Schema:IsCombineRank(value, "ChF") and !Schema:IsCombineRank(oldValue, "ChF")) then
|
||||
client:GetCharacter():SetClass(CLASS_CP_CPT)
|
||||
elseif Schema:IsCombineRank(value, "i1") then
|
||||
client:GetCharacter():SetClass(CLASS_CP_CMD)
|
||||
elseif Schema:IsCombineRank(value, "i2") then
|
||||
client:GetCharacter():SetClass(CLASS_CP_CMD)
|
||||
elseif (Schema:IsCombineRank(oldValue, "RL") or Schema:IsCombineRank(oldValue, "CpT")) 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(), "RL")) then
|
||||
client:GetCharacter():SetClass(CLASS_CP_RL)
|
||||
elseif (Schema:IsCombineRank(client:Name(), "CpT")) or (Schema:IsCombineRank(client:Name(), "ChF")) then
|
||||
client:GetCharacter():SetClass(CLASS_CP_CPT)
|
||||
elseif (Schema:IsCombineRank(client:Name(), "i1")) or (Schema:IsCombineRank(client:Name(), "i2")) then
|
||||
client:GetCharacter():SetClass(CLASS_CP_CMD)
|
||||
else
|
||||
client:GetCharacter():SetClass(CLASS_CP)
|
||||
end
|
||||
end
|
||||
|
||||
FACTION_CP = FACTION.index
|
||||
128
gamemodes/darkrp/schema/factions/sh_entertainment.lua
Normal file
128
gamemodes/darkrp/schema/factions/sh_entertainment.lua
Normal 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
|
||||
87
gamemodes/darkrp/schema/factions/sh_event.lua
Normal file
87
gamemodes/darkrp/schema/factions/sh_event.lua
Normal 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 = "An event character, sshhhh."
|
||||
FACTION.color = Color(63, 142, 164, 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
|
||||
134
gamemodes/darkrp/schema/factions/sh_mcp.lua
Normal file
134
gamemodes/darkrp/schema/factions/sh_mcp.lua
Normal 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 = "Ministry of Civil Protection"
|
||||
FACTION.description = "A representative of the Union's paramilitary.."
|
||||
FACTION.color = Color(63, 142, 164, 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 = 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 = true
|
||||
|
||||
FACTION.canSeeWaypoints = true
|
||||
FACTION.canAddWaypoints = true
|
||||
|
||||
FACTION.allowKickDoor = true
|
||||
|
||||
FACTION.idInspectionText = "Ministry of Civil Protection"
|
||||
|
||||
-- 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", "tac-3", "tac-4", "tac-5", "mcp",}
|
||||
|
||||
-- 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
|
||||
101
gamemodes/darkrp/schema/factions/sh_medicalunion.lua
Normal file
101
gamemodes/darkrp/schema/factions/sh_medicalunion.lua
Normal 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 = "Civil Medical & Research Union"
|
||||
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/medic.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 = {"cca-cwu"}
|
||||
|
||||
-- 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
|
||||
139
gamemodes/darkrp/schema/factions/sh_ota.lua
Normal file
139
gamemodes/darkrp/schema/factions/sh_ota.lua
Normal file
@@ -0,0 +1,139 @@
|
||||
--[[
|
||||
| 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 = "Transhuman Arm"
|
||||
FACTION.description = "A transhuman Overwatch soldier produced by the Combine."
|
||||
FACTION.color = Color(150, 50, 50, 255)
|
||||
FACTION.isDefault = false
|
||||
|
||||
-- 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.GHOST-"
|
||||
.. 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:SetRadioChannel("ota-tac")
|
||||
|
||||
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, "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)
|
||||
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
|
||||
117
gamemodes/darkrp/schema/factions/sh_overwatch.lua
Normal file
117
gamemodes/darkrp/schema/factions/sh_overwatch.lua
Normal 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", "ccr-tac"}
|
||||
|
||||
|
||||
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
|
||||
85
gamemodes/darkrp/schema/factions/sh_resistance.lua
Normal file
85
gamemodes/darkrp/schema/factions/sh_resistance.lua
Normal 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/rebel.png"
|
||||
FACTION.selectImage = "materials/willardnetworks/charselect/sewers.png"
|
||||
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/sewers.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
|
||||
94
gamemodes/darkrp/schema/factions/sh_serveradmin.lua
Normal file
94
gamemodes/darkrp/schema/factions/sh_serveradmin.lua
Normal 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 = "Server Administration"
|
||||
FACTION.description = "Staff members of Willard.Network"
|
||||
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
|
||||
159
gamemodes/darkrp/schema/factions/sh_vortigaunt.lua
Normal file
159
gamemodes/darkrp/schema/factions/sh_vortigaunt.lua
Normal file
@@ -0,0 +1,159 @@
|
||||
--[[
|
||||
| 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 = "A free Vortigaunt."
|
||||
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 = 150
|
||||
|
||||
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 == "Biyotik" or background == "Kurtarılmış" or background == "İşbirlikçi") then
|
||||
timer.Simple(5, function()
|
||||
if (background == "Kurtarılmış") then
|
||||
client:Give("ix_vshield")
|
||||
client:Give("ix_nightvision")
|
||||
client:Give("ix_vortbeam")
|
||||
client:Give("ix_vortheal")
|
||||
client:Give("ix_vortslam")
|
||||
if character:GetSkillLevel("vort") >= 50 then
|
||||
client:Give("ix_vortpyro")
|
||||
client:Give("ix_vortadvancedbeam")
|
||||
end
|
||||
if character:GetSkillLevel("vort") >= 30 and character:GetSkillLevel("melee") >= 30 then
|
||||
client:Give("ix_vmelee")
|
||||
end
|
||||
elseif (background == "İşbirlikçi") then
|
||||
client:Give("ix_vshield")
|
||||
client:Give("ix_nightvision")
|
||||
client:Give("ix_vortbeam")
|
||||
client:Give("ix_vortheal")
|
||||
end
|
||||
end)
|
||||
|
||||
if background == "İşbirlikçi" 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) + 50
|
||||
character:SetGenericdata(genericdata)
|
||||
character:Save()
|
||||
end
|
||||
end
|
||||
end)
|
||||
character:SetData("equipBgClothes", true)
|
||||
end
|
||||
|
||||
if (background == "Biyotik") 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_vmelee") then
|
||||
client:StripWeapon("ix_vmelee")
|
||||
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_vortslam")
|
||||
if character:GetSkillLevel("vort") >= 50 then
|
||||
client:Give("ix_vortpyro")
|
||||
client:Give("ix_vortadvancedbeam")
|
||||
end
|
||||
if character:GetSkillLevel("vort") >= 30 and character:GetSkillLevel("melee") >= 30 then
|
||||
client:Give("ix_vmelee")
|
||||
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
|
||||
110
gamemodes/darkrp/schema/factions/sh_workersunion.lua
Normal file
110
gamemodes/darkrp/schema/factions/sh_workersunion.lua
Normal file
@@ -0,0 +1,110 @@
|
||||
--[[
|
||||
| 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 = "Civil Workers Union"
|
||||
FACTION.description = "A member of the Workers 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.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 = {"cca-cwu"}
|
||||
|
||||
-- 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_cwu", 1)
|
||||
inventory:Add("cwu_card", 1)
|
||||
|
||||
if (background == "Worker") then
|
||||
inventory:Add("torso_yellow_worker_jacket", 1)
|
||||
inventory:Add("cwu_radio", 1)
|
||||
end
|
||||
if (background == "Medic") 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
|
||||
Reference in New Issue
Block a user