Commit graph

147 commits

Author SHA1 Message Date
e8cfbaafd0 Added prediction for triggers 2024-08-23 00:37:28 +02:00
578ed3f25d Removed DEBUG_HITBOXES_ALWAYS_ON (bandwidth problems) 2024-07-26 17:50:55 +02:00
c1bf6cdfcc Fixed few stuff & now server bullet impacts are events
- Fixed some game events not being sent to clients
- Use event instead of descriptor for sending it to client
- Moved server bullets to events
- Re-trained zstd data
- Corrected some stuff on clock correction
2024-07-26 05:34:50 +02:00
631d1ec05c Reworked cl_show* commands to use game events instead 2024-07-25 18:10:35 +02:00
4f98b4150e RE-trained css zstd dictionary due to NET_Tick changes 2024-07-23 16:52:44 +02:00
15518e794b Update compress level to ZSTD_btultra2 2024-07-23 16:33:17 +02:00
a02ec39b10 Fixed last few stuff with clock correction 2024-07-23 05:05:24 +02:00
22bbac4a9e Added enhanced cl_clock_correction & misc
- Added vprof
- Fixed few issues again with cl_showhitboxes
- Fixed some shader compilation
- Fixed few issues with bitbuf
2024-07-23 03:05:29 +02:00
cf311a09bb Update mouse calls at the end of the frame 2024-07-20 01:04:35 +02:00
ea72dde27d Corrected again a bit more cl_showimpacts 2024-07-19 18:05:58 +02:00
6f1a375d58 Added smoothed interpolation amount & fixed fews issues with prediction
Added vprof too
2024-07-19 05:03:08 +02:00
df0192b97a Added clang-format & remove zstd training define 2024-07-18 21:41:53 +02:00
3f5795253b Added zstd training set 2024-07-18 21:15:37 +02:00
e11f28d2d1 Replace snappy with trained zstd dictionary 2024-07-18 08:27:54 +02:00
c22f55cacb Fixed most issues on windows, shaders are still a problem 2024-07-17 23:38:56 +02:00
dd91e4d8e9 Added new compression for floats 2024-07-17 08:29:22 +02:00
82a097ee1c Optimized usercmd network 2024-07-16 05:13:14 +02:00
22fc06498f Fixed bullet diameter hitbox test 2024-07-15 23:27:48 +02:00
0c242ac11d Added a better way to debug hitboxes & new waf script 2024-07-15 06:52:33 +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
0c3cb614ea Improved lag compensation 2024-01-25 13:27:03 +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
b45295ef7c dedicated(win32): fix crashes( now it works #310 #225 ) 2023-12-13 21:28:17 +03:00
nillerusr
ade05ab153 dedicated(win32): fix build issues #322 2023-12-13 20:18:31 +03:00
AruMoon
8f8c2556b7 Add new master server 2023-10-25 05:18:51 +05:00
nillerusr
b8558de63e fix crash in some cases 2023-10-23 19:52:35 +03:00
tyabus
1f3f05d14a engine: Fixed vgui_drawtree on 64 bit engine 2023-10-07 20:23:37 +06:00
nillerusr
57f6bf6eea fix some undefined/unspecified behaviours in multiplayer games( may help with #299 ) 2023-10-07 05:04:46 +03:00
nillerusr
6447101546 Restore tslist for trace info( fix #295 ) 2023-10-05 19:36:24 +03:00
nillerusr
efeda62add fix crash on game close when demo recording 2023-10-04 22:22:31 +03:00
nillerusr
5ea9937457 android: fix black screen after minimizing window in materialsystem queue mode 2023-08-18 13:49:07 +03:00
nillerusr
4f10928299 inputsystem: fix UB in touch events callback, make touch more responsive 2023-08-17 14:31:43 +03:00
nillerusr
02a3c641a6 engine: fix loading static prop lump version 7 2023-08-15 16:47:35 +03:00
nillerusr
8acf608b4d engine: optimize traces 2023-08-04 13:57:30 +03:00
nillerusr
699271f212 WIP: musl port 2023-04-24 22:39:09 +00:00
nillerusr
d719a18fa7 engine: fix black screen in changelevel 2023-04-09 09:44:41 +03:00
nillerusr
92028d4e80 tier1: fix possible unsafe read in lzss SafeUncompress, make tests pass under asan 2023-04-07 14:59:36 +03:00
nillerusr
f1de24b0b2 engine: fix bsp21 loading 2023-04-04 23:22:06 +03:00
tyabus
4e87659a1d engine: restore sv_hibernate_when_empty 2023-03-12 21:17:49 +06:00
nillerusr
db6a9839fe engine: fix windows build( windows must die ) 2023-02-20 22:02:41 +03:00
nillerusr
c970f28804 engine: fix Map_IsValid for mapcycle 2023-02-20 21:03:47 +03:00
nillerusr
6a8da7084b engine: add -nobackgroundlevel command-line argument 2023-02-20 20:07:23 +03:00
nillerusr
9075ccd9e4 engine: don't check sv_lan value in masterserver requests when DEDICATED is defined 2023-02-19 15:18:49 +03:00
nillerusr
1d39be1a97 engine: again fix static prop lump version 10 loading 2023-02-17 01:41:55 +03:00
nillerusr
cc7541f132 change PROTOCOL_VERSION to 25 2023-02-16 22:47:32 +03:00
nillerusr
9919f7ee95 engine: fix static prop lump version 10 loading 2023-02-16 18:44:33 +03:00
nillerusr
ec3ab23a0e
Merge pull request #198 from nillerusr/serverbrowser
Serverbrowser support
2023-02-16 14:35:01 +03:00
nillerusr
e10f29854e engine(masterserver): fix servers duplication 2023-02-14 20:22:18 +03:00
nillerusr
c3417ca08d engine: fix cmdrate/updaterate values 2023-02-13 00:27:40 +03:00
nillerusr
67ef35bb78 engine(masterserver): typo fix 2023-02-11 20:34:27 +03:00