This commit is contained in:
Kevin Poretti 2023-01-29 20:53:05 -05:00
parent 650a1ad1e2
commit 4cb0bff9aa
17 changed files with 52 additions and 4 deletions

Binary file not shown.

BIN
Assets/SFX/GravityChange/Bluezone-Autobots-footstep-013.wav (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/SFX/GravityChange/Bluezone-Autobots-footstep-015.wav (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/SFX/GravityChange/MOTRSrvo_Plasma Rifle Arm_01.wav (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/SFX/GravityChange/Stomp1.wav (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/SFX/GravityChange/Stomp2.wav (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
GravityStomp/Content/Maps/City/City1.umap (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

BIN
GravityStomp/Content/SFX/Footsteps/MetalLand_Cue.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
GravityStomp/Content/SFX/GravityChange/Stomp1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
GravityStomp/Content/SFX/GravityChange/Stomp2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
GravityStomp/Content/SFX/GravityChange/Stomp_Cue.uasset (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -43,6 +43,9 @@ public:
void ChangeTeamColor(bool bIsPlayerFriendly);
UFUNCTION(BlueprintImplementableEvent)
void OnGravityDirectionChanged(FVector NewUpDir);
protected:
/** Called for movement input */

View File

@ -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<AGSCharacter>(GetCharacterOwner());
if(Char)
{
Char->OnGravityDirectionChanged(CharacterUpDirection);
}
SetMovementMode(MOVE_Falling);
}
}