How to work the HeadShot sound and HeadShot Icon to the head to Attacker.

Results 1 to 5 of 5
  1. #1
    Be a kicker than cheater. cheaterastic is offline
    MemberRank
    Dec 2009 Join Date
    764Posts

    How to work the HeadShot sound and HeadShot Icon to the head to Attacker.

    I haven't heard headshot sound and headshot icon if I defeat a player In-Game.
    HeadShot Icon can only see by Victim or a Defeated Character.

    Can anyone fix this issue? Well I've been developing my Gregon/OldSchoolGZ Source from this thread: Modified Source (CTF + Anti-Lead + DamageCounter + Fixes) and also the National Gunz Source but no one is working on HeadShot sound and Icon for the pAttacker.

    Here is my c++ source trying to improved:
    Code:
    		if(pVictim->GetLastDamageType()==ZD_BULLET_HEADSHOT)
    		{
    			if(pAttacker == m_pMyCharacter){
    				m_pMyCharacter->AddIcon(ZCI_HEADSHOT);
    			}else{
    				pAttacker->AddIcon(ZCI_HEADSHOT);
    			}
    			MEMBER_SET_CHECKCRC(pAttacker->GetStatus(), nHeadShot, pAttacker->GetStatus().Ref().nHeadShot+1);
    		}
    Original
    Code:
    		if(pVictim->GetLastDamageType()==ZD_BULLET_HEADSHOT)
    		{
    			pAttacker->AddIcon(ZCI_HEADSHOT);
    			MEMBER_SET_CHECKCRC(pAttacker->GetStatus(), nHeadShot, pAttacker->GetStatus().Ref().nHeadShot+1);
    		}
    You can find these lines below void ZGame::OnPeerDie(MUID& uidVictim, MUID& uidAttacker)


  2. #2
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: How to work the HeadShot sound and HeadShot Icon to the head to Attacker.

    On my source is working fine.

  3. #3
    Be a kicker than cheater. cheaterastic is offline
    MemberRank
    Dec 2009 Join Date
    764Posts

    Re: How to work the HeadShot sound and HeadShot Icon to the head to Attacker.

    BTW, thanks for your National Gunz. But I am still using Gregon, btw I used some lines in your released. TY VM.

    I tried to edit the source to
    Code:
    		if(pAttacker == m_pMyCharacter){
    			m_pMyCharacter->AddIcon(ZCI_HEADSHOT);
    		}
    I built my source and I tried and the sound and icon working


    But on the default code
    Code:
    		if(pVictim->GetLastDamageType()==ZD_BULLET_HEADSHOT)
    		{
    			pAttacker->AddIcon(ZCI_HEADSHOT);
    			MEMBER_SET_CHECKCRC(pAttacker->GetStatus(), nHeadShot, pAttacker->GetStatus().Ref().nHeadShot+1);
    		}
    It doesn't work, like there is something wrong with this line if(pVictim->GetLastDamageType()==ZD_BULLET_HEADSHOT), but only the Victim can see the headshot icon.

  4. #4
    Account Upgraded | Title Enabled! Patrick2607 is offline
    MemberRank
    May 2013 Join Date
    The NetherlandsLocation
    345Posts

    Re: How to work the HeadShot sound and HeadShot Icon to the head to Attacker.

    I don't have this working either. I will try to fix it tomorrow. If I have it fixed I'll let you know ;).

  5. #5
    Gregon13 OldSchoolGZ is offline
    MemberRank
    Jan 2012 Join Date
    CanadaLocation
    244Posts

    Re: How to work the HeadShot sound and HeadShot Icon to the head to Attacker.

    if i can find the 06 source, I will look into it, the 06 is confused as the 07 source



Advertisement