This addon allows to enable or disable companions weapon jamming from contextual MCM menu.
MCM is supported.
A simple addon to counterbalance the (generally) bad companion aim and RNG in vanilla Anomaly AI by allowing to disable or enable companion jamming when firing mechanic at will.
Companions with automatic or semiautomatic weapons will unload their magazines and reload during strategic opportunities, but weapons will never jam, nor jamming chance will increase/decrease with companion rank.
This 24-09-2022 rework now completely disables jamming as originally intended (but never achieved), by increasing weapon condition of companion (while in use) to 100%, and restore it to original value when dead or not in use in a fight. With MCM you can disable or enable the feature at will.
Thanks for the addon! I have a question tho .. Is there a reason you included a vanilla copy of xr_weapon_jam.ltx in the install? It doesn't appear to have been modified in any way and just creates an unnecessary conflict.
I didn't have it in ai_tweaks folder and that caused problem, meaning the addon didn't start. If people will find it actually conflicting I'll remove it, so please, if a lot of users find it actually useless give me some feedback so I can remove it from later on, thank you.
Replying again because: the .ltx file was actually useless, I was mistaken into thinking that it had to be there, but if it isn't, the game just uses the db-packed one, so I removed it from the addon. Sorry m8!
No worries at all, and thank you for the addon!
Is/was there addon that effected all NPCs not just companions? I swear I saw one once but cant find it now
I think there actually was, but it was distributed along with a package of other addons. I can't remember the name right now.
Yes, it was "Modular Miscellaneous Tweaks" add-on, has a part that makes all NPCs weapons jam less: Moddb.com
And that is the conflict I mentioned above :)
That addon edits ltx parameters to decrease chance of jamming, so it has its own xr_weapon_jam.ltx file. If you have Stalker Anomaly vanilla, you won't have the ltx file in ai_tweaks folder, and I can't just hope that people already downloaded another addon that places that same ltx file in that folder, so I provide with a vanilla one. They don't conflict if you install them in the correct order, just install my addon before the other one, and when you disable Companions won't jam, jamming chances will be calculated by the MMT addon.
New update?
Yes, I removed the unnecessary .ltx file.
Does this really fix the endless reloading of NPC weapons every 3-5 shots!?
Yup, but only for companions. Regular NPCs can still jam their weapons, by a ratio defined in the vanilla xr_weapons_jam.ltx file.
How to completely disable this for absolutely all NPCs?
You can just place a "return" under "function npc_on_update(npc)", in xr_weapon_jam.script, but then MCM menu will become useless. If many people will request this, I might implement that into the addon and repackage it, later.
Will the MSM menu become useless for your addon or for everyone in general?
Just for this addon.
I don't know how to script, you can explain in more detail what needs to be changed in xr_weapon_jam.script, and, if it's not difficult, give a copy that I would insert)
I just looked, there is already a "then
return"
Please could you add it in, thank you so much for your mod
ty pro
Nice, now rookie stalkers won't jam ever shot now! Thanks man!
Thank you so much, this is a life saver. Specifically it saves the life of my companions, who (assuming they survive combat for more than five seconds) I have to prevent myself from shooting in the head out of frustration at how terrible they are at fighting.
Edit: Actually I've noticed that my companions still jam constantly with this mod, and I'm guessing that may be because it only stops the scripted, rank-based jam chance of xr_weapon_jam from applying to companions, whereas it seems as though they are also subject to jamming resulting from their weapon condition. Is there any way around that? I don't think non-companion NPCs actually have to deal with weapon condition at all (it seems like weapon condition is only applied to their guns when they die), and since companions are complete morons and just spray-fire their guns constantly, their weapons wear down very quickly, making trying to maintain them an absolute pain in the ***.
I tried to assign companions low-condition weapons, and still they don't jam on my end. If more people report this issue I will look into it...companions can also reload when behind cover, be sure you're not mistaking reload with jamming, since both have same animation.
Edit for: you were actually right, the only parameter that no longer influences weapon jamming with this addon is the rank, but weapons with low enough condition will still jam sometimes. I will try to fix this when I have time, in the meantime, I updated the addon description. Sorry!
Can you please make version which will just make this option by default? To install it without MCM. I just use mod organiser only and this is only one addon I want to use which requires MCM. I see that there are minimal changes required, but I'm dumb at programming
Hi mate! Sorry for replying so late, but the addon actually starts as enabled, with or without MCM. Having MCM simply allows you to switch it off and on whenever you want.
EDIT FOR: As in 24-09-2022 update, companion weapon jamming won't just scale with companion rank, but will be completely disabled, as I managed to achieve the originally intended result.
Enjoy!
1.5.1 будет работать?
В подземных локациях в равно застревают ,к сожалению...
Yes, it is compatible and working with 1.5.1 and no, I don't experience particular problems related to companions in underground places. I think it is the classic Anomaly RNG you're experiencing, as my addon simply increases condition to weapon in hand to 100% (temporarily) to prevent jamming.
такие моменты можно как-то исправить?
https://youtu.be/uaAfUUd1re8
This is not related to my addon. It is most likely normal Stalker Anomaly RNG or some other addon that edits behaviors or smart terrains.
AMazInG!
Can you please pretty please with a cherry on top make this for ALL NPC's? :-*
Uhm, this addon is designed to balance and fix things, other NPCs do not jam as frequently as companions, so I won't release such thing under my name. But you can do it by removing companion checks from .script files (anwyay, if enough people request it I might do it).
This comment is currently awaiting admin approval, join now to view.
Please do this for all NPCs, many need it
Double it. Do this for all NPCs pls
Since you're asking in many, I think it'll be the next thing I'll work on, but I don't have much time at the moment, so it will be a promise until then. Sorry!
Seems to be causing massive lag for me, loading game takes 10x more time than before.