Merge branch 'GadgetTutorialRevamp' into dev

This commit is contained in:
MH261677 2024-04-22 16:12:41 +01:00
commit 1c70bba094
48 changed files with 120 additions and 36 deletions

View File

@ -62,7 +62,7 @@
+CollisionChannelRedirects=(OldName="PawnMovement",NewName="Pawn")
[/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/Game/Levels/MovementTest.MovementTest
EditorStartupMap=/Game/Levels/TempLevels/NewTutorialMap.NewTutorialMap
LocalMapOptions=
TransitionMap=None
bUseSplitscreen=True

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:429ac085a3c1d4b67325ef834c9ca08eaca205c6add5c9411a9045327517669d
size 99136

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d587a4ca85a92ffbdff527b9cdb639af8727251dcb3dfdd49d2b20cab9d9ec2
size 118976

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -51,8 +51,8 @@ bool AGadgetBase::Unequip()
UEnhancedInputLocalPlayerSubsystem* Subsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(PlayerController->GetLocalPlayer());
Subsystem->RemoveMappingContext(GadgetMappingContext);
UEnhancedInputComponent* EnhancedInputComponent = Cast<UEnhancedInputComponent>(PlayerController->InputComponent);
EnhancedInputComponent->ClearActionBindings();
// UEnhancedInputComponent* EnhancedInputComponent = Cast<UEnhancedInputComponent>(PlayerController->InputComponent);
// EnhancedInputComponent->ClearActionBindings();
return true;
}

View File

@ -72,7 +72,7 @@ protected:
bool GadgetCantBeUsed()
{
return GadgetOnCooldown|| GadgetInUse;
return GadgetOnCooldown || GadgetInUse || !Equipped;
}
// Called when the game starts or when spawned