reduced repetitive math in fnc_changeprojectiledirection