Welcome to symthic forums! We would love if you'd register!
You don't have to be expert in bit baking, everyone is more than welcome to join our community.

You are not logged in.

## Formula for working out a weapon's damage at range?

Posts: 3

Date of registration
: Apr 15th 2014

Platform: PC

Battlelog:

Reputation modifier: 4

Tuesday, April 15th 2014, 12:30pm

### Formula for working out a weapon's damage at range?

Hi everyone,
does anyone have the formula for working out a weapon's damage at range with these variables: Max Damage, Min Damage, Range, Start Falloff and End Falloff.
I know that each of the weapons and these stats are on the website but I would still like to know the formula.

Thanks
Joe

Skynet T100

Posts: 1,614

Date of registration
: Apr 12th 2013

Platform: PC

Location: Guilin Peaks, Finland

Battlelog:

Reputation modifier: 14

Tuesday, April 15th 2014, 12:42pm

### Quoted from "TheFaceGrabber"

Hi everyone,
does anyone have the formula for working out a weapon's damage at range with these variables: Max Damage, Min Damage, Range, Start Falloff and End Falloff.
I know that each of the weapons and these stats are on the website but I would still like to know the formula.

Thanks
Joe

It's a simple linear interpolation, in pseudo-code:

If StartFalloff < Range < EndFalloff

Damage = MaxDmg - (Range - StartFalloff) / (EndFalloff - StartFalloff) * (MaxDmg-MinDmg)

Else

blablabla, Damage = Min/MaxDmg depending on Range.
"Less is more? How can that be? How could less be more, that's impossible. More is more." Yngwie Malmsten
"Many bullets help." WoopsyYaya
"most rhetorically legitimate ad hominem 2015" ToTheSun!

This post has been edited 2 times, last edit by "3VerstsNorth" (Apr 15th 2014, 12:51pm) with the following reason: vulgar display of Kuji-kiri

Symthic Developer

Posts: 3,725

Date of registration
: Mar 21st 2013

Platform: PC

Location: __main__, Finland

Reputation modifier: 17

Tuesday, April 15th 2014, 12:43pm

First check if it's between FOStart and FOEnd (if <= FOStart, then dmg is maxDmg. If > FOStart, then dmg is minDmg)

DamageAtDist(x) = maxDmg - ((maxDmg - minDmg) * (x-FOStart / FOStart-FOEnd)), when x => FOStart and x < FOEnd

No offence, but this kind of math (lerping) belongs to high school.

Edit: Aaaaand Ninj'd again.
• 3VerstsNorth - Analysis of game mechanics in BF4 (tickrates, effects of tickrate, etc)
• leptis - Analysis of shotguns, recoil, recoil control and air drag.
• Veritable - Scoring of BF4/BF1 firearms in terms of usability, firing and other mechanics.
• Miffyli - Random statistical analysis of BF4 battlereports/players and kill-distances. (list is cluttered with other threads).
Sorry if your name wasn't on the list, I honestly can't recall all names : ( . Nudge me if you want to be included

Sona tank jungle

Posts: 7,898

Date of registration
: May 30th 2012

Platform: PS4

Location: SURROUNDED BY FUCKING MOUNTAINS

Battlelog:

Reputation modifier: 19

Tuesday, April 15th 2014, 12:45pm

Let's assume
25 start damage
18 end damage
8m damage drop off start
50m drop off end

The damage "lost" over range is (25-18) = 7 damage
The distance interval where damage drops is (50-8) = 42 metres
For each metre after 8m, the gun will lose 7/42 damage until it reaches 50m.

I hope that was clear enough, typed it rather quickly.

EDIT: I know I got ninja'd but in my defence I'll say that I used example values to make my post more understandable :3
Bro of Legion, the lurker ninja mod | Tesla FTW | RNG is evil.

### Quoted from "MsMuchLove"

I find majority of the complaints I hear about this game somehow never appear in my games.

Posts: 3

Date of registration
: Apr 15th 2014

Platform: PC

Battlelog:

Reputation modifier: 4

Tuesday, April 15th 2014, 12:45pm

Thanks

Symthic Developer

Posts: 3,725

Date of registration
: Mar 21st 2013

Platform: PC

Location: __main__, Finland

Reputation modifier: 17

Tuesday, April 15th 2014, 12:52pm

12mins, not fast enough >.<'.
• 3VerstsNorth - Analysis of game mechanics in BF4 (tickrates, effects of tickrate, etc)
• leptis - Analysis of shotguns, recoil, recoil control and air drag.
• Veritable - Scoring of BF4/BF1 firearms in terms of usability, firing and other mechanics.
• Miffyli - Random statistical analysis of BF4 battlereports/players and kill-distances. (list is cluttered with other threads).
Sorry if your name wasn't on the list, I honestly can't recall all names : ( . Nudge me if you want to be included

Up and down. Bounce all around

Posts: 3,100

Date of registration
: Apr 15th 2013

Platform: PC

Location: Sweden

Battlelog:

Reputation modifier: 15

Tuesday, April 15th 2014, 12:54pm

#GOTTAGOFAST
#FAST

### Quoted from "NoctyrneSAGA"

It really is quite frustrating when Helen Keller sets up her LMG in the only doorway in/out of an area.

### Quoted from "Watcher-45"

What kind of question is that? Since when is cheese ever a bad idea?

### Quoted from "LeGarcon"

Hardline is a fun and sometimes silly Cops and Robbers sorta thing and I think that's great. Or it would be if it didn't suck.

Skynet T100

Posts: 1,614

Date of registration
: Apr 12th 2013

Platform: PC

Location: Guilin Peaks, Finland

Battlelog:

Reputation modifier: 14

Tuesday, April 15th 2014, 1:01pm

#Saisho no ninja wa hayai ninjadesu (d'oh no jap letters in sym).
"Less is more? How can that be? How could less be more, that's impossible. More is more." Yngwie Malmsten
"Many bullets help." WoopsyYaya
"most rhetorically legitimate ad hominem 2015" ToTheSun!