Raised This Month: $ Target: $400
 0% 

Play PlayerModel Animation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 10-26-2015 , 19:56   Re: Play PlayerModel Animation
Reply With Quote #1

Quote:
Originally Posted by OnePL View Post
PHP Code:
stock UTIL_PlayerAnimation(idszAnimation[]) {
    static 
iAnimDesiredFloat:fFrameRateFloat:fGroundSpeedbool:bLoops;
    if((
iAnimDesired lookup_sequence(idszAnimationfFrameRatebLoopsfGroundSpeed)) == -1iAnimDesired 0;
    static 
Float:fGameTime;
    
fGameTime get_gametime();
    
set_pev(idpev_frame0.0);
    
set_pev(idpev_framerate1.0);
    
set_pev(idpev_animtimefGameTime);
    
set_pev(idpev_sequenceiAnimDesired);
    
set_pdata_int(id40bLoops4);
    
set_pdata_int(id3904);
    
set_pdata_float(id36fFrameRate4);
    
set_pdata_float(id37fGroundSpeed4);
    
set_pdata_float(id38fGameTime4);
    
set_pdata_int(id7328);
    
set_pdata_int(id7428);   
    
set_pdata_float(id220fGameTime);

Confirmed that this works?

Thanks though, could use it for some projects i have in mind
__________________
Contact: Steam
Videos: Youtube
SkumTomteN 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 22:13.


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