commit 835da4615c18afa0807f5a63235e1a6ceb11034d Author: nomi-nonsz Date: Mon Aug 4 15:11:48 2025 +0700 Add replace custom model npc to rebel diff --git a/lua/autorun/reclass.lua b/lua/autorun/reclass.lua new file mode 100644 index 0000000..bedba10 --- /dev/null +++ b/lua/autorun/reclass.lua @@ -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