Skip to content

Commit

Permalink
Merge pull request #358 from dyanikoglu/dev
Browse files Browse the repository at this point in the history
Hotfix v4.23.1
  • Loading branch information
dyanikoglu committed Feb 27, 2022
2 parents ca073d0 + dcd5d2c commit 423bc4d
Show file tree
Hide file tree
Showing 49 changed files with 191 additions and 329 deletions.
22 changes: 11 additions & 11 deletions ALSV4_CPP.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion": 3,
"Version": 1,
"VersionName": "4.23.0",
"VersionName": "4.23.1",
"FriendlyName": "Advanced Locomotion System Community",
"Description": "Performance optimized community version of LongmireLocomotion's Advanced Locomotion System V4",
"Category": "Animation",
Expand All @@ -28,14 +28,14 @@
]
}
],
"Plugins": [
{
"Name": "Niagara",
"Enabled": true
},
{
"Name": "EnhancedInput",
"Enabled": true
}
]
"Plugins": [
{
"Name": "Niagara",
"Enabled": true
},
{
"Name": "EnhancedInput",
"Enabled": true
}
]
}
Binary file modified Content/AdvancedLocomotionV4/Blueprints/UI/ALS_HUD.uasset
Binary file not shown.
Binary file not shown.
Binary file removed Resources/Readme_Content_1.png
Binary file not shown.
8 changes: 2 additions & 6 deletions Source/ALSV4_CPP/ALSV4_CPP.Build.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community

using UnrealBuildTool;

Expand Down
8 changes: 2 additions & 6 deletions Source/ALSV4_CPP/ALSV4_CPP.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community

#include "ALSV4_CPP.h"
#include "Modules/ModuleManager.h"
Expand Down
8 changes: 2 additions & 6 deletions Source/ALSV4_CPP/ALSV4_CPP.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community

#pragma once

Expand Down
8 changes: 2 additions & 6 deletions Source/ALSV4_CPP/Private/AI/ALSAIController.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Jens Bjarne Myhre
// Contributors: Doğa Can Yanıkoğlu
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community

#include "AI/ALSAIController.h"

Expand Down
8 changes: 2 additions & 6 deletions Source/ALSV4_CPP/Private/AI/ALS_BTTask_GetRandomLocation.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Jens Bjarne Myhre
// Contributors: Doğa Can Yanıkoğlu
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community

#include "AI/ALS_BTTask_GetRandomLocation.h"
#include "AIController.h"
Expand Down
8 changes: 2 additions & 6 deletions Source/ALSV4_CPP/Private/AI/ALS_BTTask_SetFocusToPlayer.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Jens Bjarne Myhre
// Contributors: Doğa Can Yanıkoğlu
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community

#include "AI/ALS_BTTask_SetFocusToPlayer.h"
#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"
Expand Down
18 changes: 12 additions & 6 deletions Source/ALSV4_CPP/Private/Character/ALSBaseCharacter.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors: Haziq Fadhil, Drakynfly, CanisHelix
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/ALSBaseCharacter.h"
Expand Down Expand Up @@ -280,6 +276,11 @@ void AALSBaseCharacter::SetStance(const EALSStance NewStance, bool bForce)
}
}

void AALSBaseCharacter::SetOverlayOverrideState(int32 NewState)
{
OverlayOverrideState = NewState;
}

void AALSBaseCharacter::SetGait(const EALSGait NewGait, bool bForce)
{
if (bForce || Gait != NewGait)
Expand Down Expand Up @@ -389,6 +390,11 @@ void AALSBaseCharacter::SetOverlayState(const EALSOverlayState NewState, bool bF
}
}

void AALSBaseCharacter::SetGroundedEntryState(EALSGroundedEntryState NewState)
{
GroundedEntryState = NewState;
}


void AALSBaseCharacter::Server_SetOverlayState_Implementation(EALSOverlayState NewState, bool bForce)
{
Expand Down
8 changes: 2 additions & 6 deletions Source/ALSV4_CPP/Private/Character/ALSCharacter.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/ALSCharacter.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Haziq Fadhil
// Contributors: Doğa Can Yanıkoğlu
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/ALSCharacterMovementComponent.h"
Expand Down
8 changes: 2 additions & 6 deletions Source/ALSV4_CPP/Private/Character/ALSPlayerCameraManager.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/ALSPlayerCameraManager.h"
Expand Down
8 changes: 2 additions & 6 deletions Source/ALSV4_CPP/Private/Character/ALSPlayerController.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors: Drakynfly
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/ALSPlayerController.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors: Haziq Fadhil, Jens Bjarne Myhre
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/Animation/ALSCharacterAnimInstance.h"
Expand Down Expand Up @@ -88,13 +84,14 @@ void UALSCharacterAnimInstance::NativeUpdateAnimation(float DeltaSeconds)
CharacterInformation.CharacterActorRotation = Character->GetActorRotation();
CharacterInformation.ViewMode = Character->GetViewMode();
CharacterInformation.PrevMovementState = Character->GetPrevMovementState();

LayerBlendingValues.OverlayOverrideState = Character->GetOverlayOverrideState();
MovementState = Character->GetMovementState();
MovementAction = Character->GetMovementAction();
Stance = Character->GetStance();
RotationMode = Character->GetRotationMode();
Gait = Character->GetGait();
OverlayState = Character->GetOverlayState();
GroundedEntryState = Character->GetGroundedEntryState();

UpdateAimingValues(DeltaSeconds);
UpdateLayerValues();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/Animation/ALSPlayerCameraBehavior.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/Animation/Notify/ALSAnimNotifyCameraShake.h"


void UALSAnimNotifyCameraShake::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation)
void UALSAnimNotifyCameraShake::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, const FAnimNotifyEventReference& EventReference)
{
Super::Notify(MeshComp, Animation, EventReference);

APawn* OwnerPawn = Cast<APawn>(MeshComp->GetOwner());
if (OwnerPawn)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/Animation/Notify/ALSAnimNotifyFootstep.h"
Expand All @@ -23,8 +19,10 @@ FName UALSAnimNotifyFootstep::NAME_FootstepType(TEXT("FootstepType"));
FName UALSAnimNotifyFootstep::NAME_Foot_R(TEXT("Foot_R"));


void UALSAnimNotifyFootstep::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation)
void UALSAnimNotifyFootstep::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, const FAnimNotifyEventReference& EventReference)
{
Super::Notify(MeshComp, Animation, EventReference);

if (!MeshComp)
{
return;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/Animation/Notify/ALSAnimNotifyGroundedEntryState.h"

#include "Character/ALSBaseCharacter.h"
#include "Character/Animation/ALSCharacterAnimInstance.h"

void UALSAnimNotifyGroundedEntryState::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation)
void UALSAnimNotifyGroundedEntryState::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, const FAnimNotifyEventReference& EventReference)
{
UALSCharacterAnimInstance* AnimIns = Cast<UALSCharacterAnimInstance>(MeshComp->GetAnimInstance());
if (AnimIns)
Super::Notify(MeshComp, Animation, EventReference);

AALSBaseCharacter* Character = Cast<AALSBaseCharacter>(MeshComp->GetOwner());
if (Character)
{
AnimIns->SetGroundedEntryState(GroundedEntryState);
Character->SetGroundedEntryState(GroundedEntryState);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/Animation/Notify/ALSNotifyStateEarlyBlendOut.h"

#include "Character/ALSBaseCharacter.h"

void UALSNotifyStateEarlyBlendOut::NotifyTick(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation,
float FrameDeltaTime)
float FrameDeltaTime, const FAnimNotifyEventReference& EventReference)
{
Super::NotifyTick(MeshComp, Animation, FrameDeltaTime, EventReference);

if (!MeshComp || !MeshComp->GetAnimInstance())
{
return;
}

UAnimInstance* AnimInstance = MeshComp->GetAnimInstance();
AALSBaseCharacter* OwnerCharacter = Cast<AALSBaseCharacter>(MeshComp->GetOwner());
if (!OwnerCharacter)
if (!OwnerCharacter || !AnimInstance)
{
return;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors:
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu
// Source Code: https://github.com/dyanikoglu/ALS-Community


#include "Character/Animation/Notify/ALSNotifyStateMovementAction.h"

#include "Character/ALSBaseCharacter.h"

void UALSNotifyStateMovementAction::NotifyBegin(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation,
float TotalDuration)
float TotalDuration, const FAnimNotifyEventReference& EventReference)
{
Super::NotifyBegin(MeshComp, Animation, TotalDuration, EventReference);

AALSBaseCharacter* BaseCharacter = Cast<AALSBaseCharacter>(MeshComp->GetOwner());
if (BaseCharacter)
{
BaseCharacter->SetMovementAction(MovementAction);
}
}

void UALSNotifyStateMovementAction::NotifyEnd(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation)
void UALSNotifyStateMovementAction::NotifyEnd(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation,
const FAnimNotifyEventReference& EventReference)
{
Super::NotifyEnd(MeshComp, Animation, EventReference);

AALSBaseCharacter* BaseCharacter = Cast<AALSBaseCharacter>(MeshComp->GetOwner());
if (BaseCharacter && BaseCharacter->GetMovementAction() == MovementAction)
{
Expand Down
Loading

0 comments on commit 423bc4d

Please sign in to comment.