Closed MilosLukic closed 3 years ago
Looks like they're receiving target actor location without including capsule size. I believe it's caused by missing override for getting actors's eye position/rotation in our character class
Fixed with 15e4ebb, will be included in next release @MilosLukic
Hey @dyanikoglu, unfortunately I am still getting that issue, I installed the 4.20 version on a fresh blank project. I don't think that the focus function was the issue, because eye rotation is correct with all the AI actors. The problem is in hands rotation, which is sometimes (randomly) not aligned with eye rotation. What I noticed so far:
Video using 4.20 https://drive.google.com/file/d/1-DWESa_CY8mj1AGM57BK1NGIKUJnqbrW/view?usp=sharing
If you have same problem - https://github.com/dyanikoglu/ALS-Community/issues/135 . You can do this. It may be rough, but it works for me.
@Naineten it works! I tested it and the AI has correct rotation now. Thank you.
So we basically disable the spine rotation by setting the alpha to 1.0 if the rotation mode is "Aiming". Could this have any unwanted side effects? I'm not very familiar with enable_spinerotation functionality
Why you think that 1.0 is disable of the spine rotation? 1 == True, 0 == False. Our problem is that sometimes animation have Curve_EnableSpineRotation == 0 when is must be ==1. And i don't know why this problem happens. I just set it by 1 manually on aim (rotation mode). Spine rotation is default in any other cases.
My bad, I'm not very familiar with the layering, thanks for the clarification. The part that bothered me the most was the randomness - it was not rotating properly in cca 30% cases i think.
Describe the bug Hi, there is some inconsistency when AI controller is aiming and is focusing on the player. Sometimes it follows him with the weapon, and sometimes it follows him just with the head. It seems that the behavior is determined randomly and does not change after time. For example in the video below I used the test scene and left only archers in it. One archer was acting as expected - it was following the player with the weapon, and the other one was following him just with his head. I started the project multiple times, and next time the second one was acting as expected and the first one didn't - it seems quite random.
The pawn rotation (eyes rotation) is perfectly fine, you can also see in the video that the head is oriented in the right way. The issue is only when the pawn is not moving, if it's moving, it rotates the yaw as it should. The pitch rotation is also working as expected in all cases.
To Reproduce Steps to reproduce the behavior:
Expected behavior I'd expect that when aiming the weapon would always follow the target, not just sometimes.
Screenshots and Videos https://drive.google.com/file/d/1-JNtF6xQTal8nlsk0-WNl9zYi45VqWBH/view?usp=sharing
I know that working on community projects and fixing random bugs is not a pleasant thing to do, so I'm ready to help with fixing the issue, if you don't have the time (In that case I'd be happy to get some guidance where to look for the bug).