css_enhanced_waf/game/shared
Kamay Xutax fbc45f4a64 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
..
cstrike Fixed local player interpolation and added debug_screenshot_bullet_position 2024-07-14 00:54:57 +02:00
dod add hl1,portal,dod source code 2022-04-16 12:05:19 +03:00
econ add source-sdk-2013 2022-03-01 23:00:42 +03:00
episodic 1 2020-04-22 12:56:21 -04:00
hl1 game(hl1): fix UTIL_DropToFloor 2022-08-31 18:22:56 +03:00
hl2 game: fix acid damage white flash bug 2022-08-04 16:29:21 +03:00
hl2mp game: fix death icon in hl2mp (hrgve/hl2dm-bugfix@6f7337d3f2) 2022-08-16 18:28:28 +03:00
Multiplayer add source-sdk-2013 2022-03-01 23:00:42 +03:00
portal game/client/portal: fix Polyhedron 2022-07-30 02:09:11 +03:00
sdk 1 2020-04-22 12:56:21 -04:00
sixense 1 2020-04-22 12:56:21 -04:00
achievement_saverestore.cpp 1 2020-04-22 12:56:21 -04:00
achievement_saverestore.h 1 2020-04-22 12:56:21 -04:00
achievementmgr.cpp game: make achievements work without steam 2022-04-16 13:08:46 +03:00
achievementmgr.h 1 2020-04-22 12:56:21 -04:00
achievements_and_stats_interface.h 1 2020-04-22 12:56:21 -04:00
achievements_hlx.cpp 1 2020-04-22 12:56:21 -04:00
activitylist.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
activitylist.h Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
ai_activity.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
ai_debug_shared.h 1 2020-04-22 12:56:21 -04:00
ammodef.cpp 1 2020-04-22 12:56:21 -04:00
ammodef.h 1 2020-04-22 12:56:21 -04:00
animation.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
animation.h 1 2020-04-22 12:56:21 -04:00
apparent_velocity_helper.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
base_playeranimstate.cpp Improved lag compensation for animations 2024-07-10 16:14:53 +02:00
base_playeranimstate.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
baseachievement.cpp game: fix integer division by zero in baseachievement( fixes #87 ) 2022-07-31 04:40:53 +03:00
baseachievement.h 1 2020-04-22 12:56:21 -04:00
basecombatcharacter_shared.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
basecombatweapon_shared.cpp game: init uninitialized variables 2022-05-01 20:09:55 +03:00
basecombatweapon_shared.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
baseentity_shared.cpp game: fixed infinite recursion by using incorrect key on value conversation. (ValveSoftware/source-sdk-2013#380) 2022-08-16 17:21:59 +03:00
baseentity_shared.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
basegrenade_shared.cpp Improved prediction & fix being 1 off tick problems 2024-07-13 19:18:03 +02:00
basegrenade_shared.h 1 2020-04-22 12:56:21 -04:00
baseparticleentity.cpp game/server: fix particle transition from trigger_vphysics_motion 2022-10-31 19:59:10 +03:00
baseparticleentity.h game/server: fix particle transition from trigger_vphysics_motion 2022-10-31 19:59:10 +03:00
baseplayer_shared.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
baseplayer_shared.h 1 2020-04-22 12:56:21 -04:00
baseprojectile.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
baseprojectile.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
baseviewmodel_shared.cpp 1 2020-04-22 12:56:21 -04:00
baseviewmodel_shared.h 1 2020-04-22 12:56:21 -04:00
beam_flags.h 1 2020-04-22 12:56:21 -04:00
beam_shared.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
beam_shared.h 1 2020-04-22 12:56:21 -04:00
cam_thirdperson.cpp Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
cam_thirdperson.h Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
choreoactor.cpp 1 2020-04-22 12:56:21 -04:00
choreoactor.h 1 2020-04-22 12:56:21 -04:00
choreochannel.cpp 1 2020-04-22 12:56:21 -04:00
choreochannel.h 1 2020-04-22 12:56:21 -04:00
choreoevent.cpp fpersmissive fixes 2022-06-15 21:59:06 +03:00
choreoevent.h 1 2020-04-22 12:56:21 -04:00
choreoscene.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
choreoscene.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
collisionproperty.cpp fix dedicated build 2022-08-01 00:38:10 +03:00
collisionproperty.h 1 2020-04-22 12:56:21 -04:00
cs_achievements_and_stats_interface.cpp 1 2020-04-22 12:56:21 -04:00
cs_achievements_and_stats_interface.h 1 2020-04-22 12:56:21 -04:00
death_pose.cpp 1 2020-04-22 12:56:21 -04:00
death_pose.h 1 2020-04-22 12:56:21 -04:00
debugoverlay_null.cpp 1 2020-04-22 12:56:21 -04:00
debugoverlay_shared.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
debugoverlay_shared.h 1 2020-04-22 12:56:21 -04:00
decals.cpp Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
decals.h 1 2020-04-22 12:56:21 -04:00
effect_color_tables.h 1 2020-04-22 12:56:21 -04:00
effect_dispatch_data.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
effect_dispatch_data.h 1 2020-04-22 12:56:21 -04:00
ehandle.cpp 1 2020-04-22 12:56:21 -04:00
ehandle.h Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
entitydatainstantiator.h arm64 : fix intptr_t size 2022-06-05 01:12:32 +03:00
entitylist_base.cpp 1 2020-04-22 12:56:21 -04:00
entitylist_base.h 1 2020-04-22 12:56:21 -04:00
EntityParticleTrail_Shared.cpp 1 2020-04-22 12:56:21 -04:00
entityparticletrail_shared.h 1 2020-04-22 12:56:21 -04:00
env_detail_controller.cpp 1 2020-04-22 12:56:21 -04:00
env_detail_controller.h 1 2020-04-22 12:56:21 -04:00
env_meteor_shared.cpp 1 2020-04-22 12:56:21 -04:00
env_meteor_shared.h 1 2020-04-22 12:56:21 -04:00
env_wind_shared.cpp 1 2020-04-22 12:56:21 -04:00
env_wind_shared.h 1 2020-04-22 12:56:21 -04:00
eventlist.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
eventlist.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
expressionsample.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
forcefeedback.h 1 2020-04-22 12:56:21 -04:00
func_dust_shared.h 1 2020-04-22 12:56:21 -04:00
func_ladder.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
func_ladder.h 1 2020-04-22 12:56:21 -04:00
gameeventdefs.h 1 2020-04-22 12:56:21 -04:00
GameEventListener.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
gamemovement.cpp game: quantum crouch fix 2022-08-04 16:30:30 +03:00
gamemovement.h 1 2020-04-22 12:56:21 -04:00
gamerules.cpp Fov cvar fix (#98) 2022-08-03 16:22:17 +03:00
gamerules.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
gamerules_register.cpp 1 2020-04-22 12:56:21 -04:00
gamerules_register.h 1 2020-04-22 12:56:21 -04:00
GameStats.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
gamestats.h 1 2020-04-22 12:56:21 -04:00
gamestringpool.cpp 1 2020-04-22 12:56:21 -04:00
gamestringpool.h 1 2020-04-22 12:56:21 -04:00
gamevars_shared.cpp 1 2020-04-22 12:56:21 -04:00
gamevars_shared.h 1 2020-04-22 12:56:21 -04:00
groundlink.h 1 2020-04-22 12:56:21 -04:00
hintmessage.cpp 1 2020-04-22 12:56:21 -04:00
hintmessage.h 1 2020-04-22 12:56:21 -04:00
hintsystem.cpp 1 2020-04-22 12:56:21 -04:00
hintsystem.h 1 2020-04-22 12:56:21 -04:00
ichoreoeventcallback.h 1 2020-04-22 12:56:21 -04:00
IEffects.h 1 2020-04-22 12:56:21 -04:00
igamemovement.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
igamesystem.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
igamesystem.h 1 2020-04-22 12:56:21 -04:00
imovehelper.h 1 2020-04-22 12:56:21 -04:00
in_buttons.h 1 2020-04-22 12:56:21 -04:00
interval.cpp 1 2020-04-22 12:56:21 -04:00
interval.h 1 2020-04-22 12:56:21 -04:00
iplayeranimstate.h 1 2020-04-22 12:56:21 -04:00
ipredictionsystem.h 1 2020-04-22 12:56:21 -04:00
iscenetokenprocessor.h 1 2020-04-22 12:56:21 -04:00
itempents.h 1 2020-04-22 12:56:21 -04:00
IVehicle.h 1 2020-04-22 12:56:21 -04:00
mapdata_shared.h 1 2020-04-22 12:56:21 -04:00
mapentities_shared.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
mapentities_shared.h 1 2020-04-22 12:56:21 -04:00
ModelSoundsCache.cpp Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
ModelSoundsCache.h Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
movetype_push.h 1 2020-04-22 12:56:21 -04:00
movevars_shared.cpp 1 2020-04-22 12:56:21 -04:00
movevars_shared.h 1 2020-04-22 12:56:21 -04:00
mp_shareddefs.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
mp_shareddefs.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
multiplay_gamerules.cpp game: fix UB when reading mapcycle 2023-08-04 14:55:13 +03:00
multiplay_gamerules.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
npcevent.h 1 2020-04-22 12:56:21 -04:00
obstacle_pushaway.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
obstacle_pushaway.h 1 2020-04-22 12:56:21 -04:00
particle_parse.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
particle_parse.h 1 2020-04-22 12:56:21 -04:00
particle_property.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
particle_property.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
particle_property_inlines.h 1 2020-04-22 12:56:21 -04:00
particlesystemquery.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
physics_main_shared.cpp 1 2020-04-22 12:56:21 -04:00
physics_saverestore.cpp amd64: fix multithread, fix vgui, fix physmodels 2022-06-05 01:44:42 +03:00
physics_saverestore.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
physics_shared.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
physics_shared.h 1 2020-04-22 12:56:21 -04:00
playerclass_info_parse.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
playerclass_info_parse.h 1 2020-04-22 12:56:21 -04:00
playernet_vars.h 1 2020-04-22 12:56:21 -04:00
point_bonusmaps_accessor.cpp 1 2020-04-22 12:56:21 -04:00
point_bonusmaps_accessor.h 1 2020-04-22 12:56:21 -04:00
point_posecontroller.cpp 1 2020-04-22 12:56:21 -04:00
point_posecontroller.h 1 2020-04-22 12:56:21 -04:00
positionwatcher.h 1 2020-04-22 12:56:21 -04:00
precache_register.cpp 1 2020-04-22 12:56:21 -04:00
precache_register.h 1 2020-04-22 12:56:21 -04:00
precipitation_shared.h 1 2020-04-22 12:56:21 -04:00
predictable_entity.h 1 2020-04-22 12:56:21 -04:00
predictableid.cpp 1 2020-04-22 12:56:21 -04:00
predictableid.h 1 2020-04-22 12:56:21 -04:00
predicted_viewmodel.cpp 1 2020-04-22 12:56:21 -04:00
predicted_viewmodel.h 1 2020-04-22 12:56:21 -04:00
predictioncopy.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
predictioncopy.h 1 2020-04-22 12:56:21 -04:00
props_shared.cpp fix some AddressSanitizer issues 2022-06-14 13:16:08 +03:00
props_shared.h fix some AddressSanitizer issues 2022-06-14 13:16:08 +03:00
querycache.cpp arm64 : fix intptr_t size 2022-06-05 01:12:32 +03:00
querycache.h 1 2020-04-22 12:56:21 -04:00
ragdoll_shared.cpp amd64: fix multithread, fix vgui, fix physmodels 2022-06-05 01:44:42 +03:00
ragdoll_shared.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
rope_helpers.cpp 1 2020-04-22 12:56:21 -04:00
rope_helpers.h 1 2020-04-22 12:56:21 -04:00
rumble_shared.h 1 2020-04-22 12:56:21 -04:00
saverestore.cpp amd64: fix multithread, fix vgui, fix physmodels 2022-06-05 01:44:42 +03:00
saverestore.h 1 2020-04-22 12:56:21 -04:00
saverestore_bitstring.h Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
saverestore_stringtable.h 1 2020-04-22 12:56:21 -04:00
saverestore_utlclass.h 1 2020-04-22 12:56:21 -04:00
saverestore_utlmap.h amd64: fix multithread, fix vgui, fix physmodels 2022-06-05 01:44:42 +03:00
saverestore_utlrbtree.h 1 2020-04-22 12:56:21 -04:00
saverestore_utlsymbol.h 1 2020-04-22 12:56:21 -04:00
saverestore_utlvector.h 1 2020-04-22 12:56:21 -04:00
SceneCache.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
SceneCache.h 1 2020-04-22 12:56:21 -04:00
sceneentity_shared.cpp 1 2020-04-22 12:56:21 -04:00
sceneentity_shared.h 1 2020-04-22 12:56:21 -04:00
sceneimage.cpp fpersmissive fixes 2022-06-15 21:59:06 +03:00
sceneimage.h 1 2020-04-22 12:56:21 -04:00
script_intro_shared.cpp 1 2020-04-22 12:56:21 -04:00
scriptevent.h 1 2020-04-22 12:56:21 -04:00
sequence_Transitioner.cpp 1 2020-04-22 12:56:21 -04:00
sequence_Transitioner.h 1 2020-04-22 12:56:21 -04:00
shared_classnames.h 1 2020-04-22 12:56:21 -04:00
shareddefs.h Improved lag compensation 2024-01-25 13:27:03 +01:00
SharedFunctorUtils.cpp 1 2020-04-22 12:56:21 -04:00
SharedFunctorUtils.h 1 2020-04-22 12:56:21 -04:00
sharedInterface.h 1 2020-04-22 12:56:21 -04:00
sheetsimulator.cpp 1 2020-04-22 12:56:21 -04:00
sheetsimulator.h 1 2020-04-22 12:56:21 -04:00
shot_manipulator.h 1 2020-04-22 12:56:21 -04:00
simtimer.cpp 1 2020-04-22 12:56:21 -04:00
simtimer.h 1 2020-04-22 12:56:21 -04:00
singleplay_gamerules.cpp 1 2020-04-22 12:56:21 -04:00
singleplay_gamerules.h 1 2020-04-22 12:56:21 -04:00
smoke_fog_overlay_shared.h 1 2020-04-22 12:56:21 -04:00
solidsetdefaults.h 1 2020-04-22 12:56:21 -04:00
SoundEmitterSystem.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
soundenvelope.cpp 1 2020-04-22 12:56:21 -04:00
soundenvelope.h 1 2020-04-22 12:56:21 -04:00
Sprite.cpp game: init uninitialized variables 2022-05-01 20:09:55 +03:00
Sprite.h 1 2020-04-22 12:56:21 -04:00
SpriteTrail.cpp 1 2020-04-22 12:56:21 -04:00
SpriteTrail.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
steamworks_gamestats.cpp add csrike source code 2022-03-02 11:45:17 +03:00
steamworks_gamestats.h add csrike source code 2022-03-02 11:45:17 +03:00
studio_shared.cpp 1 2020-04-22 12:56:21 -04:00
sun_shared.h 1 2020-04-22 12:56:21 -04:00
takedamageinfo.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
takedamageinfo.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
teamplay_gamerules.cpp 1 2020-04-22 12:56:21 -04:00
teamplay_gamerules.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
teamplay_round_timer.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
teamplay_round_timer.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
teamplayroundbased_gamerules.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
teamplayroundbased_gamerules.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
tempentity.h 1 2020-04-22 12:56:21 -04:00
test_ehandle.cpp 1 2020-04-22 12:56:21 -04:00
touchlink.h 1 2020-04-22 12:56:21 -04:00
usercmd.cpp Fixed lag compensation with low fps 2024-07-12 15:15:40 +02:00
usercmd.h Fixed lag compensation with low fps 2024-07-12 15:15:40 +02:00
usermessages.cpp 1 2020-04-22 12:56:21 -04:00
usermessages.h 1 2020-04-22 12:56:21 -04:00
util_shared.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
util_shared.h add source-sdk-2013 2022-03-01 23:00:42 +03:00
vehicle_choreo_generic_shared.h 1 2020-04-22 12:56:21 -04:00
vehicle_viewblend_shared.cpp 1 2020-04-22 12:56:21 -04:00
vehicle_viewblend_shared.h 1 2020-04-22 12:56:21 -04:00
vgui_defaultinputsignal.h 1 2020-04-22 12:56:21 -04:00
viewport_panel_names.h 1 2020-04-22 12:56:21 -04:00
voice_banmgr.cpp 1 2020-04-22 12:56:21 -04:00
voice_banmgr.h 1 2020-04-22 12:56:21 -04:00
voice_common.h 1 2020-04-22 12:56:21 -04:00
voice_gamemgr.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
voice_gamemgr.h 1 2020-04-22 12:56:21 -04:00
voice_status.cpp 1 2020-04-22 12:56:21 -04:00
voice_status.h 1 2020-04-22 12:56:21 -04:00
vphysics_sound.h 1 2020-04-22 12:56:21 -04:00
vphysicsupdateai.h 1 2020-04-22 12:56:21 -04:00
weapon_ifmbase.cpp 1 2020-04-22 12:56:21 -04:00
weapon_ifmbase.h 1 2020-04-22 12:56:21 -04:00
weapon_ifmbasecamera.cpp 1 2020-04-22 12:56:21 -04:00
weapon_ifmbasecamera.h 1 2020-04-22 12:56:21 -04:00
weapon_ifmsteadycam.cpp 1 2020-04-22 12:56:21 -04:00
weapon_ifmsteadycam.h 1 2020-04-22 12:56:21 -04:00
weapon_parse.cpp add source-sdk-2013 2022-03-01 23:00:42 +03:00
weapon_parse.h 1 2020-04-22 12:56:21 -04:00
weapon_parse_default.cpp 1 2020-04-22 12:56:21 -04:00
weapon_proficiency.cpp 1 2020-04-22 12:56:21 -04:00
weapon_proficiency.h 1 2020-04-22 12:56:21 -04:00