[SOLVED] TF2 Reading the current ammo of pyro/heavy
Hi, for my medic ammo plugin, i just noticed it was showing 255 ammo for pyro and heavy all the time, and I'm not quite sure when this started happening, if it was a tf2 update, or sm change.
here's the code that I was using to read the ammo Code:
stock GetHeavyPyroAmmo(client) before i go crazy with this later, i was hoping that maybe someone already knows! thx :> |
Re: TF2 Reading the current ammo of pyro/heavy
yeah im too dumb to figure this out, no matter what i change, it says PRIMARY AMMO: 255
/help me :< |
Re: TF2 Reading the current ammo of pyro/heavy
What you're doing is fine, the problem probably lies in how you use it in your plugin.
Edit: Found the problem, in your stock ShowInfo(medic, target): PHP Code:
Another observation when I glanced at it, you check that the class isn't medic, right after checking that the class IS demoman? Code:
if (class == TFClass_DemoMan) Here's an example of how I would change that particular section: PHP Code:
|
Re: TF2 Reading the current ammo of pyro/heavy
wow don't i feel like the stooge mcFuck :( I dont even remember changing that bit, so i thought it was changes in tf2 that screwed it up and nothing i did... so i wasn't even looking at that portion
thanks a lot!!!!!! :D |
All times are GMT -4. The time now is 12:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.