Grenade Throw Range Fix
The original method to calculate the throwing range doesn’t take the defined ranges for hand thrown grenades into account.
This value is also shown to the player as ‘EFFECTIVE RANGE’ in the stats overview of grenades and is set to 16 for the PX Odin and Vita heal grenade and 12 for almost any other.
The vanilla calculation:
(Endurance * EnduranceToThrowMultiplier) / GrenadeWeight * RangeMultiplier + BonusAttackRange
– Endurance is the Strength of the actor
– EnduranceToThrowMultiplier is a fixed value for each actor and set to 0.6
– GrenadeWeight is from the grenades definition, all have a weight of 1
– RangeMultiplier is an input variable for the calculation function, fix 1.0 for each grenade
– BonusAttackRange is from abilities like Boom Blast (+50% range), so normally 0.0
This means that any grenade has always the same range regardless of its shown range value in the UI (12 tiles with 20 strength).
This mod changes the calculation to:
((Endurance * EnduranceToThrowMultiplier * GrenadeRange / 12) / GrenadeWeight * RangeMultiplier + BonusAttackRange) * (ThrowRangeMultiplier / 100)
– GrenadeRange is the value from the grenade defintions under DamagePayload.Range
– ThrowRangeMultiplier is a configurable value for this mod
To adjust the ‘ThrowRangeMultiplier’ see "MODS" -> "MOD SETTINGS" in the main menu, default set to 100 = with 20 strength the throw range in tiles will be what is shown in the grenade stats.
This mod is mainly a helper for other modders that want to tweak the throwing range of the grenades.
The vanilla ranges are 16 for the PX Odin and Vita heal grenade and 12 for almost any other grenade, so be aware that the Odin and Vita heal grenade get a significant buff with this mod from 12 up to 16 tiles range with 20 strength without changing their base range values.