LineAttack Offsets

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 OFF
Smilies are ON

Topic review
   

Expand view Topic review: LineAttack Offsets

Re: LineAttack Offsets

by Major Cooke » Tue Nov 07, 2017 6:56 am

Sweet. Thanks!

Re: LineAttack Offsets

by _mental_ » Tue Nov 07, 2017 3:12 am

Added with minor changes in d422392.

Re: LineAttack Offsets

by Major Cooke » Sun Nov 05, 2017 1:43 pm

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

by Rachael » Fri Nov 03, 2017 3:14 pm

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.

LineAttack Offsets

by Major Cooke » Fri Nov 03, 2017 1:18 pm

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.
Attachments
test.pk3
(1000 Bytes) Downloaded 41 times

Top