New aim mode for A_CustomRailgun that doesn't force pitch

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

New aim mode for A_CustomRailgun that doesn't force pitch

Postby Jekyll Grim Payne » Thu Dec 16, 2021 8:27 am

Currently A_CustomRailgun includes a pretty silly oversight where it *always* forces vertical aiming, even if the aim argument is 0:
Code: Select allExpand view
self->Angles.Pitch = P_AimLineAttack (self, self->Angles.Yaw, MISSILERANGE, &t, 60., 0, aim ? self->target : NULL);


Moreover, if you do target = null, A_CustomRailgun doesn't produce any rails at all.

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.
User avatar
Jekyll Grim Payne
 
 
 
Joined: 21 Jul 2008
Discord: Agent_Ash#4401
Github ID: jekyllgrim
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest