Expose LineAttack offsetz, offsetforward, offsetside

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Expose LineAttack offsetz, offsetforward, offsetside

Re: Expose LineAttack offsetz, offsetforward, offsetside

by 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.

Expose LineAttack offsetz, offsetforward, offsetside

by 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.

Top