Auto-lower weapon after X seconds (MCM) :: AIM - SHOOT - MOVE to override
Based on Auto-Lower Weapon 1.4 addon by Diphenhydramine-HCl, fixed. Works with or without toggle aim. All credit goes to original author; I've only supplied a couple fixes and [soon] optimizations.
=====X=====
[[[ WHAT IT IS ]]]
It does what the summary says; auto-lowers your weapon after a time of your choosing.
Most importantly, the script no longer interrupts your aiming.
=====X=====
[[[ HOW IT WORKS ]]]
Hell if I know. What I DO know is, it didn't work previously; now it does.
Can be enabled/disabled via MCM, along with setting the timer length (minimum now 0.5s). Can be removed at any point. Does not require a new install/fresh game to work. Should not conflict with any other mods (only exceptions being ones that affect weapon lowering, obviously). Anomaly version shouldn't matter.
=====X=====
[[[ INSTALL ]]]
!!! INCLUDES 2 OPTIONS !!! ONLY INSTALL 1 !!!
- Put that DOWN will pause the script while moving
- Put that DOWN while you move will lower your weapon even if you're moving
Use MO2 (recommended), JSGME, or simply merge "gamedata" folder into yours. Order shouldn't matter.
If not using MCM, this same file also includes a default of 7s; open the file autolower_mcm.script, look for the line:
{ id="timer", type="track", val=2, min=0.5, max=15, step=0.5, def=7 },
and change the last part "def=7" to something else between 0.5 and 15 seconds. This SHOULD work, although I have not tested this. Please note, anything lower than 0.5s will make it increasingly difficult to fire from the hip.
Hey Shoostar813, very nice mod! I always roll around with the low-ready for the professional and confident feel so your mod makes it a smooth deal. One thing though, if it could happen so when aiming down sight would not lower the weapon period regardless of movement or standing still and without having to press the button would be even more fantastic, I have aim toggle on btw. It became an essensial mod for me, so thank you very much for making it! And extra points for the preview!!! Good hunting Stalker!
Thanks for pointing out the toggle bit. I think that was something I'd accidentally messed with a bit, but hadn't noticed as I do not use aim toggle.
I will take a look into it here shortly and will see what I can do for you :)
ooh yeah! "rubbining hands together"
Hi, I had to revert a lot of the code back to its original state as I work out the bugs, however, it DOES work as it properly should now. Basically, there's just a ton of leftover code in there that I'll have to remove on my own time, but it doesn't affect how the script works anyway. Go ahead and download it, and let me know if that fixes you up.
Thanks again for pointing this out!
Ma man! It works like a charm now. 10/10 for the mod and your efforts!
I'm glad it works and appreciate the kind words; however, I've only supplied a couple simple fixes, the credit should go to the original author ;)
dumb question but anyway we could have a script that just checks if im close to a frendly non companion AI and just lowers my weapon when im facing him? or is that too much of a perf hog?
Not a dumb question, this would be pretty cool. Maybe if I study another mod like Crook's Faction ID system (or something that already has scripting for visual identification of factions), I could learn how to do it. To me, it seems like that could be a useful route to go, and maybe not entirely the most difficult.
However, I'm very unskilled at scripting, so while I don't mind giving it a shot, I highly doubt that I'm going to be the guy to figure it out.
Yeah fair enough, not easy to figure this stuff out for sure!
Correct you are! However, part of the reason I made this edited addon is because, well, I wanted the proper functionality, but also to hopefully learn a thing or two, so I can maybe contribute a couple more simple scripts. The one you have sounds like a good idea (and one that I would also use), so again... no promises, but I'll give it a shot!
thanks!
this is super cool!
Hello friend, I get this message in the console when using the latest version, with the previous version this did not happen:
!Found nil option value [autolower/override]
occurs when aiming and when lowering or raising the soul with the default button
Yes, I've noticed this as well. It doesn't seem to affect anything, either the function of the script or the game itself, so for now we'll have to put up with this console error.
However, this is something I am aware of, and am actively working to fix. Thanks for pointing this out :)
shoostar813, брат, я хотел такой мод, но проблема в том, что он не прячет оружие во время бега или ходьбы, а только если стоять смирно. Не мог бы ты это исправить?
shoostar813, bro, I wanted such a mod, but the problem is that it doesn't hide the weapon while running or walking, but only if standing still. Could you fix that?
Yes, this was done intentionally. However, there is an easy fix for you. Please open the file gamedata/scripts/autolower.script and look for this on line 15:
if (is_empty(xr_combat_ignore.fighting_with_actor_npcs) and not IsMoveState("mcAnyMove") and not axr_main.weapon_is_zoomed) then
change to this:
if (is_empty(xr_combat_ignore.fighting_with_actor_npcs) and not axr_main.weapon_is_zoomed) then
Your weapon should now lower while walking or running :)
Hello again, I have uploaded a new version of this addon. You may download it now, it includes two versions: normal Put that DOWN, or Put that DOWN while you move.
You will want to install Put that DOWN while you move, and you should be ok now :)
shoostar813, thanks, but it still need fixing. It doesn't hide weapons after walk+aiming. And the mod shouldn't hide binoculars.
shoostar813, thanks, but it still need fixing. It doesn't hide weapons after walk+aiming. And the mod shouldn't hide binoculars.
Great, much better than the one I was using, thank you very much. 10/10
Thats such an iconic picture at this point, that you would almost think that it was staged. That they posed for it. But they're serious. Missouri.
Great mod, a nice QoL improvement.
What would make it perfect would be if it remained lowered even after stopping sprinting. Also, changing the time in the MCM options seems to nullify the mod entirely, I reduced the time from default (7 seconds) to 3, and the weapon no longer lowered.
Is there a way to modify this so that it will not autolower when reloading? I've noticed since I installed that when reloading a shotgun ( I have the timer set to 15 )
that it will swing all the way to the side.
Thank you! It is very comfortable.