FCNPC flying zombies
#4

Ok, I got It updated like:

Код:
timer UpdateZombieMovement[800]()
{
    new Float:zMap, Float:x, Float:y, Float:z, Float:fPos[3];
   	foreach(Player, i)
    {
    	for(new j = 0; j != MAX_ZOMBIES; j++)
     	{
      		FCNPC_GetPosition(j, x, y, z);
      		zMap = GetPointZPos(x,y);
        	Zombie[j][ZombieAttackPlayer] = GetNearest_Player(i, 3.0);
         	if(IsPlayerInRangeOfPoint(i, 40.0, x, y, z))
          	{
           		GetPlayerPos(i, fPos[0], fPos[1], fPos[2]);
             	FCNPC_GoTo(j, fPos[0], fPos[1], fPos[2], MOVE_TYPE_RUN, 5.6, 1);

				Zombie[j][IsFollowing] = 1;
       			if(GetDistanceBetweenPlayers(i,j) < 1.7)
          		{
            		if(!FCNPC_IsDead(j))
              		{
						FCNPC_Punch(j,fPos[0], fPos[1], fPos[2],125);
					}
     			}
        	}
        	if(zMap > z) FCNPC_SetPosition(j,x,y,zMap);
		}
	}
 	return 1;
}
But they still fly :/
Reply


Messages In This Thread
FCNPC flying zombies - by SkiT'aZ - 12.02.2015, 11:53
Re: FCNPC flying zombies - by IndependentGaming - 12.02.2015, 12:01
Re: FCNPC flying zombies - by SkiT'aZ - 12.02.2015, 12:46
Re: FCNPC flying zombies - by SkiT'aZ - 13.02.2015, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)