Quote:
Originally Posted by fearAR
So, If I add a new animation to a model, and the number of this animation is 96.
If I do this:
PHP Code:
OrpheuCall( OrpheuGetFunction( "SetAnimation", "CBasePlayer" ), id, 96 );
Will it work?
Greetings.
Edit: I tested and It didn't worked, or are you referring to use m_szAnimExtention and pass an event PLAYER_* to the SetAnimation function's 2nd param?
|
SetAnimation it's called every frame, you don't need to set it again, just change the offset when press +attack2 and rewrite the offset again with "knife" when not, just one time, you'll see the change.
Also, SetAnimation doesn't call an animation listed on the model, it haves his respectives enumerations. Add the ref_aim_defense at the end of the model (I suppose you know) and do the thing that i've wrote you above
__________________