Skip to content

Commit

Permalink
Fix custom movement related blocking tags not reset on respawn
Browse files Browse the repository at this point in the history
  • Loading branch information
JediKnightChan committed May 10, 2023
1 parent bd31870 commit 35ac514
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/ECR/Private/Gameplay/Character/ECRCharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ void AECRCharacter::InitializeGameplayTags()
}
}

// Two blocking movement modes
ECRASC->SetLooseGameplayTagCount(GameplayTags.Movement_Mode_Falling_Standard, 0);
ECRASC->SetLooseGameplayTagCount(GameplayTags.Movement_Mode_Falling_JumpPack, 0);

UECRCharacterMovementComponent* ECRMoveComp = CastChecked<UECRCharacterMovementComponent>(
GetCharacterMovement());
SetMovementModeTag(ECRMoveComp->MovementMode, ECRMoveComp->CustomMovementMode, true);
Expand Down

0 comments on commit 35ac514

Please sign in to comment.