Armor Fix for All Weapons

Cyberpunk 2077 Mods |

Armor Fix for All Weapons

Makes armor reduce damage from ALL weapon types (instead of only ranged) and fixes some ranged weapons where armor was working too much (shotgun) or not at all (Oda’s gun).

The Problem:
Thanks to some observations by Scissors123454321 that shotguns and some other weapons were doing very little damage to the player, I discovered some weird stuff in the game’s armor logic. After some digging, it looks like there are some incorrect data values the game uses to calculate damage reduction for armor for certain weapons, but not others.

Armor is supposed to reduce damage by 0.1 DPS per point of armor. That’s what it says in the game. That means that the reduction per hit is different for each weapon, since a shotgun or submachine gun hits more often and for smaller amounts of damage than a rifle or something like that.

In the unmodded game, when processing a hit to the player, the game pulls an “attacksPerSec” stat for the weapon the NPC is using and uses that and the armor point amount to calculate the damage reduction. The problem is that the attacksPerSec value is clearly wrong for a few ranged weapons, and is 0 for all melee weapons, causing those to be unaffected by armor. I don’t know if making melee weapons unaffected by armor is intentional or not.

For my armor_works_against_melee mod I just changed attacksPerSec to a new value I found through experimentation whenever it was set to 0. This was ok for melee weapons, but didn’t fix the problem with shotguns and other weapons which I didn’t know about.

The Solution:

My new solution for all weapons is to calculate attacksPerSec using the NPC’s DPS value (determined by their level and the difficulty setting) and the damage of the hit, making the armor damage reduction consistent across all attacks. This results in an identical reduction for most ranged weapons, and a corrected reduction for shotguns (used to be reduced by over 100% for a typical amount of armor), turrets (same), Oda’s smart gun (no reduction in unmodded game), and probably some other weapons I didn’t encounter in my testing. If you want to test the effects yourself, note that armor can’t reduce damage below 1. So you should be able to see that shotgun blasts do as low as 1 damage to you per bullet in the unmodded game if you have a normal amount of armor for your level.

Note: NPCs do not have armor. There is a perk that makes tech weapons ignore armor, I think, and if that has any affect it must be processed somewhere else. Maybe it just grants a bonus to damage.

Installation
Make sure to DELETE armor_works_against_melee if you were using that one. If you use Lifepath Bonuses and Gang/Corp Traits you can just skip this mod because I will incorporate this fix into that mod. They modify the same redscript function, so I have to do it that way.
IMPORTANT: This mod depends on redscript. Download and install that first!
To install this mod, extract the zip file into the Cyberpunk 2077 installation folder (the mod files go to “Cyberpunk 2077/r6/scripts”).


Author: RMK
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading...

This content was uploaded by website visitors. If you notice any mistake, please let us know.


Looking for opportunities to update the Cyberpunk 2077? Then you are on the right place! We offer a wide range of various mods for even very specific requirements. Cyberpunk 2077 Armor Fix for All Weapons Mod help to improve a game and make it more interesting. Why not to take an offer, especially when it’s free of charge. Take a look at the descriptions and think of the ways the Armor Fix for All Weapons mod can help you solving the issue or becoming more efficient. Then simply click on Cyberpunk 2077 Armor Fix for All Weapons Mod download and follow the installation steps. If you change your mind and mods don’t appear to be as useful as expected, feel free to try other ones because there are no download limits. This few simple steps will lift your game to the upper level – what can be better that upgrading your game personally? Break all boundaries and develop your game easily. Take the best that you can and don’t look back – you must be orientated to the future and new experiences. That’s the only way to stay ahead of everything. If you see it as your goals, it’s definitely now or never!



Useful Information:
- How to install Cyberpunk 2077 Mods
- How to Create Cyberpunk 2077 Mods
- Cyberpunk 2077 Release Date
- Cyberpunk 2077 System Requirements
- About Cyberpunk 2077 Game
- Cyberpunk 2077 News

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *