• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Ever Wonder How KFWDT Gets Weapon Stats?

Prodigy

Grizzled Veteran
Feb 28, 2010
238
4
Umbrella Corp. HQ
ok, i wrote this guide so everyone can know how we get our weapon stats.
also, if you use the outline provided, you can give us some stats of weapons you would like to see in the game, and maybe we will think about adding some of the weapons the community wants to see.

Example-
Gun Name:MP5
Ammo:30
Damage:35-45
Recoil:0.047500
Fire Rate:0.075
Spread:0.012000

Finding The Ammo:
http://www.wikipedia.org

Finding The RoF:
The Fire Rate of the MP7 is 950 Rounds Per Minute.
In the code, the MP7 fire rate is FireRate=0.063
Lower is higher
Ak is 0.103
to get the firerate of a gun, take the Rof of the MP7
and divide by the other guns firerate
Example: 950/800=1.1875 (800 is the MP5's firerate)
then take the FireRate of the MP7 and multiply it by the
number we just got.
Example:0.063x1.1875=0.0748125 (round up to 0.075)
That gives us the fire rate of the MP5

Finding The Damage:
this is kind of hard to explain. realism isnt always an option here,
but your best bet is to look up the round the gun fires
and compare the rounds highest Joules (J) to the MP7's
rounds Joules, and then multiply the MP7 damage by
however many times more joules your guns round has. Sometimes
this will give you insane damage and you are going to have
to sacrifice realism for the gun not being insanely OP

*Note: The MP7 rounds have about 350 joules

Finding The Recoil:
the recoil provided in the example
is the recoil of the PPSh-41. I highly suggest not going over
.05 or it gets way too hard to manage, and i highly sugggest
not going below .045 what is provided should be fine for all smg's.

Finding The Spread:
In case you didn't know, the spread of a weapon is how far off
target the bullets go. The spread provided is that of the PPSh,
and should be fine for all SMG's. The higher the number, the more inaccurate the gun is.

Sidenotes:

The Joule Equation
5a7bafd39df0c3d608bc63863dddc1b9.png


How to convert Foot-Pounds of energy to Joules
Sometimes, wikipedia articles on the rounds that weapons fire are short, and dont contain the amount of Joules produced by the round. You can usually find the Foot-Pounds of energy though, and to turn it into joules, multiply the foot pounds of energy by 1.26

If you want to know WHY it is 1.26, you can look at the wikipedia article on Joules, and take a gander at the translation table provided. Although, im not sure anyone cares why exactly it's 1.26 and not another number, so this entire piece of information may be entirely pointless. GOOD DAY!

If you are going to complain about all the work it is, I'm 13 and i can do it, so im pretty sure you can too ;)
 
Last edited: