[Tutorial] Show Tag Name Press F7 "V3 SOURCES"

Results 1 to 15 of 15
  1. #1
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    note [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    ignore the boxes that went bugged because some codes to be great more
    so let's start

    search for
    HUD_TPSGame.cpp

    Code:
    if(ChatWindowSwitch && hudMain && !hudMain->isChatInputActive() && !hudMain->isPlayersListVisible() && r_render_in_game_HUD->GetBool())
            {
                hudMain->showChatInput("");
     }
    AddBellow
    Code:
    // TheHexa and DouglasPRO :: Logic for new friends button
            if(hudMain)
            {
                if(InputMappingMngr->wasReleased(r3dInputMappingMngr::KS_SHOW_FRIENDS_NAME))
                {
                    //TheHexa and DouglasPRO :: Don't ask me why i did like that, this shit won't work like ' pl->ShowFriendsTag = !pl->ShowFriendsTag '
                    CGL.localPlayer_->ShowFriendsTag = !CGL.localPlayer_->ShowFriendsTag;
                }
            }

    search for
    r3dlnput.h
    Code:
    KS_INVENTORY,


    AddBellow
    Code:
    KS_SHOW_FRIENDS_NAME, //TheHexa and DouglasPRO :: For new button logic


    search for
    r3dlnput.cpp
    Code:
    m_Mapping[KS_SHOW_CRAFT_MENU] =            KeyboardMapping(INPUTMAP_KEYBOARD, kbsK, "$HUD_Cntrl_ShowCraftMenu", false);


    AddBellow
    r3dlnput.cpp
    Code:
    m_Mapping[KS_SHOW_FRIENDS_NAME] =        KeyboardMapping(INPUTMAP_KEYBOARD, kbsF7, "$HUD_Cntrl_ShowFriendTag", false);//DouglasPRO:: Code :D


    search for
    Code:
    bProne = 0;


    addbellow
    Code:
    ShowFriendsTag = false;
    Search
    Code:
    char ClanTag[5*2];


    Add
    Code:
    Scaleform::GFx::Value m_CharIcon;

    search for
    Code:
    char                m_MinimapTagIconName[64]; // temp, to be optimized soon

    addbellow
    Code:
    bool      ShowFriendsTag; //DouglasPRO and TheHexa:: For new button logic

    search for
    Code:
    // CLAN TAG
        if(!NetworkLocal && hudMain)
        {
            if(m_CharIcon.IsUndefined() && CGL.localPlayer_ && (CGL.m_gameInfo.flags & GBGameInfo::SFLAGS_Nameplates))
            {
                char plrUserName[256]; 
                GetUserNameAndClanTag(plrUserName);
                // todo: need a better way to find player's reputation
                int rep = 0;
                {
                    char tmpUsername[64];
                    m_EncryptedUserName.get(tmpUsername);
                    for(int i=0; i<256; ++i)
                    {
                        if(strcmp(CGL.playerNames[i].Gamertag, tmpUsername)==0)
                        {
                            rep = CGL.playerNames[i].reputation;
                            break;
                        }
                    }
                }  
                hudMain->addCharTag(plrUserName, ClanID == CGL.localPlayer_->ClanID && ClanID!=0, rep, m_CharIcon);
            }

    AddBellow
    Code:
    //DouglasPRO :: TAGS F7 KEY 
    if(!m_CharIcon.IsUndefined())
            {
                bool showTag = true;
                bool showName = false;
                bool showTagAlway = false;
                if(this->GetSafeID() == m_LocalPlayer_CurrentAimAt)
                {
                    float dist = (CGL.localPlayer_->GetPosition()-GetPosition()).Length();
                    float time = r3dGetTime() - m_LocalPlayer_CurrentAimAt_StartTime;
                    if(dist < 300.0f) // 50.0f
                        showName = true;
                    //else if(dist < 100.0f && time > 0.5f) // 100.0f
                        //showName = true;
                    else if(dist >= 300.0f && time > 1.0f) // 100.0f & 2.0f
                        showName = true;
                }
                bool alwaysShow = true;
    
    
                if(bDead)
                {
                    showTag = false;
                }
    
                    //DouglasPRO:: Code :D 
                if (m_DevPlayerHide == true)
                {
                    showName = false;
                    alwaysShow = false;
                }
    
    
                if(InputMappingMngr->isPressed(r3dInputMappingMngr::KS_SHOW_FRIENDS_NAME))
                {
                    showTagAlway = true;
                }
    
    
                //DouglasPRO :: A way to show player names in same group/clan
                bool sameClan = ClanID == CGL.localPlayer_->ClanID && ClanID != 0;
                bool sameGroup = CGL.localPlayer_->GroupID == GroupID && GroupID != 0;
                //TheHexa:: BUG FIX: Tag showing when player is dead! 'tag always show' - LOY Request
                ClientGameLogic& CGL = gClientLogic();
                for(int i=0; i < MAX_NUM_PLAYERS; ++i)
                {
                    obj_Player* plr = CGL.GetPlayer(i);
                    if(plr)
                    {
                        if(plr->bDead)
                        {
                            continue;
                        }
    
    
                        if(showTag)
                        {
                            if(showTagAlway)
                            {
                                if(sameClan || sameGroup)
                                {
                                    if(sameClan && !sameGroup)
                                    {
                                        r3dPoint3D offset(0, 0.3f, 0);
                                        hudMain->setCharTagTextVisible(m_CharIcon, true, false, m_isVoiceActive && g_voip_showChatBubble->GetBool());
                                        hudMain->moveUserIcon(m_CharIcon, GetHeadPosition() + offset, alwaysShow);
                                    }
                                    else
                                    {
                                        r3dPoint3D offset(0, 0.3f, 0);
                                        hudMain->setCharTagTextVisible(m_CharIcon, true, true, m_isVoiceActive && g_voip_showChatBubble->GetBool());
                                        hudMain->moveUserIcon(m_CharIcon, GetHeadPosition() + offset, alwaysShow);
                                    }
                                }
                            }
                            else
                            {
                                r3dPoint3D offset(0, 0.3f, 0);
                                hudMain->setCharTshowagTextVisible(m_CharIcon, showName, sameGroup, m_isVoiceActive && g_voip_showChatBubble->GetBool());
                                hudMain->moveUserIcon(m_CharIcon, GetHeadPosition() + offset, alwaysShow);
                            }
                        }
                    }
                }
            }
        }
    OPTIONAL
    Spoiler:
    if(InputMappingMngr->isPressed(r3dInputMappingMngr::KS_SHOW_FRIENDS_NAME)) {
    if(dist < 600 && (sameGroup || sameClan || sameClan2))
    {
    showName = true;
    }

    }

    CREDITS
    @DouglasPro
    TheHexa

    Like And Reputation pls



    Last edited by DouglasPro; 20-06-16 at 03:51 PM.


  2. #2
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    try to review the tutoal, you have many things out of place, or just to me is strange.
    Thanks

  3. #3
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Tutorial] Show Tag Name Press F7 &quot;V3 SOURCES&quot;

    Quote Originally Posted by lukasccb View Post
    try to review the tutoal, you have many things out of place, or just to me is strange.
    Thanks
    I already tried to fix but the RZ seems to be bug here

    - - - Updated - - -

    Quote Originally Posted by lukasccb View Post
    try to review the tutoal, you have many things out of place, or just to me is strange.
    Thanks
    fixed post like me bro :D

  4. #4
    Account Upgraded | Title Enabled! AlexRedd is offline
    MemberRank
    Jan 2014 Join Date
    310Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    Thank's for tut.
    I think that will work better like:
    Press F7 - allways show tag name
    Press again F7 - hide tag name

  5. #5
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    Quote Originally Posted by AlexRedd View Post
    Thank's for tut.
    I think that will work better like:
    Press F7 - allways show tag name
    Press again F7 - hide tag name
    If you press the f7 and drop the name tag disappears !

  6. #6
    ☆Dying Dawn☆ Bombillo is offline
    MemberRank
    Jan 2012 Join Date
    ValhallaLocation
    977Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    I agree with what Alex said is better make a key toggle for show and hide the nametag I tried to do this a long time ago but unfortunately I did not succeed

  7. #7
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    Quote Originally Posted by Bombillo View Post
    I agree with what Alex said is better make a key toggle for show and hide the nametag I tried to do this a long time ago but unfortunately I did not succeed
    we can use the flashlight code as a basis for doing

  8. #8
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    you forgot to put in your tutorial a variable
    ShowFriendsTag

    have this sytem on OverZ
    Last edited by LukasCCB; 20-06-16 at 02:02 AM.

  9. #9
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    search for

    Code:
    bProne = 0;



    addbellow

    Code:
    ShowFriendsTag = false;



    search for

    Code:
    char        ClanTag[5*2];



    addbellow

    Code:
    Scaleform::GFx::Value m_CharIcon;
    bool      ShowFriendsTag; //DouglasPRO and TheHexa:: For new button logic

  10. #10
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    Hey, fix it!

    remove this code in tutorial

    Code:
    char ClanTag[5*2];
    Code:
    bool ShowFriendsTag;
    and put this
    Search
    Code:
    char                m_MinimapTagIconName[64]; // temp, to be optimized soon
    Add:
    Code:
    bool      ShowFriendsTag;
    Last edited by LukasCCB; 20-06-16 at 01:56 PM.

  11. #11
    Account Upgraded | Title Enabled! rapido15 is offline
    MemberRank
    Oct 2011 Join Date
    435Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    Quote Originally Posted by lukasccb View Post
    Hey, fix it!

    remove this code in tutorial
    Code:
    char                m_MinimapTagIconName[64]; // temp, to be optimized soon
    this new code is to keep the nametag without key?

  12. #12
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    392Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    Quote Originally Posted by rapido15 View Post
    this new code is to keep the nametag without key?
    search
    char m_MinimapTagIconName[64]; // temp, to be optimized soonchar m_MinimapTagIconName[64]; // temp, to be optimized soon
    add bellow
    bool ShowFriendsTag;

  13. #13
    Apprentice reload58 is offline
    MemberRank
    Sep 2016 Join Date
    24Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    Succesfully. Screen?

  14. #14
    Valued Member francovegini is offline
    MemberRank
    Apr 2014 Join Date
    BrazilLocation
    135Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    Help plss

    Image > Screenshot by Lightshot
    Last edited by francovegini; 24-10-16 at 07:33 PM. Reason: error in post

  15. #15
    Valued Member asd4129 is offline
    MemberRank
    Dec 2012 Join Date
    Loose, Germany,Location
    146Posts

    Re: [Tutorial] Show Tag Name Press F7 "V3 SOURCES"

    No group and clan is press f7 active gamertag

    how to fix?



Advertisement