Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
a0180ae
Merge pull request #7 from dyanikoglu/main
senfkorn92 Apr 3, 2021
cabe52c
Revert "Merge pull request #168 from dyanikoglu/dev"
senfkorn92 Apr 3, 2021
a29c7d3
Revert "Revert "Merge pull request #168 from dyanikoglu/dev""
senfkorn92 Apr 3, 2021
231c66d
Merge pull request #8 from dyanikoglu/dev
senfkorn92 Apr 3, 2021
2e97f38
Merge pull request #203 from dyanikoglu/dev
dyanikoglu Apr 23, 2021
97ced4b
Add discord invitation button for official server
dyanikoglu Apr 23, 2021
eddf92e
Fix discord invite link
dyanikoglu Apr 23, 2021
5ee83c9
Change NewMaxWalkSpeed to AllowedGait
senfkorn92 May 3, 2021
af7f3df
Added Reset bRequestMovementSettingsChange
senfkorn92 May 3, 2021
fc3e6a4
Update README.md
dyanikoglu May 4, 2021
06afead
Convert all FNames to constants
muchcharles May 5, 2021
5a15f96
Reduce allocations on footsteps
muchcharles May 6, 2021
fefc8d9
Switch to cpp linetrace method
muchcharles May 6, 2021
0714ab7
avoid virtual with override, extend private section and properly init…
AchimTuran Mar 17, 2021
614a3fe
use predefined key constants for binding
AchimTuran Mar 17, 2021
fbd0e82
move also focused character info into ALSDebugComponent
AchimTuran Apr 9, 2021
628f525
reintroduce show traces (mantling, foot...) for debugging purposes of…
AchimTuran Apr 9, 2021
e61295e
avoid possible nullptr access
AchimTuran Apr 9, 2021
6ebf5ec
don't use virtual with override as it could lead to errors, see http:…
AchimTuran Apr 9, 2021
2875543
fix indentation
AchimTuran Apr 9, 2021
67cb2bc
make function static to avoid that the packaing fails
AchimTuran Apr 11, 2021
f8f4206
fix UE coding guide findings
AchimTuran Apr 13, 2021
020f806
reintroduce virtual and drop auto
AchimTuran Apr 18, 2021
d689fca
fix build issue it's EKeys and not FKeys...
AchimTuran May 11, 2021
d68ff01
better HUD client project support
AchimTuran May 11, 2021
153f9cb
better player controller client project support
AchimTuran May 11, 2021
8b426cb
Merge remote-tracking branch 'senfkorn/dev' into dev
dyanikoglu May 11, 2021
8cb3a1d
Merge pull request #208 from senfkorn92/dev
dyanikoglu May 11, 2021
48e74aa
Merge pull request #211 from muchcharles/muchcharles-fname-constants
dyanikoglu May 11, 2021
7dec82e
Merge branch 'dev' of https://github.com/dyanikoglu/ALS-Community int…
dyanikoglu May 11, 2021
15e4ebb
Fix AI is not focusing on pawn mesh eye viewpoint
dyanikoglu May 11, 2021
4ac31bc
Merge remote-tracking branch 'tuatec/better_client_project_support' i…
dyanikoglu May 11, 2021
db5d0f7
Merge pull request #150 from tuatec/better_client_project_support
dyanikoglu May 11, 2021
d80cfc2
Merge pull request #210 from muchcharles/muchcharles-footstep-less-al…
dyanikoglu May 11, 2021
e7bb809
Merge branch 'dev' of https://github.com/dyanikoglu/ALS-Community int…
dyanikoglu May 11, 2021
5eb4d3a
Update version to v4.20
dyanikoglu May 11, 2021
86d606c
Merge pull request #216 from dyanikoglu/dev
dyanikoglu May 13, 2021
0b1256a
Revert footstep trace to kismet version
muchcharles May 19, 2021
89f3363
Fix #218. Prevent spamming SetMovementSettings on movement component …
dyanikoglu May 19, 2021
b467da3
Update version to 4.20.1
dyanikoglu May 19, 2021
06613da
Merge pull request #219 from muchcharles/muchcharles-footstep-less-al…
dyanikoglu May 19, 2021
81014e8
Merge pull request #221 from dyanikoglu/dev
dyanikoglu May 19, 2021
c027644
Add support SetViewTargetWithBlend
davchezt Jun 1, 2021
c23b001
Update README.md
Slashin8r Jun 2, 2021
7689f42
Merge pull request #246 from Slashin8r/main
dyanikoglu Jun 2, 2021
dbdc2c4
update to meet requested changes
davchezt Jun 7, 2021
f34c10b
Update to meet requested changes
davchezt Jun 7, 2021
bde9515
fix includes for RunUAT BuildPlugin errors
CanisHelix Jun 9, 2021
b64caa8
Merge pull request #251 from CanisHelix/fix_uat_packaging
dyanikoglu Jun 9, 2021
c252451
Explicitly use FInterpTo float parameter version to avoid compiler co…
ameaninglessname Jun 20, 2021
ebfd711
Merge pull request #242 from davchezt/dev
dyanikoglu Jun 28, 2021
346f2bd
Merge pull request #261 from ameaninglessname/main-fix-compile-issue
dyanikoglu Jun 29, 2021
c2f6090
Fix copy paste remnant in base character header #272
dyanikoglu Jul 25, 2021
bf61eb1
Fix possible compile issues with 4.27
dyanikoglu Oct 8, 2021
8f3f768
Bump version to 4.21
dyanikoglu Oct 8, 2021
1cba9ec
Use constant interpolation to fix possible issues with camera lag stu…
dyanikoglu Oct 8, 2021
8797923
Fix #243
dyanikoglu Oct 8, 2021
1571614
Fix #97
dyanikoglu Oct 8, 2021
739ebcc
Partially fix duplicate shapes in #240
dyanikoglu Oct 8, 2021
83c36d0
Revert latest camera fix, not so critical for now
dyanikoglu Oct 8, 2021
a3a7db0
Update README.md
dyanikoglu Oct 8, 2021
3238206
Merge pull request #293 from dyanikoglu/dev
dyanikoglu Oct 8, 2021
58e46e7
Add missing uproperty for debug component
dyanikoglu Oct 8, 2021
9d75c6b
Add another missing uproperty
dyanikoglu Oct 8, 2021
f18bf3d
Fix last batch of missing UPROPERTYs
dyanikoglu Oct 8, 2021
a4d273c
Update README.md
dyanikoglu Oct 8, 2021
62fee0d
Fix #295
adrian-j-programmer Oct 15, 2021
c3503c8
Merge pull request #296 from adrian-j-programmer/patch-1
dyanikoglu Oct 17, 2021
494911c
Merge pull request #300 from dyanikoglu/dev
dyanikoglu Oct 19, 2021
37a815f
Rename debug component uproprty to ALSDebugComponent in various class…
dyanikoglu Nov 9, 2021
281cc15
Bump version to 4.21.2
dyanikoglu Nov 9, 2021
db5aa0b
Merge pull request #309 from dyanikoglu/dev
dyanikoglu Nov 9, 2021
3ca8ac0
Export symbols of FSavedMove_My and FNetworkPredictionData_Client_My
Naios Dec 5, 2021
e0ac6fe
Merge pull request #312 from Naios/export-fix
dyanikoglu Dec 13, 2021
bc41c7d
Support draw debug colors on multiplayer
ameaninglessname Dec 13, 2021
5eecd98
Merge pull request #316 from ameaninglessname/dev_fix_debug_draw_on_m…
dyanikoglu Dec 14, 2021
542f844
Make main anim instance optional, ensure everything is initialized pr…
dyanikoglu Dec 14, 2021
d710b4d
Bump version to 4.22.0
dyanikoglu Dec 14, 2021
131b16c
Merge pull request #317 from dyanikoglu/dev
dyanikoglu Dec 14, 2021
3394add
Bump version for major Unreal 5.0 update
dyanikoglu Feb 26, 2022
c0fc7cd
Ensure thread safety for animation graph, update values inside animat…
dyanikoglu Feb 26, 2022
d8f1069
Fix #338
dyanikoglu Feb 26, 2022
72d0265
Fix #326 Bow_AnimBP is not in use
dyanikoglu Feb 26, 2022
92c31ef
Fix #343 Placed character turn their head to left
dyanikoglu Feb 26, 2022
8620aa5
Modernize animation blueprint property accesses with linked variables
dyanikoglu Feb 26, 2022
5eb3a7f
Update level with dynamic lighting, bump plugin version in widget
dyanikoglu Feb 26, 2022
09e6c17
Initial work for Enhanced Input Component implementation
dyanikoglu Feb 26, 2022
88543ce
Update Readme, remove old input stuff, new steps for enhanced input s…
dyanikoglu Feb 26, 2022
61badbb
Delete DefaultInput.ini
dyanikoglu Feb 26, 2022
1c4d2d0
Finishing up Enhanced Input component integration, also various clean…
dyanikoglu Feb 27, 2022
b35bdc2
Multiplayer support for enhanced input plugin
dyanikoglu Feb 27, 2022
7f323c9
Readme_Content_3
dyanikoglu Feb 27, 2022
792e2b7
Delete Screenshot 2022-02-27 120150.png
dyanikoglu Feb 27, 2022
69f482b
Add files via upload
dyanikoglu Feb 27, 2022
607f37c
Add files via upload
dyanikoglu Feb 27, 2022
dd3b51d
Update README.md
dyanikoglu Feb 27, 2022
5e553e2
Merge remote-tracking branch 'origin/main' into dev
dyanikoglu Feb 27, 2022
ca073d0
Merge pull request #357 from dyanikoglu/dev
dyanikoglu Feb 27, 2022
8a492e1
Ensure thread safety on anim instance class, do not set variables fro…
dyanikoglu Feb 27, 2022
2e77414
Add missing function back, add protected keyword
dyanikoglu Feb 27, 2022
7ec6b13
Update header with more maintainable one, contributors are already ke…
dyanikoglu Feb 27, 2022
de08366
Delete Readme_Content_1.png
dyanikoglu Feb 27, 2022
29ed929
Bump version to 4.23.1
dyanikoglu Feb 27, 2022
dcd5d2c
Add missing function back
dyanikoglu Feb 27, 2022
423bc4d
Merge pull request #358 from dyanikoglu/dev
dyanikoglu Feb 27, 2022
be704f5
Do not refresh bones while not rendered
dyanikoglu Feb 27, 2022
a035c9e
Make Enhanced Input System mandatory
dyanikoglu Mar 1, 2022
1e9ca68
fix(build): fix build/packages issue
CanisHelix Mar 3, 2022
683edc7
feat(standards): update to comply with new c++ standards
CanisHelix Mar 5, 2022
49e6cc1
Merge pull request #365 from CanisHelix/dev
dyanikoglu Mar 5, 2022
0ea77f5
Bump version
dyanikoglu Mar 7, 2022
9cb3622
Merge pull request #366 from dyanikoglu/dev
dyanikoglu Mar 7, 2022
b27d3a7
Update README.md
dyanikoglu Mar 21, 2022
1e16aa2
Update README.md
dyanikoglu Mar 21, 2022
c8bd2a1
Cleanup whitespace, some typos, missing virtual
Drakynfly Mar 22, 2022
edaf918
Redundant qualifier removal
Drakynfly Mar 22, 2022
91444a8
More typos
Drakynfly Mar 22, 2022
bec249b
Fix incorrect conditions in CalculateQuadrant
dyanikoglu Mar 22, 2022
8b19387
One more typo
Drakynfly Mar 23, 2022
8fab18d
Merge pull request #369 from Drakynfly/project-cleanup
dyanikoglu Mar 23, 2022
d3cbccf
Fix packaging errors
dyanikoglu Apr 17, 2022
9f1bf64
Fix typo from previous commit
dyanikoglu Apr 17, 2022
906bb30
Bump plugin version
dyanikoglu Apr 19, 2022
f68a77e
Merge pull request #381 from dyanikoglu/dev
dyanikoglu Apr 19, 2022
0930f7b
Plugin works fine in consoles so far, update the readme
dyanikoglu Apr 19, 2022
e0c4128
IsValid check for AALSPlayerController#OnPossess
ImBenji03 Jun 2, 2022
608137b
Fix deadzone not working for left/right movement
romanmaksy Jun 24, 2022
a82b836
Add 0.1 "Down" trigger to RightMovementAction for consistency with Fo…
romanmaksy Jun 24, 2022
7bac6fe
Merge pull request #393 from romanmaksy/fix-horizontal-deadzones
dyanikoglu Jun 24, 2022
aca2385
Merge pull request #390 from YesItsBenji/patch-1
dyanikoglu Jun 24, 2022
727344b
Update FUNDING.yml
dyanikoglu Sep 26, 2022
9e99a8a
fix : PossessedCharacter may be null .
murataka Sep 27, 2022
611e10f
Fix OnRep_VisibleMesh parameter naming
ameaninglessname Oct 2, 2022
3b829b2
Merge pull request #414 from murataka/dev
dyanikoglu Dec 13, 2022
3ab9060
Merge pull request #415 from ameaninglessname/main-fix-parameter-naming
dyanikoglu Dec 13, 2022
3a78bd3
Merge remote-tracking branch 'origin/main' into dev
dyanikoglu Dec 13, 2022
42c3b36
Use Bink as audio encoder for audio assets
dyanikoglu Dec 13, 2022
0b0a12a
Disable URO by default. It should be activated manually by users in need
dyanikoglu Dec 13, 2022
0edb2fe
Bump version to 4.24.0
dyanikoglu Dec 13, 2022
c85ea38
Update readme with new unreal version
dyanikoglu Dec 13, 2022
efec6e7
Fix deprecated access for skeletal mesh asset
dyanikoglu Dec 13, 2022
d9d6286
Merge pull request #426 from dyanikoglu/dev
dyanikoglu Dec 13, 2022
e658422
Set preview asset as AnimMane for anim bp
dyanikoglu Dec 13, 2022
dbcec59
Remove deprecated entry for yml file
dyanikoglu Dec 13, 2022
6b37244
Resave audio assets to refresh bink encoding data
dyanikoglu Nov 10, 2023
55ac586
Update plugin version
dyanikoglu Nov 10, 2023
30bd7d2
Fix uninitialized variables & python script naming conflicts
dyanikoglu Nov 10, 2023
1e42bba
Fix asset compile warnings
dyanikoglu Nov 10, 2023
5b5a9fa
Merge remote-tracking branch 'origin/main' into dev
dyanikoglu Nov 10, 2023
de66a3d
Update README.md
dyanikoglu Nov 10, 2023
1102689
Delete .github/FUNDING.yml
dyanikoglu Nov 10, 2023
1b57b7f
Update README.md
dyanikoglu Nov 10, 2023
077025b
Added Missing Headers to allow compilation without PCH
Tondorian Mar 14, 2023
543ec86
Fixing last bit of warnings
dyanikoglu Nov 10, 2023
0c2912b
Update plugin version on GUI
dyanikoglu Nov 10, 2023
833e819
Fix 5.4 compile issue
Jul 9, 2024
f31f57e
Fix anim bp compile issue after 5.4 upgrade
Jul 9, 2024
7799bfd
Bump plugin version to 4.26
Jul 9, 2024
d765a28
Fix AI
AchimTuran Nov 24, 2023
ec22237
Fix include errors while precompiling the plugin
Jul 9, 2024
339921f
Update README.md
dyanikoglu Jul 9, 2024
5b20538
Update Invite Link
dyanikoglu Jul 10, 2024
812b73d
Fix invite link
dyanikoglu Jul 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

21 changes: 12 additions & 9 deletions ALSV4_CPP.uplugin
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"FileVersion": 3,
"Version": 1,
"VersionName": "4.19",
"VersionName": "4.26.0",
"FriendlyName": "Advanced Locomotion System Community",
"Description": "Performance optimized community version of LongmireLocomotion's Advanced Locomotion System V4",
"Category": "Animation",
"CreatedBy": "Doga Can Yanikoglu",
"CreatedByURL": "https://github.com/dyanikoglu",
"DocsURL": "https://github.com/dyanikoglu/ALS-Community",
"MarketplaceURL": "https://www.unrealengine.com/marketplace/en-US/product/advanced-locomotion-system-v1",
"SupportURL": "https://github.com/dyanikoglu/ALS-Community/issues",
"EngineVersion": "4.26.0",
"EngineVersion": "5.4.0",
"EnabledByDefault": true,
"CanContainContent": true,
"IsBetaVersion": false,
Expand All @@ -29,10 +28,14 @@
]
}
],
"Plugins": [
{
"Name": "Niagara",
"Enabled": true
}
]
"Plugins": [
{
"Name": "Niagara",
"Enabled": true
},
{
"Name": "EnhancedInput",
"Enabled": true
}
]
}
37 changes: 0 additions & 37 deletions Config/DefaultInput.ini

This file was deleted.

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 modified Content/AdvancedLocomotionV4/Audio/Footsteps/Concrete_Run_01.uasset
Binary file not shown.
Binary file modified Content/AdvancedLocomotionV4/Audio/Footsteps/Concrete_Run_02.uasset
Binary file not shown.
Binary file modified Content/AdvancedLocomotionV4/Audio/Footsteps/Concrete_Run_03.uasset
Binary file not shown.
Binary file modified Content/AdvancedLocomotionV4/Audio/Footsteps/Concrete_Run_04.uasset
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 modified Content/AdvancedLocomotionV4/Audio/UI/Click.uasset
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.
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.
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 modified Content/AdvancedLocomotionV4/Blueprints/UI/ALS_HUD.uasset
Binary file not shown.
Binary file not shown.
Binary file modified Content/AdvancedLocomotionV4/Levels/ALS_DemoLevel.umap
Binary file not shown.
43 changes: 23 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
# Advanced Locomotion System Community
# Advanced Locomotion System - Community Version
![image](https://github.com/dyanikoglu/ALS-Community/raw/main/Resources/Readme_Content_2.gif)

Replicated and optimized community version of [Advanced Locomotion System V4](https://www.unrealengine.com/marketplace/en-US/product/advanced-locomotion-system-v1) for **Unreal Engine 4.26** with additional bug fixes.
Replicated and optimized version of [Advanced Locomotion System V4](https://www.unrealengine.com/marketplace/en-US/product/advanced-locomotion-system-v1) for **Unreal Engine 5.4** with additional bug fixes

<p align="center">
<a href="https://discord.gg/6yhHP2e8Jx"><img src="https://i.imgur.com/LP9bZQj.png"></a>
</p>

## About This Repository

Advanced Locomotion system is built upon pretty outdated animation programming techniques of pre Unreal Engine 5 era, and I highly recommended to utilize other available locomotion systems, such as Epic's Lyra sample project. This repository will only receive engine compatibility fixes from now.

## Supported Platforms
- Windows
- Linux

*Mac, Android, IOS, and console builds are not tested and supported at the moment. Use the plugin on those platforms with your own risk.*
*Console, Mac and mobile platforms are not tested and supported at the moment. Use the plugin on those platforms with your own risk.*

## Features
- Based on latest marketplace release (V4) of Advanced Locomotion System
- Fully implemented in C++
- Full replication support with low bandwidth usage
- Plugin structure
- Highly optimized for production
- Mantling and debugging features are implemented as a separate plug-in/plug-out type actor component to reduce total overhead on base character class
- Improved footstep behavior with Niagara particle & decal support.
- Lots of bug fixes additional to marketplace version
- Fully implemented and optimized in C++. Implementation is based on latest marketplace release (V4) of ALS
- Complete replication support with low bandwidth usage (Ragdoll replication is in experimental state)
- Redesigned as plugin
- Animation blueprint is optimized with new property binding feature
- Player input is handled with new Enhanced Input Plugin
- Mantling and debugging features are implemented as separate actor components to reduce total overhead on base character class
- Improved footstep system with decal & Niagara particle support
- Lots of additional bug fixes

## Known Issues & Discussion
- See [Issues](https://github.com/dyanikoglu/ALS-Community/issues) section for list of known issues
- See [Discussions](https://github.com/dyanikoglu/ALS-Community/discussions) section to discuss anything about the plugin, and ask questions. Please do not open an issue to ask questions about the plugin.

## Setting Up The Plugin
- **C++ project is a requirement. BP projects are currently not supported.**
- Clone the repository inside your project's `Plugins` folder, or download the latest release and extract it into your project's `Plugins` folder.
- Put `Config/DefaultInput.ini` from the plugin folder inside your project's config folder. If your project already have this .ini file, merge it into yours.
- Regenerate visual studio project files and build your project.
- Launch the project, and enable plugin content viewer as seen below. This will show contents of the plugin in your content browser:
![image](https://github.com/dyanikoglu/ALS-Community/raw/main/Resources/Readme_Content_1.png)
- See [Discussions](https://github.com/dyanikoglu/ALS-Community/discussions) section to discuss anything about the plugin, and ask questions. Please do not open an issue for questions.

## Documentation
Instructions for setting up the plugin can be found on [Wiki](https://github.com/dyanikoglu/ALS-Community/wiki/Setting-Up-The-Plugin) section.

## License & Contribution
**Source code** of the plugin is licensed under MIT license, and other developers are encouraged to fork the repository, open issues & pull requests to help the development.
Binary file removed Resources/Readme_Content_1.png
Binary file not shown.
Binary file added Resources/Readme_Content_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Readme_Content_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 4 additions & 7 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 All @@ -14,7 +10,8 @@ public ALSV4_CPP(ReadOnlyTargetRules Target) : base(Target)
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;

PublicDependencyModuleNames.AddRange(new[]
{"Core", "CoreUObject", "Engine", "InputCore", "NavigationSystem", "AIModule", "GameplayTasks","PhysicsCore", "Niagara"});
{"Core", "CoreUObject", "Engine", "InputCore", "NavigationSystem", "AIModule", "GameplayTasks","PhysicsCore", "Niagara", "EnhancedInput"
});

PrivateDependencyModuleNames.AddRange(new[] {"Slate", "SlateCore"});
}
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
25 changes: 19 additions & 6 deletions Source/ALSV4_CPP/Private/AI/ALSAIController.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// 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"

#include "Character/ALSBaseCharacter.h"

AALSAIController::AALSAIController()
{
}
Expand All @@ -20,3 +18,18 @@ void AALSAIController::OnPossess(APawn* InPawn)
RunBehaviorTree(Behaviour);
}
}

FVector AALSAIController::GetFocalPointOnActor(const AActor* Actor) const
{
if (Actor == nullptr)
{
return FAISystem::InvalidLocation;
}
const APawn* FocusPawn = Cast<APawn>(Actor);
if (FocusPawn)
{
// Focus on pawn's eye view point
return FocusPawn->GetPawnViewLocation();
}
return Actor->GetActorLocation();
}
9 changes: 3 additions & 6 deletions Source/ALSV4_CPP/Private/AI/ALS_BTTask_GetRandomLocation.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// 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"
#include "NavFilters/NavigationQueryFilter.h"
#include "BehaviorTree/BlackboardComponent.h"
#include "BehaviorTree/Blackboard/BlackboardKeyType_Vector.h"

Expand Down
9 changes: 3 additions & 6 deletions Source/ALSV4_CPP/Private/AI/ALS_BTTask_SetFocusToPlayer.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// 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 "Engine/World.h"
#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"
#include "AIController.h"

Expand Down
Loading