mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-19 19:02:22 -07:00
CogSample: improve shooting ability (still wip)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user