Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlayMontageAndWaitForEvent doesn't work on clients #111

Open
tommygod3 opened this issue Mar 20, 2023 · 5 comments
Open

PlayMontageAndWaitForEvent doesn't work on clients #111

tommygod3 opened this issue Mar 20, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@tommygod3
Copy link

When playing as a client, PlayMontageAndWaitForEvent::OnGameplayEvent is sometimes not called. When this happens, it results in the FireGun ability not spawning any projectile on cast:

bug.mp4

This can be recreated with relative consistency in the PIE by playing as a second player and using a listen server. When packaging the game and playing over a real network, the result is much worse and the client is hardly able to spawn any projectiles at all (as seen in video).

I have tested this on 5.0 branch and version and it doesn't happen there, so it seems like it might be an engine issue?

Any help would be greatly appreciated, love this project and have been using PlayMontageAndWaitForEvent a lot!

@tommygod3
Copy link
Author

Have also tested on 5.2 and issue still present

@tommygod3
Copy link
Author

@tranek any thoughts? Would appreciate some advice as this basically makes PlayMontageAndWaitForEvent unusable

@tranek
Copy link
Owner

tranek commented Apr 16, 2023

I isolated it down to the call to StartAimDownSights(). I don't know why this is breaking it. Unhook the call to that node in the ADS GA and it works fine. There might have been changes to the CMC that need to get propagated to the ADS slow movement speed implementation.

The issue is also seen while sprinting and firing because of the customizations to the CMC.

This applies to any AnimNotifies, not just the GameplayTag events from PlayMontageAndWaitForEvent and it is also an issue with the built-in PlayMontageAndWait AbilityTask.

I don't have time to investigate any further right now.

image

@tranek tranek added the bug Something isn't working label Apr 16, 2023
@hamar02
Copy link

hamar02 commented Jul 12, 2023

i also have this issue, any fix yet?

@quifi
Copy link

quifi commented Dec 5, 2023

Have the same issue. After some digging (which is also a good practice to understanding GAS), it seems the problem is caused by EndAbility with bReplicateEndAbility=true in UGDGA_FireGun::EventReceived. After passing bReplicateEndAbility=false, FireGun works smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants