AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bullets Clip : Bug ? (https://forums.alliedmods.net/showthread.php?t=51806)

solidsnake 02-24-2007 08:43

Bullets Clip : Bug ?
 
Dear friends, i'm trying to set weapon clip bullet over 100, but i think there is a bug : when i set clip over 127, value is increasing while firing.

Example : bullets 200, i got 56, increasing when i firing, and decreasing when reach 127.

How to fix this problem ?

Thanks !

XxAvalanchexX 02-24-2007 12:48

Re: Bullets Clip : Bug ?
 
This is because the client receives the clip ammo as a signed byte (-128 to 127). So if you go outside of those bounds, weird numbers start showing up. The clip ammo is actually going down, but the display is messed up. If you shoot enough you will see it start to decline.

solidsnake 02-25-2007 04:12

Re: Bullets Clip : Bug ?
 
Quote:

Originally Posted by XxAvalanchexX (Post 444922)
This is because the client receives the clip ammo as a signed byte (-128 to 127). So if you go outside of those bounds, weird numbers start showing up. The clip ammo is actually going down, but the display is messed up. If you shoot enough you will see it start to decline.

Thank you XxAvalanchexX, there is no way to fix this trouble ? :mrgreen:

XxAvalanchexX 02-25-2007 04:21

Re: Bullets Clip : Bug ?
 
Unfortunately not, it's hard-coded into the client to only receive it as a byte.


All times are GMT -4. The time now is 00:40.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.