AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   addtofullpack animation (https://forums.alliedmods.net/showthread.php?t=210282)

avril-lavigne 03-08-2013 16:22

addtofullpack animation
 
in my plugin im using custom player animation.Yesterday all worked just fine, but today I see only first animation works correctly. all others not playing, I see the last frame. if dead animation I see the body lying ( last frame). not falling down ( from first frame ), no matter what sequence is going next
only first works ( after server restart )

and another one, how to play animation on certain player, because this is affect all players at the same time ....


PHP Code:

public fw_addtofullpack(es_handleeenthostflagsplayer)
{
    if(!
pev_valid(player) || !is_user_alive(player)) return FMRES_IGNORED 
    
switch(anim[player]) {
    case 
106:
    {
        
set_es(es_handleES_Sequence106);
        
set_es(es_handleES_Frame0.0);
        
set_es(es_handleES_FrameRate0.7); 
        
set_es(es_handleES_AnimTime1.0); 
        return 
FMRES_HANDLED;
    }
    
    case 
107:
    {
        
set_es(es_handleES_Sequence107);
        
set_es(es_handleES_Frame0.0);
        
set_es(es_handleES_FrameRate0.7);  
        
set_es(es_handleES_AnimTime1.0); 
        return 
FMRES_HANDLED;
    }

    
    case 
108:
    {
        
set_es(es_handleES_Sequence108);
        
set_es(es_handleES_Frame0.0);
        
set_es(es_handleES_FrameRate0.5);
        
set_es(es_handleES_AnimTime1.0); 
        return 
FMRES_HANDLED;
    }
    
     }
    
    return 
FMRES_IGNORED;




All times are GMT -4. The time now is 21:39.

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