CogSample: improve shooting ability (still wip)

This commit is contained in:
Arnaud Jamin
2023-11-11 00:47:43 -05:00
parent a4362bfbb0
commit 988b048bde
26 changed files with 46 additions and 4 deletions
+16 -1
View File
@@ -294,6 +294,8 @@ void ACogSampleCharacter::InitializeAbilitySystem()
//--------------------------------------------------------------------------------------------------------------------------
void ACogSampleCharacter::RegisterToAbilitySystemEvents()
{
GameplayTagPropertyMap.Initialize(this, AbilitySystem);
//----------------------------------------
// Register to Tag change events
//----------------------------------------
@@ -858,4 +860,17 @@ bool ACogSampleCharacter::GetMontage(FName MontageName, UAnimMontage*& Montage,
Montage = Row->Montage;
return Montage != nullptr;
}
}
//--------------------------------------------------------------------------------------------------------------------------
void ACogSampleCharacter::SetIsAiming(bool Value)
{
if (bIsAiming == Value)
{
return;
}
bIsAiming = Value;
OnAimingChanged.Broadcast(this, bIsAiming);
}