Expose LineAttack offsetz, offsetforward, offsetside

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

Moderator: GZDoom Developers

User avatar
Xtyfe
Posts: 1470
Joined: Fri Dec 14, 2007 6:29 pm
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia with Vulkan support

Expose LineAttack offsetz, offsetforward, offsetside

Post by Xtyfe »

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
inkoalawetrust
Posts: 36
Joined: Mon Aug 26, 2019 9:18 pm
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

Re: Expose LineAttack offsetz, offsetforward, offsetside

Post by inkoalawetrust »

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.

Return to “Feature Suggestions”