I'm not sure it's bugs, but it looks like at least unexpected behavior:
When you change the damage via item with ModifyDamage function so that the newdamage = 0:
1. Blood is still spawned.
2. If the damage was done by an explosion, the victim is still thrust the same distance as if it was thrust by the original amount of damage.
ModifyDamage to 0 has side effects of non-zero damage
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
-
- Posts: 5043
- Joined: Sun Nov 14, 2010 12:59 am
Re: ModifyDamage to 0 has side effects of non-zero damage
Even though the damage was reduced to 0, the game doesn't consider the actor [wiki=Actor_flags#INVULNERABLE]invulnerable[/wiki], so blood still spawns (invulnerable actors don't bleed).Kzer-Za wrote:Blood is still spawned.
There is thrust from damage, and thrust from the explosion itself (the shock wave). What you experience there is the latter.If the damage was done by an explosion, the victim is still thrust the same distance as if it was thrust by the original amount of damage.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: ModifyDamage to 0 has side effects of non-zero damage
We are surely not going to change this stuff. Trying so has led to more serious problems in the past.
Re: ModifyDamage to 0 has side effects of non-zero damage
Okay, thanks for the explanation.