Raised This Month: $ Target: $400
 0% 

Model Animation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-15-2018 , 16:02   Re: Model Animation
Reply With Quote #1

I checked with Jed's Half Life Viewer and idle animation has 141 frames, does that mean I have to use 141.0 as the framerate?

So, something like this?
PHP Code:
public MakeAnimid )
{
    
set_task1.0"@RenewAnimation"id, .flags="b" );
}

@
RenewAnimationid )
{
    
Util_PlayAnimationididle141.0 );
}

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); 

__________________

Last edited by edon1337; 08-15-2018 at 16:04.
edon1337 is offline
Reply



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:47.


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