Antilead missing in CW | is it possible????

Results 1 to 6 of 6
  1. #1
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Antilead missing in CW | is it possible????

    i have been noticing that my source has missing antilead in clan wars.. even though i implemented the fixed one... can anyone tell me aboout this..coz the previous source i used neva gave me such problem..


  2. #2
    Valued Member etropulus is offline
    MemberRank
    Jun 2012 Join Date
    118Posts

    Re: Antilead missing in CW | is it possible????

    if(ZGetGameClient()->GetChannelType() == MCHANNEL_TYPE_CLAN) {
    pickinfo.pObject->OnDamaged(pOwner, pOwner->GetPosition(), dt, pDesc->m_nWeaponType.Ref(), fActualDamage, fRatio );
    } else {
    pShotInfo = new MTD_ShotInfo;
    pShotInfo->nLowId = pickinfo.pObject->GetUID().Low;
    pShotInfo->fDamage = fActualDamage;
    pShotInfo->fPosX = pOwner->GetPosition().x;
    pShotInfo->fPosY = pOwner->GetPosition().y;
    pShotInfo->fPosZ = pOwner->GetPosition().z;
    pShotInfo->fRatio = fRatio;
    pShotInfo->nDamageType = dt;
    pShotInfo->nWeaponType = pDesc->m_nWeaponType.Ref();
    }

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

    Re: Antilead missing in CW | is it possible????

    Quote Originally Posted by etropulus View Post
    if(ZGetGameClient()->GetChannelType() == MCHANNEL_TYPE_CLAN) {
    pickinfo.pObject->OnDamaged(pOwner, pOwner->GetPosition(), dt, pDesc->m_nWeaponType.Ref(), fActualDamage, fRatio );
    } else {
    pShotInfo = new MTD_ShotInfo;
    pShotInfo->nLowId = pickinfo.pObject->GetUID().Low;
    pShotInfo->fDamage = fActualDamage;
    pShotInfo->fPosX = pOwner->GetPosition().x;
    pShotInfo->fPosY = pOwner->GetPosition().y;
    pShotInfo->fPosZ = pOwner->GetPosition().z;
    pShotInfo->fRatio = fRatio;
    pShotInfo->nDamageType = dt;
    pShotInfo->nWeaponType = pDesc->m_nWeaponType.Ref();
    }

    if(ZGetGameClient()->GetChannelType() == MCHANNEL_TYPE_CLAN) {

    if(ZGetGameClient()->GetMatchStageSetting()->GetAntiLead() == false) {
    pickinfo.pObject->OnDamaged(pOwner, pOwner->GetPosition(), dt, pDesc->m_nWeaponType.Ref(), fActualDamage, fRatio );
    } else {
    pShotInfo = new MTD_ShotInfo;
    pShotInfo->nLowId = pickinfo.pObject->GetUID().Low;
    pShotInfo->fDamage = fActualDamage;
    pShotInfo->fPosX = pOwner->GetPosition().x;
    pShotInfo->fPosY = pOwner->GetPosition().y;
    pShotInfo->fPosZ = pOwner->GetPosition().z;
    pShotInfo->fRatio = fRatio;
    pShotInfo->nDamageType = dt;
    pShotInfo->nWeaponType = pDesc->m_nWeaponType.Ref();
    }




    I made this line TRUE

    if(ZGetGameClient()->GetMatchStageSetting()->GetAntiLead() ==true) {

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

    Re: Antilead missing in CW | is it possible????

    Quote Originally Posted by Ronny786 View Post
    Code:
    f(ZGetGameClient()->GetMatchStageSetting()->GetAntiLead() ==true) {
    This is true, but for stages, in clanwar there is stages? you gotta do else if IsClanGame enable it.

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

    Re: Antilead missing in CW | is it possible????

    Quote Originally Posted by qet123 View Post
    This is true, but for stages, in clanwar there is stages? you gotta do else if IsClanGame enable it.
    no stages !

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

    Re: Antilead missing in CW | is it possible????

    Quote Originally Posted by Ronny786 View Post
    no stages !
    That's what I said, no stages!! You gotta do if it's clanwar enable it



Advertisement