I remember that in older versions of ZDoom and GZdoom, in order to make enemy attacks and projectiles heal the player, all you had to do was change the "Damage" flag to a negative number. Now it seems like that no longer works.
What's the new way to make enemy attacks and projectiles heal the player?
Enemy attacks/projectiles heal players?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- lizardcommando
- Posts: 1489
- Joined: Thu Sep 07, 2006 12:24 pm
- Location: Boringland, California
Re: Enemy attacks/projectiles heal players?
A likewise ancient hack was giving the healing projectile a DamageType that the to-be-healed actor has a DamageFactor set to a negative number for.
good old times
good old times
-
- Posts: 5043
- Joined: Sun Nov 14, 2010 12:59 am
Re: Enemy attacks/projectiles heal players?
If it no longer works, then it's most likely a bug. Report it.
Re: Enemy attacks/projectiles heal players?
I suppose you could try giving the projectile a unique DamageType, let's say MonsterHeal. Then add a corresponding Pain.MonsterHeal to the player, which gives the player some health. The attack wouldn't do any damage of course, but it would use FORCEPAIN to force the player to use the pain state and give him the health.
- lizardcommando
- Posts: 1489
- Joined: Thu Sep 07, 2006 12:24 pm
- Location: Boringland, California
Re: Enemy attacks/projectiles heal players?
Thanks for the suggestion. I just posted in the bugs forum.Blue Shadow wrote:If it no longer works, then it's most likely a bug. Report it.