Dumpclasses Monsters - Script?

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Azagthoth
Posts: 63
Joined: Wed Jan 20, 2021 4:06 pm

Dumpclasses Monsters - Script?

Post by Azagthoth »

Heya. I was wondering why it's possible to "dumpclasses weapon" but not "dumpclasses monsters". Is there some technical reason why this can't be done or has it just not been implemented?

This got me thinking tho. What if I wrote a script to loop through all the classes and check if it has the ISMONSTER flag. Then if it does, print the class name. Doable?
User avatar
phantombeta
Posts: 2088
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Dumpclasses Monsters - Script?

Post by phantombeta »

That's because the parameter in "dumpclasses" is a class name, which makes it only list classes that inherit from that one. "Weapon" is the class all weapons have to inherit from- meanwhile, monsters don't have a specific base class, they can inherit from any actor type.
User avatar
Rachael
Posts: 13561
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Dumpclasses Monsters - Script?

Post by Rachael »

dumpclasses probably could use some extra filtration parameters, like "dumpclass actor monsters" and "dumpclass actor projectiles" where it can sort out by the default flags to determine what's what. I'll move this to Feature Suggestions.
Azagthoth
Posts: 63
Joined: Wed Jan 20, 2021 4:06 pm

Re: Dumpclasses Monsters - Script?

Post by Azagthoth »

Rachael wrote:dumpclasses probably could use some extra filtration parameters, like "dumpclass actor monsters" and "dumpclass actor projectiles" where it can sort out by the default flags to determine what's what. I'll move this to Feature Suggestions.
Yeah, that would be great. I'm working on some stuff with over 10000 classes. It's quite a pain to sift through. :lol:
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Re: Dumpclasses Monsters - Script?

Post by m8f »

10000 classes - maybe ZDoc would be of interest to you?
Azagthoth
Posts: 63
Joined: Wed Jan 20, 2021 4:06 pm

Re: Dumpclasses Monsters - Script?

Post by Azagthoth »

ZDoc looks promising. I will check it out.
Post Reply

Return to “Feature Suggestions [GZDoom]”