Hotfix: didn't work on workhop
This commit is contained in:
parent
668ae2d9ae
commit
a3cd160929
@ -16,8 +16,12 @@ If you want your enemies to be more human, this mod will change all hostile NPC
|
|||||||
- Change the behavior of custom models NPCs from combine to citizen
|
- Change the behavior of custom models NPCs from combine to citizen
|
||||||
- Allows hostile to attack with melee weapons
|
- Allows hostile to attack with melee weapons
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
I'll make VJ version if i can
|
I'll make VJ version if i can
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
models used:
|
||||||
|
- Lenna https://steamcommunity.com/sharedfiles/filedetails/?id=3167885628
|
||||||
|
- Tomoko https://steamcommunity.com/sharedfiles/filedetails/?id=3133369749
|
||||||
|
|
||||||
Note: i couldn't find a mod similar to the one i made, so i don't know who made it first.
|
Note: i couldn't find a mod similar to the one i made, so i don't know who made it first.
|
@ -1,17 +1,16 @@
|
|||||||
local npcs = list.Get("NPC")
|
local originalListSet = list.Set
|
||||||
local citizenEnemy = npcs["npc_citizen_rebel_enemy"]
|
|
||||||
|
|
||||||
if citizenEnemy then
|
function list.Set(listType, class, npc)
|
||||||
for class, npc in pairs(npcs) do
|
if listType == "NPC" then
|
||||||
if npc["Class"] == "npc_combine_s" and npc["Category"] ~= "#spawnmenu.category.combine" 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["Class"] = citizenEnemy["Class"]
|
||||||
npc["KeyValues"] = {
|
npc["KeyValues"] = {
|
||||||
Hostile = 1,
|
Hostile = 1,
|
||||||
SquadName = "overwatch",
|
SquadName = "overwatch",
|
||||||
citizentype = 4
|
citizentype = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
list.Set("NPC", class, npc)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
originalListSet(listType, class, npc)
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user