[discontinued] Weapon sway
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
-
jdredalert
- Posts: 1681
- Joined: Sat Jul 13, 2013 10:13 pm
Re: [code] Weapon sway
You never cease to amaze me, Nash! Great job!
-
Leonard2
- Posts: 313
- Joined: Tue Aug 14, 2012 6:10 pm
Re: [code] Weapon sway
Here: There is now only one actor definition and the rest is ACS.Nash wrote:I'd really like to put this file out without all that MAPINFO and custom player classes. :/ Any help on this area would be much appreciated
This is missing one last thing however to fully work: a way to set offsets without interfering with the A_Lower/Raise action functions as suggested here because otherwise you can't switch weapons anymore.
You do not have the required permissions to view the files attached to this post.
-
mumblemumble
- Posts: 927
- Joined: Fri Aug 23, 2013 1:59 pm
Re: [code] Weapon sway
Humn, this should REALLY be included in hideous destructor.
-
Ixnatifual
- Posts: 2287
- Joined: Fri Dec 12, 2003 6:44 pm
Re: [code] Weapon sway
This is pretty neat!
-
enderkevin13
- Posts: 1383
- Joined: Tue Jul 07, 2015 7:30 am
- Location: :noiƚɒɔo⅃
Re: [code] Weapon sway
I saw the video before the thread was made. Anyways, nice work.
-
The Zombie Killer
- Posts: 1528
- Joined: Thu Jul 14, 2011 12:06 am
- Location: Gold Coast, Queensland, Australia
Re: [code] Weapon sway
Because they use "goto Ready", which refers to the old ready state.Nash wrote:2) When inheriting from the stock weapons, I have to copy and paste the Fire state too, otherwise the offset sways would stop working when firing a weapon. WHY?!
-
wildweasel
- Posts: 21705
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
Re: [code] Weapon sway
To expand on that: you will want this line instead.The Zombie Killer wrote:Because they use "goto Ready", which refers to the old ready state.Nash wrote:2) When inheriting from the stock weapons, I have to copy and paste the Fire state too, otherwise the offset sways would stop working when firing a weapon. WHY?!
Code: Select all
A_Jump(256,"Ready")-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: [code] Weapon sway
Thanks for the answers - I will get around to fixing these eventually when I'm not busy!
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: [code] Weapon sway
I was going to clean this up using latest development features but it seems there's no way to change the weapons now. Has this been address port-side?
This is missing one last thing however to fully work: a way to set offsets without interfering with the A_Lower/Raise action functions as suggested here because otherwise you can't switch weapons anymore.
-
The Zombie Killer
- Posts: 1528
- Joined: Thu Jul 14, 2011 12:06 am
- Location: Gold Coast, Queensland, Australia
Re: [code] Weapon sway
Have you tried using [wiki]A_OverlayFlags[/wiki] in combination with [wiki]A_OverlayOffset[/wiki]?
EDIT: Nope, that doesn't work with deselection/selection either. Looks like I'll have to redo my pull request for an extension to A_WeaponOffset later
EDIT: Nope, that doesn't work with deselection/selection either. Looks like I'll have to redo my pull request for an extension to A_WeaponOffset later
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: [code] Weapon sway
Okay thanks for the heads up, I'll wait for your PR then!
-
ToMmysek795
- Posts: 2
- Joined: Sun Oct 09, 2016 4:41 am
Re: [code] Weapon sway
This is not working.
He is saying:
Sprite names is 4 character bla bla bla.....
And Fatal Error.
He is saying:
Sprite names is 4 character bla bla bla.....
And Fatal Error.
-
wildweasel
- Posts: 21705
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
Re: [code] Weapon sway
Can you upload your project file to someplace like Dropbox, Mega, or Google Drive? We're not able to help without being able to see your code and how everything is put together.ToMmysek795 wrote:This is not working.
He is saying:
Sprite names is 4 character bla bla bla.....
And Fatal Error.
-
Nash
-

- Posts: 17512
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: [code] Weapon sway
This is pending a full ZScript re-write... I have half the mind to take down the links in the OP for now...