[DiscordArchive] But what you were saying about negative health/ overflowing how would i check this?
[DiscordArchive] But what you were saying about negative health/ overflowing how would i check this?
Archived author: Infectious • Posted: 2024-03-24T12:46:14.257000+00:00
Original source
But what you were saying about negative health/ overflowing how would i check this?
Archived author: stoneharry • Posted: 2024-03-24T12:46:39.383000+00:00
Original source
you could programatically check it, but not something I can provide a tutorial for. Check the values invoked to SetHealth
Archived author: stoneharry • Posted: 2024-03-24T12:48:21.668000+00:00
Original source
I've caused the same bug when my dynamic npc scaling bugged out... I have code that scales the creatures based on the number of players, and there was a bug causing it to set an invalid health value. The result is creatures that appear dead client side but are alive server side, so they chase you dead visually
Archived author: Infectious • Posted: 2024-03-24T12:48:52.939000+00:00
Original source
Oh
Archived author: Infectious • Posted: 2024-03-24T12:48:54.919000+00:00
Original source
makes sence
Archived author: Infectious • Posted: 2024-03-24T12:50:20.561000+00:00
Original source
what i can see is that it usually happens when the dungeon is being done solo so scaled down and the mobs have litle hp
Archived author: stoneharry • Posted: 2024-03-24T12:50:57.577000+00:00
Original source
So you have scaling, sounds like an issue with that code.
Archived author: Infectious • Posted: 2024-03-24T12:53:07.452000+00:00
Original source
Yea most likely
Archived author: Infectious • Posted: 2024-03-24T12:53:11.437000+00:00
Original source
I have autobalance
Archived author: stoneharry • Posted: 2024-03-24T12:54:24.519000+00:00
Original source
It can generally be fixed be adding a math.maximum(1, newHealth) where the scaling occurs, but that may lead to creatures having 1 health instead of whatever it should have been scaled to