Weapon slot detection
Well, like title said... i want to detect the slot of a weapon id... i think that the best way is with offset but, i can't find it the one to detect slot... the only thing that i found it is this: http://wiki.amxmodx.org/CWeaponBox_(CS) * first, 34 offset * but don't know... this is the correct one that i should use it?
|
Re: Weapon slot detection
Well, this may be of use to you: https://forums.alliedmods.net/showth...47#post1109747
|
Re: Weapon slot detection
Emm, but as far as i understand in the code of connor he is doing the inverse... he is detecting the weapon that are in the stock that you set... or i am wrong?
I want to detect the number of the slot, giving an id (or name, doesn't matter) of the weapon. EDIT: Maybe i can use that code using a loop to detect the correct slot, but i will wait a better method =p |
Re: Weapon slot detection
Code:
|
Re: Weapon slot detection
What do you want exactly ?
Weapon Slot by weapon entity index ? - ExecuteHam(Ham_Item_ItemSlot, iWeaponEntity) By weapon type ? - Use the lookup table wrecked_ pointed -> Slots[CSW_SCOUT] This is not a loop. |
Re: Weapon slot detection
Cool, i think i will use the Ham_Item_ItemSlot, thanks connor and wrecked.
|
| All times are GMT -4. The time now is 07:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.