AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Where I can find all constants etc? (https://forums.alliedmods.net/showthread.php?t=146588)

peku33 12-29-2010 15:50

Where I can find all constants etc?
 
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.

Bugsy 12-29-2010 16:13

Re: Where I can find all constants etc?
 
http://wiki.alliedmods.net/Category:CS_Class_List

That offset (OFFSET_CLIPAMMO) is named m_iClip from CBasePlayerWeapon

peku33 12-29-2010 16:31

Re: Where I can find all constants etc?
 
Thanks. I wonder why i didn't search there. Close.


All times are GMT -4. The time now is 02:11.

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