Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,9 @@ latent function OpenTargetDoor(Pawn Officer)

// only open the door if it's closed and not broken
if (CanInteractWithTargetDoor())
{
{
sleep(FClamp(frand(), 0.0 , 0.3 )); // make AI less perfectly synced

ISwatDoor(TargetDoor).RegisterInterestedInDoorOpening(self);

// have him open the door
Expand Down Expand Up @@ -753,6 +755,8 @@ latent function ThrowGrenade()
}
else
{
sleep(FClamp(frand(),0.0 , 0.5 ) ); // random wait to make Red and Blue AI less perfectly synced

// make sure the throw grenade goal exists
assert(CurrentThrowGrenadeGoal != None);

Expand Down Expand Up @@ -792,7 +796,7 @@ latent function FinishUpThrowBehavior()
yield();
}

sleep(PostGrenadeThrowDelayTime);
sleep(PostGrenadeThrowDelayTime + FClamp(frand(),0.0 , 0.5 ) ); //random delay added to make Red and Blue AI less perfectly synced

CurrentThrowGrenadeGoal.unPostGoal(self);
CurrentThrowGrenadeGoal.Release();
Expand Down