Re: Zero (0) HP Bug Fix
Indeed vittu, you'r method is best...i just replyed to X-olent post.
|
Re: Zero (0) HP Bug Fix
updated to 0.3
thanks for pointing that out vittu :) |
Re: Zero (0) HP Bug Fix
Kinda forgot about this but because you are checking if the client is alive, you don't need to check against 0 hp. Client can not be alive and have 0 health or less.
You can reduce the if statement to: if(hp % 256 == 0) or if you really wanted, you don't need to check below 255 so you could change it to: if(hp > 255 && (hp % 256) == 0) |
Re: Zero (0) HP Bug Fix
done.
|
Re: Zero (0) HP Bug Fix by Exolent
Can someone edit it to act on the armor?
|
Re: Zero (0) HP Bug Fix by Exolent
Quote:
|
Re: Zero (0) HP Bug Fix by Exolent
Quote:
|
Re: Zero (0) HP Bug Fix by Exolent
There is no 0 armor bug.
|
Re: Zero (0) HP Bug Fix by Exolent
Quote:
|
Re: Zero (0) HP Bug Fix by Exolent
You don't understand the purpose of this plugin.
If a player has more than 255 health, it will loop back to less than or equal to 255. Example: 510 (which is 255 * 2) will be reduced to 255, but the player's real health is still 510. The bug with this is when a player has a health value of 256x, where x is any postive integer, it will reduce the player's health to 0 because 255 is the maximum. When a player's HUD health is 0 but actual health is greater than 255, it turns the player's screen to an awkward view and changes how the player can move. This plugin detects when that happens and adds 1 health to the player so that the player's HUD health is 1 instead of 0, thus removing the bug. |
| All times are GMT -4. The time now is 08:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.