[c12556] Refactor custom maxTargets and Radius into own function

(based on commit [12394] - aba0847)

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>