Code: Select all
self->Angles.Pitch = P_AimLineAttack (self, self->Angles.Yaw, MISSILERANGE, &t, 60., 0, aim ? self->target : NULL);
That makes it impossible to actually use it as a utility function that simply performs a linear attack. Yes, I know that can be performed manually via LineTrace and such, but A_CustomRailGun can be convenient under some circumstances, and the way the aim currently works makes no sense.
Suggestion: add either aim 3, or a flag (something like RGF_IGNORETARGET or RGF_DONTFORCEAIM) that disables all kinds of aiming completely.