Compare commits

...

2 Commits

Author SHA1 Message Date
baz 01699f4529 Add ADS animations 2024-01-25 00:01:29 +00:00
baz d3ba88cb3a Add sprinting animation 2024-01-24 17:20:26 +00:00
12 changed files with 25 additions and 13 deletions

BIN
Content/AnimStarterPack/ABP_Manequin.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/AnimStarterPack/BS_Crouch_Walk.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/AnimStarterPack/BS_Crouch_Walk_ADS.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/AnimStarterPack/BS_Ironsights_Walk.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/AnimStarterPack/BS_Jog.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/AnimStarterPack/BS_Walk.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Levels/TestLevel.umap (Stored with Git LFS)

Binary file not shown.

BIN
Content/Player/PlayerCharacter.uasset (Stored with Git LFS)

Binary file not shown.

View File

@ -299,6 +299,8 @@ void APlayerCharacter::SetSprintingCallback(const FInputActionInstance& Instance
{
cmc->EnableSprint();
}
IsSprinting = true;
}
void APlayerCharacter::SetWalkingCallback(const FInputActionInstance& Instance)
@ -307,6 +309,8 @@ void APlayerCharacter::SetWalkingCallback(const FInputActionInstance& Instance)
{
cmc->DisableSprint();
}
IsSprinting = false;
}
void APlayerCharacter::CalculateHits(TArray<FHitResult>* hits)

View File

@ -121,8 +121,10 @@ private:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (AllowPrivateAccess = "true"))
UAIPerceptionStimuliSourceComponent* PerceptionSource;
UPROPERTY(BlueprintReadOnly, Meta = (AllowPrivateAccess = "true"))
bool IsSprinting = false;
UPROPERTY(BlueprintReadOnly, Meta = (AllowPrivateAccess = "true"))
bool IsADS = false;
float AimSensitivity;