Ham_Item_Deploy
shouldnt this work or did i leave something out by mistake? iam testing on DoD, but it doesnt work. the classnames is registered right, i dont get any errors.. is it an offset or something i missed?
Code:
|
Re: Ham_Item_Deploy
You have missed the fact that the forward won't pass any player id, but weapon id.
Either you find the weapon offset m_pPlayer (could be the same as for cs1.6), either you retrieve the id using pev_owner. Try using RegisterHam(Ham_Item_Deploy, Knife_Names[i], "Knife_Deploy", 1) PHP Code:
Try this on windows, when you have found the offset, you can use this to retrieve player id : Code:
#define m_pPlayer ??? // value you have found |
Re: Ham_Item_Deploy
lmao ok..
|
Re: Ham_Item_Deploy
If you only want to detect knife, register CurWeapon with right args in the registering line should be enough.
If it's the same as in cs1.6, there's no other CurWeapon messages sent than the deployed one. |
Re: Ham_Item_Deploy
thanks ill test it later, and post the result.. thanks!
edit btw what i wanted was to leave out the CurWeapon thing, i use that now.. |
| All times are GMT -4. The time now is 08:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.