18 lines
513 B
Lua
18 lines
513 B
Lua
local npcs = list.Get("NPC")
|
|
local citizenEnemy = npcs["npc_citizen_rebel_enemy"]
|
|
|
|
if citizenEnemy then
|
|
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
|
|
}
|
|
|
|
list.Set("NPC", class, npc)
|
|
end
|
|
end
|
|
end
|