From cd9baf6858cdaeaed18caf267de9ef2542d84a0a Mon Sep 17 00:00:00 2001 From: PHILIP WHITE Date: Wed, 13 Mar 2024 17:28:18 +0000 Subject: [PATCH] Bugfix ALS Sprint not Triggering --- .../CharacterLogic/ALS_Base_CharacterBP.uasset | 4 ++-- .../ResponsiveRotation.uasset | 4 ++-- .../Data/DataTables/MovementModelTable.uasset | 4 ++-- .../Blueprints/BP_FirstPersonCharacter.uasset | 4 ++-- .../Blueprints/BP_MainCharacter.uasset | 4 ++-- .../EndlessVendettaCharacter.cpp | 17 +++++++++-------- 6 files changed, 19 insertions(+), 18 deletions(-) diff --git a/EndlessVendetta/Content/AdvancedLocomotionV4/Blueprints/CharacterLogic/ALS_Base_CharacterBP.uasset b/EndlessVendetta/Content/AdvancedLocomotionV4/Blueprints/CharacterLogic/ALS_Base_CharacterBP.uasset index a9f11778..bae29d96 100644 --- a/EndlessVendetta/Content/AdvancedLocomotionV4/Blueprints/CharacterLogic/ALS_Base_CharacterBP.uasset +++ b/EndlessVendetta/Content/AdvancedLocomotionV4/Blueprints/CharacterLogic/ALS_Base_CharacterBP.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bc0fe4660638c9f00f8315778264cf75419381fd3706aef939cb5979f8dd4ae1 -size 3712142 +oid sha256:f6398fc16776474c5859b4344a6ff1b303e8a8927a24ab24072f78a44a3bfb5d +size 3722100 diff --git a/EndlessVendetta/Content/AdvancedLocomotionV4/Data/Curves/CharacterMovementCurves/ResponsiveRotation.uasset b/EndlessVendetta/Content/AdvancedLocomotionV4/Data/Curves/CharacterMovementCurves/ResponsiveRotation.uasset index 754c965f..dd1049b4 100644 --- a/EndlessVendetta/Content/AdvancedLocomotionV4/Data/Curves/CharacterMovementCurves/ResponsiveRotation.uasset +++ b/EndlessVendetta/Content/AdvancedLocomotionV4/Data/Curves/CharacterMovementCurves/ResponsiveRotation.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:63ffbc7a8018e013b05263c847240f7ce88c56fe37bf8b6ec23124d8a1ad1f19 -size 1794 +oid sha256:3646be2326aab2db695aa5e2c12f7ebdef7a2714f2f17e19de825c3a798c2496 +size 2016 diff --git a/EndlessVendetta/Content/AdvancedLocomotionV4/Data/DataTables/MovementModelTable.uasset b/EndlessVendetta/Content/AdvancedLocomotionV4/Data/DataTables/MovementModelTable.uasset index fa900760..b89c024e 100644 --- a/EndlessVendetta/Content/AdvancedLocomotionV4/Data/DataTables/MovementModelTable.uasset +++ b/EndlessVendetta/Content/AdvancedLocomotionV4/Data/DataTables/MovementModelTable.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6be9f34f48b2f8278526b794529e316883f05416b275bfa9509529d4de1c6b08 -size 7754 +oid sha256:7996c78a977034a8afa26bcb03a06564ad2c398c1e6adc548c517e1934cdfbbc +size 8325 diff --git a/EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset b/EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset index 0cd632e8..6dfed72f 100644 --- a/EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset +++ b/EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6b2ab0aca396a9b9271a1d3ef35f55f159238a67402a5f18823672b8e90e70c6 -size 795961 +oid sha256:d340258408ce3a5a09a228384e9186e41e3fea304fa000680660c214b57e9c54 +size 793844 diff --git a/EndlessVendetta/Content/FirstPerson/Blueprints/BP_MainCharacter.uasset b/EndlessVendetta/Content/FirstPerson/Blueprints/BP_MainCharacter.uasset index 95a8f02d..c8496e00 100644 --- a/EndlessVendetta/Content/FirstPerson/Blueprints/BP_MainCharacter.uasset +++ b/EndlessVendetta/Content/FirstPerson/Blueprints/BP_MainCharacter.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f1d86397bdd108841b2763aee9fd0325a8d605efd9c97ecd8be22b7b750bbc9a -size 1356275 +oid sha256:f8cbdeb644d69c7c7fbb230af405176214d2adafc6d6be4cd026d4d268c5c331 +size 1356457 diff --git a/EndlessVendetta/Source/EndlessVendetta/EndlessVendettaCharacter.cpp b/EndlessVendetta/Source/EndlessVendetta/EndlessVendettaCharacter.cpp index db6d18e6..c8870044 100644 --- a/EndlessVendetta/Source/EndlessVendetta/EndlessVendettaCharacter.cpp +++ b/EndlessVendetta/Source/EndlessVendetta/EndlessVendettaCharacter.cpp @@ -97,8 +97,8 @@ void AEndlessVendettaCharacter::BeginPlay() } InventoryComponent = Cast(GetComponentByClass(UInventoryComponent::StaticClass())); - WalkSpeed = CharacterMovement->MaxWalkSpeed; - OriginalWalkSpeed = CharacterMovement->MaxWalkSpeed; + //WalkSpeed = CharacterMovement->MaxWalkSpeed; + //OriginalWalkSpeed = CharacterMovement->MaxWalkSpeed; CurrentStamina = MaxStamina; CurrentHealth = DefaultHealth; } @@ -134,7 +134,7 @@ void AEndlessVendettaCharacter::Tick(float DeltaTime) { bIsPlayerSprinting = false; CurrentStamina = 0.0f; - CharacterMovement->MaxWalkSpeed = OriginalWalkSpeed; + //CharacterMovement->MaxWalkSpeed = OriginalWalkSpeed; } } } @@ -202,8 +202,8 @@ void AEndlessVendettaCharacter::SetupPlayerInputComponent(class UInputComponent* //Moving // EnhancedInputComponent->BindAction(MoveAction, ETriggerEvent::Triggered, this, &AEndlessVendettaCharacter::Move); - // EnhancedInputComponent->BindAction(SprintAction, ETriggerEvent::Started, this, &AEndlessVendettaCharacter::Sprint); - // EnhancedInputComponent->BindAction(SprintAction, ETriggerEvent::Completed, this, &AEndlessVendettaCharacter::StopSprint); + EnhancedInputComponent->BindAction(SprintAction, ETriggerEvent::Started, this, &AEndlessVendettaCharacter::Sprint); + EnhancedInputComponent->BindAction(SprintAction, ETriggerEvent::Completed, this, &AEndlessVendettaCharacter::StopSprint); //Looking // EnhancedInputComponent->BindAction(LookAction, ETriggerEvent::Triggered, this, &AEndlessVendettaCharacter::Look); @@ -223,7 +223,7 @@ void AEndlessVendettaCharacter::SetupPlayerInputComponent(class UInputComponent* EnhancedInputComponent->BindAction(GunAimInAction, ETriggerEvent::Completed, this, &AEndlessVendettaCharacter::StopGunRightClick); //Weapon Reloading - EnhancedInputComponent->BindAction(GunReloadAction, ETriggerEvent::Triggered, this, &AEndlessVendettaCharacter::GunReload); + EnhancedInputComponent->BindAction(GunReloadAction, ETriggerEvent::Started, this, &AEndlessVendettaCharacter::GunReload); //Crouching EnhancedInputComponent->BindAction(CrouchAction, ETriggerEvent::Started, this, &AEndlessVendettaCharacter::SetCrouch); @@ -635,6 +635,7 @@ void AEndlessVendettaCharacter::StopGunRightClick() void AEndlessVendettaCharacter::GunReload() { + if (bIsReloading) return; if (InPauseMenu) return; if (IsValid(PrimaryWeapon)) { @@ -681,7 +682,7 @@ void AEndlessVendettaCharacter::Sprint() { if (MoveGroundSpeed > 0) { - CharacterMovement->MaxWalkSpeed = SprintSpeed; + //CharacterMovement->MaxWalkSpeed = SprintSpeed; } } } @@ -692,7 +693,7 @@ void AEndlessVendettaCharacter::StopSprint() if (!bIsPlayerSprinting) { UE_LOG(LogTemp, Display, TEXT("Player stopped sprinting")); - CharacterMovement->MaxWalkSpeed = OriginalWalkSpeed; + //CharacterMovement->MaxWalkSpeed = OriginalWalkSpeed; } }