The result of two days of cooperative modding on the anomaly discord #modding-development
NPC Appearance will change to match the "best" outfit in their inventory, if it is better than what they are wearing by default. Will change back to original appearance when "better" outfit is removed.
Includes an optional patch to make NPCs actually loot armor, not just talk about it.
Experimental feature to change NPC appearance if their armor is looted.
Dynamic NPC Armor Visuals:
- NPC with a story ID are excluded, this includes unique NPCs and some other wise generic NPCs that may be part of a quest or placed somewhere as a guard.
- Armor is compared based on a weighted sum of, in order of magnitude, ballistic, explosive and rupture protection. Weights can be changed in the ltx
- Not all NPCs will wear other factions armors. No one wants to risk wearing Monolith or Sin gear for fear of being shot on site. Duty and the Military are too proud of their uniforms to wear another factions. Bandits and renegades on the other hand are the least picky. This can also be changed in the ltx.
- Sections are the NPC's community followed by a list of armor counties with a bool for if they can be worn, missing is same as false. Meaning it is basically a whitelist.
- Without the below patch this only affects companions, or NPCs you sell an outfit to because NPCs don't loot outfits.
- Can cause small animation glitches, will stop when NPC moves
NPCs Loot Outfits
- Removes the black list that was stopping NPCs from looting outfits.
- Now when a stalker on the radio brags about looting a Sunrise Suite they will actually have it on them.
- Combined with Dynamic NPC Armor Visuals you might find yourself being attacked by a bandit dressed in Duty armor.
Strip Corpses (beta/experimental)
- When an outfit that matches an NPC Corpse's appearance is removed from it the corpse will change appearance to reflect their armor being looted.
- Corpse will briefly ragdoll and can move, just pretend you tossed them about while stealing their pants.
- If above patch is installed appearance will change when NPC loots the outfit, otherwise only the player will.
- Striped corpses now have more variability:
- For even more variety get this.
Update: bug fix and added code to ignore the female stalker added by Dux Fortis.
This addon should complement DNPCAV well: Moddb.com
Make sure you have the current version before reporting crashes.
Update 12 fixes crash if the 08 folder was not installed
update 11 fixes NPCs not remembering what the started out wearing, adds support for letting companions ignore faction outfit restrictions, lets mercs wear more things since the main story mentions they use disguises and breaks out the ltx and extra corpse meshes in the BAIN
update 10 restores the compatibility with MO2s basic installer, no other changes. update 9 fixes renegades not using correct meshes when stripped. Adds a red print to the console for issue that would have cause a crash in update 6. Let me know what it says.
Yes this addon does affect NPC resistances, as generic NPC's resistances are tied to their visuals.
Checkout: Moddb.com for more corpse variety
😮
you absolute ******* mad lad!
I cant mash the 10/10 button hard enough.
Looks great! Does this work with More Armors and Outfits?
If they have assigned npc visuals. With out those no. Not having an entry in death_outfits.ltx might mess up the logic at times.
Will this be compatible witb groks ballistic overhaul
Yes. There is a small chance that what the npc thinks is best and what is actually best may be off, but that exists in the vanilla implementation any way just for other reasons. In general tho they should still pick upgrades, just close variants may be off.
Compatible with HD Models Addon?
Probably, would depend on how they implemented the changes.
Please let me know!
This comment is currently awaiting admin approval, join now to view.
Да совместимы
good job
would Hip swap outfits or no?
No, only try random stalkers.
This comment is currently awaiting admin approval, join now to view.
It's not needed anyways because most story NPC have armor profiles better than Nosorogs basically.
damn another must have addon!
this game's mechanics are getting deeper the more the time passes, i remember back to SoC damn so good, thx mate!
Works fine with my Balanced Overhaul Of Ballistic System :) !
Thanks Raven and co !
How I missed this opportunity from the old SoС mods. Thank you!
getting this ctd after playing for a while:
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...bin/..\gamedata\scripts\dynamic_npc_armor_visuals.script:59: attempt to index local 'npc' (a nil value)
Thank you. I will have a fix out later this evening.
getting a crash every time i try to go to cordon:
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...nomaly\gamedata\scripts\dynamic_npc_armor_visuals.script:59: attempt to index local 'npc' (a nil value)
If you could install the update, and try this again to see if it crashes. If it doesn't quit the game and send me the full crash log. If it does crash also please send full crash log. pastbin or the anomaly discord work best.
well since updateing I haven't had any more crashes, but for some reason I cant get any of my companions to change armor.
I gave then nosorog armor that ive maxed out to be near bullet proof but they refuse to swap to it.
are ecologists excluded from npcs who will switch armor or have i misunderstood something?
edit: nvm i read the ltx file, i was trying to give them armor from a faction they wont wear.
also were you wanting me to send you a crash log even if I didn't crash?
I also gave my ecologist companion a monolith nosorog and they won't equip it. Is there a way to make them equip it?
Can I savely install and later maybe even uninstall it again on a already running game? Or do I need to restart a new game after installing / uninstalling?
Thanks for this Addon. It sounds great!
only thing that might happen if you uninstall it is NPCs will stay with what ever appearance they have when you uninstall.
That's something I could live with. Thank you for your quick response
i can see the character progression, start at the cordon with your pals wearing ****** gear, end up at the CNPP wearing Exos and Skat-9. No more leaving your companions behind because "too much dangerous" this is good stuff.
btw small question, does this mod affect Psoglav?
No story NPC are exempt. Also his actual stats are much better that his visual. Which is part of the reason they are exempt.
i see, thanks for improving our game experience, I'll try this rn
Thank you for the fix. Just got a crash and decided to come on here to report it.
Also, will this work with the exoseva mod?
It shouldn't break. An armor without NPC visuals set may result in the NPC ignoring all armor and revert to default until that armor is removed.
If the armor mod has properly assigned NPC visuals it should work. It will work better(more consistent with other armors) if it also has an entry in death_outfits.ltx
NPC visuals are simply the line below Actor Model in the various armour.itx files right?
It works, I just tested all three features (companions, NPC looting, player looting). Exoseva mod uses entries and models that are already in the game, so there's not much room for error.
This comment is currently awaiting admin approval, join now to view.
This is a really cool mod. Now it's worth recruiting dudes that are not already wearing Exos if you have some spare armors. The model swap visual glitches and ragdolls are kinda funky, but such is life in the Zone.
I will probably set it to make NPCs only wear their factions' armors to avoid confusion though. For me gameplay goes above realism.
Also enemies cosplaying as friendlies is a war crime and the Zone is a very lawful place after all.
LOL. I do like XCVB's idea that the sketchy types would be more likely to wear false colors, but I completely understand your point. Fortunately that is an easy edit to ltx.
Glad to learn it works with exoseva like i had hoped. Now as long as everyone else implements new outfits with the same completeness....
Yeah, I love it when mods allow easy customization. Real good job on that. <3
Also, despite what I said earlier, the idea of "war crime" bandits is actually canon. In SoC when you first visit Garbage and approach the Duty outpost, there will be a nearby fake SOS signal displayed on your PDA map and there will be a bandit dressed up as a stalker ready to shoot at you with his pals. So I guess it is actually more in the spirit of the series.
How can I enable factions to upgrade only their faction outfits? I also see the problem of not recognising enemies because they wear another uniform.Except maybe bandits.That would be cool if only they would swap no matter what faction.
edit the ltx that comes with the mod so that each section only has an entry for their own faction:
[bandit]
bandit = true
[stalker]
stalker = true
repeat all factions
Wow that sounds great! So I even could setup that each faction could still use the outfits of other *friendly* factions, right?
you can set it up any way you want. it is a simple whitelist mechanic.
That is absolutely marvelous work! Thank you!
Awesome! So many good mods these days :)
Bruh, this is a legendary mod, especially if it works with HD models. Great job!
The more I think about it, this seems like it would have an interesting dynamic when interacting with people. You could be walking up to what appears to be a Clear Skys person, but it's actually a renegade/bandit wearing a suit they picked up earlier. Very interesting. Can't wait to get dabbed on when trying to sell some things lol
Indeed. While i can't do anything about the engine crosshair i am thinking that I may add an option to my crosshair mod to base the IFF off of the visual if they are far away.
Please let me know how it interacts with HD Models.
Expression : <no expression>
Function : CScriptEngine::lua_error
File : ..\xrServerEntities\script_engine.cpp
Line : 191
Description : fatal error
Arguments : LUA error: ...nomaly\gamedata\scripts\dynamic_npc_armor_visuals.script:59: attempt to index local 'npc' (a nil value)
stack trace:
What?
Update to latest version. Please make sure you have latest version before posting crashes. You literally scrolled past my top comment that has a line about this crash being fixed.
oh, sorry! And thanks you
What faction in the whitelist is the "killer" faction? :o
EDIT: Ah I guess Mercenary