Commit graph

59 commits

Author SHA1 Message Date
941a5f5b6d Fixed last issues with bullet tracing 2024-07-15 21:56:11 +02:00
e5ccc52ef6 Simplified bullet trace 2024-07-15 21:10:58 +02:00
cc3e0fcf04 Added a better way to debug hit registration 2024-07-15 18:21:56 +02:00
d294fe4f94 Added cl_showfirebullethitboxes 2024-07-15 16:54:19 +02:00
d7149518d9 Game has now bullet thickness (diameter) 2024-07-15 07:46:53 +02:00
0c242ac11d Added a better way to debug hitboxes & new waf script 2024-07-15 06:52:33 +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
7bfb4f8ace Do not exclude useful send prop variables 2024-04-03 00:21:08 +02: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
9ac6d4c6e4 Add weapon_accuracy_nospread & posparam lagcomp 2024-01-23 14:32:02 +01:00
nillerusr
b73f3b70fa cstrike: add autojump convar 2023-08-22 11:11:39 +03:00
nillerusr
b6cb0c2696 game: fix UB when reading mapcycle 2023-08-04 14:55:13 +03:00
nillerusr
8fbc002a37 Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
nillerusr
ba90de20d9 game/server: fix particle transition from trigger_vphysics_motion 2022-10-31 19:59:10 +03:00
nillerusr
fafc3554a5 game(hl1): fix UTIL_DropToFloor 2022-08-31 18:22:56 +03:00
nillerusr
32c57a8a49 game(hl1): fix stupid mp5 recoil 2022-08-23 18:17:31 +03:00
SanyaSho
8a366537e7 game: fix death icon in hl2mp (hrgve/hl2dm-bugfix@6f7337d3f2) 2022-08-16 18:28:28 +03:00
SanyaSho
27339449c0 game: rpg missle fixes (hrgve/hl2dm-bugfix@36de43ebc1) 2022-08-16 18:24:49 +03:00
SanyaSho
21c54015a2 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
047b3e3150 game: fix hl2mp slam (ValveSoftware/source-sdk-2013#532) 2022-08-16 17:04:26 +03:00
nillerusr
e852953d9d
Merge pull request #100 from SanyaSho/ent-create-crash-fix
small fixes
2022-08-04 19:10:52 +03:00
SanyaSho
b525e49d6f game: fix 357 crosshair in hl2mp 2022-08-04 16:58:02 +03:00
SanyaSho
31c5944b5e game: fix rpg laser sprite precache in hl2mp 2022-08-04 16:54:21 +03:00
SanyaSho
d958e12dbd game: set MAX_FOV value to 110 2022-08-04 16:48:47 +03:00
SanyaSho
e8ffb402de game: quantum crouch fix 2022-08-04 16:30:30 +03:00
SanyaSho
e6901ffadf game: fix acid damage white flash bug 2022-08-04 16:29:21 +03:00
SanyaSho
9779491774 game: fix previous commit 2022-08-04 00:48:42 +03:00
SanyaSho
29080d7649 game: apply https://developer.valvesoftware.com/wiki/Weapon_Respawn_Fix patch 2022-08-04 00:33:51 +03:00
SanyaSho
48aa042ee1
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
c4ef0e90a4 fix dedicated build 2022-08-01 00:38:10 +03:00
nillerusr
97e7d4a870 game: fix integer division by zero in baseachievement( fixes #87 ) 2022-07-31 04:40:53 +03:00
nillerusr
7268663f24 game/client/portal: fix Polyhedron 2022-07-30 02:09:11 +03:00
nillerusr
ddafaa790e game: fix compilation problems for clang 2022-06-20 14:17:53 +03:00
nillerusr
b06620b8c9 fpersmissive fixes 2022-06-15 21:59:06 +03:00
nillerusr
29db778997 fix some AddressSanitizer issues 2022-06-14 13:16:08 +03:00
nillerusr
9ee21ecf90 amd64: fix multithread, fix vgui, fix physmodels 2022-06-05 01:44:42 +03:00
hymei
f96a163cf8 arm64 : fix clang compile errors 2022-06-05 01:13:14 +03:00
hymei
4e4039d756 arm64 : fix intptr_t size 2022-06-05 01:12:32 +03:00
nillerusr
3a73624b7e misaligment fixes 2022-05-15 21:09:59 +03:00
nillerusr
600695b15f game: init uninitialized variables 2022-05-01 20:09:55 +03:00
nillerusr
a5e9cdcbe2 game: make achievements work without steam 2022-04-16 13:08:46 +03:00
nillerusr
23a370d9bb add hl1,portal,dod source code 2022-04-16 12:05:19 +03:00