fodev.net
15.08.2009 - 23.06.2013
"Wasteland is harsh"
Home Forum Help Login Register
  • July 07, 2024, 11:57:33 pm
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Play WikiBoy BugTracker Developer's blog
Pages: [1]

Author Topic: damage formula  (Read 1148 times)

damage formula
« on: May 30, 2011, 07:42:17 am »

I found few formulas, but they don't tell me all what i want.

How it looks like?
Minigun with ap ammo + 2x brd shooting vs metal armor mk2

[Min/max damage + BRD * ammo dmg adj * (100% - armor reduce % + ammo penetrate %) - tresh] * (number of bullets/3 rounded down)
8 + 4 * 2/3 * 0.95 - 6 = 1 x 40/3 = 21
11 + 4 * 2/3 * 0.95 - 6 = 3 x 40/3 = 46

how it looks like for lsw? only 3 bullets should hit?  (10/3=3.3~=3)

don't mind point blank
where im wrong?
« Last Edit: May 30, 2011, 10:21:20 am by melcma »
Logged
Re: damage formula
« Reply #1 on: May 30, 2011, 11:26:33 am »

Why rounded down, central line for burst is in priority, for LSW 4 bullets should hit. Or, if more accurate, 2 bullets will fly into target, 2 in its liine, 3 bullets at right line and 3 at left line, so if something between you and your primary target, it'll get 2 bullets, if not, then your target will get 4 bullets, each with x% to hit, where x is your % shown for 1st bullet, so it's 0.95^4 that all 4 bullets hit target or 81,45%.
For avenger minigun it's rounded up too, so 40/3=->14, % that all 14 bullets hit is 0.95^14=48.77%.
Damage is, as example avenger minigun with AP ammo vs brotherhood armor:

Base damage
((Min;Max)+2*BRDlvl)*DamAdj;

Target's damage reduction:
DR: (ArmorDR-AmmoDRmod)/PiercingMod;
DT: ArmorDT/PiercingMod

Number of bullets:
max/3 rounded up.

Damage: (Base damage*DR-DT)*max/3, if all bullets hit.

or with x2 BRD and no toughness at target:
Base damage: (12;15)*2/3=(8;10)
DR: (40-35)/3=1.66%=0.02
DT 8/3=2.66, don't know where to round.

((8;10)*0.98-2.66)*14=(72.52;99.96)
Damage is 72.52-99.96, if all 14 bullets hit. Also I don't know if DT rounds up/down or rounds at all, I picked it as 2.66

If target will have x2 Toughness, then:
Base damage: (12;15)*2/3=(8;10)
DR: (50-35)/3=5%=0.05
DT 12/3=4.

((8;10)*0.95-4)*14=(50.4;77)
50.4-77 damage, if all 14 bullets hit.

I think everything is right here.
Logged
Re: damage formula
« Reply #2 on: June 02, 2011, 02:19:52 am »

Thanks a lot. Now the question is, DT/3 rounds up or down?


And now the crits. I saw few crits from desert eagle or assault rifle for 200-220 dmg. Following the crit eyes formula on roll 91+, the dmg should be multipled for 4. So 18 max dmg x4 = 72. 220 dmg comes from "instant kill?". It's ALWAYS instant kill, even with pipe rifle vs 250 hp armored guy?

And where goes multipler x4 for crits, to base dmg, or dmg modified by ammo, or output dmg?
Logged
Pages: [1]
 

Page created in 0.084 seconds with 23 queries.