MODELDEF : Inheritance

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

Moderator: GZDoom Developers

MODELDEF : Inheritance

Postby SPZ1 » Mon Mar 15, 2021 11:59 am

Would it be easier to inherit from a parent to change a skin than to copy 100 frames to do so?

Code: Select allExpand view
MODEL ChildModel : ParentModel {
   skin 0 "alternate.jpg"
}
User avatar
SPZ1
 
Joined: 02 Aug 2017
Location: Illinois

Re: MODELDEF : Inheritance

Postby Cherno » Mon Mar 15, 2021 2:56 pm

From what I understand, this is not possible due to the way MODELDEF is parsed internally. The advantage of the current system is that you can change path, models and (surface)skins at any point in the MODELDEF lump, for example in between two FrameIndex lines. This would not be possible with inheritance.
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: MODELDEF : Inheritance

Postby SPZ1 » Tue Mar 23, 2021 3:45 pm

I was thinking that the child list would start off where the parent list ended so you could still specify more paths and frames or whatever it may be
User avatar
SPZ1
 
Joined: 02 Aug 2017
Location: Illinois


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests