Inherritance for Damagetypes

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

Moderator: GZDoom Developers

User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Inherritance for Damagetypes

Post by RockstarRaccoon »

So like, I could specify something like...

Code: Select all

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Inherritance for Damagetypes

Post by Graf Zahl »

Easier said than done. The damage type is currently just a name with no semantics attached.
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: Inherritance for Damagetypes

Post by RockstarRaccoon »

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

Return to “Feature Suggestions [GZDoom]”