Function; setDamageFalloff
Sastrei edited this page Dec 22, 2020
·
4 revisions
setDamageFalloff(<rWeaponTable>,<fFalloff/fRange>,<fPercentageStart>)
- Controls damage falloff of a bullet over its distance traveled.
setDamageFalloff(NewWeaponType, 0.15/2000.0, 0.1);
<rWeaponTable>: Reference to the weapon; this should be NewWeaponType
.
<fFalloff/fRange>:
<fPercentageStart>:
- 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
Updated Formatting? Yes
Updated for HWRM? Yes
| Home | Search | Recent Changes | Revision History | About | User Help | Contributor Help | Discussion |