View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-12-2015 , 12:03   Re: [TF2] Accurately get a weapon's max clip/ammo.
Reply With Quote #4

To be honest, after doing a bit of research, it's a bit of a pain to check ammo levels using methods. Hell, you'd need a signature to call CAmmDef::MaxCarry as it has no entity.

Incidentally, why would you need a TF2Items callback to get accurate numbers? Doesn't the post_inventory_application event fire after a player is given a new inventory? You could just iterate over their item slots then.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-12-2015 at 12:03.
Powerlord is offline