Predict typing indicator (#29551)

It greatly annoys me in the rare instance I do play.
This commit is contained in:
metalgearsloth
2024-06-29 13:33:56 +10:00
committed by GitHub
parent 4cc37a74dc
commit 9032231300
3 changed files with 57 additions and 63 deletions

View File

@@ -65,14 +65,13 @@ public sealed class TypingIndicatorSystem : SharedTypingIndicatorSystem
{
if (_isClientTyping == isClientTyping)
return;
_isClientTyping = isClientTyping;
// check if player controls any pawn
// check if player controls any entity.
if (_playerManager.LocalEntity == null)
return;
// send a networked event to server
RaiseNetworkEvent(new TypingChangedEvent(isClientTyping));
_isClientTyping = isClientTyping;
RaisePredictiveEvent(new TypingChangedEvent(isClientTyping));
}
private void OnShowTypingChanged(bool showTyping)