Expose LineAttack offsetz, offsetforward, offsetside

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

Moderator: GZDoom Developers

Expose LineAttack offsetz, offsetforward, offsetside

Postby Xtyfe » Sun May 29, 2022 11:49 am

LineAttack, used by all hitscan-related custom functions seems to have some parameters (offsetz, offsetforward, offsetside) that deal with where the attack is positioned. These are not exposed to functions such as A_FireBullets and A_CustomBulletAttack for example (Or A_CustomPunch or A_Saw, though I'm not sure if this would as useful).

I'd love to be able to use these parameters in these functions. I realize I could simply use LineAttack directly, but I'd rather not reinvent the wheel if I don't need to.
Last edited by Xtyfe on Sun May 29, 2022 1:49 pm, edited 1 time in total.
User avatar
Xtyfe
Neque Deos, Neque Dominos
 
Joined: 14 Dec 2007
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Expose LineAttack offsetz, offsetforward, offsetside

Postby inkoalawetrust » Sun May 29, 2022 12:49 pm

YES, I second this, just two days ago, I realized that the spawn offset parameters in those two functions are only used for the missile they spawn. And needed to use LineAttack directly just to be able to change the relative position from which the hitscan is spawned.
User avatar
inkoalawetrust
 
Joined: 26 Aug 2019
Discord: inkoalawetrust #9783
Github ID: inkoalawetrust
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests