From 7baedabeeda5c2d236e674dfb239815557596dac Mon Sep 17 00:00:00 2001 From: Lukas Bagaric Date: Sun, 18 Feb 2024 06:56:32 +0100 Subject: [PATCH] Dont Send More Than 1 CAP Per Tick --- Classes/bbPlayer.uc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Classes/bbPlayer.uc b/Classes/bbPlayer.uc index 6822b98..3ba44ab 100644 --- a/Classes/bbPlayer.uc +++ b/Classes/bbPlayer.uc @@ -3275,15 +3275,20 @@ function ServerApplyInput(float RefTimeStamp, int NumBits, ReplBuffer B) { IGPlus_SavedInputChain.RemoveOutdatedNodes(Old.TimeStamp); IGPlus_WarpFixUpdate = true; + IGPlus_WantCAP = true; } function IGPlus_AcknowledgeInput() { + if (IGPlus_WantCAP == false) + return; + if (IsInState('Dying') == false && IGPlus_SavedInputChain.Newest.bLive) { // always request CAP while alive // when dead you dont want players to still be receiving CAPs, // that screws up respawning IGPlus_SendCAP(); } + IGPlus_WantCAP = false; } function float CalculateLocError(float DeltaTime, EPhysics Phys, vector ClientVel) {