Author Topic: Weapon DMG calculation  (Read 2087 times)

0 Members and 1 Guest are viewing this topic.

Offline Kharnellius

  • Major(1)
  • Posts: 3
Weapon DMG calculation
« on: March 05, 2007, 10:50:44 pm »
Would the developers be willing to post the weapon dmg algorithm they use?

I am curious how much speed affects the final dmg amount recieved (among other things). 

I have been playing around with the weapons.ini file trying to find a nice balance between weapons.  For the most part they are good and my changes are rather minor so far.  But knowing how dmg is applied would help a lot in my efforts.

Thanks,
Kharn

Offline Twistkill

  • Inactive Staff
  • Flagrunner
  • *****
  • Posts: 975
  • The words of your tongue blister like fire
Re: Weapon DMG calculation
« Reply #1 on: March 05, 2007, 10:55:14 pm »
I believe it is something along the lines of:  Damage * Speed *[Body part hit modifier] / 2.

I'm not sure if that / 2 is right or not, but I'm close. 5th_account could tell you...

"A fool shows his annoyance at once, but a prudent man overlooks an insult." -Proverbs 12:16

Add me on PSN: Newfrag. Just make sure to tell me you're from SF. :P

Offline Kharnellius

  • Major(1)
  • Posts: 3
Re: Weapon DMG calculation
« Reply #2 on: March 05, 2007, 11:22:59 pm »
Hmm...interesting.  To see dmg simply multiplied by speed seems way out of whack.  I hope that isn't accurate.

Anyways, I was also wondering:

1) How much health does a player have?

- and -

2) How quickly does a weapon bullet lose speed?

5th_account

  • Guest
Re: Weapon DMG calculation
« Reply #3 on: March 06, 2007, 01:43:53 am »

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: Weapon DMG calculation
« Reply #4 on: March 06, 2007, 10:34:10 am »
I have got list of damages per second for most weapons, for 1.3.1 and Exp. 1.5 (build 20)

Basically you first calculate damage * speed, divide by 150 000 * 100.  Then calculate how many bullets does the weapon fire per second (1/(fireinterval/60)) , then multiply the damage with the bullets per second.
Then you got value how many %'s of damage does the weapon take away from a Soldat per one second from at zero range.

For me it is unknown how much does bullet lose it's speed from some distance, or some time.

« Last Edit: March 07, 2007, 09:59:14 am by Clawbug »
Fight! Win! Prevail!

Offline Kharnellius

  • Major(1)
  • Posts: 3
Re: Weapon DMG calculation
« Reply #5 on: March 07, 2007, 12:58:53 am »
Ok so is this the algorithm?  (not including the hit location modifier)

(damage * speed) / (150,000 * 100)   which equals this:   (dmg * speed) / 15,000,000
Or this...
[(damage * speed) / (150,000)] * 100    which equals this:   (dmg * speed) / 1,500


Im assuming the second since the first makes no sense.  I dont see why it wasn't simply written as

(Dmg * Speed) / 1,500

...since it is the same thing.


P.S. What is that karma thing?  "-1"?
« Last Edit: March 07, 2007, 01:03:41 am by Kharnellius »

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Weapon DMG calculation
« Reply #6 on: March 07, 2007, 01:00:24 am »
Im assuming the second since the first makes no sense.  I dont see why it wasn't simply written as

(Dmg * Speed) / 1,500

...since it is the same thing.
Yah I dont get that either, anyone care to explain?

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: Weapon DMG calculation
« Reply #7 on: March 07, 2007, 03:59:48 am »
Yeah, the *100 is just to clarify that it is in percent, I think.

Here's what I gathered one lonely day:

Soldat 1.3.1:
 
DE:      176*190       = 33 440 * 2.6     = 86 944 *2    = 115.92%/second
Mp5:    189*104       = 19 656 * 10      = 196 560       = 131.04%/second
Ak:       113*240       = 27 120 * 5.4     = 146 448       = 97.6%/second
AUG:    73*260         = 18 980 * 8.5     = 161 330       = 107.5%/second
Spas:   122*137       = 16 714 * 1.7     = 28 413 *6    = 113.4%/second
R77:     250*330       = 82 500 * 1.5     = 123 750       = 82.5%/second
Minimi: 86*270         = 23 220 * 6.6     = 153 252        = 102.1%/second


Soldat 1.3.2(Exp. 1.5 B20):

DE:      178*190      = 33 820 * 2.6        = 87 932*2      = 117.24%/second
Mp5:    102*189      = 19 278 * 10         = 192 780        = 128.52%/second
Ak:       103*240      = 24 720 * 6           = 148 320        = 98.88%/second
AUG:    73*260        = 18 980 * 8.57      = 162 658.6      = 108.43%/second
Spas:   122*138      = 16 836 * 1.87      = 31 483.32*6  = 125.88%/second
R77:     252*330     = 83 160 * 1.5        = 124 740          = 83.16%/second
Minimi:  85 * 270     = 22 950 * 6.66     = 152 847           = 101.89%/second

(Spas and Deagle damage is per pellet/bullet, so it needs to be multiplied with the amount of pellets(6) and bullets(2))

So, we sum up the damage, then multiply with the amount of ammo per second, then we divide and we get the final result.

Feel free to expand it, or correct if there is something wrong. :)
« Last Edit: March 07, 2007, 09:59:56 am by Clawbug »
Fight! Win! Prevail!

Offline popsofctown

  • Camper
  • ***
  • Posts: 408
Re: Weapon DMG calculation
« Reply #8 on: March 12, 2007, 09:15:30 pm »
Soldat has developerS?  i thought MM was a lone wolf.   
Without originality society is doomed.
If you are tired of seeing the same lines in every signature, don't put this in your signature

\\\**I love DM**///