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.