Commit graph

130 commits

Author SHA1 Message Date
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
nillerusr
efbcaf7820 engine(masterserver): add master request timeout 2023-02-11 19:36:39 +03:00
nillerusr
dda12fcec6 engine(masterserver): add additional masterserver, implement setmaster command 2023-02-11 19:17:57 +03:00
nillerusr
70cc94bd01 engine(masterserver): fix latency calculation 2023-02-11 15:57:06 +03:00
nillerusr
bca8a497ad engine: set net_usesocketsforloopback 0 by default( 1 breaks singleplayer mode ) 2023-02-11 15:56:06 +03:00
nillerusr
12716fd07f engine(masterserver): Add sequence for requesting server info, implement StopRefresh and use it on timeout 2023-02-10 22:45:36 +03:00
nillerusr
a08b6ae7bf engine: update server info reply 2023-01-30 22:19:08 +03:00
nillerusr
41aa50e66e WIP: Begin rewriting serverbrowser 2023-01-29 19:26:04 +03:00
nillerusr
548be38a0b engine: restore checksum check 2023-01-28 05:37:40 +03:00
nillerusr
0df7838ee1 WIP: initial masterserver client implementation 2023-01-28 05:29:26 +03:00
HappyDOGE
c69afba381 Merge branch 'master' into win64 2023-01-23 19:16:19 +03:00
HappyDOGE
bfb5b44d38 win64: misc pointer truncation fixes 2023-01-16 11:56:05 +03:00
exstrim401
e26b40d889
Basic Steam Dick support (#166)
Without gamepadui library
2023-01-08 15:38:24 +03:00
nillerusr
ff2211f0ad windows: fix(workaround) illegal instruction in release build 2022-12-17 10:14:49 +03:00
exstrim401
9bca259e0f
Make net_usesocketsforloopback 1 by default (#153)
Fixes connection to localhost server on macOS
2022-12-05 19:23:43 +03:00
nillerusr
729ac111af engine: add bsp v21 support, add StaticPropLump_t v7-v11 support 2022-11-30 15:58:19 +03:00
exstrim401
2fb712af66
Fix macOS build (#146)
* Fix macOS build
* Fix *BSD build
* Add missing *BSD include
2022-11-27 16:48:27 +03:00
Er2
53bd92f7a8
BSD: Add support (#140)
* BSD: Add support

* BSD: other fixes

There is still a bug when vgui haven't got text, maybe because of resources.

Also there is bug where when trying to start new game caption names shows wrong.

* BSD: Debugging

* BSD: modify preprocessor and fix windows

* BSD: Remove debugging and fix labels in gameui

* BSD: Remove disabling some DX9 commands

* BSD: Remove -g flag
2022-11-24 22:04:29 +03:00