How to hook animation ?
PHP Code:
Is there a better idea? Or Draw anim - Ham_Item_Deploy SLASH - Ham_Weapon_PrimaryAttack But,how to hook STAB , MISS , MIDSLASH ? I blocked all the animations,I need to play new animations |
Re: How to hook animation ?
You would need to hook CBasePlayerWeapon::SendWeaponAnim(), with either Hamsandwich (the updated version), or Orpheu/Rage.
|
Re: How to hook animation ?
Arkshine,thanks.
|
Re: How to hook animation ?
you can also try register_message(SVC_WEAPONANIM,"Message_Weap onAnim") and use get_msg_arg_int to get animation.
|
Re: How to hook animation ?
csoldjb, get_msg_arg_int( number ? )
How do I know all the arguments? |
Re: How to hook animation ?
Quote:
Example in player model we have dummy = 0 idle = 1 run = 2 ... with this get_msg_arg_int you get all information what do you need. in there we have PHP Code:
value = get_msg_arg_int() |
Re: How to hook animation ?
Quote:
|
Re: How to hook animation ?
It can be hooked. It's a message sent from the game, it will work but it would be more simple and efficient to hook the virtual function SendWeaponAnim instead. (Ham or Orpheur/Rage)
|
| All times are GMT -4. The time now is 08:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.