Commit graph

122 commits

Author SHA1 Message Date
542b2c2711 Reworked cl_show* commands to use game events instead 2024-07-25 18:10:35 +02:00
73845dfe4c Improved cl_show* commands 2024-07-25 14:05:36 +02:00
a9bd881a56 Debug only local player bullets, the rest is useless 2024-07-23 16:08:50 +02:00
96e8394525 Corrected again a bit more cl_showimpacts 2024-07-19 18:05:58 +02:00
860bd3e883 Added smoothed interpolation amount & fixed fews issues with prediction
Added vprof too
2024-07-19 05:03:08 +02:00
4067d7cfe6 Added zstd training set 2024-07-18 21:15:37 +02:00
1a3e348316 Replace snappy with trained zstd dictionary 2024-07-18 08:27:54 +02:00
366edb18a7 Changed animation data to simulation data 2024-07-17 08:08:43 +02:00
81793ee7a4 Optimized usercmd network 2024-07-16 05:13:14 +02:00
469c74b8b3 SweptBox material wasn't initialized, corrected some stuff 2024-07-16 01:31:45 +02:00
95bb5cb8a5 vecSrc bullet should be taken into an array 2024-07-16 00:19:52 +02:00
449017c859 Better bullet debug 2024-07-16 00:01:44 +02:00
204d296ca0 If debug hitboxes always on, send everything 2024-07-15 23:31:50 +02:00
466b0ea280 Fixed last issues with bullet tracing 2024-07-15 21:56:11 +02:00
94060e8c19 Simplified bullet trace 2024-07-15 21:10:58 +02:00
e8ea86f895 Added a better way to debug hit registration 2024-07-15 18:21:56 +02:00
7efea83011 Added cl_showfirebullethitboxes 2024-07-15 16:54:19 +02:00
ba82e0f107 Game has now bullet thickness (diameter) 2024-07-15 07:46:53 +02:00
e360866bf5 Added a better way to debug hitboxes & new waf script 2024-07-15 06:52:33 +02:00
b750f22f08 Reverted some regression & pitch should be set in FinishMove 2024-07-14 04:30:25 +02:00
cfa5b12eea 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
f8c641a9e5 Improved prediction & fix being 1 off tick problems 2024-07-13 19:18:03 +02:00
cd6ecdc726 Fixed lag compensation with low fps 2024-07-12 15:15:40 +02:00
2e5867b300 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
854991ab8c 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
9d17d2252c 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
7028c910e7 Use client side animation for hostages for now
Also added GetSkeleton for animating overlay
2024-04-03 05:27:07 +02:00
db45d29da3 Do not exclude useful send prop variables 2024-04-03 00:21:08 +02:00
ae99eb3817 Modified lag compensation suit better our needs 2024-01-27 22:12:03 +01:00
ca6cdb51e6 Improved lag compensation 2024-01-25 13:27:03 +01:00
2c2cbf4f03 Add weapon_accuracy_nospread & posparam lagcomp 2024-01-23 14:32:02 +01:00
nillerusr
882269712c cstrike: add autojump convar 2023-08-22 11:11:39 +03:00
nillerusr
63f91ad801 game: fix UB when reading mapcycle 2023-08-04 14:55:13 +03:00
nillerusr
dc46e41183 Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
nillerusr
22d6544454 game/server: fix particle transition from trigger_vphysics_motion 2022-10-31 19:59:10 +03:00
nillerusr
9bc00099a8 game(hl1): fix UTIL_DropToFloor 2022-08-31 18:22:56 +03:00
nillerusr
540b564ff2 game(hl1): fix stupid mp5 recoil 2022-08-23 18:17:31 +03:00
SanyaSho
2aeddddb22 game: fix death icon in hl2mp (hrgve/hl2dm-bugfix@6f7337d3f2) 2022-08-16 18:28:28 +03:00
SanyaSho
4147230c94 game: rpg missle fixes (hrgve/hl2dm-bugfix@36de43ebc1) 2022-08-16 18:24:49 +03:00
SanyaSho
bc6549e92d game: fixed infinite recursion by using incorrect key on value conversation. (ValveSoftware/source-sdk-2013#380) 2022-08-16 17:21:59 +03:00
SanyaSho
5d7bce9937 game: fix hl2mp slam (ValveSoftware/source-sdk-2013#532) 2022-08-16 17:04:26 +03:00
nillerusr
5d7ad7d8cb Merge pull request #100 from SanyaSho/ent-create-crash-fix
small fixes
2022-08-04 19:10:52 +03:00
SanyaSho
edd8393948 game: fix 357 crosshair in hl2mp 2022-08-04 16:58:02 +03:00
SanyaSho
57c753695e game: fix rpg laser sprite precache in hl2mp 2022-08-04 16:54:21 +03:00
SanyaSho
9aadf6d2e5 game: set MAX_FOV value to 110 2022-08-04 16:48:47 +03:00
SanyaSho
ad32a9abff game: quantum crouch fix 2022-08-04 16:30:30 +03:00
SanyaSho
e8a64b9446 game: fix acid damage white flash bug 2022-08-04 16:29:21 +03:00
SanyaSho
66b0cdfe56 game: fix previous commit 2022-08-04 00:48:42 +03:00
SanyaSho
406b3ee879 game: apply https://developer.valvesoftware.com/wiki/Weapon_Respawn_Fix patch 2022-08-04 00:33:51 +03:00
SanyaSho
c34cdfbb7f Fov cvar fix (#98)
* game: set fov_desired cvar max value to 110
* scripts: waifulib: change '4.9,9' to '4.9,21' in configure example
2022-08-03 16:22:17 +03:00
nillerusr
e08425fbad fix dedicated build 2022-08-01 00:38:10 +03:00
nillerusr
06b166e5c0 game: fix integer division by zero in baseachievement( fixes #87 ) 2022-07-31 04:40:53 +03:00
nillerusr
8c61882ccb game/client/portal: fix Polyhedron 2022-07-30 02:09:11 +03:00
nillerusr
6ba5ea4e69 game: fix compilation problems for clang 2022-06-20 14:17:53 +03:00
nillerusr
b7b82135bd fpersmissive fixes 2022-06-15 21:59:06 +03:00
nillerusr
c6ddf35416 fix some AddressSanitizer issues 2022-06-14 13:16:08 +03:00
nillerusr
2e5a08b894 amd64: fix multithread, fix vgui, fix physmodels 2022-06-05 01:44:42 +03:00
hymei
f7a489f828 arm64 : fix clang compile errors 2022-06-05 01:13:14 +03:00
hymei
e3f7810566 arm64 : fix intptr_t size 2022-06-05 01:12:32 +03:00
nillerusr
6a7f9d0d28 misaligment fixes 2022-05-15 21:09:59 +03:00
nillerusr
6c1186d0b1 game: init uninitialized variables 2022-05-01 20:09:55 +03:00
nillerusr
9fd47d0823 game: make achievements work without steam 2022-04-16 13:08:46 +03:00
nillerusr
0280f18ad1 add hl1,portal,dod source code 2022-04-16 12:05:19 +03:00
nillerusr
d30382e8d5 add csrike source code 2022-03-02 11:45:17 +03:00
nillerusr
13191a2659 add source-sdk-2013 2022-03-01 23:00:42 +03:00
nillerusr
f76f1039ed gameui: add console button to main menu 2022-02-05 22:33:45 +03:00
nillerusr
5c0e3180e6 fix build with clang, fix saverestore again, android mod launcher support 2022-01-19 18:59:42 +03:00
nillerusr
0ff5b74afa saveload fix 2022-01-09 19:59:13 +03:00
nillerusr
a4c686799a make achivements work without steam( partially ) 2022-01-09 19:57:09 +03:00
nillerusr
92c0c3aeb9 physics: fix a lot of problems 2021-10-23 14:41:59 +03:00
nillerusr
b44df09ae1 Replace 1e24 with 1e16 to avoid float overflow 2021-10-13 20:01:24 +03:00
FluorescentCIAAfricanAmerican
3bf9df6b27 1 2020-04-22 12:56:21 -04:00