[Duplicate] ModelDef inheritance

Moderator: GZDoom Developers

ModelDef inheritance

Postby Major Cooke » Sat Jul 07, 2018 4:18 pm

Having an "InheritFrom" or "Inherited" word/flag would be quite helpful in some circumstances where we may have very large model definitions, rather than having to redefine them over and over again.

From this:
Code: Select allExpand view
Model "StaticTrail"
{
   Model 0 "Models/BeamOffset8.md3"
   Scale 100.0 100.0 120.0

   DONTCULLBACKFACES
   USEACTORPITCH
   
   Skin 0 "Graphics/BulletTex.png"
   FrameIndex X202 B 0 0
   Skin 0 "Graphics/BulletTexStart.png"
   FrameIndex X202 Z 0 0
}

Model "StaticTrailBig"
{
   Model 0 "Models/BeamOffset8.md3"
   Scale 100.0 100.0 120.0

   DONTCULLBACKFACES
   USEACTORPITCH
   
   Skin 0 "Graphics/BulletTex.png"
   FrameIndex X202 B 0 0
   Skin 0 "Graphics/BulletTexStart.png"
   FrameIndex X202 Z 0 0
}


To this:
Code: Select allExpand view
Model "StaticTrail"
{
   Model 0 "Models/BeamOffset8.md3"
   Scale 100.0 100.0 120.0

   DONTCULLBACKFACES
   USEACTORPITCH
   
   Skin 0 "Graphics/BulletTex.png"
   FrameIndex X202 B 0 0
   Skin 0 "Graphics/BulletTexStart.png"
   FrameIndex X202 Z 0 0
}

Model "StaticTrailBig"
{
   InheritFrom "StaticTrail"
}


In a way, this would allow for skins to also be changed for example. Or if colon could be used, that'd work too.
User avatar
Major Cooke
Do unto others as you would have unto you. Judge yourself first.
 
Joined: 28 Jan 2007

Re: ModelDef inheritance

Postby Blue Shadow » Sat Jul 07, 2018 9:31 pm

User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest