feat: basic movement animations

This commit is contained in:
Kubson96 2025-06-09 17:05:40 +02:00
parent 5d49b91059
commit e5fc180630
19 changed files with 7 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -210,6 +210,7 @@ void AExoPlayerCharacter::CrouchCustom()
SetTargetEyeHeight(CrouchedEyeHeight);
GetCharacterMovement()->MaxWalkSpeed = CrouchSpeed;
bIsCrouched = true;
bIsCrouchingMode = true;
CrouchTimeline.Play();
//float CurrentCamHeight = GetCurrentEyeHeight();
@ -224,6 +225,7 @@ void AExoPlayerCharacter::TryUnCrouchCustom()
SetTargetEyeHeight(StandingEyeHeight);
GetCharacterMovement()->MaxWalkSpeed = WalkSpeed;
bIsCrouched = false;
bIsCrouchingMode = false;
CrouchTimeline.Reverse();
//float CurrentCamHeight = GetCurrentEyeHeight();

View File

@ -48,10 +48,10 @@ public:
UPROPERTY(EditAnywhere, Category = "Slide Properties")
float SlideCooldown = 0.35f;
UPROPERTY(EditAnywhere, Category = "Movement Properties")
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Movement Properties")
float WalkSpeed = 600.0f;
UPROPERTY(EditAnywhere, Category = "Movement Properties")
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Movement Properties")
float SprintSpeed = 1500.0f;
UPROPERTY(EditAnywhere, Category = "Movement Properties")
@ -63,6 +63,9 @@ public:
UPROPERTY(EditAnywhere, Category = "Aiming")
float bIsAimingMode = false;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Crouch")
bool bIsCrouchingMode = false;
UPROPERTY(EditAnywhere, Category = "Health")
float CurrentHealth = 50.0f;