My Version of HP&AP Bar

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    My Version of HP&AP Bar

    ZCombatInterface.cpp:
    Spoiler:
    Code:
    Above:
    ZGetScreenEffectManager()->DrawMyWeaponImage();
    
    Paste:
    DrawHPAPNumbers(pDC);
    Code:
    void ZCombatInterface::DrawHPAPNumbers(MDrawContext* pDC)
    {
    	ZCharacter* pCharacter = GetTargetCharacter();
    
    	if(m_Observer.IsVisible()) return;
    	if(pCharacter == NULL) return;
    	if(pCharacter->GetHP() == 0) return;
    	if(pCharacter->IsDie()) return;
    
    	char hp[128];
    	char ap[128];
    
    	MFont *pFont=GetGameFont();
    	pFont=MFontManager::Get("FONTa10_O2Wht");
    	pDC->SetFont(pFont);
    	pDC->SetColor(MCOLOR(0xFFFFFFFF));
    
    	sprintf(hp, "HP : %d", (int)pCharacter->GetHP()/*, (int)pCharacter->GetMaxHP()*/);
    	TextRelative(pDC, 100.f/800.f, 23.f/600.f,hp);
    
    	sprintf(ap, "AP : %d", (int)pCharacter->GetAP()/*, (int)pCharacter->GetMaxAP()*/);
    	TextRelative(pDC, 100.f/800.f, 50.f/600.f,ap);
    }


    ZCombatInterface.h:
    Spoiler:
    Code:
    Above:
    void DrawFriendName(MDrawContext* pDC);
    
    Paste:
    void DrawHPAPNumbers(MDrawContext* pDC);




    Very stable positions.
    Last edited by qet123; 02-09-12 at 11:16 AM.


  2. #2
    Apprentice george3 is offline
    MemberRank
    Aug 2010 Join Date
    13Posts

    Re: My Version of HP/AP Bar

    Hmm nothing new ;o alot of gunz games has that..

  3. #3
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,301Posts

    Re: My Version of HP/AP Bar

    Some didn't have observer stuff added , thanks qet.

  4. #4
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: My Version of HP/AP Bar

    +10 george !

  5. #5
    C:\ WizCoder is offline
    MemberRank
    Aug 2010 Join Date
    JapanLocation
    703Posts

    Re: My Version of HP/AP Bar

    Lol George you're finally getting the reputation you deserve.

  6. #6
    Apprentice glaizan is offline
    MemberRank
    Sep 2011 Join Date
    14Posts

    Re: My Version of HP/AP Bar

    10/10

  7. #7
    Hakuna Matata bulli10 is offline
    MemberRank
    Feb 2011 Join Date
    697Posts

    Re: My Version of HP&AP Bar

    in the end is looks same as all

  8. #8
    Enthusiast xJuanxDx is offline
    MemberRank
    Feb 2012 Join Date
    26Posts

    Re: My Version of HP&AP Bar

    thanks qet 10 / 10 !

  9. #9
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: My Version of HP&AP Bar

    meh.... old

  10. #10
    Proficient Member wayutok is offline
    MemberRank
    Oct 2011 Join Date
    198Posts

    Re: My Version of HP&AP Bar

    nice release

  11. #11
    Account Upgraded | Title Enabled! Wish Q is offline
    MemberRank
    Jul 2012 Join Date
    LiveScoreLocation
    456Posts

    Re: My Version of HP&AP Bar

    what are the lines ?

  12. #12
    Proficient Member iDelta123 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    154Posts

    Re: My Version of HP/AP Bar

    Quote Originally Posted by WizCoder View Post
    Lol George you're finally getting the reputation you deserve.
    what this simple code

  13. #13
    Account Upgraded | Title Enabled! Wish Q is offline
    MemberRank
    Jul 2012 Join Date
    LiveScoreLocation
    456Posts

    Re: My Version of HP&AP Bar

    iDelta123 what line is this?

    Code:
    void ZCombatInterface::DrawHPAPNumbers(MDrawContext* pDC)
    {
    	ZCharacter* pCharacter = GetTargetCharacter();
    
    	if(m_Observer.IsVisible()) return;
    	if(pCharacter == NULL) return;
    	if(pCharacter->GetHP() == 0) return;
    	if(pCharacter->IsDie()) return;
    
    	char hp[128];
    	char ap[128];
    
    	MFont *pFont=GetGameFont();
    	pFont=MFontManager::Get("FONTa10_O2Wht");
    	pDC->SetFont(pFont);
    	pDC->SetColor(MCOLOR(0xFFFFFFFF));
    
    	sprintf(hp, "HP : %d", (int)pCharacter->GetHP()/*, (int)pCharacter->GetMaxHP()*/);
    	TextRelative(pDC, 100.f/800.f, 23.f/600.f,hp);
    
    	sprintf(ap, "AP : %d", (int)pCharacter->GetAP()/*, (int)pCharacter->GetMaxAP()*/);
    	TextRelative(pDC, 100.f/800.f, 50.f/600.f,ap);
    }

  14. #14
    Account Upgraded | Title Enabled! Mitcho is offline
    MemberRank
    Dec 2011 Join Date
    AdminCPLocation
    339Posts

    Re: My Version of HP&AP Bar

    All the same.

  15. #15
    Account Upgraded | Title Enabled! Wish Q is offline
    MemberRank
    Jul 2012 Join Date
    LiveScoreLocation
    456Posts

    Re: My Version of HP&AP Bar

    Quote Originally Posted by Shadow717 View Post
    All the same.
    what line is that on void pls tell.



Page 1 of 2 12 LastLast

Advertisement