Inherritance for Damagetypes

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

Moderator: GZDoom Developers

Inherritance for Damagetypes

Postby RockstarRaccoon » Mon May 07, 2018 11:01 pm

So like, I could specify something like...
Code: Select allExpand view
DamageType Fire {
   Obituary = "Burned to death"
}
DamageType Fireball : Fire {
   Obituary = "Burned to death by fireball"
}
DamageType Lava : Fire {
   Obituary = "Tried to swim in Lava"
}
DamageType PlasmaBeam : Fire {
   Obituary = "Killed by a Plasma Beam"
}
DamageType PlasmaMissileCombo : PlasmaBeam {
   Obituary = "Killed by a Plasma Missile"
}

And it could all be group-referenced as "Fire".
User avatar
RockstarRaccoon
Totally Babies
 
Joined: 31 Jul 2016

Re: Inherritance for Damagetypes

Postby Graf Zahl » Tue May 08, 2018 1:56 am

Easier said than done. The damage type is currently just a name with no semantics attached.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Inherritance for Damagetypes

Postby RockstarRaccoon » Tue May 08, 2018 8:32 am

I see. Ok then. Maybe I can just pull something like having naming conventions like "Fire_Napalm" next time I want to pull something like that then...
User avatar
RockstarRaccoon
Totally Babies
 
Joined: 31 Jul 2016


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest