LineAttack Offsets

Moderator: GZDoom Developers

Post Reply
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

LineAttack Offsets

Post 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.
Attachments
test.pk3
(1000 Bytes) Downloaded 41 times
User avatar
Rachael
Posts: 13542
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: LineAttack Offsets

Post 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.
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: LineAttack Offsets

Post 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.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: LineAttack Offsets

Post by _mental_ »

Added with minor changes in d422392.
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: LineAttack Offsets

Post by Major Cooke »

Sweet. Thanks!
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”