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..
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..
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) {