[discontinued] Weapon sway

Projects that have specifically been abandoned or considered "dead" get moved here, so people will quit bumping them. If your project has wound up here and it should not be, contact a moderator to have it moved back to the land of the living.
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [code] Weapon sway

Post by Nash »

User avatar
jdredalert
Posts: 1668
Joined: Sat Jul 13, 2013 10:13 pm
Contact:

Re: [code] Weapon sway

Post by jdredalert »

You never cease to amaze me, Nash! Great job!
User avatar
Leonard2
Posts: 313
Joined: Tue Aug 14, 2012 6:10 pm

Re: [code] Weapon sway

Post by Leonard2 »

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
Here:
sway.pk3
(2.44 KiB) Downloaded 358 times
There is now only one actor definition and the rest is ACS.

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.
mumblemumble
Posts: 927
Joined: Fri Aug 23, 2013 1:59 pm

Re: [code] Weapon sway

Post by mumblemumble »

Humn, this should REALLY be included in hideous destructor.
User avatar
Ixnatifual
Posts: 2287
Joined: Fri Dec 12, 2003 6:44 pm
Contact:

Re: [code] Weapon sway

Post by Ixnatifual »

This is pretty neat!
User avatar
enderkevin13
Posts: 1383
Joined: Tue Jul 07, 2015 7:30 am
Location: :noiƚɒɔo⅃

Re: [code] Weapon sway

Post by enderkevin13 »

I saw the video before the thread was made. Anyways, nice work.
User avatar
The Zombie Killer
Posts: 1528
Joined: Thu Jul 14, 2011 12:06 am
Location: Gold Coast, Queensland, Australia

Re: [code] Weapon sway

Post by The Zombie Killer »

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?!
Because they use "goto Ready", which refers to the old ready state.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: [code] Weapon sway

Post by wildweasel »

The Zombie Killer wrote:
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?!
Because they use "goto Ready", which refers to the old ready state.
To expand on that: you will want this line instead.

Code: Select all

A_Jump(256,"Ready")
That ensures that you're going to the Ready state of the actual weapon, and not the one it is inheriting from.
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [code] Weapon sway

Post by Nash »

Thanks for the answers - I will get around to fixing these eventually when I'm not busy!
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [code] Weapon sway

Post by Nash »

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.
User avatar
The Zombie Killer
Posts: 1528
Joined: Thu Jul 14, 2011 12:06 am
Location: Gold Coast, Queensland, Australia

Re: [code] Weapon sway

Post by The Zombie Killer »

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
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [code] Weapon sway

Post by Nash »

Okay thanks for the heads up, I'll wait for your PR then!
User avatar
ToMmysek795
Posts: 2
Joined: Sun Oct 09, 2016 4:41 am

Re: [code] Weapon sway

Post by ToMmysek795 »

This is not working.
He is saying:
Sprite names is 4 character bla bla bla.....
And Fatal Error.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: [code] Weapon sway

Post by wildweasel »

ToMmysek795 wrote:This is not working.
He is saying:
Sprite names is 4 character bla bla bla.....
And Fatal Error.
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.
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [code] Weapon sway

Post by Nash »

This is pending a full ZScript re-write... I have half the mind to take down the links in the OP for now...
Locked

Return to “Abandoned/Dead Projects”