Merge remote-tracking branch 'origin/dev' into ApartmentCheckpoints

This commit is contained in:
Rafal Swierczek 2024-04-11 20:52:24 +01:00
commit 1ea0bbb05e
6 changed files with 15 additions and 7 deletions

Binary file not shown.

BIN
EndlessVendetta/Content/Levels/TempLevels/8k_mars_AO.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -60,10 +60,9 @@ void AEnemyCharacter::SetAlertLevel(const int NewAlertLevel) const
void AEnemyCharacter::SetLocalAlertLevel(int NewAlertLevel)
{
if (!IsValid(GetController())) return;
Cast<AAIController>(GetController())->GetBlackboardComponent()->SetValueAsBool("IsInvestigating", true);
if (NewAlertLevel == Cast<AAIController>(GetController())->GetBlackboardComponent()->GetValueAsInt("AlertLevel")) return;
SetAlertLevel(NewAlertLevel);
if (NewAlertLevel >= 2) SetHostilityLevel(EHostilityLevel::Hostile);
if (!IsValid(DelegatedControlHub)) return;
DelegatedControlHub->SetAlertLevel(NewAlertLevel);
}
void AEnemyCharacter::SetHostilityLevel(const EHostilityLevel NewHostilityLevel)