Raised This Month: $ Target: $400
 0% 

SDKCall CBaseCombatWeapon::GetMaxClip1(void)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-03-2014 , 09:28   Re: SDKCall CBaseCombatWeapon::GetMaxClip1(void)
Reply With Quote #1

Did you check the return value of CBaseCombatWeapon::UsesClipsForAmmo1 before checking CBaseCombatWeapon::GetMaxClip1 / CBaseCombatWeapon::GetDefaultClip1?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-03-2014 at 09:30.
Powerlord is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-03-2014 , 11:10   Re: SDKCall CBaseCombatWeapon::GetMaxClip1(void)
Reply With Quote #2

Quote:
Originally Posted by Powerlord View Post
Did you check the return value of CBaseCombatWeapon::UsesClipsForAmmo1 before checking CBaseCombatWeapon::GetMaxClip1 / CBaseCombatWeapon::GetDefaultClip1?
Nope. I was interested only this, GetMaxClip1 will return -1 if not use any ammo type. (Knife, grenades)

These can be check also with GetEntProp "m_iPrimaryAmmoType"
But if I remember rigth, grenades ammotype clip1 return as 255.

If you meant that ?

*edit
There is also Clip2 which HL2MP weapons use. Maybe dod also. And in cs:s mp5navy use both clip with same ammo (bug)

Last edited by Bacardi; 07-03-2014 at 19:54.
Bacardi 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 18:31.


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