With pda v2.0 or v3.1 your default faction doesn't attack you even when you are disguised as an enemy.
Features
- Your default faction doesn't attack you while you have pda v2.0 or pda v3.1 in your inventory. The logic is that you can securely communicate with your faction to let them know that you are a spy undercover and not an enemy. Previously (and now without pda v2+) your own faction attacked you while you were disguised as their enemy.
- Stalkers in the zone are rather stupid and don't think for themselves. As soon as that fancy green light on their pda moves away from your location they think you are an enemy. The moral: don't drop your pda while you are disguised as an enemy to them!
Mods already contained
- "Companions don't ruin your Disguise" from Vintar0's "Modular Miscellaneous Tweaks"
Works well with
- Ravenascendant's "he is with me (Anomaly 1.5.1)"
How did I do it?
I added code to gameplay_disguise.script that temporarily makes the actor_[faction] of worn disguise (your personal faction vs the npc faction not npc faction1 vs npc faction2) neutral to your default faction but only if you have pda v2.0 or pda v3.1 in your inventory. When you lose the pda or change the disguise the previous relations get restored. Again npc to npc relations aren't changed.
Installation
- Install. Drop the gamedata folder into Anomaly's main folder or enable the mod from the Mod Organizer 2.
- Uninstall. Revert the file back to previous version or delete it to revert it back to vanilla. Or simply disable the mod in Mod Organizer 2.
Final words
You can modify my changes or ideas in any way you want. However if your work is based largely on my ideas then please give credit! In case you find bugs please let me know!
Changelog
v1.0
v1.1
- Fixed a bug where in certain conditions game crashed on load.
[Notice board]
Works with Anomaly 1.5.1 and 1.5.2.
By the way, in case your own faction starts shooting at you because you are wearing enemy's armor then you can still calm down the situation. For that you need to change back into your default faction without having shot at your faction. Basically you can strip your armor or tear the patch off (with a secret ripping technique that only your faction knows I guess). This is vanilla behavior and isn't influenced by this mod.
or wear a cardbox and sneak up on 'em if you're in MGS V..
Looks pretty neat. I can finally truly fulfill my dreams of being a UNISG undercover agent without being merced by my comrades.
Brilliant! Thanks, I'll take it)
Your mod does not overwrite anything, but I have this crash when loading the game:
! [LUA] SCRIPT RUNTIME ERROR
! [LUA] ... - anomaly winter\gamedata\scripts\game_relations.script:202: attempt to concatenate local 'faction_1' (a nil value)
! [SCRIPT ERROR]: ... - anomaly winter\gamedata\scripts\game_relations.script:202: attempt to concatenate local 'faction_1' (a nil value)
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: ... - anomaly winter\gamedata\scripts\game_relations.script:202: attempt to concatenate local 'faction_1' (a nil value)
stack trace:
Hmm... I think it's about an old saved game. I'll look into it. I haven't seen errors that point to random line/comment when there isn't a syntax error. I guess it's a first time for everything.
One major bug out of the way. I fixed the crash and updated the files. The problem was that I didn't think about callback run order on game load so one variable wasn't initialized when it was supposed to be. Thanks for pointing it out! Why the error pointed to a weird line is still a mystery.
В каком конфиге я могу сделать так, что бы это работало только с пда 3.0?
In order to edit what items are used for communications you have to edit gameplay_disguise.script. I made a variable "comms_list" on line 47. If you have at least one item from that list in your inventory then you can communicate with your faction. It can be anything. Anything! It can even be a piece of bread.
Anyways the list contains itemIDs not item names that appear in the game. You can check itemIDs in debug mode spawn menu. And to finally answer your question: the line needs to be "local comms_list = {"device_pda_3"}" in order to only accept pda v3.1.
Thank you for the details, beginners really appreciate it!)
awesome 10/10
Updated the mod to v1.1. This contains a fix for a crash on a game load in certain conditions. I advise all who downloaded v1.0 to update the mod. Sorry!
You have no idea how this small of a mod (by size) can bring so many new dynamics and things to the game. Thank you so much.
Вот это хорошее. Есть смысл в принципе его апгрейдить.
very good addon something i was really need
thank you
Fantastic Idea!
hey thanks for the great addon but can i ask which specific line that make the addon work so i can combine it with modular miscellaneous tweaks (companions don't ruin your disguises)
The mod is already contained in my script.
Thank you so much for that awesome addon, very useful. I have a question to add an option.
Is it possible to add the possibility just with PDA v3.1, default faction's friends factions doesn't attack you ?
gameplay_disguise.script on line 47: "local comms_list = {"device_pda_3"}" in order to only accept pda v3.1.
For an explanation see my reply to ]{oNtrAst on Mar 29 (few comments above).
As of July 2022 I will be away from modding. I estimate the order of magnitude of my leave to be 6 months. In the mean time if something breaks then anyone proficient enough can take over/ make patch-mods.
Good luck, we will miss you
Hey ppl, I need some help
Does anyone know if the mod applies only to your faction? What about our allies?
It's only for your default faction aka your faction when you take your armor off.
The lore-wise logic is that you are communicating with your base through secure channels and since the channel has very high security then it's not shared even with allies.
I see. Thanks for taking some time to answer man. Love your mods!!!