enable antilead how in clanwar?
thank for help!
enable antilead how in clanwar?
thank for help!
I don't have much knowledge about this but you mean being able to pick if you want to have an lead/anti-lead clanwar like UGG?
What source are you using? If your using Oldschools source I looked into his source, and I think this will do the trick:
In Zgame.cpp > line 4943 and line 4243
if(ZGetGameClient()->GetMatchStageSetting()->GetAntiLead() == false)
Set that that "true"
Or keep them at false, and add the checkbox in the clanwar search options to tick antilead on/off which is better.
how to add option of antilead and lead on gameroom?
I follow that but i not fuctional
still no antilead
this is my codes
if(ZGetGameClient()->GetMatchStageSetting()->GetAntiLead() == true) {
pickinfo.pObject->OnDamaged(pOwner, pOwner->GetPosition(), dt, pDesc->m_nWeaponType.Ref(), fActualDamage, fRatio );
} else {
((ZCharacter*)(pickinfo.pObject))->OnDamagedAPlayer(pOwner, pOwner->GetPosition(), dt, pDesc->m_nWeaponType.Ref(), fActualDamage, fRatio );
}
Code:if(ZGetGameClient()->IsLadderGame()) { //your shit here:thumbup1: }
any one can reply this?