There is a built-in unreal class - UGameplayModMagnitudeCalculation.
It has the only function that can be overridden in blueprints: CalculateBaseMagnitude.
There is a certain set of helper functions in the class that, as I understand it, exist literally to be used in this function.
But there is a problem…