How to catch animation
Hi
I need solution about catching animation example: i would like to catch reload animation in glock and block or change it for shot animation but question is how do it? |
Re: How to catch animation
Catch the reload event using Ham_Weapon_Reload and force a new animation by sending, for example, SVC_WEAPONANIM.
I'm not sure if there's a better way but I'm sure someone will correct me if there is. |
Re: How to catch animation
Method seems ok, about SVC_WEAPONANIM, you can use Ham_CS_Weapon_SendWeaponAnim from hamsandwich updated.
You can also try to hook it to catch other animations. I hope this ham version gonna be integrated in amxx, but atm there are no testers for some mods to confirm all is working. |
Re: How to catch animation
hmm i tested ham_ and it didn't work
i have a model with one "idle" animation (first in sequence) and I try change glock for them but glock has three "idle" animations and when i'm walking third animation("idle" for glock and "attack1 for my Model) is triggered i would like to block it |
Re: How to catch animation
May be easier to just edit the model?
Here's a solution: Quote:
Quote:
|
Re: How to catch animation
Advantages are all missing virtual fonctions from default ham have been added, see thread for details.
|
Re: How to catch animation
No I mean if there's any advantage using Ham_CS_Weapon_SendWeaponAnim over SVC_WEAPONANIM?
|
Re: How to catch animation
so i solved my problem
HTML Code:
if(get_cd(cd,CD_WeaponAnim) <3 ){but i have new problem i try set knife model for glock and everything is ok but if I set cl_righthand 1 then i have model after change in left hand. Anybody knows why? |
Re: How to catch animation
Quote:
|
Re: How to catch animation
Ham_CS_Weapon_SendWeaponAnim crashed my server server
so anybody knows why if I change model glock for model knife it's in left hand by default? |
| All times are GMT -4. The time now is 19:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.