[HELP] Setting Ammo Clip to 150
Hi guys. I'm using cs_set_weapon_ammo to set a weapon's clip to 150. But the HUD only shows 106. Then when I fire it keeps increasing to about 120+ before it begins to go down. I haven't checked if there were actually 150 bullets fired and it's just a problem with the HUD.
Is there a limitation on the HL engine I'm not familiar with?... |
Re: [HELP] Setting Ammo Clip to 150
Yes, there is. I know it's 255 for the health, armor and backpack ammo, but not sure for the clip ammo. The ammo is still there, it's just not displayed properly.
|
Re: [HELP] Setting Ammo Clip to 150
Show the code, probably doing something wrong.
EDIT : Oh hey OciXCrom |
Re: [HELP] Setting Ammo Clip to 150
1 Attachment(s)
Here's the snippet starting at line 284:
PHP Code:
|
Re: [HELP] Setting Ammo Clip to 150
I might've forgotten to define CLIP back to 150. I think the one I uploaded is set to 100 only. But that's all I changed. Sorry...
|
Re: [HELP] Setting Ammo Clip to 150
Try doing this, also NEVER use Fakemeta util.
Code:
|
Re: [HELP] Setting Ammo Clip to 150
My game hung up on me so I removed this line:
Code:
while( ent > 0 )I know I'm not supposed to use fakemeta_util. But this is old code I got a while back that I'm trying to update. Would you help me convert some codes from fakemeta_util to their appropriate counterparts?... |
Re: [HELP] Setting Ammo Clip to 150
Sorry, I meant to use 'if' not 'while'. Try again.
Why are you using this Code:
|
Re: [HELP] Setting Ammo Clip to 150
Sorry. Still 106. It goes up until 128 then it becomes 127. From 106 to 128 there are 23 bullets. 23 + 127 = 150. I think its a HUD thing. >_<
I'm gonna try setting it to 110 and see what happens the edit the results in... |
Re: [HELP] Setting Ammo Clip to 150
Delete this and try again
Code:
Are you using any plugin that changes weapon ammo? |
| All times are GMT -4. The time now is 20:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.