Arma 3
Not enough ratings
LSM Weapon Swap - Vanilla Version
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
Mod Type: Animation, Mechanics
File Size
Posted
11.014 KB
29 Sep, 2023 @ 7:03pm
1 Change Note ( view )

Subscribe to download
LSM Weapon Swap - Vanilla Version

Description
This is an edited version of Ant's Gunslinger that I have modified to do a couple of things. Gunslinger had a number of advantages over the original GGE Weapon Swap, but also had a few bugs that I wanted to work out. This version is setup for vanilla animations. A version for Funny's Animations is available as well.

First, the script method for hanging the weapon on your character has been changed back to the type in the original GGE Weapon Swap to keep weapon attachments visible. This always bothered me personally, and it actually cleaned up the code considerably. The script itself is modified and should prevent the AI Flying Up For Eternity bug as long as you're not climbing into vehicles with your pistol or launcher out after swapping. Simplest explanation is that the container always attached to your character that caused the issue in GGE is only spawned on key presses in this version and gets deleted when you switch back to your rifle. So, if you're catching a ride with an AI pilot, keep your rifle out and the game shouldn't break.

Second, I worked in Webknight's excellent animations from his Double Primary mod and they fit perfectly. This will not work without his mod running as well. The timing makes your switch to pistol pretty darn fast too so now Gaz's words of wisdom are true for Arma 3. I had worked on using eventHandlers to complicate the animations up (holster pistol before picking rifle back up etc) but decided to scrap that portion to keep everything in this release as simple as possible. I might come back to that idea in the future since now, your character's weapon just kind of materializes on his side as you draw your pistol. It looks fine, but from some tests I ran, it can look better but would require a substantial rework of all the code in this mod.

Third, this calls the functions using vanilla keybind actions instead of the 1,2,3 keys making it rebindable and usable with multi-function weapon binds. No more whipping out your pistol when trying to use AI command menus or switch weapons on a drone. I decided to not include one for binoculars deliberately since the animations didn't really fit and I didn't want to create a bug like the one in GGE Swap where you're unable to switch from your binoculars if you had a laser designator equipped.

Credit to goobin and Ant for their work on the original swap mods and to Webknight for his animations. I've just frankensteined everything together and fixed a few bugs that bothered me.
2 Comments
ElPedroChicoRaulAlfonsoTejada 14 Jul, 2024 @ 12:53pm 
Really good mod

Some issues though: If you swap weapons while moving or crouched, the weapon will be floating
little andy 7 Oct, 2023 @ 9:53am 
neat