I want person in same clan can't harm each other.
anyone can do it ? thank you
Printable View
I want person in same clan can't harm each other.
anyone can do it ? thank you
what source ?
Try using this code here.
Search:
Add:Quote:
bool ServerGameLogic::ApplyDamageToPlayer(GameObject*
Quote:
if(IsServerPlayer(fromObj)) // Cannot damage to clan
{
obj_ServerPlayer * fromPlr = ((obj_ServerPlayer*)fromObj);
if(fromPlr->loadout_->ClanID == targetPlr->loadout_->ClanID && targetPlr->loadout_->ClanID != 0)
{
return false;
}
}
ServerGameLogic.cpp
line 900+
bool ServerGameLogic::ApplyDamageToPlayer(GameObject* fromObj, obj_ServerPlayer* targetPlr, const r3dPoint3D& dmgPos, float damage, int bodyBone, int bodyPart, bool force_damage, STORE_CATEGORIES damageSource, int airState )
- - - Updated - - -
thank Lost Echo