Make Manequin Animation Blueprint generic
This commit is contained in:
parent
07f560e840
commit
2b5670fa9a
BIN
Content/Animations/AnimStarterPack/ABP/ABP_Manequin.uasset (Stored with Git LFS)
BIN
Content/Animations/AnimStarterPack/ABP/ABP_Manequin.uasset (Stored with Git LFS)
Binary file not shown.
|
@ -244,6 +244,16 @@ UNakatomiCMC* ANakatomiCharacter::GetCharacterMovementComponent()
|
||||||
return NakatomiCMC;
|
return NakatomiCMC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ANakatomiCharacter::GetCrouched()
|
||||||
|
{
|
||||||
|
if (UNakatomiCMC* cmc = GetCharacterMovementComponent())
|
||||||
|
{
|
||||||
|
return cmc->IsCrouching();
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void ANakatomiCharacter::CalculateHits(TArray<FHitResult>* hits)
|
void ANakatomiCharacter::CalculateHits(TArray<FHitResult>* hits)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,6 +106,9 @@ public:
|
||||||
|
|
||||||
UNakatomiCMC* GetCharacterMovementComponent();
|
UNakatomiCMC* GetCharacterMovementComponent();
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintCallable)
|
||||||
|
bool GetCrouched();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void CalculateHits(TArray<FHitResult>* hits);
|
virtual void CalculateHits(TArray<FHitResult>* hits);
|
||||||
|
|
||||||
|
|
|
@ -779,16 +779,6 @@ bool APlayerCharacter::GetPressedJump()
|
||||||
return jumpPressed;
|
return jumpPressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool APlayerCharacter::GetCrouched()
|
|
||||||
{
|
|
||||||
if (UNakatomiCMC* cmc = GetCharacterMovementComponent())
|
|
||||||
{
|
|
||||||
return cmc->IsCrouching();
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool APlayerCharacter::GetIsThrowing()
|
bool APlayerCharacter::GetIsThrowing()
|
||||||
{
|
{
|
||||||
return IsThrowing;
|
return IsThrowing;
|
||||||
|
|
|
@ -236,9 +236,6 @@ public:
|
||||||
UFUNCTION(BlueprintCallable)
|
UFUNCTION(BlueprintCallable)
|
||||||
bool GetPressedJump();
|
bool GetPressedJump();
|
||||||
|
|
||||||
UFUNCTION(BlueprintCallable)
|
|
||||||
bool GetCrouched();
|
|
||||||
|
|
||||||
UFUNCTION(BlueprintCallable)
|
UFUNCTION(BlueprintCallable)
|
||||||
bool GetIsThrowing();
|
bool GetIsThrowing();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue