Raised This Month: $ Target: $400
 0% 

Model Animation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-15-2018 , 16:27   Re: Model Animation
Reply With Quote #7

Quote:
Originally Posted by Ghosted View Post
frames is not anim duration. frames must be divided by frames per second = duration.
Ah, thanks for the information.

So basically there's 141 Frames and FPS is 30 = 4.7.

So is this correct?
PHP Code:
public MakeAnimid )
{
    
set_task4.7"@RenewAnimation"id, .flags="b" );
}

@
RenewAnimationid )
{
    
Util_PlayAnimationididle4.8 );
}

stock Util_PlayAnimation(indexsequenceFloatframerate 1.0

    
entity_set_float(indexEV_FL_animtimeget_gametime()); 
    
entity_set_float(indexEV_FL_framerate,  framerate); 
    
entity_set_float(indexEV_FL_frame0.0); 
    
entity_set_int(indexEV_INT_sequencesequence); 

__________________
edon1337 is offline
 



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 12:48.


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