Problem on Kill, Death, Ping scoreboard

Results 1 to 4 of 4
  1. #1
    Valued Member EvoGamers is offline
    MemberRank
    Nov 2012 Join Date
    102Posts

    talk Problem on Kill, Death, Ping scoreboard

    Hello, i'm here to ask something for you guys,
    I got three problems,
    One I can't see my kills, like, if I kill someone, it doesn't shows on my score board.

    Also, I can't see their ping, kill, death .


    I know it's server/source side, but I don't know where to start, could someone please give me a help, i need to fix this heck of problem ?

    anyways i'm using NationalGunZ source,
    Thanks.

    - Raise.
    Last edited by EvoGamers; 10-04-13 at 09:02 PM.


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

    Re: Problem on Kill, Death, Ping scoreboard

    Zcombatinterface.cpp



    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();
    Regards :D

  3. #3
    Valued Member EvoGamers is offline
    MemberRank
    Nov 2012 Join Date
    102Posts

    Re: Problem on Kill, Death, Ping scoreboard

    Quote Originally Posted by drancerx View Post
    Regards :D
    Didn't worked, still getting the same crappy ( can't see their kills n death and I can't see my kills it stuck in 0, i can see only my deaths )

    Look below, thats what i've changed to yours, but still not working
    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
    		{
    x=ITEM_XPOS[2];
    sprintf(szText,  "%d",pItem->nExp);
    TextRelative(pDC,x ,texty,szText,true);
    
    MCOLOR color = pDC->GetColor();
    Last edited by EvoGamers; 20-05-13 at 07:18 PM.

  4. #4
    Valued Member EvoGamers is offline
    MemberRank
    Nov 2012 Join Date
    102Posts

    Re: Problem on Kill, Death, Ping scoreboard

    bump :(



Advertisement