Calculate Falloff Damage
PureCalculateFalloffDamageCalculates damage with distance-based falloff (linear, quadratic, etc.).
Type: Pure (no side effects)
Category: Fortuna|Gameplay Utilities
Keywords: gameplay utilities
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| BaseDamage | float | — | BaseDamage parameter |
| Distance | float | — | Distance parameter |
| MaxRange | float | — | MaxRange parameter |
| FalloffExponent | float | 1.0 | FalloffExponent parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | float | ReturnValue output |
Example Use Cases
Example 1
Explosion damage that decreases with distance.
Example 2
Shotgun pellet damage falloff.