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?
Dumpclasses Monsters - Script?
Moderator: GZDoom Developers
-
- Posts: 2038
- Joined: Thu May 02, 2013 1:27 am
- Graphics Processor: nVidia with Vulkan support
- Location: Brazil
Re: Dumpclasses Monsters - Script?
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.
-
- Admin
- Posts: 13256
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: Dumpclasses Monsters - Script?
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.
-
- Posts: 63
- Joined: Wed Jan 20, 2021 4:06 pm
Re: Dumpclasses Monsters - Script?
Yeah, that would be great. I'm working on some stuff with over 10000 classes. It's quite a pain to sift through.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.

-
-
- Posts: 1435
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: Dumpclasses Monsters - Script?
10000 classes - maybe ZDoc would be of interest to you?
-
- Posts: 63
- Joined: Wed Jan 20, 2021 4:06 pm
Re: Dumpclasses Monsters - Script?
ZDoc looks promising. I will check it out.