Page 1 of 1

LineAttack Offsets

Posted: Fri Nov 03, 2017 1:18 pm
by Major Cooke
Pull Request
Adds two parameters: offsetforward and offsetside.
Adds two flags: LAF_ABSOFFSET and LAF_ABSPOSITION.

Included is a test mod. Boot it up and you'll notice you have a pistol that sways, and there's a plasma ball where you stand.
  • Fire: Shoots the pistol with an offset based around the sway.
  • Altfire: Shoots the pistol from the ball.
  • Reload: Moves the ball to where you're standing.
Example usage case:

Making turrets fire from the correct barrels versus the center has always been a tremendous pain. Not to mention hack arounds involve spawning actors just to make the pullet position work properly, which this is designed to get rid of, so this cuts down on overhead.

Re: LineAttack Offsets

Posted: Fri Nov 03, 2017 3:14 pm
by Rachael
Once this gets tested by myself, dpJudas, _mental_, Blzut3, or Graf, this can be merged.

I looked at the code and I do not see any issues. It may help if someone else looks at it to see if there's anything I missed, but so far, it looks okay to me.

Re: LineAttack Offsets

Posted: Sun Nov 05, 2017 1:43 pm
by Major Cooke
By the way, if someone posts a review, can that someone make a post in these threads too please? I did not receive notifications despite turning everything on in github. It took Rachael prodding me on discord to notice.

Re: LineAttack Offsets

Posted: Tue Nov 07, 2017 3:12 am
by _mental_
Added with minor changes in d422392.

Re: LineAttack Offsets

Posted: Tue Nov 07, 2017 6:56 am
by Major Cooke
Sweet. Thanks!