Commit graph

122 commits

Author SHA1 Message Date
4ceda5d415 Added sv_cs_noblock 2024-09-15 20:44:54 +02:00
b3bb2ce631 Fixed m3 and added hl2 missing files 2024-09-15 13:22:22 +02:00
6c3d98b6f9 Fixed VPhysics 2024-09-14 18:03:25 +02:00
8b6782c26c Display hitmarker even if it is a sniper rifle 2024-09-11 15:33:32 +02:00
6e5facd8cc Added no stamina 2024-09-11 13:01:41 +02:00
a841c7a02c Custom crosshair are now possible 2024-09-11 12:49:37 +02:00
097e18db87 Added crosshair hitmarker 2024-09-11 09:49:45 +02:00
67ed5669c0 Some improvements on ducking and fixed angles not being aligned with prediction 2024-09-11 03:44:15 +02:00
1dc0c5c414 Remove calls to lag compensation when its not needed anymore 2024-09-09 22:29:17 +02:00
56e9399d90 Always straight bullets for the first bullet when no inaccuracy is on 2024-09-09 17:23:25 +02:00
49c98ebd77 Fixed desync with bullets 2024-09-09 17:19:34 +02:00
690d119fc6 Better to use abs origin and angles for debugging hitboxes 2024-09-09 01:08:29 +02:00
f0954d23f3 Added convar to disable hermite interp 2024-09-09 00:12:31 +02:00
ec524a26b5 We have to use renderangles again 2024-09-08 22:42:23 +02:00
0169223e43 Renamed 50bmg to 20special 2024-09-07 15:07:11 +02:00
97bf5252e8 Fixed some asserts 2024-09-07 12:41:56 +02:00
eeed4b8ada Adjusted some values for m82a1 2024-09-07 05:33:20 +02:00
17e392f0ee M82A1 soon ready 2024-09-07 02:05:14 +02:00
0affff43d5 Preparting to add weapon_m82a1 2024-09-06 14:43:27 +02:00
aa10811e3e Fixed some stuff 2024-09-05 19:22:07 +02:00
8376d865cf Added fast ent lookups for server dll 2024-09-05 15:31:51 +02:00
d8598a8d22 We might prefer to set to local instead to lag compensate 2024-09-05 02:23:15 +02:00
d40a479e85 Revert "TODO: figure out why we need to do this"
This reverts commit 53561ff881.
2024-09-05 01:58:30 +02:00
fb349dbd9f The compiler is a bit dumb sometimes, let's help a bit 2024-09-05 00:55:22 +02:00
53561ff881 TODO: figure out why we need to do this 2024-09-05 00:09:55 +02:00
1475964e61 Fixed some edge cases where camera position wouldn't match screen 2024-09-04 23:07:48 +02:00
e12b3581e2 Optimized entity look ups 2024-09-04 22:01:08 +02:00
caebd1970f Removed entityexists 2024-09-04 00:07:33 +02:00
f696159421 Improved lag compensation for entities 2024-09-03 23:07:40 +02:00
87337859f4 More Fixes to lag compensation, it is always almost pixel perfect now
- In theory, to have even more perfect values, we could go the other way
  around, let the client send the values and see if it's within range of
  lerp time
- The fact that the netvar gets compressed and touched made it worse for
  lag compensation
2024-09-03 16:41:03 +02:00
f4ded28fe0 Added more infos to debug out hitboxes 2024-09-03 15:49:04 +02:00
ece2f9a81f Improved bone cache invalidation
Also improved lag comp, for now animations won't be interpolated
2024-09-03 07:41:16 +02:00
2782633e53 Now setupbones uses the right angles for cs players 2024-09-02 01:26:08 +02:00
be7d8cc228 Improved show hitboxes commands and networked m_fFlags from animoverlays 2024-09-02 00:03:24 +02:00
867f106584 Increased weapon range 2024-08-31 22:41:36 +02:00
d942381df3 Commenting debug stuff 2024-08-31 06:48:01 +02:00
11d345802e General fixes and improved lag comp performance 2024-08-31 06:23:10 +02:00
380f352adf Fixed possible buffer overflow & optimized network 2024-08-31 00:24:01 +02:00
a21cd2aa97 Somehow this breaks lag comp 2024-08-29 02:07:55 +02:00
60c8599e4c Optimized network 2024-08-28 15:59:44 +02:00
f46d09bab1 Removed useless check 2024-08-28 15:03:35 +02:00
399e6e674a Send interpolated_amount 2024-08-28 05:24:34 +02:00
956d26bcb3 This is a start to lag compensate the local player.
Normally,
this would be needed to be inside StartLagCompensation,
but for now, this is enough.
2024-08-28 00:50:03 +02:00
22cfdaabc9 Added interpolated_shoot_position
While the old fix was working, it was a bit too much noticeable while
surfing, this is an issue we don't want.
We need a proper check for cheaters too.
2024-08-27 22:44:41 +02:00
70d7c82ff9 Updated again server setupbones to match more the client's 2024-08-27 22:12:50 +02:00
96a8e373be Since there's trigger prediction, we send everything
adjusted also client frame for full updates
2024-08-23 19:52:32 +02:00
bef50ed5ce Moved viewoffset adjustement to shared code 2024-08-23 18:29:51 +02:00
14717d8092 Added prediction for triggers, thanks oblivious
Prediction is fixed by me by adding two more functions in prediction
class, there had before some issues because
starttouch/endtouch weren't predicted.
The result is that with lag, it restores touched entities,
including the triggers touched entity list.
2024-08-23 00:42:58 +02:00
dc471576a1 Removed DEBUG_HITBOXES_ALWAYS_ON (bandwidth problems) 2024-07-26 17:50:55 +02:00
69312da01b 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