MODELDEF : Inheritance

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

Moderator: GZDoom Developers

User avatar
SPZ1
Posts: 254
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois
Contact:

MODELDEF : Inheritance

Post by SPZ1 »

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

Code: Select all

MODEL ChildModel : ParentModel {
   skin 0 "alternate.jpg"
} 
User avatar
Cherno
Posts: 1311
Joined: Tue Dec 06, 2016 11:25 am

Re: MODELDEF : Inheritance

Post by Cherno »

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
SPZ1
Posts: 254
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois
Contact:

Re: MODELDEF : Inheritance

Post by SPZ1 »

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
Post Reply

Return to “Feature Suggestions [GZDoom]”