Add replace custom model npc to rebel
This commit is contained in:
commit
835da4615c
14
lua/autorun/reclass.lua
Normal file
14
lua/autorun/reclass.lua
Normal 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
|
Loading…
x
Reference in New Issue
Block a user