Page 1 of 1

Mobiles don't always die when hp drop to 0 (POL97-2007-01-04

Posted: Mon Apr 02, 2007 1:19 pm
by Xandros
Hi,

we have found a problem in the vital system than can cause
the hitpoints of a mobile to drop to 0, without causing the
mobiles death.

If the current regen rate for the mobiles hitpoints is set to a
slightly negative value, like -800 (e.g. the character is suffering
from a weak poison), then the hitpoints (as shown in the status
window) will drop from 1 to 0, but the character will still be
alive.
We think we have figured out the cause of this problem. We think
the core currently only kills a mobile when GetVital(who, VITALID_LIFE)
drops to 0, although for other purposes, like the status bar/window, the
hitpoints will already be handled as 0 when GetVital(who, VITALID_LIFE)
drops to 99 or less (in other words, it's rounded down).

As a solution, we suggest the core should already kill a mobile when
GetVital(who, VITALID_LIFE) drops below 100.

Thanks,
Xandros

Posted: Wed Apr 04, 2007 1:15 am
by Yukiko
FYI this has been a problem for a while. I've had players even under POL 0.95 reach 0 HP and not die.