Section 12: Footsteps - Lecture 243
Jumping and Landing sounds
This commit is contained in:
parent
a82939c7c9
commit
183e1034c8
BIN
Content/KiteDemo/Environments/Foliage/Grass/FieldGrass/M_FieldGrass_01.uasset (Stored with Git LFS)
BIN
Content/KiteDemo/Environments/Foliage/Grass/FieldGrass/M_FieldGrass_01.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/KiteDemo/Environments/Foliage/Grass/FieldGrass/M_FieldGrass_Inst_01.uasset (Stored with Git LFS)
BIN
Content/KiteDemo/Environments/Foliage/Grass/FieldGrass/M_FieldGrass_Inst_01.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/KiteDemo/Environments/Foliage/Grass/FieldGrass/M_FieldGrass_Inst_01_LOD1.uasset (Stored with Git LFS)
BIN
Content/KiteDemo/Environments/Foliage/Grass/FieldGrass/M_FieldGrass_Inst_01_LOD1.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/KiteDemo/Environments/Foliage/Grass/FieldGrass/M_FieldGrass_Inst_01_LOD2.uasset (Stored with Git LFS)
BIN
Content/KiteDemo/Environments/Foliage/Grass/FieldGrass/M_FieldGrass_Inst_01_LOD2.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/ParagonLtBelica/Characters/Heroes/Belica/Animations/Jump_Recovery_Additive.uasset (Stored with Git LFS)
BIN
Content/ParagonLtBelica/Characters/Heroes/Belica/Animations/Jump_Recovery_Additive.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/ParagonLtBelica/Characters/Heroes/Belica/Animations/Jump_Start.uasset (Stored with Git LFS)
BIN
Content/ParagonLtBelica/Characters/Heroes/Belica/Animations/Jump_Start.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/ParagonProps/Ground/Meshes/SM_Plane_5x5m.uasset (Stored with Git LFS)
BIN
Content/ParagonProps/Ground/Meshes/SM_Plane_5x5m.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/_Game/AnimNotifies/FootStepsNotify.uasset (Stored with Git LFS)
BIN
Content/_Game/AnimNotifies/FootStepsNotify.uasset (Stored with Git LFS)
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Content/_Game/Assets/Sounds/Rifle/sw_Foley_Jump_02_Cue.uasset (Stored with Git LFS)
BIN
Content/_Game/Assets/Sounds/Rifle/sw_Foley_Jump_02_Cue.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/_Game/Character/ShooterAnimBP.uasset (Stored with Git LFS)
BIN
Content/_Game/Character/ShooterAnimBP.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/_Game/Maps/DefaultMap.umap (Stored with Git LFS)
BIN
Content/_Game/Maps/DefaultMap.umap (Stored with Git LFS)
Binary file not shown.
|
@ -8,7 +8,7 @@ public class Shooter : ModuleRules
|
||||||
{
|
{
|
||||||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||||
|
|
||||||
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "UMG" });
|
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "UMG", "PhysicsCore" });
|
||||||
|
|
||||||
PrivateDependencyModuleNames.AddRange(new string[] { });
|
PrivateDependencyModuleNames.AddRange(new string[] { });
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
#include "Particles/ParticleSystemComponent.h"
|
#include "Particles/ParticleSystemComponent.h"
|
||||||
#include "Sound/SoundCue.h"
|
#include "Sound/SoundCue.h"
|
||||||
#include "Ammo.h"
|
#include "Ammo.h"
|
||||||
|
#include "PhysicalMaterials/PhysicalMaterial.h"
|
||||||
|
#include "Shooter.h"
|
||||||
|
|
||||||
// Sets default values
|
// Sets default values
|
||||||
AShooterCharacter::AShooterCharacter() :
|
AShooterCharacter::AShooterCharacter() :
|
||||||
|
@ -469,6 +471,20 @@ void AShooterCharacter::HighlightInventorySlot()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EPhysicalSurface AShooterCharacter::GetSurfaceType()
|
||||||
|
{
|
||||||
|
FHitResult HitResult;
|
||||||
|
const FVector Start{ GetActorLocation() };
|
||||||
|
const FVector End{ Start + FVector(0.f, 0.f, -400.f) };
|
||||||
|
|
||||||
|
FCollisionQueryParams QueryParams;
|
||||||
|
QueryParams.bReturnPhysicalMaterial = true;
|
||||||
|
|
||||||
|
GetWorld()->LineTraceSingleByChannel(HitResult, Start, End, ECollisionChannel::ECC_Visibility, QueryParams);
|
||||||
|
|
||||||
|
return UPhysicalMaterial::DetermineSurfaceType(HitResult.PhysMaterial.Get());
|
||||||
|
}
|
||||||
|
|
||||||
void AShooterCharacter::UnhighlightInventorySlot()
|
void AShooterCharacter::UnhighlightInventorySlot()
|
||||||
{
|
{
|
||||||
if (HighlightedSlot != -1)
|
if (HighlightedSlot != -1)
|
||||||
|
|
|
@ -216,6 +216,9 @@ protected:
|
||||||
|
|
||||||
void HighlightInventorySlot();
|
void HighlightInventorySlot();
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintCallable)
|
||||||
|
EPhysicalSurface GetSurfaceType();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = true))
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = true))
|
||||||
USpringArmComponent* CameraBoom;
|
USpringArmComponent* CameraBoom;
|
||||||
|
|
Loading…
Reference in New Issue