[Added] LineAttack Offsets

Moderators: Developers, ZDoom.org Team

LineAttack Offsets

Postby Major Cooke » Fri Nov 03, 2017 2: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 9 times
User avatar
Major Cooke
Slaughterer of Sewers
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: LineAttack Offsets

Postby Rachael » Fri Nov 03, 2017 4: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.
User avatar
Rachael
Not all elves needs a stocking hat...
 
Joined: 13 Jan 2004

Re: LineAttack Offsets

Postby Major Cooke » Sun Nov 05, 2017 2: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.
User avatar
Major Cooke
Slaughterer of Sewers
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: LineAttack Offsets

Postby _mental_ » Tue Nov 07, 2017 4:12 am

Added with minor changes in d422392.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: LineAttack Offsets

Postby Major Cooke » Tue Nov 07, 2017 7:56 am

Sweet. Thanks!
User avatar
Major Cooke
Slaughterer of Sewers
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests