+weapon.alwaysbob
Moderator: GZDoom Developers
- 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
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...
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.
- StrikerMan780
- Posts: 485
- Joined: Tue Nov 29, 2005 2:15 pm
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: +weapon.alwaysbob
Agreed, I was just about to post a thread about this actually.
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: +weapon.alwaysbob
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.
At any rate, this will need to wait until this gets in first.
- 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
... This is the whole point of the suggestion: Making it always bob, even without A_WeaponReady.Major Cooke wrote:And that's the ONLY time it won't bob, unless you fire.
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: +weapon.alwaysbob
It would be better if there's WRF_ALWAYSBOB. so it can be disabled with the first WRF_NOBOB call, and not before then.
- 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
But...that'd still require an A_WeaponReady?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.
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: +weapon.alwaysbob
Just once though. Because otherwise, you can't peel off flags once stuck on weapons.
- 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
Starting to look like what we need is an action function to change the weapon's flags.
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: +weapon.alwaysbob
Take a good look at A_Overlay for some news in that regard, in the code submissions section.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: +weapon.alwaysbob
[wiki]A_ChangeFlag[/wiki]???NeuralStunner wrote:Starting to look like what we need is an action function to change the weapon's flags.
- 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
Doesn't that only work on the actor using the weapon, and not the weapon itself?Graf Zahl wrote:[wiki]A_ChangeFlag[/wiki]???NeuralStunner wrote:Starting to look like what we need is an action function to change the weapon's flags.
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
- 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
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.)wildweasel wrote:Doesn't that only work on the actor using the weapon, and not the weapon itself?
I'm hopeful that ZScript will have a means to fully access the properties of an owned item.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: +weapon.alwaysbob
Graf Zahl wrote:[wiki]A_ChangeFlag[/wiki]???NeuralStunner wrote:Starting to look like what we need is an action function to change the weapon's flags.
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.
Re: +weapon.alwaysbob
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.
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.