Raised This Month: $32 Target: $400
 8% 

[HELP] play bot animation with keys.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zkfpk6
Member
Join Date: Sep 2017
Old 11-20-2017 , 20:51   [HELP] play bot animation with keys.
Reply With Quote #1

i stored bot keys, i want to play whole usp move animation (swim, walk, duck, jump ...etc) with these keys.

PHP Code:
#define InMove (keys & IN_FORWARD || keys & IN_LEFT || keys & IN_RIGHT || keys & IN_BACK)
    //new bool:onground = bot_data[frame_velocity][2] == 0.0 ? true : false
    
if (onground)
    {
        if ( 
keys IN_DUCK && InMove )
        {
            
set_entity_animid);
        }
        else if ( 
keys IN_DUCK )
        {
            
set_entity_animid);
        }
        else  
        {
            
set_entity_animid);
        }
        if ( 
keys IN_JUMP )
        {
            
set_entity_animid);
        }
        else  
        {
            
set_entity_animid);
        }
    }
    else  
    {
        
set_entity_animid);
                
        if ( 
keys IN_DUCK )
        {
            
set_entity_animid);
        }
    }
    if(
keys IN_DUCK)
    {
        
pev(idpev_sequence ,16);    
    }
    else
    {
        
pev(idpev_sequence ,19);
    }
stock set_entity_anim(entanim)
{
    
entity_set_float(entEV_FL_animtimeget_gametime())
    
entity_set_float(entEV_FL_framerate1.0)
    
entity_set_int(entEV_INT_gaitsequenceanim)

i finished the animation basically, but not so perfect (really tried many times). someone wrote these animations before? or help me to finish it perfectly please. sorry for my bad english
zkfpk6 is offline
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 03:52.


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