+weapon.alwaysbob

Moderator: GZDoom Developers

User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

+weapon.alwaysbob

Post by Matt »

Now that we have the new offset function that stacks on top of bobbing, can we get a flag for this so we don't have to add A_WeaponReady to every individual frame?

EDIT: Per NeuralStunner Major Cooke's response, maybe some addition to A_WeaponReady to make the weapon always bob after that first call (and another one to make it stop bobbing?), since we can't change weapon flags...
Last edited by Matt on Mon Jun 13, 2016 4:20 pm, edited 2 times in total.
User avatar
StrikerMan780
Posts: 485
Joined: Tue Nov 29, 2005 2:15 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: +weapon.alwaysbob

Post by StrikerMan780 »

Agreed, I was just about to post a thread about this actually.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: +weapon.alwaysbob

Post by Major Cooke »

It never has stopped bobbing. It will always bob unless you specify WRF_NOBOB. And that's the ONLY time it won't bob, unless you fire.

At any rate, this will need to wait until this gets in first.
User avatar
NeuralStunner
 
 
Posts: 12325
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: +weapon.alwaysbob

Post by NeuralStunner »

Major Cooke wrote:And that's the ONLY time it won't bob, unless you fire.
... This is the whole point of the suggestion: Making it always bob, even without A_WeaponReady.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: +weapon.alwaysbob

Post by Major Cooke »

It would be better if there's WRF_ALWAYSBOB. so it can be disabled with the first WRF_NOBOB call, and not before then.
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: +weapon.alwaysbob

Post by wildweasel »

Major Cooke wrote:It would be better if there's WRF_ALWAYSBOB. so it can be disabled with the first WRF_NOBOB call, and not before then.
But...that'd still require an A_WeaponReady?
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: +weapon.alwaysbob

Post by Major Cooke »

Just once though. Because otherwise, you can't peel off flags once stuck on weapons.
User avatar
NeuralStunner
 
 
Posts: 12325
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: +weapon.alwaysbob

Post by NeuralStunner »

Starting to look like what we need is an action function to change the weapon's flags.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: +weapon.alwaysbob

Post by Major Cooke »

Take a good look at A_Overlay for some news in that regard, in the code submissions section. ;)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: +weapon.alwaysbob

Post by Graf Zahl »

NeuralStunner wrote:Starting to look like what we need is an action function to change the weapon's flags.
[wiki]A_ChangeFlag[/wiki]???
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: +weapon.alwaysbob

Post by wildweasel »

Graf Zahl wrote:
NeuralStunner wrote:Starting to look like what we need is an action function to change the weapon's flags.
[wiki]A_ChangeFlag[/wiki]???
Doesn't that only work on the actor using the weapon, and not the weapon itself?
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: +weapon.alwaysbob

Post by Major Cooke »

User avatar
NeuralStunner
 
 
Posts: 12325
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: +weapon.alwaysbob

Post by NeuralStunner »

wildweasel wrote:Doesn't that only work on the actor using the weapon, and not the weapon itself?
Aye. I suppose it would be better at the Inventory class level, even though there's not a lot of flags that'd be meaningful to toggle. (Also, I'm unsure whether flags like NOAUTOAIM are checked against the class rather than the actor instance.)

I'm hopeful that ZScript will have a means to fully access the properties of an owned item.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: +weapon.alwaysbob

Post by Graf Zahl »

Graf Zahl wrote:
NeuralStunner wrote:Starting to look like what we need is an action function to change the weapon's flags.
[wiki]A_ChangeFlag[/wiki]???


And now, with ZScript this will be doable. I'm not sold on doing stuff that allows leaving off A_WeaponReady. No idea how the weapon system will handle it.
D2JK
Posts: 543
Joined: Sat Aug 30, 2014 8:21 am

Re: +weapon.alwaysbob

Post by D2JK »

We can now change flags, true, but I don't think we can switch the weapon bobbing to be on by default, as the actual suggestion was. So adding using weapon offset affecting functions in most frames is still necessary, unless I missed something?

Some of you may remember the apt "Bob" keyword for state frames that I suggested a while back. I wonder if in the future, we could create our own, functional state keywords in ZScript.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”