Alt_Uses_Both flag

Moderator: GZDoom Developers

Post Reply
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Alt_Uses_Both flag

Post by Ryan Cordell »

Despite this already being defined in the source, it wasn't included with the decorate flag parser, so the flag couldn't be used.
Attachments
Alt_Uses_Both.zip
use both ammo types when altfire is used.
(390 Bytes) Downloaded 55 times
User avatar
some_random_guy
Posts: 61
Joined: Fri Apr 29, 2011 5:20 pm
Location: here

Re: Alt_Uses_Both flag

Post by some_random_guy »

Awesome!

Still...odd that it was in the source and wasn't in the ZDoom wiki.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Alt_Uses_Both flag

Post by NeuralStunner »

You don't put things on the Wiki that don't work.
User avatar
some_random_guy
Posts: 61
Joined: Fri Apr 29, 2011 5:20 pm
Location: here

Re: Alt_Uses_Both flag

Post by some_random_guy »

Oh. I just thought that the developers automatically put everything on the wiki that was in the source in a major release.

...or was the Alt_Uses_Both flag not in the 2.5.0 release? Was it not added until after the release?
I'm wondering because I was getting the idea that it's been in the code for a long time.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Alt_Uses_Both flag

Post by Gez »

some_random_guy wrote:Oh. I just thought that the developers automatically put everything on the wiki that was in the source in a major release.
You still don't understand.

First, automatically? Developers aren't automatons. There's no system created yet that will automatically read source code and turn it into wiki documentation. (I suppose something could be done based on Doxygen and some wiki bot, but that's not the case here.)

Then, and more importantly, the wiki is there to describe what is available to modders and players. I refer to the first post of this thread:
Ryan Cordell wrote:it wasn't included with the decorate flag parser, so the flag couldn't be used.
Read this. Over and over and over again until "couldn't be used" starts to register.
User avatar
some_random_guy
Posts: 61
Joined: Fri Apr 29, 2011 5:20 pm
Location: here

Re: Alt_Uses_Both flag

Post by some_random_guy »

I understand, I just wasn't sure if it was a standard protocol (not an automation, since developers are real people too :D )
to insert stuff that was in the code. Besides, I thought that since it was in the code, somebody may have overlooked it
(since it was "there", kinda) and dismissed it as "working" without actually testing it. (You never know, accidents happen...)

But anyone can post stuff or edit in the ZDoom wiki, right? I just want to add that the ALT_USES_BOTH flag is available in developmental versions.

EDIT: I changed the "Weapon Properties" page of the wiki. It now lists the function of the WEAPON.ALT_USES_BOTH flag, and that it only has worked since version r3213.
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Re: Alt_Uses_Both flag

Post by Ryan Cordell »

some_random_guy wrote:Besides, I thought that since it was in the code, somebody may have overlooked it
(since it was "there", kinda) and dismissed it as "working" without actually testing it. (You never know, accidents happen...)
Arguably, it was more like forgotten or had low priority. At least it was a good thing I went on a small feature suggestion spree so the flag was brought back to light.
User avatar
some_random_guy
Posts: 61
Joined: Fri Apr 29, 2011 5:20 pm
Location: here

Re: Alt_Uses_Both flag

Post by some_random_guy »

And that, Ryan Cordell, is why I, along with the rest of the ZDoom community, think you are so awesome! :D
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”