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

View File

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