source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

[TF2] fix (most) shield charge prediction errors

Open claiwe opened this issue 8 months ago • 1 comments

Description

This PR fixes the prediction errors generated for shield charge meters caused by the client not applying the TF_COND_SHIELD_CHARGE condition (and thus the charge meter being off by a few ticks).

claiwe avatar Mar 16 '25 06:03 claiwe

haven't tested this yet, but i think this'd only fix prediction for when you begin the charge

afaik these are the parts of demoknight shield charging that's unpredicted: - starting the charge (you will suddenly rubberband forwards) - ending a charge by running out of charge meter (you will suddenly rubberband backwards) - ending a charge by hitting an obstacle (walls, players, etc) - the charge regen itself (constant pred errors with cl_showerror 2 while your charge is regenerating)

(https://github.com/ValveSoftware/Source-1-Games/issues/6017)

wgetJane avatar Mar 16 '25 08:03 wgetJane