Raised This Month: $51 Target: $400
 12% 

Play PlayerModel Animation


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

Hi, i want to know if i can play a whole anim on a players model.

Thanks for good explainations and solutions.

Those who dont know, have nothing to do on this thread.

Edit: Dont need help anymore.
__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 10-22-2015 at 11:13.
SkumTomteN is offline
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 10-25-2015 , 21:33   Re: Play PlayerModel Animation
Reply With Quote #2

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


Last edited by OnePL; 10-25-2015 at 21:34.
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 10-26-2015 , 19:56   Re: Play PlayerModel Animation
Reply With Quote #3

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
AGoodGuy
Member
Join Date: Sep 2014
Old 03-17-2016 , 09:47   Re: Play PlayerModel Animation
Reply With Quote #4

Confirm it work like acharm!
__________________
Without Passion Life Is Nothing

Quote:
“If you can't fly then run, if you can't run then walk, if you can't walk then crawl, but whatever you do, you have to keep moving forward.”― Martin Luther King Jr.
AGoodGuy 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 13:04.


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