[WOTC] Iridar’s Underbarrel Attachments
Last revision: 1 Nov at 21:49 UTC
This mod adds buildable Underbarrel Shotgun and Underbarrel Grenade Launcher. There are Conventional, Magnetic and Beam tiers. By default they can be attached only to Assault Rifles and Beowulf Rifles, but you can configure the mod to make UB attachments available to any weapon, and you even get to fine-tune the attachments’ position on the weapon model.
First you must research Modular Weapons -> Underbarrel Weapons (new research), and then you can build Underbarrel Attachments in Engineering one at a time for a modest cost in resources appropriate for each tier. More advanced versions become available with additional weapon research: UB shotguns require Magnetic Weapons -> Plasma Rifle, and UB grenade launchers require Muton Autopsy -> Advanced Grenades (the Proving Grounds project).
Additionally, purchasing Squad Upgrades for normal primary weapon Shotguns and secondary weapon Grenade Launchers will automatically upgrade not equipped Underbarrel Attachments to the next tier.
All Underbarrel Attachments add a -10 Aim penalty to Reaction Shots, and -1 penalty to Mobility. Configurable.
Underbarrel Grenade Launcher does not allow you to launch standard grenades. It uses its own ammunition.
By default Underbarrel Shotgun has three shots, and Underbarrel Grenade Launcher has one shot. At no additional cost you can build utility items that will provide reloads to Underbarrel Attachments.
Underbarrel Shotgun shots can Headshot the Lost and will respect abilities such as Light ‘Em Up or Marauder.
By default firing the Underbarrel Grenade Launcher is a turn ending action, while reloading it is a non-turn ending action. Both of them will respect Salvo and Total Combat.
Almost every aspect of this mod is configurable.
Thanks to cutting edge tech in X2WOTC Community Highlander, Underbarrel Attachments can be added to any weapon, check the XComUnderbarrel.ini file for examples.
By default this mod makes Rifles available to Grenadiers, and allows to build a special item that can be equipped instead of the normal Grenade Launcher, which will provide extra reloads to the Underbarrel Grenade Launcher, making it possible to build a soldier specifically around using Underbarrel Grenade Launcher.
If you also use my Open Weapon Restrictions mod, both of these equipment pieces will be unlocked for any class that uses a Grenade Launcher secondary.
It is also highly recommended that you get my Weapon Skin Replacer mod, as that will enable a cruch that improves attachment positioning for certain Attachment / Rifle combinations.
Beam Grenade Launcher can be configured to use the same targeting logic as Blaster Launcher, though if you use that, you will probably want to add an Elerium Core cost to them.
Incompatible with Customizable Secondary Weapons. Using it for some reason makes UB attachments not appear on weapons.
Compatible with Utiliy Slot Sidearms. These mods don’t directly interact with each other, but previously using both at the same time could cause crashes.
Compatible with RPG Overhaul, MOCX Initiative and A Better Barracks.
Integration with Grimy’s Loot Mod is out of the question for now.
Utility Items that offer extra reloads for UB Grenade Launcher count as grenades and should be compatible with all perks that increase grenades’ carrying capacity. Perks that provide bonus damage and effects to grenades are more tricky, and will likely require me to add additional support. Right now it is confirmed compatible with Biggest Booms and Volatile Mix.
Huge thanks to Community Highlander team for adding the necessary functionality at my request. Thanks to CX as a whole for a warm place to call home. Thanks to Spart for teaching me his kitbashing ways and for his sawedoff shotgun model. Credit to InternetExploder whose Beam Grenade Launcher was used as base for Beam Underbarrel Grenade Launcher.
Please support me on Patreon if you require tech support, have a suggestion for a feature, or simply wish to help me create more awesome mods.