Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body disappearance #15

Closed
ziggi opened this issue Apr 28, 2016 · 1 comment
Closed

Body disappearance #15

ziggi opened this issue Apr 28, 2016 · 1 comment
Labels

Comments

@ziggi
Copy link
Owner

ziggi commented Apr 28, 2016

http://forum.sa-mp.com/showpost.php?p=3691458&postcount=2691

The issue is when the NPC is aiming or shooting at player, the upper body disappears.

Video: https://youtu.be/_QUNa4-mK8E

Plugin: FCNPC - Fully Controllable NPC v1.0.5
OS: Windows 10 x64
Code to reproduce:

#include <a_samp>
#include <fcnpc>
#include <izcmd>

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_RED  0xB35959AA

new npcid;

public OnFilterScriptInit()
{
    // Set the update rate
    FCNPC_SetUpdateRate(100);   
    // Create and spawn the NPC
    npcid = FCNPC_Create("Test_Bot");
    if(npcid == INVALID_PLAYER_ID)
    {
        printf("Warning: Failed to create NPC ID %d (%s)", npcid, "Test_Bot");
        return 1;
    }
    FCNPC_Spawn(npcid, random(299), 0, 0, 0);
    return 1;
}

public OnFilterScriptExit()
{
    FCNPC_Destroy(npcid);
    return 1;
}

CMD:nspawn(playerid,params[])
{
    new Float:pPos[3];
    GetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
    FCNPC_SetPosition(npcid,pPos[0]+ 3.0,pPos[1],pPos[2]);
    return 1;
}

CMD:ngoto(playerid,params[])
{
    FCNPC_GoToPlayer(npcid,playerid);
    return 1;
}

CMD:ngun(playerid,params[])
{
    FCNPC_SetWeapon(npcid,30);
    FCNPC_SetAmmo(npcid,10);
    return 1;
}

CMD:naim(playerid,params[])
{
    FCNPC_AimAtPlayer(npcid,playerid);
    return 1;
}

CMD:nshoot(playerid,params[])
{
    FCNPC_ToggleReloading(npcid,false);
    FCNPC_ToggleInfiniteAmmo(npcid,true);
    FCNPC_AimAtPlayer(npcid,playerid,true);
    return 1;
}

Hey I have some news, I've just tried plugin FCNPC - Fully Controllable NPC v1.0.5 on my Ubuntu > server and everything works fine! The upper body DOES NOT dissapear.
So this only happens on my Windows Server - local pc server.

@ziggi ziggi added the bug label Apr 28, 2016
@PixellUp
Copy link

Can confirm that this happens in 1.0.5, but not so ofter like it was on 1.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants