ping for other team

Results 1 to 6 of 6
  1. #1
    Member zavi156 is offline
    MemberRank
    Dec 2012 Join Date
    62Posts

    ping for other team

    I have a problem in TDM
    A player can not see the ping of the other player from the other team.
    I do not know to compile something I can compile a neat problem (cluster says how to fix the problem)?
    Please Helpppppp!!!!!
    I know you have to do it this way:
    Quote Originally Posted by Slime View Post
    ZCombatInterface.cpp
    Code:
    		//Wizkidz
    		if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
    			|| bClanGame
    			|| ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
    			|| ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
    			|| ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
    		{
    fix

    Code:
    		//Wizkidz
    		if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
    			|| bClanGame
    		{
    But I do not know Please compile compile it to me!
    Through the back with something that can get me the software it uses to compile and teach me so thanks: D
    My Skype is: zavi22051
    Last edited by zavi156; 16-02-13 at 07:35 PM.


  2. #2
    Member Slime is offline
    MemberRank
    Jul 2011 Join Date
    HenesysLocation
    79Posts

    Re: ping for other team

    ZCombatInterface.cpp
    Code:
            //Wizkidz
            if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
                || bClanGame
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
            {
    fix

    Code:
            //Wizkidz
            if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
                || bClanGame
            {
    is team mode to solve the exp problem.


    how about this?
    Code:
            /*//Wizkidz
            if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
                || bClanGame
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
            {
                bool bDraw = m_Observer.IsVisible();
    
                ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.find( pItem->uidUID);
                //Gunz HP/AP Scoreboard
                            if ( itor != ZGetGame()->m_CharacterManager.end())
                            {
                                    ZCharacter* pQuestPlayerInfo = (*itor).second;
    
                                    if (pQuestPlayerInfo->GetTeamID() != ZGetGame()->m_pMyCharacter->GetTeamID()) {
                                        continue;
                                    }
     
                                    MCOLOR tmpColor = pDC->GetColor();
     
                                    x=ITEM_XPOS[2];
                                    bDraw = true;
     
                                    if ( bDraw)
                                            pDC->SetColor( MCOLOR( 0x40FF0000));
                                    else
                                            pDC->SetColor( MCOLOR( 0x30000000));
                                    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, 0.08*MGetWorkspaceWidth(), 7);
     
                                    if ( bDraw)
                                    {
                                            float nValue = 0.08 * pQuestPlayerInfo->GetHP() / pQuestPlayerInfo->GetMaxHP();
                                            pDC->SetColor( MCOLOR( 0x90FF0000));
                                            pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, nValue*MGetWorkspaceWidth(), 7);
                                    }
     
                                    if ( bDraw)
                                            pDC->SetColor( MCOLOR( 0x4000FF00));
                                    else
                                            pDC->SetColor( MCOLOR( 0x30000000));
                                    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, 0.08*MGetWorkspaceWidth(), 3);
                                    if ( bDraw)
                                    {
                                            float nValue = 0.08 * pQuestPlayerInfo->GetAP() / pQuestPlayerInfo->GetMaxAP();
                                            pDC->SetColor( MCOLOR( 0x9000FF00));
                                            pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, nValue*MGetWorkspaceWidth(), 3);
                                    }
     
                                    pDC->SetColor( tmpColor);
     
                                    x=ITEM_XPOS[3];
                                    int nKills = 0;
                                    ZModule_QuestStatus* pMod = (ZModule_QuestStatus*)pQuestPlayerInfo->GetModule(ZMID_QUESTSTATUS);
                                    if (pMod)
                                            nKills = pMod->GetKills();
                                    sprintf(szText,"%d", nKills);
                                    TextRelative(pDC,x,texty,szText,true);
                            }
                    }
            else
            {*/

  3. #3
    Apprentice ziv156 is offline
    MemberRank
    Jan 2012 Join Date
    5Posts

    Re: ping for other team

    Quote Originally Posted by Slime View Post
    ZCombatInterface.cpp
    Code:
            //Wizkidz
            if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
                || bClanGame
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
            {
    fix

    Code:
            //Wizkidz
            if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
                || bClanGame
            {
    is team mode to solve the exp problem.


    how about this?
    Code:
            /*//Wizkidz
            if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
                || bClanGame
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
                || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
            {
                bool bDraw = m_Observer.IsVisible();
    
                ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.find( pItem->uidUID);
                //Gunz HP/AP Scoreboard
                            if ( itor != ZGetGame()->m_CharacterManager.end())
                            {
                                    ZCharacter* pQuestPlayerInfo = (*itor).second;
    
                                    if (pQuestPlayerInfo->GetTeamID() != ZGetGame()->m_pMyCharacter->GetTeamID()) {
                                        continue;
                                    }
     
                                    MCOLOR tmpColor = pDC->GetColor();
     
                                    x=ITEM_XPOS[2];
                                    bDraw = true;
     
                                    if ( bDraw)
                                            pDC->SetColor( MCOLOR( 0x40FF0000));
                                    else
                                            pDC->SetColor( MCOLOR( 0x30000000));
                                    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, 0.08*MGetWorkspaceWidth(), 7);
     
                                    if ( bDraw)
                                    {
                                            float nValue = 0.08 * pQuestPlayerInfo->GetHP() / pQuestPlayerInfo->GetMaxHP();
                                            pDC->SetColor( MCOLOR( 0x90FF0000));
                                            pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, nValue*MGetWorkspaceWidth(), 7);
                                    }
     
                                    if ( bDraw)
                                            pDC->SetColor( MCOLOR( 0x4000FF00));
                                    else
                                            pDC->SetColor( MCOLOR( 0x30000000));
                                    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, 0.08*MGetWorkspaceWidth(), 3);
                                    if ( bDraw)
                                    {
                                            float nValue = 0.08 * pQuestPlayerInfo->GetAP() / pQuestPlayerInfo->GetMaxAP();
                                            pDC->SetColor( MCOLOR( 0x9000FF00));
                                            pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, nValue*MGetWorkspaceWidth(), 3);
                                    }
     
                                    pDC->SetColor( tmpColor);
     
                                    x=ITEM_XPOS[3];
                                    int nKills = 0;
                                    ZModule_QuestStatus* pMod = (ZModule_QuestStatus*)pQuestPlayerInfo->GetModule(ZMID_QUESTSTATUS);
                                    if (pMod)
                                            nKills = pMod->GetKills();
                                    sprintf(szText,"%d", nKills);
                                    TextRelative(pDC,x,texty,szText,true);
                            }
                    }
            else
            {*/

    i need compile Gunz.exe and the pings fix...
    pliz help (I Zavi).

  4. #4
    Member drancerx is offline
    MemberRank
    Sep 2009 Join Date
    78Posts

    Re: ping for other team

    Line 2911 - line 2959

    replace for:

    //Wizkidz
    if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType()))
    {
    bool bDraw = m_Observer.IsVisible();

    ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.find( pItem->uidUID);
    if ( itor != ZGetGame()->m_CharacterManager.end())
    {
    ZCharacter* pQuestPlayerInfo = (*itor).second;

    if (pQuestPlayerInfo->GetTeamID() != ZGetGame()->m_pMyCharacter->GetTeamID()) {
    continue;
    }

    MCOLOR tmpColor = pDC->GetColor();

    x=ITEM_XPOS[2];
    bDraw = true;

    pDC->SetColor( MCOLOR( 0x30000000));
    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, 0.08*MGetWorkspaceWidth(), 7);
    float nValue = (0.08 * (pQuestPlayerInfo->GetHP() / pQuestPlayerInfo->GetMaxHP()));
    pDC->SetColor( MCOLOR( 0xFFFF0000));
    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, nValue*MGetWorkspaceWidth(), 7);

    pDC->SetColor( MCOLOR( 0x30000000));
    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, 0.08*MGetWorkspaceWidth(), 3);
    float nValuee = (0.08 * (pQuestPlayerInfo->GetAP() / pQuestPlayerInfo->GetMaxAP()));
    pDC->SetColor( MCOLOR( 0xFF00FF00));
    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, nValuee*MGetWorkspaceWidth(), 3);

    pDC->SetColor( tmpColor);

    x=ITEM_XPOS[3];
    int nKills = 0;
    ZModule_QuestStatus* pMod = (ZModule_QuestStatus*)pQuestPlayerInfo->GetModule(ZMID_QUESTSTATUS);
    if (pMod)
    nKills = pMod->GetKills();
    sprintf(szText,"%d", nKills);
    TextRelative(pDC,x,texty,szText,true);
    }
    }
    else
    {
    x=ITEM_XPOS[2];
    sprintf(szText, "%d",pItem->nExp);
    TextRelative(pDC,x ,texty,szText,true);

    MCOLOR color = pDC->GetColor();

  5. #5
    Member Slime is offline
    MemberRank
    Jul 2011 Join Date
    HenesysLocation
    79Posts

    Re: ping for other team

    my skype id is : im-slime

  6. #6
    Proficient Member damn321 is offline
    MemberRank
    Dec 2012 Join Date
    176Posts

    Re: ping for other team

    /*//Wizkidz
    if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
    || bClanGame
    || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
    || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
    || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
    {
    bool bDraw = m_Observer.IsVisible();

    ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.find( pItem->uidUID);
    //Gunz HP/AP Scoreboard
    if ( itor != ZGetGame()->m_CharacterManager.end())
    {
    ZCharacter* pQuestPlayerInfo = (*itor).second;

    if (pQuestPlayerInfo->GetTeamID() != ZGetGame()->m_pMyCharacter->GetTeamID()) {
    continue;
    }

    MCOLOR tmpColor = pDC->GetColor();

    x=ITEM_XPOS[2];
    bDraw = true;

    if ( bDraw)
    pDC->SetColor( MCOLOR( 0x40FF0000));
    else
    pDC->SetColor( MCOLOR( 0x30000000));
    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, 0.08*MGetWorkspaceWidth(), 7);

    if ( bDraw)
    {
    float nValue = 0.08 * pQuestPlayerInfo->GetHP() / pQuestPlayerInfo->GetMaxHP();
    pDC->SetColor( MCOLOR( 0x90FF0000));
    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, nValue*MGetWorkspaceWidth(), 7);
    }

    if ( bDraw)
    pDC->SetColor( MCOLOR( 0x4000FF00));
    else
    pDC->SetColor( MCOLOR( 0x30000000));
    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, 0.08*MGetWorkspaceWidth(), 3);
    if ( bDraw)
    {
    float nValue = 0.08 * pQuestPlayerInfo->GetAP() / pQuestPlayerInfo->GetMaxAP();
    pDC->SetColor( MCOLOR( 0x9000FF00));
    pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, nValue*MGetWorkspaceWidth(), 3);
    }

    pDC->SetColor( tmpColor);

    x=ITEM_XPOS[3];
    int nKills = 0;
    ZModule_QuestStatus* pMod = (ZModule_QuestStatus*)pQuestPlayerInfo->GetModule(ZMID_QUESTSTATUS);
    if (pMod)
    nKills = pMod->GetKills();
    sprintf(szText,"%d", nKills);
    TextRelative(pDC,x,texty,szText,true);
    }
    }
    else
    {*/

    use this code its tested



Advertisement