[s1925] Refactor custom maxTargets and Radius into own function

(based on commit [12394] - aba0847)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>