Fallout 4

File information

Last updated

Original upload

Created by

Bingle

Uploaded by

jarari

Virus scan

Safe to use

Tags for this mod

About this mod

A F4SE plugin to override shell casings without introducing new ammunitions to the game and spawn extra casings if necessary.

Requirements
Permissions and credits
Donations


Casing Framework

In Fallout 4, shell casings are tied to the ammo record. This forces the mod authors to add more types of ammo which some might feel more realistic and immersive but some might think it slow downs the pace of the game and simply adds more kinds of stuff to farm.

Casing Framework allows the mod authors to change shell casings without introducing new ammo types so they can add more arbitrary types of bullets with different looks.

Also, Casing Framework allows the gun to have more than one shell casings coming out from the gun. This might help mod authors with attention to details to add something like LMGs ejecting shell casings and belt links at the same time.

The framework uses keywords on the guns (including modifications) to see if it needs to override the casing, blocks the vanilla behavior and spawns custom casings instead.

Everything works from the engine level by intercepting the exact function used to eject casings and mimicking the original behavior.


How to Use
Spoiler:  
Show

1. Create P-Casing Connect Point Parents (CPA) just like you did with any other guns.


2. Insert a NiNode, name it nicely and copy the translation and rotation of P-Casing CPA.


3. Insert additional NiNodes if needed.


4. Create keywords in the esp for easier management.


5. Attach keywords to the gun through OMODs or the Weapon record itself.



6. Go to F4SE/Plugins/CasingFramework and create a .txt file.
Each line in the content will define keyword to match, casing nif and where it should come out from.
Write the content using the following syntax: <esp/esl/esm name>|<form ID without index>,<nif path>,<NiNode name>

For example: Winters_Pulemyot762.esp|0x6F0C,Weapons\Winter\Pulemyot762\Ammo\Casings\Casing.nif,CasingOut

This will make the framework find 0x6F0C from Winters_Pulemyot762.esp, which is LMG_Casing_Standard, and make it spawn Weapons\Winter\Pulemyot762\Ammo\Casings\Casing.nif upon fire from CasingOut node.




Credits

The F4SE Team for Fallout 4 Script Extender (F4SE)

Fudgyduff for Address Library and CommonLibF4