Raised This Month: $ Target: $400
 0% 

NPC animations


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-09-2014 , 22:29   NPC animations
Reply With Quote #1

Does anyone know how to fix npc animations, I want npc animations to be played smooth after I set anim and not played instantly from other point...

My animation function:

PHP Code:
stock Util_PlayAnimation(indexsequenceFloatframerate 1.0)  { 
    
    
set_pev(indexpev_movetypeMOVETYPE_NONE)
    
entity_set_float(indexEV_FL_animtimeget_gametime()); 
    
entity_set_float(indexEV_FL_framerate,  framerate); 
    
//entity_set_float(index, EV_FL_frame, 0.0); still the same after I removed this.
    
entity_set_int(indexEV_INT_sequencesequence); 
    
set_pev(index,pev_gaitsequence,sequence// Not sure if this even does anything...
    
set_pev(indexpev_movetypeMOVETYPE_STEP)    

https://forums.alliedmods.net/showthread.php?t=184842 this thread has the same problem as me.
__________________
and once again

Last edited by usaexelent; 10-10-2014 at 08:02.
usaexelent is offline
Send a message via Skype™ to usaexelent
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-11-2014 , 08:37   Re: NPC animations
Reply With Quote #2

Solved, I don't know why but I just had to apply some velocity on npc to make animations play smoothly.
__________________
and once again

Last edited by usaexelent; 10-11-2014 at 08:37.
usaexelent is offline
Send a message via Skype™ to usaexelent
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:40.


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