SDKCall CBaseCombatWeapon::GetMaxClip1(void)
2 Attachment(s)
I became interested in this conversation and about psychonic answer.
Quote:
Quote:
I could have just ask from @psychonic, "How to do it ? Show us !" Instead of easier way to get answer, I search for it. Require! https://forums.alliedmods.net/images...thread_hot.gif https://forums.alliedmods.net/images/misc/paperclip.gif https://forums.alliedmods.net/images/misc/sticky.gif Sticky: New IDA VTable Script examples sm_getkey, GetEyePosition Example
SM plugin source code
- What I quick test, HL2DM, CS:S and DOD:S return right value. - CSGO and TF2 instead return random value. This is one method to get weapon max ammount ammo in Clip1. Another way can be done also.. - when entity created, store in global variable weapon clip1 ammo. - read weapon script file from server (loose file or inside VPK pack) - use extensions Hope one SDKCall tutorial more not cause disapproval :3 |
Re: SDKCall CBaseCombatWeapon::GetMaxClip1(void)
Did you check the return value of CBaseCombatWeapon::UsesClipsForAmmo1 before checking CBaseCombatWeapon::GetMaxClip1 / CBaseCombatWeapon::GetDefaultClip1?
|
Re: SDKCall CBaseCombatWeapon::GetMaxClip1(void)
Quote:
These can be check also with GetEntProp "m_iPrimaryAmmoType" But if I remember rigth, grenades 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 :P (bug) |
Re: SDKCall CBaseCombatWeapon::GetMaxClip1(void)
Where did you find those functions?
I would be interested in using it, but they aren't listed in the vtable dumper I use http://www.sourcemodplugins.org/vtableoffsets/csgo Maybe they just don't exist in CSGO |
Re: SDKCall CBaseCombatWeapon::GetMaxClip1(void)
Quote:
|
Re: SDKCall CBaseCombatWeapon::GetMaxClip1(void)
Oh wow, glad I saw this -- I don't know how to do SDK calls :)
|
| All times are GMT -4. The time now is 18:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.