A small script that hides your weapon and plays a sound when unjamming.
What it says on the tin: a simple script that hides your weapon, plays a sound, and pulls it back out when unjamming, similar to what you would find in Weapon Parts Overhaul.
Some of the code and the sounds used comes from WPO, so credits go to them.
1) Drag and drop gamedata into your Anomaly folder, same as always.
Version 0.1 (June 1, 2023 || 7:25 PM)
- Initial release.
Version 0.2 (June 2, 2023 || 1:00 AM)
- Hopefully fixed a crash when attempting to index an empty variable caused by quickly switching to another weapon before unjamming.
Version 0.3 (June 2, 2023 || 11:17 AM)
- Added compatibility for weapons with actual unjam animations. (BaS, Blindside, etc.)
Version 0.4 (June 4, 2023 || 12:25 AM)
- Weapons are now properly placed back in their original slots after unjamming.
- The first few seconds of reload sounds on some weapons will no longer play when unjamming.
Version 0.4.1 (June 4, 2023 || 12:47 AM)
- Minor hotfix for a crash.
thats very usefull thx no more loading the entire weapon ;)
there´s some kind of stack trace error, please help and fix it
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_pcall_failed
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 206
[error]Description : fatal error
[error]Arguments : LUA error: c:/games/anomaly 1.5.2\gamedata\scripts\moon_jamming.script:19: attempt to index local 'wpn' (a nil value)
stack trace:
Is it caused when you quickly switch weapons before unjamming? If so, it should hopefully be fixed in v0.2.
i tell you later thx
crash now gone but weapon is unequipped after jamming
especially shotguns
very cool, this feature was the main reason i used WPO for so long
bas weapons are not ignored =(
do it only vanilla weapons, pls
Done.
This comment is currently awaiting admin approval, join now to view.
is this compatible with magazines mod?
just tested it. nope XD
what is the rifle in the preview? (similar to M16 in some kind of dusty camouflage) publish her skins!
it's the m16 from farcry 2
When I unjammed a weapon in the right slot with an occupied left slot the weapon stayed in my inventory and wasn't pulled back out. Otherwise I love this. Nice to have this feature as standalone.
Should be fixed now.
any new updates planned?
Hi moonshroom, I ran into an issue: after unjamming a weapon, the fire mode is reset to default.
Edit: I also noticed that when the magazine is empty and at the same time the weapon jams, trying to reload the animation crashes and it is no longer possible to draw any weapon or the pda.
after unjamming gun is stuck in backpack...please help
Version 0.4.1: actually unjamming and emply reloading on conditionally bas not working, to make them work, you need to right-click.
bas weapons broke down(
Awesome and must-have addon, but disadvantage is: if a weapon has jam animation, you can't more unjam that gun, which really sometimes disappoints.
This is a really cool mod ! please please make a compatibility patch magazines mod please ! thank you so much.
please update!
please, fix bug: when you unjammed a gun some times, you can't choose any gun/device, need to load the latesr save