Commit graph

631 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
8d50594282 Remove github workflows 2024-05-24 14:36:26 +02:00
8c3404f774 README update 2024-05-24 14:35:19 +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
2b45ee9823 Revert SendProxy_ClientSideAnimation sendproxy 2024-04-03 01:12:22 +02:00
051e8abd82 various BuildTransformations fixes 2024-04-03 00:52:33 +02:00
bfbe067423 Always send animtime 2024-04-03 00:35:48 +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
06ee8bd756 Fixed asserts and removed SQR checks stuff 2024-04-02 23:18:38 +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
d84f518400 Make knife lag compensation working 2024-01-27 22:09:16 +01:00
0c3cb614ea Improved lag compensation 2024-01-25 13:27:03 +01:00
a01d6f4aca Remove latency checks on lag compensation 2024-01-23 14:40:00 +01:00
9ac6d4c6e4 Add weapon_accuracy_nospread & posparam lagcomp 2024-01-23 14:32:02 +01:00
6df60bed54 Remove network compression on floats 2024-01-23 10:05:26 +01:00
171068ec6d Compile for CS:S 2024-01-22 21:40:01 +01:00
nillerusr
29985681a1
Merge pull request #312 from AruMoon/add-master-server
Add new master server
2023-12-30 11:44:00 +03:00
nillerusr
53cb673849
Merge pull request #328 from er2off/restrictfix
public/tier0/platform.h: Remove __restrict not only for linux
2023-12-30 11:43:48 +03:00
Er2
f72cf388aa public/tier0/platform.h: Remove __restrict not only for linux 2023-12-30 10:34:50 +03:00
nillerusr
87150cc028 ivp: update submodule 2023-12-24 04:24:44 +03:00
nillerusr
704b8aa98e
Merge pull request #323 from coderamen666/patch-1
Allow compilation on Raspberry Pi OS 32 bit
2023-12-13 22:57:38 +03:00
coderamen
c4f13f04a8
Allow compilation on Raspberry Pi OS 32 bit 2023-12-13 13:55:05 -06:00
nillerusr
f402495b24 wscript: make bzip2 mandatory #321 2023-12-13 21:38:18 +03:00
nillerusr
b45295ef7c dedicated(win32): fix crashes( now it works #310 #225 ) 2023-12-13 21:28:17 +03:00
nillerusr
327ea9dee7
Merge pull request #322 from dimhotepus/fix-dedicated-build
[Windows] Fix dedicated server build
2023-12-13 20:24:52 +03:00
nillerusr
ade05ab153 dedicated(win32): fix build issues #322 2023-12-13 20:18:31 +03:00
nillerusr
bfe1baf323
wscript(dedicated): try to fix windows build 2023-12-13 18:19:17 +03:00
nillerusr
a84ee9062c
wscript(dedicated): fix indentation 2023-12-13 18:10:34 +03:00
nillerusr
7c863a351b wscript(win32): restore FORCE parameter for multiple references #322
This is using to override debug crt functions.
Does anyone actually use this?
2023-12-13 17:38:02 +03:00
nillerusr
8fcac9c164 wscript(win32): disable /FORCE linker option added by accident #322 2023-12-13 17:25:20 +03:00
Dmitry Tsarevich
97f6cdfbe2
dedicated: Fix build on Windows 2023-12-02 23:59:49 +03:00
nillerusr
7a3b3cd96f return accidentally commented out engine module( fixes #315 ) 2023-11-28 06:47:35 +03:00
nillerusr
90e2937b32 update waf, enable gccdeps and msvcdeps 2023-11-24 11:28:25 +03:00
nillerusr
23204fcc73 wscipt: fix cant find env cache togl 2023-11-08 22:06:10 +03:00
nillerusr
abb470a471 fix build scripts for workflow 2023-11-08 21:58:33 +03:00
nillerusr
ab527be41a wscript: target 64bit architecture by default 2023-11-08 21:44:30 +03:00