hybrid
This commit is contained in:
parent
a3cd160929
commit
6333f2390b
@ -1,9 +1,10 @@
|
|||||||
|
local npcs = list.Get("NPC")
|
||||||
|
local citizenEnemy = npcs["npc_citizen_rebel_enemy"]
|
||||||
local originalListSet = list.Set
|
local originalListSet = list.Set
|
||||||
|
|
||||||
function list.Set(listType, class, npc)
|
function list.Set(listType, class, npc)
|
||||||
if listType == "NPC" then
|
if listType == "NPC" then
|
||||||
if npc["Class"] == "npc_combine_s" and npc["Category"] ~= "#spawnmenu.category.combine" then
|
if npc["Class"] == "npc_combine_s" and npc["Category"] ~= "#spawnmenu.category.combine" then
|
||||||
local citizenEnemy = list.Get("NPC")["npc_citizen_rebel_enemy"]
|
|
||||||
npc["Class"] = citizenEnemy["Class"]
|
npc["Class"] = citizenEnemy["Class"]
|
||||||
npc["KeyValues"] = {
|
npc["KeyValues"] = {
|
||||||
Hostile = 1,
|
Hostile = 1,
|
||||||
@ -13,4 +14,19 @@ function list.Set(listType, class, npc)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
originalListSet(listType, class, npc)
|
originalListSet(listType, class, npc)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Second stage. idk if one of these necessary
|
||||||
|
timer.Simple(0, function ()
|
||||||
|
for class, npc in pairs(npcs) do
|
||||||
|
if npc["Class"] == "npc_combine_s" and npc["Category"] ~= "#spawnmenu.category.combine" then
|
||||||
|
npc["Class"] = citizenEnemy["Class"]
|
||||||
|
npc["KeyValues"] = {
|
||||||
|
Hostile = 1,
|
||||||
|
SquadName = "overwatch",
|
||||||
|
citizentype = 4
|
||||||
|
}
|
||||||
|
originalListSet("NPC", class, npc)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
Loading…
x
Reference in New Issue
Block a user