running/walking styles?
#5

alright, so it looks like i'll look at sief's script

hes got the walking done but, he uses this for walking

pawn Code:
ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
4.1 speed what speed you think i should use for running?

does this look right?
pawn Code:
if (newkeys & KEY_WALK && newkeys & KEY_UP || newkeys & KEY_WALK && newkeys & KEY_DOWN || newkeys & KEY_WALK && newkeys & KEY_LEFT || newkeys & KEY_WALK && newkeys & KEY_RIGHT
    || oldkeys & KEY_WALK && newkeys & KEY_UP || oldkeys & KEY_WALK && newkeys & KEY_DOWN || oldkeys & KEY_WALK && newkeys & KEY_LEFT || oldkeys & KEY_WALK && newkeys & KEY_RIGHT
    || newkeys & KEY_WALK && oldkeys & KEY_UP || newkeys & KEY_WALK && oldkeys & KEY_DOWN || newkeys & KEY_WALK && oldkeys & KEY_LEFT || newkeys & KEY_WALK && oldkeys & KEY_RIGHT
    || newkeys & KEY_SPRINT && newkeys & KEY_UP || newkeys & KEY_SPRINT && newkeys & KEY_DOWN || newkeys & KEY_SPRINT && newkeys & KEY_LEFT || newkeys & KEY_SPRINT && newkeys & KEY_RIGHT
    || oldkeys & KEY_SPRINT && newkeys & KEY_UP || oldkeys & KEY_SPRINT && newkeys & KEY_DOWN || oldkeys & KEY_SPRINT && newkeys & KEY_LEFT || oldkeys & KEY_SPRINT && newkeys & KEY_RIGHT
    || newkeys & KEY_SPRINT && oldkeys & KEY_UP || newkeys & KEY_SPRINT && oldkeys & KEY_DOWN || newkeys & KEY_SPRINT && oldkeys & KEY_LEFT || newkeys & KEY_SPRINT && oldkeys & KEY_RIGHT
    || newkeys & KEY_UP && newkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_DOWN && newkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_LEFT && newkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_RIGHT && newkeys & KEY_SPRINT == KEY_SPRINT)
    || oldkeys & KEY_UP && newkeys & KEY_SPRINT == KEY_SPRINT || oldkeys & KEY_DOWN && newkeys & KEY_SPRINT == KEY_SPRINT || oldkeys & KEY_LEFT && newkeys & KEY_SPRINT == KEY_SPRINT || oldkeys & KEY_RIGHT && newkeys & KEY_SPRINT == KEY_SPRINT)
    || newkeys & KEY_UP && oldkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_DOWN && oldkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_LEFT && oldkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_RIGHT && oldkeys & KEY_SPRINT == KEY_SPRINT)
    && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
    walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
    }
first 3, for walking
second 3, for holding sprint key
last one, for tapping sprint
Reply


Messages In This Thread
running/walking styles? - by The_Gangstas - 10.12.2010, 01:39
Re: running/walking styles? - by Miguel - 10.12.2010, 01:48
Re: running/walking styles? - by The_Gangstas - 10.12.2010, 01:52
Re: running/walking styles? - by case 1337: - 10.12.2010, 01:56
Re: running/walking styles? - by The_Gangstas - 10.12.2010, 02:04

Forum Jump:


Users browsing this thread: 1 Guest(s)