Enemy attacks/projectiles heal players?

Archive of the old editing forum
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.
Locked
User avatar
lizardcommando
Posts: 1489
Joined: Thu Sep 07, 2006 12:24 pm
Location: Boringland, California

Enemy attacks/projectiles heal players?

Post by lizardcommando »

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?
User avatar
Blox
Posts: 3728
Joined: Wed Sep 22, 2010 9:35 am
Location: Apathetic Limbo

Re: Enemy attacks/projectiles heal players?

Post by Blox »

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
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Enemy attacks/projectiles heal players?

Post by Blue Shadow »

If it no longer works, then it's most likely a bug. Report it.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Enemy attacks/projectiles heal players?

Post by Ichor »

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.
User avatar
lizardcommando
Posts: 1489
Joined: Thu Sep 07, 2006 12:24 pm
Location: Boringland, California

Re: Enemy attacks/projectiles heal players?

Post by lizardcommando »

Blue Shadow wrote:If it no longer works, then it's most likely a bug. Report it.
Thanks for the suggestion. I just posted in the bugs forum.
Locked

Return to “Editing (Archive)”