Skip to content

Commit

Permalink
Dont Send More Than 1 CAP Per Tick
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Feb 18, 2024
1 parent 6e0d26c commit 7baedab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/bbPlayer.uc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7baedab

Please sign in to comment.