Damage counter command enable/disable

Results 1 to 4 of 4
  1. #1
    Account Upgraded | Title Enabled! Rejain is offline
    MemberRank
    Jul 2012 Join Date
    201Posts

    cool Damage counter command enable/disable

    Hi , i am looking for Damage Counter command (enable and disable and i saw Thunderz tut) that after every round it will show u the amount of damage u have dealt and taken in the last round (and if in team only in team) please help i really needed this


  2. #2
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Damage counter command enable/disable

    Learn by yourself.... We can't help you in every little thing you want.

  3. #3
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Re: Damage counter command enable/disable

    Rejain you may look to Thunderz code and go to the Tutorials forum, and watch qet123 tut for the enable/disable commands then try to combine both of them togather... ;)

  4. #4
    Account Upgraded | Title Enabled! Rejain is offline
    MemberRank
    Jul 2012 Join Date
    201Posts

    Re: Damage counter command enable/disable

    Quote Originally Posted by Tannous View Post
    Rejain you may look to Thunderz code and go to the Tutorials forum, and watch qet123 tut for the enable/disable commands then try to combine both of them togather... ;)
    I have tried that but it is not that simple i dont kjnow how to put so it will be after every round and only in team and all that idk what to do ...

    btw this is what i have done so far .....

    Code:
    void ChatCmd_Damaged(const char* line, const int argc, char **const argv)
    {
        GunzState state = ZApplication::GetGameInterface()->GetState();
        ZCharacter* pCharacter = ZGetGame()->m_pMyCharacter;
    	ZMyCharacter* m_pMyCharacter = ZGetGame()->m_pMyCharacter;
    	ZCharacterStatus dInfo = m_pMyCharacter->GetStatus().Ref();
    
        char szMsg[256];
    	char szPrint[256];
    
        if(state == GUNZ_GAME)
        {
            if(pCharacter->GetStatus().Ref().nDamageCount == 0)//(pCharacter->GetStatus().Ref().nTakenDamage == 0);
            {
                pCharacter->GetStatus().CheckCrc();
                pCharacter->GetStatus().Ref().nDamageCount = 1;
    			pCharacter->GetStatus().Ref().nTakenDamage = 1;
                pCharacter->GetStatus().MakeCrc();
    		sprintf(szPrint, "Damage Dealt: %i / Damage Received: %i", dInfo.nDamageCount, dInfo.nTakenDamage);
    		ZApplication::GetGameInterface()->GetChat()->Input(szPrint);
                sprintf(szMsg, "^2Damage output enabled.");
            }
            else if(pCharacter->GetStatus().Ref().nDamageCount == 1)//(pCharacter->GetStatus().Ref().nTakenDamage == 1);
            {
                pCharacter->GetStatus().CheckCrc();
                pCharacter->GetStatus().Ref().nDamageCount = 0;
    			pCharacter->GetStatus().Ref().nTakenDamage = 0;
                pCharacter->GetStatus().MakeCrc();
                sprintf(szMsg, "^2Damage output disabled.");
            }
        }
        else
        {
            sprintf(szMsg, "^2You must be in-game!");
        }
            ZChatOutput(szMsg);
    }
    This only shows Damage Output Enabled ! and then the damage i did so far in the room and i want it to do the exact same thing just after a round any help ?

    Quote Originally Posted by qet123 View Post
    Learn by yourself.... We can't help you in every little thing you want.
    True. but these are things that i have tried and failed and i really need this so u gotta understand me ..
    Last edited by Rejain; 13-10-12 at 01:45 PM.



Advertisement