[TF2] Fix prediction for thermal thruster #908
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes this issue partially: ValveSoftware/Source-1-Games#6017
no more rubberbanding for the jetpack launches and sounds now play without delay or playing multiple times
unfixed, net_fakelag 100:
2025-02-28_16-55-29.mp4
fixed, net_fakelag 100:
2025-02-28_16-58-15.mp4
CAVEATS:
deploy/holster is still unpredicted, because when i make it predicted it can cause a materialsystem crash that idk how to debug
the crash happens rarely when you deploy the jetpack and it swaps the hud icon in tf_hud_itemeffectmeter
commenting out this line stops the crash from occurring (because it keeps the icon constant):
source-sdk-2013/src/game/client/tf/tf_hud_itemeffectmeter.cpp
Line 1067 in aea94b3
it does not crash if i keep m_bEnabled unpredicted so i left it unpredicted for now, if someone has any idea why that's happening then PLEASE tell me
also, this uses the kinda crappy self-stun prediction from #682 so i guess if you dont want that then just pull c2cd00b
(predicts the beginning of the self-stun but not the end of it)