css_enhanced_waf/game/shared/cstrike
Kamay Xutax cfa5b12eea Fixed local player interpolation and added debug_screenshot_bullet_position
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 !
2024-07-14 00:54:57 +02:00
..
bot 1 2020-04-22 12:56:21 -04:00
achievements_cs.cpp gameui: add console button to main menu 2022-02-05 22:33:45 +03:00
achievements_cs.h 1 2020-04-22 12:56:21 -04:00
basecsgrenade_projectile.cpp Fixed lag compensation for animations 2024-07-11 02:12:51 +02:00
basecsgrenade_projectile.h 1 2020-04-22 12:56:21 -04:00
cs_achievement_constants.h 1 2020-04-22 12:56:21 -04:00
cs_achievementdefs.h 1 2020-04-22 12:56:21 -04:00
cs_ammodef.cpp 1 2020-04-22 12:56:21 -04:00
cs_ammodef.h 1 2020-04-22 12:56:21 -04:00
cs_blackmarket.cpp 1 2020-04-22 12:56:21 -04:00
cs_blackmarket.h 1 2020-04-22 12:56:21 -04:00
cs_gamemovement.cpp cstrike: add autojump convar 2023-08-22 11:11:39 +03:00
cs_gamerules.cpp 1 2020-04-22 12:56:21 -04:00
cs_gamerules.h 1 2020-04-22 12:56:21 -04:00
cs_gamestats_shared.cpp 1 2020-04-22 12:56:21 -04:00
cs_gamestats_shared.h 1 2020-04-22 12:56:21 -04:00
cs_player_shared.cpp Fixed lag compensation for animations 2024-07-11 02:12:51 +02:00
cs_playeranimstate.cpp 1 2020-04-22 12:56:21 -04:00
cs_playeranimstate.h 1 2020-04-22 12:56:21 -04:00
cs_shareddefs.cpp 1 2020-04-22 12:56:21 -04:00
cs_shareddefs.h 1 2020-04-22 12:56:21 -04:00
cs_urlretrieveprices.cpp 1 2020-04-22 12:56:21 -04:00
cs_urlretrieveprices.h 1 2020-04-22 12:56:21 -04:00
cs_usermessages.cpp 1 2020-04-22 12:56:21 -04:00
cs_weapon_parse.cpp arm64 : fix clang compile errors 2022-06-05 01:13:14 +03:00
cs_weapon_parse.h 1 2020-04-22 12:56:21 -04:00
flashbang_projectile.cpp 1 2020-04-22 12:56:21 -04:00
flashbang_projectile.h 1 2020-04-22 12:56:21 -04:00
fx_cs_shared.cpp Fixed local player interpolation and added debug_screenshot_bullet_position 2024-07-14 00:54:57 +02:00
fx_cs_shared.h 1 2020-04-22 12:56:21 -04:00
hegrenade_projectile.cpp 1 2020-04-22 12:56:21 -04:00
hegrenade_projectile.h 1 2020-04-22 12:56:21 -04:00
weapon_ak47.cpp 1 2020-04-22 12:56:21 -04:00
weapon_aug.cpp 1 2020-04-22 12:56:21 -04:00
weapon_awp.cpp 1 2020-04-22 12:56:21 -04:00
weapon_basecsgrenade.cpp 1 2020-04-22 12:56:21 -04:00
weapon_basecsgrenade.h 1 2020-04-22 12:56:21 -04:00
weapon_c4.cpp 1 2020-04-22 12:56:21 -04:00
weapon_c4.h 1 2020-04-22 12:56:21 -04:00
weapon_csbase.cpp Do not exclude useful send prop variables 2024-04-03 00:21:08 +02:00
weapon_csbase.h 1 2020-04-22 12:56:21 -04:00
weapon_csbasegun.cpp 1 2020-04-22 12:56:21 -04:00
weapon_csbasegun.h 1 2020-04-22 12:56:21 -04:00
weapon_deagle.cpp 1 2020-04-22 12:56:21 -04:00
weapon_elite.cpp 1 2020-04-22 12:56:21 -04:00
weapon_famas.cpp 1 2020-04-22 12:56:21 -04:00
weapon_fiveseven.cpp 1 2020-04-22 12:56:21 -04:00
weapon_flashbang.cpp 1 2020-04-22 12:56:21 -04:00
weapon_flashbang.h 1 2020-04-22 12:56:21 -04:00
weapon_g3sg1.cpp 1 2020-04-22 12:56:21 -04:00
weapon_galil.cpp 1 2020-04-22 12:56:21 -04:00
weapon_glock.cpp 1 2020-04-22 12:56:21 -04:00
weapon_hegrenade.cpp 1 2020-04-22 12:56:21 -04:00
weapon_hegrenade.h 1 2020-04-22 12:56:21 -04:00
weapon_knife.cpp 1 2020-04-22 12:56:21 -04:00
weapon_knife.h 1 2020-04-22 12:56:21 -04:00
weapon_m3.cpp 1 2020-04-22 12:56:21 -04:00
weapon_m4a1.cpp 1 2020-04-22 12:56:21 -04:00
weapon_m249.cpp 1 2020-04-22 12:56:21 -04:00
weapon_mac10.cpp 1 2020-04-22 12:56:21 -04:00
weapon_mp5navy.cpp 1 2020-04-22 12:56:21 -04:00
weapon_p90.cpp 1 2020-04-22 12:56:21 -04:00
weapon_p228.cpp 1 2020-04-22 12:56:21 -04:00
weapon_scout.cpp 1 2020-04-22 12:56:21 -04:00
weapon_sg550.cpp 1 2020-04-22 12:56:21 -04:00
weapon_sg552.cpp 1 2020-04-22 12:56:21 -04:00
weapon_smokegrenade.cpp 1 2020-04-22 12:56:21 -04:00
weapon_smokegrenade.h 1 2020-04-22 12:56:21 -04:00
weapon_tmp.cpp 1 2020-04-22 12:56:21 -04:00
weapon_ump45.cpp 1 2020-04-22 12:56:21 -04:00
weapon_usp.cpp 1 2020-04-22 12:56:21 -04:00
weapon_xm1014.cpp 1 2020-04-22 12:56:21 -04:00