Help crouched animation
#8

Quote:
Originally Posted by Micko123
Посмотреть сообщение
That anim was probably started when player was standing and it setted him in crouching position..
Maybe thats the point...
I've tried it

Код:
forward ReloadWeaponAnim(playerid, gun); public ReloadWeaponAnim(playerid, gun) {
	if(gun == 24) {
		if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK) {
			ApplyAnimation (playerid , "PYTHON" , "python_crouchreload" , 4.0 , 0 , 0 , 0 , 0 , 500);
			SetTimerEx("Sentar", 500, 0, "i", playerid);
		}
		else { ApplyAnimation (playerid , "PYTHON" , "python_reload" , 4.0 , 0 , 0 , 0 , 0 , 500); }
	}
Код:
forward Sentar(playerid); public Sentar(playerid) {
	SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DUCK);
}
But not work...

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
What I made a time ago. I guess it's still working:
PHP код:
SetAnimationForWeapon(playeridweaponidcrounch=false// ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync);
{
     switch(
weaponid)
     {
           case 
22:
        {
            if(
crounchApplyAnimation(playerid"COLT45""python_crouchreload"4.1000, -111);
            else 
ApplyAnimation(playerid"COLT45""colt45_reload"4.1000, -111);
        }
        case 
23:
        {
            if(
crounchApplyAnimation(playerid"SILENCED""CrouchReload"4.1000, -111);
            else 
ApplyAnimation(playerid"SILENCED""Silence_reload"4.1000, -111);
        }
        case 
24:
        {
            if(
crounchApplyAnimation(playerid"PYTHON""python_crouchreload"4.1000, -111);
            else 
ApplyAnimation(playerid"PYTHON""python_reload"4.1000, -111);
        }
        case 
2527:
        {
            if(
crounchApplyAnimation(playerid"BUDDY""buddy_crouchreload"4.1000, -111);
            else 
ApplyAnimation(playerid"BUDDY""buddy_reload"4.1000, -111);
        }
        case 
26:
        {
            if(
crounchApplyAnimation(playerid"COLT45""colt45_crouchreload"4.1000, -111);
            else 
ApplyAnimation(playerid"COLT45""colt45_reload"4.1000, -111);
        }
        case 
29..313334:
        {
            if(
crounchApplyAnimation(playerid"RIFLE""RIFLE_crouchload"4.1000, -111);
            else 
ApplyAnimation(playerid"RIFLE""rifle_load"4.1000, -111);
        }
        case 
2832:
        {
            if(
crounchApplyAnimation(playerid"TEC""TEC_crouchreload"4.1000, -111);
            else 
ApplyAnimation(playerid"TEC""tec_reload"4.1000, -111);
        }
        default : return 
1;
    }
    return 
1;
}
IsCrounching(playerid) return (GetPlayerAnimationIndex(playerid) == 1159 || GetPlayerAnimationIndex(playerid) == 1274 true false); 
Same problem bro, using your anims after reload player get up
Reply


Messages In This Thread
Help crouched animation - by pedrotvr - 05.11.2016, 23:55
Re: Help crouched animation - by GoldenLion - 06.11.2016, 00:17
Re: Help crouched animation - by pedrotvr - 26.11.2016, 14:52
Re: Help crouched animation - by GoldenLion - 26.11.2016, 14:57
Re: Help crouched animation - by maikons - 26.11.2016, 18:15
Re: Help crouched animation - by Micko123 - 26.11.2016, 20:58
Re: Help crouched animation - by Dayrion - 26.11.2016, 23:32
Re: Help crouched animation - by pedrotvr - 27.11.2016, 11:29
Re: Help crouched animation - by Dayrion - 27.11.2016, 11:43
Re: Help crouched animation - by pedrotvr - 27.12.2016, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)