Gun Framework for U12 which supports manual reloading for pistols, shotguns, SMGs, and Rifles. Also has support for Dungeon mode, secondary fire attachments, explosives, and NPC waves. NOTE: This is the base framework, you will need to download weapon add-on packs to get weapons.
Requirements
This mod does not have any known dependencies other than the base game.
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou are allowed to use the assets in this file without permission as long as you credit me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
INFO FOR MODDERS
Under no circumstances should you be ripping these mod files into your own mod folder. This will cause conflicts and bugs for many people.
Instead, you should mark it as a dependency for your own mod, and reference the items/modules you need accordingly. See tutorials for details.
This is the only use condition for this framework, for everything else feel free to use the source code and unity source materials I have provided as you please. Happy modding!
File credits
There are lots of great modders who have helped me along the way. I owe them a great deal, and frameworks like this are made in their honour and spirit, to help others make amazing things.
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 7.0.0
Updated for Game Version U12
Added Shotgun Dismemberment
Memory cleanup improvements
Version 6.1.0
"Execution Update"
Fixes "Bullet Bounce" issues with close-range shots
Added dynamic system for close-up shots vs long-range shots
HitScan distance can be configured or disable entirely
Version 6.0.0
Updated for Game Version U11.2
Re-Organized Weapon and Resupply Categories
Version 5.1.0
Fixed Dungeon Support (Bullets spawn correctly in all rooms now)
Version 5.0.1
Fixed Magazine interactions in Firearms
Added fields for additional Recoil forces
Added Haptics on firing (Steam-VR only)
Misc. optimizations
Version 5.0.0
Updated Framework for Game Version U10
Removed Harmony dependency and hooks
Version 4.3.0
Updated manifest.json
Version 4.2.0
Updated Framework for Game Version U9.2
Fixed custom quiver module logic for external bullet holders
Version 4.1.0
Fixed collision breaking bugs
Fixed imbuement breaking bugs
Reworked framework internal collision system
Updated explosive system for ragdoll death/dismemberment
Version 4.0.0
Updated to game version U9 (performance update)
Added explosive projectiles with ragdoll dismemberment
Added ability to have multiple accepted magazines for each weapon
Refactored code to handle attachments (laser, compass, ammo-counter, etc) more efficiently
Version 3.1.0
Added Slide-Lock for Shotguns, to prevent accidental pump action. To enable the lock, hold down Trigger/Spell-Menu on the hand holding the foregrip/pump.
Version 3.0.0
Updated Modular Firearms Framework for U8.4 Beta. Major refactoring of ModularFirearms codebase to improve re-usability and generalization for modders.
Version 2.5.0
Added support for manual reloading of Revolvers and Pistols/SMGs/Rifles
Added support for Secondary Fire attachments via an ItemModule component
Added support to make projectiles explosive
Added support for simple projectiles, so that NPC waves can be added with this framework
You will need to download Weapon Add-On Packs in addition to this mod.
About this Framework
This is an all-in-one Gun Framework for Blade & Sorcery which supports manual reloading for pistols, shotguns, SMGs and Rifles.
With on-going development for secondary fire attachments, explosives, and NPC waves, this framework is constantly under development and will evolve as Blade & Sorcery receives updates.
Install Instructions
Extract the downloaded zip file and copy this folder:
To Download Weapons, you can either check the "Requirements" section of this mod to find other mods requiring this framework, or you can choose from this list:
If you are using mod version 7.0.0 or higher, make sure your game is updated to U12
Make sure you have "ModularFirearmsFramework" in your "Mods" folder. Then, you can download an addon pack (above) and install it the same way. For example, copying "ModularPistolsPack" into "Mods".
Mod Requirements:
Blade & Sorcery game version U12
Your have copied the mod folder(s) into \Blade & Sorcery\BladeAndSorcery_Data\StreamingAssets\Mods\
Additional Troubleshooting Tips:
If you have checked the above list, and you still have issues such as "?" or infinite loading screens:
Delete your Save Game data from: %USERPROFILE%\Documents\My Games\BladeAndSorcery\Saves
Remove all mods, then launch the game to see if the mods were the culprit. Then keep adding the mods back in one by one until you find the problematic mod.
Still not working?
Load the game, try to use the mod, then exit the game. Upload your player.log from this location provide it attached to a bug report: %USERPROFILE%\AppData\LocalLow\WarpFrog\BladeAndSorcery\Player.log
HitScan/RayCast System
To configure or toggle the HitScan system for close-range shots, edit the following values in 'settings.json':
"useHitscan": true, "hitscanMaxDistance": 1.0
'useHitscan' can be either true or false, and 'hitscanMaxDistance' is how close (in meters) you must be for the system to activate.
You can also control the HitScan system for individual items by adding these fields to the module of those firearms.
Good luck and happy adventures!
===================================
Note for Modders: If you want to make your own mod using this framework, keep in mind that the setup for these weapons is a little more complex than my other framework, and it is recommended for intermediate to advanced modders. You can find a complete guide here: