Exclude robots from trying to activate panic triggers

This commit is contained in:
Asdow
2025-02-14 16:47:03 +02:00
parent 222daead0e
commit e3a542bf5d
+3
View File
@@ -2548,6 +2548,8 @@ INT8 DecideActionRed(SOLDIERTYPE *pSoldier)
} }
// if we're an alerted enemy, and there are panic bombs or a trigger around // if we're an alerted enemy, and there are panic bombs or a trigger around
if ( !ENEMYROBOT(pSoldier) )
{
if ( (!PTR_CIVILIAN || pSoldier->ubProfile == WARDEN) && ( ( gTacticalStatus.Team[pSoldier->bTeam].bAwareOfOpposition || (pSoldier->ubID == gTacticalStatus.ubTheChosenOne) || (pSoldier->ubProfile == WARDEN) ) && if ( (!PTR_CIVILIAN || pSoldier->ubProfile == WARDEN) && ( ( gTacticalStatus.Team[pSoldier->bTeam].bAwareOfOpposition || (pSoldier->ubID == gTacticalStatus.ubTheChosenOne) || (pSoldier->ubProfile == WARDEN) ) &&
(gTacticalStatus.fPanicFlags & (PANIC_BOMBS_HERE | PANIC_TRIGGERS_HERE ) ) ) ) (gTacticalStatus.fPanicFlags & (PANIC_BOMBS_HERE | PANIC_TRIGGERS_HERE ) ) ) )
{ {
@@ -2578,6 +2580,7 @@ INT8 DecideActionRed(SOLDIERTYPE *pSoldier)
} }
} }
} }
}
// determine if we happen to be in water (in which case we're in BIG trouble!) // determine if we happen to be in water (in which case we're in BIG trouble!)