Commit graph

117 commits

Author SHA1 Message Date
bfba5ae0cd Fixed planting bomb 2024-07-14 05:15:41 +02:00
c5d7c3f5cf Reverted some regression & pitch should be set in FinishMove 2024-07-14 04:30:25 +02:00
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
a9657ed198 Improved prediction & fix being 1 off tick problems 2024-07-13 19:18:03 +02:00
a470c3a0ea Fixed lag compensation with low fps 2024-07-12 15:15:40 +02:00
33d23c76c2 Removed interpolation for animations for now
This cause looping issues due to cycle,
until I find a proper solution for it,
it is disabled for accuracy purposes
and also because we can't trust the client.

This is really hard to see though with high tickrate.
2024-07-12 04:04:53 +02:00
c67fd1bd96 Fixed lag compensation for animations
The problem is that we still trust the client, although now we have a
good base to start with; The key difference here is that we don't need
to use anymore the cs player animestate client side anymore
because server side values are used

There are minor bugs like fire effect but they can be fixed
2024-07-11 02:12:51 +02:00
00a2833abc Improved lag compensation for animations
Now we can debug properly lag compensation for animations and make it
more perfect without using the CUserCmd struct
For now it's used to sync better with client but in theory this can be
removed soon.
There's a lot of work to do in anim layers too.
2024-07-10 16:14:53 +02:00
af90154390 Use client side animation for hostages for now
Also added GetSkeleton for animating overlay
2024-04-03 05:27:07 +02:00
8b7a4cf529 Remove DevMsgs for shooting in CreateMove 2024-04-03 02:05:15 +02:00
070e46c59e CS Player is now synced with server
There's more TODO:
- Fix sequence transitions (remove animation interpolation or fix lag compensation)
2024-04-03 01:45:56 +02:00
051e8abd82 various BuildTransformations fixes 2024-04-03 00:52:33 +02:00
5b3665e1f8 Respect server code (InvalidateBoneCacheIfOlderThan) 2024-04-03 00:32:38 +02:00
bff7cda345 remove SetNetworkAngles from csplayer PostDataUpdate 2024-04-03 00:26:15 +02:00
7bfb4f8ace Do not exclude useful send prop variables 2024-04-03 00:21:08 +02:00
e3bbd7d57e Add a way to set to tick interval cl_interp 2024-02-18 09:50:06 +01:00
31261a72db Modified baseanim so that it respects the server + 2024-01-28 13:19:05 +01:00
47be1c1ecc Improved setupbones 2024-01-27 22:34:26 +01:00
a4e36339e6 Modified lag compensation suit better our needs 2024-01-27 22:12:03 +01:00
0c3cb614ea Improved lag compensation 2024-01-25 13:27:03 +01:00
nillerusr
57f6bf6eea fix some undefined/unspecified behaviours in multiplayer games( may help with #299 ) 2023-10-07 05:04:46 +03:00
nillerusr
b7bd94c52e cstrike: fix uninitialized pointers in hud 2023-08-23 23:42:08 +03:00
nillerusr
1d4f7fb2cc change touch editor colors 2023-08-22 11:47:19 +03:00
nillerusr
b5d6051d98 cstrike: optimize flashbang 2023-08-22 11:38:13 +03:00
nillerusr
601cfff164 game: fix touch transparency mode for cut scenes 2023-08-17 15:59:47 +03:00
nillerusr
4f10928299 inputsystem: fix UB in touch events callback, make touch more responsive 2023-08-17 14:31:43 +03:00
SanyaSho
d23ae89574 game: add another NULL check for CEngineSprite::GetMaterial 2023-04-08 15:35:41 +03:00
HappyDOGE
c69afba381 Merge branch 'master' into win64 2023-01-23 19:16:19 +03:00
Er2
f735e7a036
Fix HTML MOTD (#174) 2023-01-14 20:47:16 +03:00
exstrim401
e26b40d889
Basic Steam Dick support (#166)
Without gamepadui library
2023-01-08 15:38:24 +03:00
nillerusr
eff77f0a0a windows: fix 64bit build( #149 ) 2022-12-16 19:20:56 +03:00
nillerusr
cb0e405e0f
Merge pull request #133 from SanyaSho/master
string vulnerabilities
2022-11-20 11:41:02 +03:00
nillerusr
8fbc002a37 Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
SanyaSho
e368f3e9a6 game: fix string vulnerabilities 2022-11-04 01:28:39 +00:00
nillerusr
b9a21f26ba game/client(android): view optimization 2022-10-17 00:01:23 +03:00
nillerusr
653e08bce4 game(client): make touch more transparent in cutscenes 2022-10-06 00:24:18 +03:00
nillerusr
d4e0a8108b game(client): fix particles problems on 64bit systems 2022-10-04 05:43:22 +03:00
nillerusr
5c5d990c87 game(client): fix touch drawing problems 2022-10-04 05:42:38 +03:00
nillerusr
a269b89168 game(client): fix crash on linux/window in touch, fix memory leak in touch 2022-09-22 22:37:30 +03:00
nillerusr
3f5ebfbde3 game(client): fix back button in touch 2022-09-19 17:54:09 +03:00
nillerusr
4ace9f8030 game(client): fix touch drawing problems again, fix some fonts on android 2022-09-18 19:54:29 +03:00
nillerusr
9c4ace30c3 game(client): fix touch drawing problems 2022-09-18 18:47:19 +03:00
nillerusr
a7611c481e game(client): fix atlas generation for touch 2022-09-17 21:00:50 +03:00
nillerusr
3daa537791 game(client): fix touch drawing again bruh 2022-09-17 16:42:45 +03:00
nillerusr
5a28ccec8c game(client): fix touch drawing 2022-09-17 15:57:17 +03:00
nillerusr
b1a3eafbe6 android: fix crashhandler 2022-09-17 03:01:26 +03:00
nillerusr
8a7e28d38d game(client): fix touch editor 2022-09-16 19:00:32 +03:00
nillerusr
f07ba797c5 game(client): optimize touch drawing 2022-09-16 02:41:03 +03:00
nillerusr
09924b7998 game(android): add custom chat 2022-09-08 21:23:06 +03:00
nillerusr
c91e68975b game(hl1): fix SetBoneController 2022-09-03 02:51:56 +03:00