Hotfix: didn't work on workhop
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
local npcs = list.Get("NPC")
|
||||
local citizenEnemy = npcs["npc_citizen_rebel_enemy"]
|
||||
local originalListSet = list.Set
|
||||
|
||||
if citizenEnemy then
|
||||
for class, npc in pairs(npcs) do
|
||||
function list.Set(listType, class, npc)
|
||||
if listType == "NPC" 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["KeyValues"] = {
|
||||
Hostile = 1,
|
||||
SquadName = "overwatch",
|
||||
citizentype = 4
|
||||
}
|
||||
|
||||
list.Set("NPC", class, npc)
|
||||
end
|
||||
end
|
||||
end
|
||||
originalListSet(listType, class, npc)
|
||||
end
|
||||
Reference in New Issue
Block a user