Add replace custom model npc to rebel

This commit is contained in:
Nomi Nonsense (Nonszy) 2025-08-04 15:11:48 +07:00
commit 835da4615c

14
lua/autorun/reclass.lua Normal file
View File

@ -0,0 +1,14 @@
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"] = citizenEnemy["KeyValues"]
list.Set("NPC", class, npc)
end
end
end