Raised This Month: $12 Target: $400
 3% 

TF2: Heavy/Pyro ammo issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 10-21-2008 , 16:48   TF2: Heavy/Pyro ammo issue
Reply With Quote #1

Quick question. Is there some better way of giving pyros and heavies ammo. Here is the code below and it works, but for pyros it doesnt show the ammo going down as your using it... Example, I currently have rtd skill that gives pyros 300 ammo for flamethrower, but the ammo shows as 44 and just sits there on that number as youre using ammo.

Heavies, it does show the ammo draining, but it looks like theres a bug that shows the gun annimation still firing when the ammo runs out, even though no bullets are being fired.

Any ideas? Nothing serious but, couple bugs id like to try and fix if possible. Every other class works fine.

Code:
 case 6: // Heavy
        {
            SetEntData(client, ammoOffset + 4, 300);
            SetEntData(client, ammoOffset + 8, 0);

            SetEntData(GetPlayerWeaponSlot(client, 0), clipOffset, 300);
            SetEntData(GetPlayerWeaponSlot(client, 1), clipOffset, 50);
        }
        case 7:// Pyro
        {
            SetEntData(client, ammoOffset + 4, 300);
            SetEntData(client, ammoOffset + 8, 0);

            SetEntData(GetPlayerWeaponSlot(client, 0), clipOffset, 300);
            SetEntData(GetPlayerWeaponSlot(client, 1), clipOffset, 50);
        }
retsam is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 10-21-2008 , 18:01   Re: TF2: Heavy/Pyro ammo issue
Reply With Quote #2

Probably not, the HUD has a limit of 256 (hence 300 - 256 = 44).
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 10-21-2008 , 19:16   Re: TF2: Heavy/Pyro ammo issue
Reply With Quote #3

Yeah its not a big issue. That explains it then. Damn. heh.
retsam is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:54.


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