mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Exclude robots from trying to activate panic triggers
This commit is contained in:
@@ -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!)
|
||||||
|
|||||||
Reference in New Issue
Block a user