AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Execute Ham_Item_Deploy (https://forums.alliedmods.net/showthread.php?t=117543)

Leon M. 02-02-2010 04:54

Execute Ham_Item_Deploy
 
Hi guys,

I have added two knives on my server and I would like to execute the deploy animation if a player changed from a knife to a knife.

I know that I must execute this feature with the function ExecuteHam(Ham_Item_Deploy, iEntity) from Hamsandwich but I didn't know how to get the number of the Entity. Is there an offset for get_pdata or get_cbase???

Many many thanks in advance.
Leon

Arkshine 02-02-2010 05:44

Re: Execute Ham_Item_Deploy
 
It's the weapon index. You can use the m_pActiveItem offset. (373)

Leon M. 02-02-2010 09:45

Re: Execute Ham_Item_Deploy
 
Quote:

Originally Posted by Arkshine (Post 1075951)
You can use the m_pActiveItem offset. (373)

OMG :shock:, I'm so stupid :wink:. I have used this offset some weeks ago.

Thx for open my eyes :D


All times are GMT -4. The time now is 07:18.

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