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: 1480
Joined: Fri Dec 14, 2007 6:29 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
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: 70
Joined: Mon Aug 26, 2019 9:18 pm
Graphics Processor: nVidia with Vulkan support
Contact:

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.
Post Reply

Return to “Feature Suggestions [GZDoom]”