AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Zero (0) HP Bug Fix by Exolent (https://forums.alliedmods.net/showthread.php?t=68124)

Alka 03-13-2008 15:21

Re: Zero (0) HP Bug Fix
 
Indeed vittu, you'r method is best...i just replyed to X-olent post.

Exolent[jNr] 03-13-2008 15:55

Re: Zero (0) HP Bug Fix
 
updated to 0.3
thanks for pointing that out vittu :)

vittu 03-21-2008 16:01

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)

Exolent[jNr] 03-21-2008 17:33

Re: Zero (0) HP Bug Fix
 
done.

dark_style 02-12-2010 09:46

Re: Zero (0) HP Bug Fix by Exolent
 
Can someone edit it to act on the armor?

Exolent[jNr] 02-12-2010 15:03

Re: Zero (0) HP Bug Fix by Exolent
 
Quote:

Originally Posted by dark_style (Post 1086335)
Can someone edit it to act on the armor?

What?

Excalibur.007 02-12-2010 21:50

Re: Zero (0) HP Bug Fix by Exolent
 
Quote:

Originally Posted by Exolent[jNr] (Post 1086613)
What?

He wants it to work for armor too.

Exolent[jNr] 02-13-2010 01:07

Re: Zero (0) HP Bug Fix by Exolent
 
There is no 0 armor bug.

dark_style 02-13-2010 05:15

Re: Zero (0) HP Bug Fix by Exolent
 
Quote:

Originally Posted by Exolent[jNr] (Post 1087098)
There is no 0 armor bug.

Sory, but I think when armor is 200 then show me 0 armor?

Exolent[jNr] 02-13-2010 16:05

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.