[z2285] Refactor custom maxTargets and Radius into own function

(based on commit [12394] - aba0847)

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

(based on commit [s1925] - 991a8a2)

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