Fallout 4
0 of 0

File information

Last updated

Original upload

Created by

shavkacagarikia

Uploaded by

shavkacagarikia

Virus scan

Safe to use

About this mod

Finally, an engine level implementation of the Damage Threshold system from Fallout: New Vegas, with all of its cool features!

Requirements
Permissions and credits
Translations
  • Russian
Changelogs
Donations


As of now, this mod is no longer supported as a framework. There have been numerous edits and changes done with it for F4NV internal version and considering it being integrated with other F4NV systems, I simply have no time and interest in maintaining and fixing this stripped down version of the much bigger system that will be part of F4NV if when it's released.
This will still receive version updates when Fallout 4 gets updated.




Latest supported game version: 1.10.163

Update Info:
Spoiler:  
Show

Update 12 (v.1.8.1c):
-Fixed crashes caused by 1.8.1b version
-Code optimization

Update 11 (v.1.8.1b):
-Code optimization
-Potential fix for living anatomy elements displayed outside of vats

Update 11 (v.1.8.1):
-Fixed calculation for multiple projectile weapons

Update 10 (v.1.8):
-Fixed shield display visual element bug
-As3 side code optimization

Update 9:
-Fixed attack crash when using DamageThresholdFramework.esm without optional plugin


Update 8:
-Minimum DT penetration value is now configurable by editing _MinDTPenetration global varaiable (its 20% by default)


Update 7:
-Fixes every workbench related crash


Update 6:
-Menu hooks optimization
-DT and AP values are now displayed on weapon/armor workbenches and when item is examined in pipboy


Update 5:
Big functionality update:
-Ability to modify optional plugin formula that dynamically sets dts to all armors ingame. Read more about it here
-DTF now can read dt related forms from external .esp files without need to be dependent on DamageThresholdFramework.esm. What that means?
Spoiler:  
Show
That means that big overhaul or total conversion mods can use framework functionality without being dependent on this mod's esm, the reason is that big mods cant be dependant on more than 3 masters, so now they can make dtf to read data from their master instead. Smaller mods still should be dependent, because forms from only one esp can be loaded at the same time (if you are making a mod, want to use functionality from here and not sure which way to choose, contact me and Ill try to help)

(included demo esp and ini file that shows how that can be made)


Update 4:
  • Fixes the bug that was giving unexpectedly high DTs to few armors
  • Fixes (hopefully) every kind of ctd that may happen before/after loading main menu

Update 3:
  • Fixes crash before/after loading main menu happening because of incompatibility with large overhaul mods (Only half, this is fully fixed in Update 4).

Update 2:
  • Fixes occasional game crash during enemy attacks.
  • Flash side improvements.
  • Additional code optimization.

Update 1:
  • Fixes the bug that was making player weapons to have 1 damage.
  • Additional code optimization.



For direct questions, suggestions and bug reports (if you find any) you can join my discord: https://discord.gg/2SgPMns



Brings back the famous Damage Threshold system from Fallout: New Vegas, including all of its features, original calculations, and visual elements. Not enough? Ok - This also brings back armor piercing ammunition functionality, the living anatomy perk and an optional plugin that dynamically integrates all that into fallout 4.

No workarounds, no Papyrus, just a straight engine-level implementation, possible thanks to F4SE.

This is one of the core mechanics that will be used for the Fallout 4: New Vegas mod project. Since it's ready, we decided to share it with the community and other modders so that they can easily use its functionality in their mods, or make complete overhauls using this. The possibilities are endless.






If you aren’t familiar with the previous Fallout titles, you may ask:
“What is a damage threshold?”
I think the project director of Fallout: New Vegas explains it well:
“Imagine that there is an amount of damage that armor directly subtracts from damage... a 'threshold' of damage, if you will. While a small percentage of damage may get through even the thickest armor, damage threshold can effectively neutralize a lot of small arms.”







Main Framework:
The original damage calculation formula from New Vegas. It's calculated before final damage is applied to the target after all other calculations happen.
All of the needed visual elements including: Visual elements near the health bar based on various conditions, damage threshold and armor piercing stat display elements in the Pip-Boy and other menus, and a new menu showing the target’s health and damage threshold values under their health.
Because of the way the mod is done and no papyrus is involved, it operates really, really fast.
Provides everything a modder/user may need to add custom damage threshold to another mod.
Optional plugin:
Dynamically adds damage threshold to every armor (including armors from other mods).
Dynamically adds damage threshold and armor piercing ability to dangerous creatures.
Adds armor piercing ammo versions of vanilla ammunitions, integrates them into leveled lists (by script that means no incompatibilities), and also makes them craftable.
Adds new modifications to vanilla weapons for the use of armor piercing ammunition with them.
Adds the Living Anatomy perk, with custom-made perk animation and custom-made perk magazine.
Allows you to dynamically enable and disable vanilla damage resistance calculation from the in-game console.







This mod comes in two parts. The main file is the framework itself. It provides everything  needed for any modder or user to add the damage threshold system's features into his/her mod. There is included documentation that provides  a detailed explanation on how you can go about doing that.

The second part is the optional .esp for those who want to use the mod right out of the box. When you activate it along with DamageThresholdFramework.esm, the damage threshold system will be dynamically integrated into Fallout 4 and OTHER MODS. “Dynamic” in this case means that the optional .esp doesn't modify anything vanilla, and should be compatible with everything. It does everything on runtime using a set of custom formulas. 

You also have two options there - one will disable the damage resistance calculation in the game completely and only damage threshold will be left. Another option is DR + DT. In this case, damage threshold is an additional layer of protection provided after the damage resistance calculation happens (this option should be used by only very hardcore players.) You can enable/disable these options via the in-game console by typing “player.setvalue _IsDRCalculationEnabled 1” or “player.setvalue _IsDRCalculationEnabled 0”  where 1 means that DR calculation is on and 0 means its off. It's set to 0 by default. You can also manually set its value from the .esp .





The mod uses no papyrus, that means it ABSOLUTELY CAN NOT do any harm/damage/bloat your savegame, it does all its work in memory, so it can be installed/removed whenever you want without any problems. Even the DT values for optional plugin are created dynamically during runtime and dont touch savegame.

The optional plugin isn’t very well balanced, and it doesn’t reflect the implementation of damage threshold system in Fallout 4: New Vegas. The only reason it uses formulas to add DT on armors is to have the plugin compatible with everything, but in F4NV there will be only custom armors so everything will be properly balanced.





Note: Answers having  an asterisk (*) means that they are correct only if the optional plugin (DTFOptionalPlugin.esp) is activated.

Q: Can I add damage threshold (DT) to armors manually?
A: Sure, very easily. Read more here: Link

Q: How does armor piercing (AP) work?
*A: They are new ammo variants that you can use on various vanilla weapons by adding specific mods to them from a weapon workbench. 

Q: Is it possible to add a higher damage threshold (DT) value on armor from the base game?
*A: Yes, every armor that you can add ballistic weave to from the Armorsmith workbench can have an added Threshold Layer that will modify its damage threshold value.

Q: What are those full/broken shield icons I see next to enemy or under player health?
A: If the damage of an attacker is less than the target's damage threshold, a shield appears near the target's health, meaning that the target’s damage threshold (DT) is blocking most of the incoming damage. If the attacker uses armor piercing ammo and its value is more than target’s damage threshold, a broken shield appears near target’s health, meaning that the whole damage threshold (DT) was overcame by armor piercing (AP) damage.

Q: Where can I find the Living Anatomy perk magazine?
*A: It’s in one of the half ruined buildings near Fort Hagen.

Q: Can you tweak/balance the optional plugin? 
*A: No. Consider the optional plugin to be a kind of basic demonstration of everything the framework has. You can do your own tweaks or make new patches.

Q: I still see enemies with damage resistance, why?
A: You will still see them, but they wont affect the damage calculation until the appropriate option is enabled.






Use NMM or drag and drop files into Fallout 4 directory.
There are two downloads, the main framework esm and the optional plugin. 





Some of the features may wont work correctly when starting new game, just save game and load and everything will start working






Neanka – Great Help,advice, decoding and as3/flash communication part.
Kassent – Advice, pipboymenu hook.
Reg2k – Advice, postDRcalculation hook.
gir489 - Addresses
BigCman – Living Anatomy Perk animation and perk magazine design.
Wanamingo - Optional plugin tweaking, balance and testing.
metamoth741 - Additional help and testing
leldorado, mechtechnal - Testing
F4NVTeam – Moral support



Source Code




Classic Holstered Weapons System
Bullet Counted Reload System
Extra Item Info (EII)
Lever Action Reload Fix
Blink Grenades (Teleportation)
Toggle Revolver Fanning - Wild West Cowboy
Survivor Vault


if you like what I do, you can support me on Patreon