Function; setDamageFalloff - HWRM/KarosGraveyard GitHub Wiki

setDamageFalloff(<rWeaponTable>,<fFalloff/fRange>,<fPercentageStart>)

Description

  • Controls damage falloff of a bullet over its distance traveled.

Example

setDamageFalloff(NewWeaponType, 0.15/2000.0, 0.1);

Arguments

<rWeaponTable>: Reference to the weapon; this should be NewWeaponType.
<fFalloff/fRange>:
<fPercentageStart>:

Scope

Related Pages

Comments

  • Bullet damage can be reduced based on distance of bullet travel. Shot damage can be multiplied against how much damage is lost in meters per second over the range of the weapon, beginning at a defined point. The damage falloff starts at the defined point, which is expressed as a percent of the total weapon range (i.e. You can have a weapon that loses damage over the entire lifetime of the bullet or a weapon that does full damage for 80 percent of its travel but does diminishing damage to targets within the last 20 percent of its range.
  • https://forums.gearboxsoftware.com/t/2-0s-new-weapon-tweakables/1553231

Page Status

Updated Formatting? Yes
Updated for HWRM? Yes