From 4cb0bff9aaf316d9244b6fa555f60ba00a03b9c3 Mon Sep 17 00:00:00 2001 From: Kevin Poretti Date: Sun, 29 Jan 2023 20:53:05 -0500 Subject: [PATCH] More SFX --- .../FOOTSTEP - Metal Grill Land Barefoot Male - 5.wav | 3 +++ Assets/SFX/GravityChange/Bluezone-Autobots-footstep-013.wav | 3 +++ Assets/SFX/GravityChange/Bluezone-Autobots-footstep-015.wav | 3 +++ Assets/SFX/GravityChange/MOTRSrvo_Plasma Rifle Arm_01.wav | 3 +++ Assets/SFX/GravityChange/Stomp1.wav | 3 +++ Assets/SFX/GravityChange/Stomp2.wav | 3 +++ GravityStomp/Content/Characters/BP_GSCharacter.uasset | 4 ++-- GravityStomp/Content/Maps/City/City1.umap | 4 ++-- .../FOOTSTEP_-_Metal_Grill_Land_Barefoot_Male_-_5.uasset | 3 +++ GravityStomp/Content/SFX/Footsteps/MetalLand_Cue.uasset | 3 +++ .../Content/SFX/GravityChange/GravityChange_Cue.uasset | 3 +++ .../SFX/GravityChange/MOTRSrvo_Plasma_Rifle_Arm_01.uasset | 3 +++ GravityStomp/Content/SFX/GravityChange/Stomp1.uasset | 3 +++ GravityStomp/Content/SFX/GravityChange/Stomp2.uasset | 3 +++ GravityStomp/Content/SFX/GravityChange/Stomp_Cue.uasset | 3 +++ .../Source/GravityStompGame/Character/GSCharacter.h | 3 +++ .../Character/GSCharacterMovementComponent.cpp | 6 ++++++ 17 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 Assets/SFX/Footsteps/FOOTSTEP - Metal Grill Land Barefoot Male - 5.wav create mode 100644 Assets/SFX/GravityChange/Bluezone-Autobots-footstep-013.wav create mode 100644 Assets/SFX/GravityChange/Bluezone-Autobots-footstep-015.wav create mode 100644 Assets/SFX/GravityChange/MOTRSrvo_Plasma Rifle Arm_01.wav create mode 100644 Assets/SFX/GravityChange/Stomp1.wav create mode 100644 Assets/SFX/GravityChange/Stomp2.wav create mode 100644 GravityStomp/Content/SFX/Footsteps/FOOTSTEP_-_Metal_Grill_Land_Barefoot_Male_-_5.uasset create mode 100644 GravityStomp/Content/SFX/Footsteps/MetalLand_Cue.uasset create mode 100644 GravityStomp/Content/SFX/GravityChange/GravityChange_Cue.uasset create mode 100644 GravityStomp/Content/SFX/GravityChange/MOTRSrvo_Plasma_Rifle_Arm_01.uasset create mode 100644 GravityStomp/Content/SFX/GravityChange/Stomp1.uasset create mode 100644 GravityStomp/Content/SFX/GravityChange/Stomp2.uasset create mode 100644 GravityStomp/Content/SFX/GravityChange/Stomp_Cue.uasset diff --git a/Assets/SFX/Footsteps/FOOTSTEP - Metal Grill Land Barefoot Male - 5.wav b/Assets/SFX/Footsteps/FOOTSTEP - Metal Grill Land Barefoot Male - 5.wav new file mode 100644 index 0000000..cb7458b --- /dev/null +++ b/Assets/SFX/Footsteps/FOOTSTEP - Metal Grill Land Barefoot Male - 5.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78a7b54905d96e778fe24717fefbea6114830be62af148a1a75013656471f63b +size 208204 diff --git a/Assets/SFX/GravityChange/Bluezone-Autobots-footstep-013.wav b/Assets/SFX/GravityChange/Bluezone-Autobots-footstep-013.wav new file mode 100644 index 0000000..1905d79 --- /dev/null +++ b/Assets/SFX/GravityChange/Bluezone-Autobots-footstep-013.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9573627cd120f24a7e4e96666da4e76b25333d3cb21da10f4283b5d427058ac6 +size 1188700 diff --git a/Assets/SFX/GravityChange/Bluezone-Autobots-footstep-015.wav b/Assets/SFX/GravityChange/Bluezone-Autobots-footstep-015.wav new file mode 100644 index 0000000..6947d3f --- /dev/null +++ b/Assets/SFX/GravityChange/Bluezone-Autobots-footstep-015.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:434063c68f71d0ce0dc0335d7310c855808cdd618b7c60c5a67b7c07a2be3211 +size 1474764 diff --git a/Assets/SFX/GravityChange/MOTRSrvo_Plasma Rifle Arm_01.wav b/Assets/SFX/GravityChange/MOTRSrvo_Plasma Rifle Arm_01.wav new file mode 100644 index 0000000..345d7e8 --- /dev/null +++ b/Assets/SFX/GravityChange/MOTRSrvo_Plasma Rifle Arm_01.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cdd4edc754b7430c6902c3a44a43801e439e1b73397154632f5c5361bbb1585f +size 118200 diff --git a/Assets/SFX/GravityChange/Stomp1.wav b/Assets/SFX/GravityChange/Stomp1.wav new file mode 100644 index 0000000..33a603a --- /dev/null +++ b/Assets/SFX/GravityChange/Stomp1.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d96cfa9329e51436c0bfe12a09e28abe3e8a861216f663d1fade5f6804b5472b +size 659824 diff --git a/Assets/SFX/GravityChange/Stomp2.wav b/Assets/SFX/GravityChange/Stomp2.wav new file mode 100644 index 0000000..2917913 --- /dev/null +++ b/Assets/SFX/GravityChange/Stomp2.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a253ac078e1dd5793c915b7fe97d183f92e2c36d55bbf171f0121068ccdf23d +size 870164 diff --git a/GravityStomp/Content/Characters/BP_GSCharacter.uasset b/GravityStomp/Content/Characters/BP_GSCharacter.uasset index c82be99..fc07c4b 100644 --- a/GravityStomp/Content/Characters/BP_GSCharacter.uasset +++ b/GravityStomp/Content/Characters/BP_GSCharacter.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b8b131d1827d30989c118a999f9cfaf39cc24012bdfc1d92ee90970f324c13c0 -size 404823 +oid sha256:cf04b8d8ffc611c5a10089a34cf9c34fa6129a696ed134ad18c6b0ac4c864a03 +size 440661 diff --git a/GravityStomp/Content/Maps/City/City1.umap b/GravityStomp/Content/Maps/City/City1.umap index e09eaa3..dc9d282 100644 --- a/GravityStomp/Content/Maps/City/City1.umap +++ b/GravityStomp/Content/Maps/City/City1.umap @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:99a9b5a6cd51b82ae9fc9ad35f4a0ed4f49b964b3aef5561ac5a057733e6cfda -size 162102 +oid sha256:d2a9ef706a531d293ef6250732b5b83fa9095088c2395ab83d44ec1b67befef4 +size 160722 diff --git a/GravityStomp/Content/SFX/Footsteps/FOOTSTEP_-_Metal_Grill_Land_Barefoot_Male_-_5.uasset b/GravityStomp/Content/SFX/Footsteps/FOOTSTEP_-_Metal_Grill_Land_Barefoot_Male_-_5.uasset new file mode 100644 index 0000000..dcb9db3 --- /dev/null +++ b/GravityStomp/Content/SFX/Footsteps/FOOTSTEP_-_Metal_Grill_Land_Barefoot_Male_-_5.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2cceee4c1720dcfba289eb682ccc2d661565f73656f03e8b130c98e5f6090aee +size 75664 diff --git a/GravityStomp/Content/SFX/Footsteps/MetalLand_Cue.uasset b/GravityStomp/Content/SFX/Footsteps/MetalLand_Cue.uasset new file mode 100644 index 0000000..cd2cfbd --- /dev/null +++ b/GravityStomp/Content/SFX/Footsteps/MetalLand_Cue.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cfb4b8c49e463a88cd01052afe499f59a7951bf9b00f836b5969cdacfa1fe271 +size 5333 diff --git a/GravityStomp/Content/SFX/GravityChange/GravityChange_Cue.uasset b/GravityStomp/Content/SFX/GravityChange/GravityChange_Cue.uasset new file mode 100644 index 0000000..2192587 --- /dev/null +++ b/GravityStomp/Content/SFX/GravityChange/GravityChange_Cue.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b270e224c98298850745a3da7c7193c8d3899a49185701ec2b262d24d4c6a05 +size 5281 diff --git a/GravityStomp/Content/SFX/GravityChange/MOTRSrvo_Plasma_Rifle_Arm_01.uasset b/GravityStomp/Content/SFX/GravityChange/MOTRSrvo_Plasma_Rifle_Arm_01.uasset new file mode 100644 index 0000000..e3a9a0d --- /dev/null +++ b/GravityStomp/Content/SFX/GravityChange/MOTRSrvo_Plasma_Rifle_Arm_01.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c88e008988c54e27a7a19e559d0785d4cc28f7fad4b00bd83cd036499bbc83e +size 70141 diff --git a/GravityStomp/Content/SFX/GravityChange/Stomp1.uasset b/GravityStomp/Content/SFX/GravityChange/Stomp1.uasset new file mode 100644 index 0000000..1a57d0f --- /dev/null +++ b/GravityStomp/Content/SFX/GravityChange/Stomp1.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a212a32159a0f115dedbecde22fcd4692e0fa601022a0af3fa2c8a119d4b59fb +size 490257 diff --git a/GravityStomp/Content/SFX/GravityChange/Stomp2.uasset b/GravityStomp/Content/SFX/GravityChange/Stomp2.uasset new file mode 100644 index 0000000..8d59ab3 --- /dev/null +++ b/GravityStomp/Content/SFX/GravityChange/Stomp2.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06a8e5ba20f8f03c1998dfd7f47854f470e6bff0fe5a66a39bb792dafddbe018 +size 576514 diff --git a/GravityStomp/Content/SFX/GravityChange/Stomp_Cue.uasset b/GravityStomp/Content/SFX/GravityChange/Stomp_Cue.uasset new file mode 100644 index 0000000..f37a864 --- /dev/null +++ b/GravityStomp/Content/SFX/GravityChange/Stomp_Cue.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0106a256f913f936c8d9f90d834152b3c1e2267ce754c881bbbd4adef9abe5d9 +size 7513 diff --git a/GravityStomp/Source/GravityStompGame/Character/GSCharacter.h b/GravityStomp/Source/GravityStompGame/Character/GSCharacter.h index 3844b84..1608872 100644 --- a/GravityStomp/Source/GravityStompGame/Character/GSCharacter.h +++ b/GravityStomp/Source/GravityStompGame/Character/GSCharacter.h @@ -43,6 +43,9 @@ public: void ChangeTeamColor(bool bIsPlayerFriendly); + UFUNCTION(BlueprintImplementableEvent) + void OnGravityDirectionChanged(FVector NewUpDir); + protected: /** Called for movement input */ diff --git a/GravityStomp/Source/GravityStompGame/Character/GSCharacterMovementComponent.cpp b/GravityStomp/Source/GravityStompGame/Character/GSCharacterMovementComponent.cpp index 9fff52c..76ed8d1 100644 --- a/GravityStomp/Source/GravityStompGame/Character/GSCharacterMovementComponent.cpp +++ b/GravityStomp/Source/GravityStompGame/Character/GSCharacterMovementComponent.cpp @@ -3,6 +3,7 @@ #include "Character/GSCharacterMovementComponent.h" // UE includes +#include "GSCharacter.h" #include "Components/CapsuleComponent.h" #include "GameFramework/Character.h" #include "Kismet/KismetMathLibrary.h" @@ -684,6 +685,11 @@ void UGSCharacterMovementComponent::SetCharacterUpDirection(FVector NewUpDirecti if(!(CharacterUpDirection.Dot(NewUpDirection) > UE_KINDA_SMALL_NUMBER)) { CharacterUpDirection = NewUpDirection; + AGSCharacter* Char = Cast(GetCharacterOwner()); + if(Char) + { + Char->OnGravityDirectionChanged(CharacterUpDirection); + } SetMovementMode(MOVE_Falling); } }