ULyraGameplayAbility_RangedWeapon::StartRangedWeaponTargeting() creates a FScopedPredictionWindow at line 566 of LyraGameplayAbility_RangedWeapon.cpp
FScopedPredictionWindow ScopedPrediction(MyAbilityComponent, CurrentActivationInfo.GetActivationPredictionKey());
But this FScopedPredictionWindow seems to be useless.
Here is the reason:
StartRangedWeaponTargeting() only execute on locally controlled player.
On regular client (autonomous proxy), this constructor does nothing because IsNetSimulating() returns true.
On Listen server host (authority), the constructor does execute and sets the scoped key, but the host is authoritative — there’s no prediction to manage, no remote client to confirm the key to.