Scales weapon damage values so they're not all over the place, without breaking the balance. I hated seeing some weapons that do significantly more damage than others that use the same ammunition. This mod tweaks all damage values so ammunition will be the primary determining factor for weapon damage, followed by projectile velocity.
This mod changes the weapon damage values according to ammunition size used. This means you aren't going to have weapons that do significantly more or less damage than others, even though they use the same type of ammunition.
Obviously, there will be slight variations after factoring in barrel lengths and projectile speeds.
=========Formula=========
J = Muzzle energy (Joules)
S = Projectile speed required for base damage (Meters/Second)
A = Muzzle velocity of weapon (Meters/Second)
B = Base damage
D = Actual weapon damage
[√(J*1.7)]/100=B
(A/S)*B=D
Round D to the thousandth.
E.g. - AK-74U uses 5.45x39 and has muzzle velocity of 735 m/s.
5.45x39 produces 1400 Joules at velocity of 880 m/s.
[√(1400*1.7)]/100≈0.488
(735/880)*0.488≈0.408
Thus, we end up with 0.408 actual weapon damage for AK-74U.
=========================
For more specific information on damage values, refer to the base damages.txt in the file.
Did you fix the damage values for silencers? Because in the tuning column of the silencer there are very high values, Fnfall for example "hit_power = 0.88, 0.88, 0.88, 0.88".
Any idea on when this will be updated for beta 3.0?
I really like your approach. I wrote a small php script based on your formula and ammo data. It basically goes through the weapon ltx files and checks for ammo_class, bullet_speed and hit_power then calculates the hit power if there is enough data available for the variant. Only thing remains is to write back these values into the files in a transparent way.
Edit: By the looks of it many weapons use similar values, only rounded to a more generic number. Still, there are a few like the MP5 that differ quite a bit. Also, one of the variant uses a different ammo: Imgur.com
Could you please share that script? I would love to use it until this finally gets updated.
I am currently gathering data like muzzle velocity, rate of fire, effective range and mag size for the weapons. I expanded the app to process and change these values and then calculate hit_power. I will release a few versions in the next few days and might host the app too.
Any update on when you will release your mod?
I did not have much time recently but I released the base version for now. Will update once I got all the data for weapons.
Please update
Hey bud, great idea, but did you factor in mass?
Yes exactly... Mass and bullet diameters are extremely important factors