A_Detonate takes DamageType into consideration

Moderator: GZDoom Developers

User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

Re: A_Detonate takes DamageType into consideration

Post by ChronoSeth »

IIRC it's because projectiles always have the shooter as their "target", and A_Explode assumes that whatever is calling it is a projectile.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_Detonate takes DamageType into consideration

Post by Graf Zahl »

The real problem here is that any damaging attack transfers its damage type to its victim. This is needed to handle damage type specific actions. As a result the barrel will lose its own damage type. This is an inherent limitation of how Doom works. Sorry about it.
User avatar
Ghastly
... in rememberance ...
Posts: 6109
Joined: Fri Jul 06, 2007 2:34 pm

Re: A_Detonate takes DamageType into consideration

Post by Ghastly »

Graf Zahl wrote:The real problem here is that any damaging attack transfers its damage type to its victim. This is needed to handle damage type specific actions.
Oh, wow, so this is how we get damagetype-specific pain and death states; it simply checks the actor's current damagetype before before jumping to the related state? Some things are making more sense now. :P
User avatar
Kyle873
Posts: 667
Joined: Thu Jun 28, 2012 11:48 am
Location: Ontario, Canada

Re: A_Detonate takes DamageType into consideration

Post by Kyle873 »

Graf Zahl wrote:The real problem here is that any damaging attack transfers its damage type to its victim. This is needed to handle damage type specific actions. As a result the barrel will lose its own damage type. This is an inherent limitation of how Doom works. Sorry about it.
Ok that makes a lot more sense then, thanks for clearing that one up.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_Detonate takes DamageType into consideration

Post by Graf Zahl »

... and btw, A_Detonate does take DamageType into consideration, so this suggestion won't cure any of the perceived problems.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”