Kamay Xutax
cfa5b12eea
This check permits to fix interpolation problems on the local player that valve has been (fucking finally) caring about on counter-strike 2. To recall the original issue, the problem that Valve cared about is that interpolation had some problems with interpolating the local player because the screen would never in the first place match the tick "screen", because interpolation amount could never reach 0.0 or 1.0 Valve solution was to introduce bugs with lag compensating the local player and made the game worse, introducing a new way for cheaters to cheat even more on their games. I'm joking, but you can clearly see the outcome anyway. My solution is to simply set interpolation amount to 0.0 when a tick arrives. So when we shoot, we get the frame we shot with an interpolation amount at 0.0, perfectly aligned to user commands which is ideal for us. It might look a bit more unsmooth with lower fps but with high enough fps, the issue goes away anyway. It's not very noticeable which is very nice for us. No need to lag compensate the local player anymore ! |
||
---|---|---|
.. | ||
bot | ||
achievements_cs.cpp | ||
achievements_cs.h | ||
basecsgrenade_projectile.cpp | ||
basecsgrenade_projectile.h | ||
cs_achievement_constants.h | ||
cs_achievementdefs.h | ||
cs_ammodef.cpp | ||
cs_ammodef.h | ||
cs_blackmarket.cpp | ||
cs_blackmarket.h | ||
cs_gamemovement.cpp | ||
cs_gamerules.cpp | ||
cs_gamerules.h | ||
cs_gamestats_shared.cpp | ||
cs_gamestats_shared.h | ||
cs_player_shared.cpp | ||
cs_playeranimstate.cpp | ||
cs_playeranimstate.h | ||
cs_shareddefs.cpp | ||
cs_shareddefs.h | ||
cs_urlretrieveprices.cpp | ||
cs_urlretrieveprices.h | ||
cs_usermessages.cpp | ||
cs_weapon_parse.cpp | ||
cs_weapon_parse.h | ||
flashbang_projectile.cpp | ||
flashbang_projectile.h | ||
fx_cs_shared.cpp | ||
fx_cs_shared.h | ||
hegrenade_projectile.cpp | ||
hegrenade_projectile.h | ||
weapon_ak47.cpp | ||
weapon_aug.cpp | ||
weapon_awp.cpp | ||
weapon_basecsgrenade.cpp | ||
weapon_basecsgrenade.h | ||
weapon_c4.cpp | ||
weapon_c4.h | ||
weapon_csbase.cpp | ||
weapon_csbase.h | ||
weapon_csbasegun.cpp | ||
weapon_csbasegun.h | ||
weapon_deagle.cpp | ||
weapon_elite.cpp | ||
weapon_famas.cpp | ||
weapon_fiveseven.cpp | ||
weapon_flashbang.cpp | ||
weapon_flashbang.h | ||
weapon_g3sg1.cpp | ||
weapon_galil.cpp | ||
weapon_glock.cpp | ||
weapon_hegrenade.cpp | ||
weapon_hegrenade.h | ||
weapon_knife.cpp | ||
weapon_knife.h | ||
weapon_m3.cpp | ||
weapon_m4a1.cpp | ||
weapon_m249.cpp | ||
weapon_mac10.cpp | ||
weapon_mp5navy.cpp | ||
weapon_p90.cpp | ||
weapon_p228.cpp | ||
weapon_scout.cpp | ||
weapon_sg550.cpp | ||
weapon_sg552.cpp | ||
weapon_smokegrenade.cpp | ||
weapon_smokegrenade.h | ||
weapon_tmp.cpp | ||
weapon_ump45.cpp | ||
weapon_usp.cpp | ||
weapon_xm1014.cpp |