Raised This Month: $ Target: $400
 0% 

[TF2] Gamedata: GetMaxAmmo / GetMaxClip


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-12-2015 , 14:02   Re: [TF2] Accurately get a weapon's max clip/ammo.
Reply With Quote #9

Quote:
Originally Posted by psychonic View Post
GetEntProp should be used, else cache is being bypassed and for extra complication of code.
To add to this, GetEntProp's size and element values for m_iAmmo would be 4 and iOffset respectively. The 4 doesn't even need to be set as GetEntProp can figure it out on its own.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
 



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 18:33.


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