Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 6730e00

Browse files
committed
Revert AIMode randomization in Bunker Breach
1 parent 41c987c commit 6730e00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Base.rte/Activities/BunkerBreach.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,12 @@ function BunkerBreach:CreateInfantry(team, loadout)
522522
elseif self.attackPos then
523523
actor.AIMode = Actor.AIMODE_GOTO;
524524
actor:AddAISceneWaypoint(self.attackPos);
525-
elseif team == self.attackerTeam or math.random() < 0.3 then
525+
elseif team == self.attackerTeam then
526526
actor.AIMode = Actor.AIMODE_BRAINHUNT;
527+
elseif loadout == "CQB" then
528+
actor.AIMode = Actor.AIMODE_PATROL;
527529
else
528-
actor.AIMode = math.random() < 0.3 and Actor.AIMODE_PATROL or Actor.AIMODE_SENTRY;
530+
actor.AIMode = Actor.AIMODE_SENTRY;
529531
end
530532
actor.Team = team;
531533
return actor;

0 commit comments

Comments
 (0)