Raised This Month: $ Target: $400
 0% 

Where I can find all constants etc?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
peku33
Junior Member
Join Date: Nov 2008
Old 12-29-2010 , 15:50   Where I can find all constants etc?
Reply With Quote #1

Hi! I need to modify weapon ammo by its entity id. I found code:
Code:
// weapons offsets
#define OFFSET_CLIPAMMO        51
#define OFFSET_LINUX_WEAPONS    4
#define fm_cs_set_weapon_ammo(%1,%2)    set_pdata_int(%1, OFFSET_CLIPAMMO, %2, OFFSET_LINUX_WEAPONS)
but i don't understand where author found both constants: OFFSET_CLIPAMMO and OFFSET_LINUX_WEAPONS.
peku33 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-29-2010 , 16:13   Re: Where I can find all constants etc?
Reply With Quote #2

http://wiki.alliedmods.net/Category:CS_Class_List

That offset (OFFSET_CLIPAMMO) is named m_iClip from CBasePlayerWeapon
__________________

Last edited by Bugsy; 12-29-2010 at 16:16.
Bugsy is offline
peku33
Junior Member
Join Date: Nov 2008
Old 12-29-2010 , 16:31   Re: Where I can find all constants etc?
Reply With Quote #3

Thanks. I wonder why i didn't search there. Close.
peku33 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 02:11.


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