by Shiny Metagross » Mon Oct 05, 2020 9:27 am
I know this is a rather old topic, but I personally need this feature quite badly. My current project is requiring modeldefs that take up more space than most mods themselves do because I am creating a set of enemies that are made of a combination of parts and thus have potentially hundreds of variants, plus each variant uses about 50 animations. On top of that because I am still working with Zandronum I get to multiply each model definition times 3. With inheritance, I could just define all the frames for one variant, and clone the 1000+ other ones with just a few lines or less, and probably shave off millions of lines of modeldef (this isn't some exaggeration, given that each variant has about 4000 lines of modeldef code, and I know there's atleast a thousand variations, that right there would amount to 4 million lines). I also wouldn't have to go back and fix everything variant or redo all of the modeldefs in case I mess up somewhere on the original modeldef either.
Some of the potential gains from implementing such feature would give other modders here even more incentives to use models, particularly anything that has variations.
I need this feature so much, that I'm considering trying to make such feature myself, although the only thing really setting me back is that I'm not too experienced with compiling code from repositories. Of course, if I can do this, then I can certainly backport such feature to Zandronum as well. From what I've scouted from the source code, I can mostly understand how the modeldefs are parsed, so it doesn't look all that hard to implement.
EDIT 2: Because there are multiple model definitions that can be made for an actor which can be in different files might be taking off a bit more than I can chew.
I know this is a rather old topic, but I personally need this feature quite badly. My current project is requiring modeldefs that take up more space than most mods themselves do because I am creating a set of enemies that are made of a combination of parts and thus have potentially hundreds of variants, plus each variant uses about 50 animations. On top of that because I am still working with Zandronum I get to multiply each model definition times 3. With inheritance, I could just define all the frames for one variant, and clone the 1000+ other ones with just a few lines or less, and probably shave off millions of lines of modeldef (this isn't some exaggeration, given that each variant has about 4000 lines of modeldef code, and I know there's atleast a thousand variations, that right there would amount to 4 million lines). I also wouldn't have to go back and fix everything variant or redo all of the modeldefs in case I mess up somewhere on the original modeldef either.
Some of the potential gains from implementing such feature would give other modders here even more incentives to use models, particularly anything that has variations.
I need this feature so much, that I'm considering trying to make such feature myself, although the only thing really setting me back is that I'm not too experienced with compiling code from repositories. Of course, if I can do this, then I can certainly backport such feature to Zandronum as well. From what I've scouted from the source code, I can mostly understand how the modeldefs are parsed, so it doesn't look all that hard to implement.
EDIT 2: Because there are multiple model definitions that can be made for an actor which can be in different files might be taking off a bit more than I can chew.