|
|
|
@ -723,8 +723,8 @@ void CGrpProfileBandit::updateProfile(uint ticksSinceLastUpdate)
|
|
|
|
|
break;
|
|
|
|
|
_Grp->setCenterPos(centerPos);
|
|
|
|
|
|
|
|
|
|
uint32 playerRadius=uint(_AggroRange);
|
|
|
|
|
uint32 botRadius=uint(_AggroRange);
|
|
|
|
|
uint32 playerRadius=_AggroRange;
|
|
|
|
|
uint32 botRadius=_AggroRange;
|
|
|
|
|
uint32 groupPlayerRadius=playerRadius*2;
|
|
|
|
|
uint32 groupBotRadius=botRadius*2;
|
|
|
|
|
|
|
|
|
@ -910,7 +910,7 @@ void CGrpProfileGuard::beginProfile()
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
_AggroRange = 25;
|
|
|
|
|
_AggroRange = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -926,7 +926,9 @@ void CGrpProfileGuard::updateProfile(uint ticksSinceLastUpdate)
|
|
|
|
|
CFollowPathContext fpcGrpGuardProfileUpdate("GrpGuardProfileUpdate");
|
|
|
|
|
|
|
|
|
|
CAIVision<CPersistentOfPhysical> GuardVision;
|
|
|
|
|
const uint32 aggroSize=uint32(_AggroRange);
|
|
|
|
|
uint32 aggroSize = _Grp->getPersistent()._AggroRange;
|
|
|
|
|
if (aggroSize == 0)
|
|
|
|
|
aggroSize = 25;
|
|
|
|
|
|
|
|
|
|
TTicks startVisionTime = CTime::getPerformanceTime();
|
|
|
|
|
|
|
|
|
@ -3907,8 +3909,8 @@ void CGrpProfileFaction::checkTargetsAround()
|
|
|
|
|
if (!_Grp->calcCenterPos(centerPos)) // true if there's some bots in the group.
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
const uint32 playerRadius=(uint32)(assistPlayers||attackPlayers?thisGrpNpc._AggroRange:0);
|
|
|
|
|
const uint32 botRadius=(uint32)(assistBots||attackBots?thisGrpNpc._AggroRange:0);
|
|
|
|
|
const uint32 playerRadius=assistPlayers||attackPlayers?thisGrpNpc._AggroRange:0;
|
|
|
|
|
const uint32 botRadius=assistBots||attackBots?thisGrpNpc._AggroRange:0;
|
|
|
|
|
|
|
|
|
|
Vision.updateBotsAndPlayers(thisGrpNpc.getAIInstance(), centerPos, playerRadius, botRadius);
|
|
|
|
|
}
|
|
|
|
|