FCNPC Bot seems bugged
#4

The thing I have noticed is the head and upper body actually detaching from the body, and raising to the top left corner of the player's screen when setting aim data. I believe this is due to an angle the NPC can't actually aim at, and therefore the upper body is forced to re-adjust(although it may just be a scripted bug).

Also do you realize every time the player updates if they are not in range of that point StopAim is called? That may very well be the issue, try using this stock in place of FCNPC_AimAt, and FCNPC_StopAim.

pawn Код:
stock FCNPC_AimAtEx(playerid, Float: x, Float: y, Float: z, shoot)
{
     if(FCNPC_AimAt(playerid, x, y, z, shoot)) Aiming[playerid] = true;
     return 1;
}
pawn Код:
FCNPC_StopAimEx(playerid)
{
       if(Aiming[playerid] == true) {
              FCNPC_StopAim(playerid);
              Aiming[playerid] = false;
       }
       return 1;
}
Also, try using zones. The best way is to use y_zones or streamer zones.
Reply


Messages In This Thread
FCNPC Bot seems bugged - by arjanforgames - 19.03.2015, 21:29
Re: FCNPC Bot seems bugged - by Abagail - 19.03.2015, 21:38
Re: FCNPC Bot seems bugged - by arjanforgames - 19.03.2015, 21:41
Re: FCNPC Bot seems bugged - by Abagail - 19.03.2015, 21:48
Re: FCNPC Bot seems bugged - by arjanforgames - 19.03.2015, 21:58
Re: FCNPC Bot seems bugged - by Abagail - 19.03.2015, 22:26
Re: FCNPC Bot seems bugged - by arjanforgames - 19.03.2015, 22:40
Re: FCNPC Bot seems bugged - by Abagail - 19.03.2015, 22:49
Re: FCNPC Bot seems bugged - by arjanforgames - 19.03.2015, 22:52
Re: FCNPC Bot seems bugged - by Neutralneu - 19.03.2015, 23:55

Forum Jump:


Users browsing this thread: 1 Guest(s)