• IS THIS SITE UGLY? Click "RG3" at the very bottom-left of this page to change it. To dismiss this notice, click the X --->

Question - Has target info been fixed with dannet commands defaulted yet?

Joined
Aug 2, 2018
RedCents
2,064¢
Relevant code block, looks like it already checks which plugin you have loaded before sending out the afollow command.

C++:
case TIMC_FollowMe://follow me
{
    PSPAWNINFO pSpawn = GetSpawnFromRightClickIndex();
    if (pSpawn)
    {
        if (FollowMeMap.find(rightclickindex) != FollowMeMap.end())
        {
            if (FollowMeMap[rightclickindex] == true)
            {
                if (GetModuleHandle("mq2dannet"))
                    DoCommandf("/dex %s /afollow off", pSpawn->Name);
                else if (GetModuleHandle("mq2eqbc"))
                    DoCommandf("/bct %s //afollow off", pSpawn->Name);
                FollowMeMap[rightclickindex] = false;
            }
            else
            {
                if (GetModuleHandle("mq2dannet"))
                    DoCommandf("/dex %s /afollow spawn %d", pSpawn->Name, ((PSPAWNINFO)pLocalPlayer)->SpawnID);
                else if (GetModuleHandle("mq2eqbc"))
                    DoCommandf("/bct %s //afollow spawn %d", pSpawn->Name, ((PSPAWNINFO)pLocalPlayer)->SpawnID);
                FollowMeMap[rightclickindex] = true;
            }
        }
        else
        {
            if (GetModuleHandle("mq2dannet"))
                DoCommandf("/dex %s /afollow spawn %d", pSpawn->Name, ((PSPAWNINFO)pLocalPlayer)->SpawnID);
            else if (GetModuleHandle("mq2eqbc"))
                DoCommandf("/bct %s //afollow spawn %d", pSpawn->Name, ((PSPAWNINFO)pLocalPlayer)->SpawnID);
            FollowMeMap[rightclickindex] = true;
        }
    }
    return 1;
}
 
Top