Commit graph

276 commits

Author SHA1 Message Date
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
35b1d272a0 Remove DevMsgs for shooting in CreateMove 2024-04-03 02:05:15 +02:00
a2e1d119de CS Player is now synced with server
There's more TODO:
- Fix sequence transitions (remove animation interpolation or fix lag compensation)
2024-04-03 01:45:56 +02:00
ee6d99f17c Revert SendProxy_ClientSideAnimation sendproxy 2024-04-03 01:12:22 +02:00
446b3f348b various BuildTransformations fixes 2024-04-03 00:52:33 +02:00
35325f3177 Always send animtime 2024-04-03 00:35:48 +02:00
2cc7a749a2 Respect server code (InvalidateBoneCacheIfOlderThan) 2024-04-03 00:32:38 +02:00
60cd88e786 remove SetNetworkAngles from csplayer PostDataUpdate 2024-04-03 00:26:15 +02:00
db45d29da3 Do not exclude useful send prop variables 2024-04-03 00:21:08 +02:00
855547301d Fixed asserts and removed SQR checks stuff 2024-04-02 23:18:38 +02:00
debadff495 Add a way to set to tick interval cl_interp 2024-02-18 09:50:06 +01:00
fb69fa738b Modified baseanim so that it respects the server + 2024-01-28 13:19:05 +01:00
f154a494cd Improved setupbones 2024-01-27 22:34:26 +01:00
ae99eb3817 Modified lag compensation suit better our needs 2024-01-27 22:12:03 +01:00
e259524747 Make knife lag compensation working 2024-01-27 22:09:16 +01:00
ca6cdb51e6 Improved lag compensation 2024-01-25 13:27:03 +01:00
1b8162a4b6 Remove latency checks on lag compensation 2024-01-23 14:40:00 +01:00
2c2cbf4f03 Add weapon_accuracy_nospread & posparam lagcomp 2024-01-23 14:32:02 +01:00
nillerusr
6fd13e16d9 fix some undefined/unspecified behaviours in multiplayer games( may help with #299 ) 2023-10-07 05:04:46 +03:00
nillerusr
5d4978cf6e cstrike: fix uninitialized pointers in hud 2023-08-23 23:42:08 +03:00
nillerusr
badae9498e change touch editor colors 2023-08-22 11:47:19 +03:00
nillerusr
cfb63e9de8 cstrike: optimize flashbang 2023-08-22 11:38:13 +03:00
nillerusr
882269712c cstrike: add autojump convar 2023-08-22 11:11:39 +03:00
nillerusr
a15b14e48d game: fix touch transparency mode for cut scenes 2023-08-17 15:59:47 +03:00
nillerusr
08168ffc62 inputsystem: fix UB in touch events callback, make touch more responsive 2023-08-17 14:31:43 +03:00
nillerusr
63f91ad801 game: fix UB when reading mapcycle 2023-08-04 14:55:13 +03:00
nillerusr
abbcc53843 hl2: fix random crash when combine throws a can 2023-04-30 17:03:03 +03:00
SanyaSho
50e3a751ee game: add another NULL check for CEngineSprite::GetMaterial 2023-04-08 15:35:41 +03:00
AruMoon
9743b3c421 fix spectator free mode wrong angles 2023-03-05 00:44:17 +05:00
tyabus
3a69ef624e Fix spec_goto old crash 2023-02-18 19:40:25 +05:00
steadyfield
c2f9cb5b12 Fixed Mounted Gun Anims and Effects When Spawned by Users
Fixed mounted gun anims and effects when spawned by .cfg user scripts.
2023-02-08 09:05:10 +08:00
AruMoon
12b3400388 Unlock tickrate 2023-02-04 10:46:31 +00:00
HappyDOGE
7cfb06dd5c Merge branch 'master' into win64 2023-01-23 19:16:19 +03:00
HappyDOGE
a9171e89d3 win64: misc pointer truncation fixes 2023-01-16 11:56:05 +03:00
Er2
957ce33edb Fix HTML MOTD (#174) 2023-01-14 20:47:16 +03:00
exstrim401
08e33c477e Basic Steam Dick support (#166)
Without gamepadui library
2023-01-08 15:38:24 +03:00
nillerusr
474bdff553 windows: fix 64bit build( #149 ) 2022-12-16 19:20:56 +03:00
nillerusr
3e1b9d2332 Merge pull request #133 from SanyaSho/master
string vulnerabilities
2022-11-20 11:41:02 +03:00
nillerusr
dc46e41183 Replace empty constructors with default constructors #88 2022-11-05 14:23:05 +03:00
SanyaSho
87412109b6 game: fix string vulnerabilities 2022-11-04 01:28:39 +00:00
nillerusr
22d6544454 game/server: fix particle transition from trigger_vphysics_motion 2022-10-31 19:59:10 +03:00
nillerusr
471eb3dd26 game/client(android): view optimization 2022-10-17 00:01:23 +03:00
nillerusr
599fb6398e game(client): make touch more transparent in cutscenes 2022-10-06 00:24:18 +03:00
nillerusr
28a11bdcb2 game(client): fix particles problems on 64bit systems 2022-10-04 05:43:22 +03:00
nillerusr
60c2856513 game(client): fix touch drawing problems 2022-10-04 05:42:38 +03:00
nillerusr
de3bc51854 game(client): fix crash on linux/window in touch, fix memory leak in touch 2022-09-22 22:37:30 +03:00
nillerusr
cbc9e703e6 game(client): fix back button in touch 2022-09-19 17:54:09 +03:00
nillerusr
cb0576260e game(client): fix touch drawing problems again, fix some fonts on android 2022-09-18 19:54:29 +03:00
nillerusr
14d6a9d585 game(client): fix touch drawing problems 2022-09-18 18:47:19 +03:00
nillerusr
55a170ca84 game(client): fix atlas generation for touch 2022-09-17 21:00:50 +03:00
nillerusr
5f1292eb4d game(client): fix touch drawing again bruh 2022-09-17 16:42:45 +03:00
nillerusr
b1e4f2da4e game(client): fix touch drawing 2022-09-17 15:57:17 +03:00
nillerusr
6edfd551f0 android: fix crashhandler 2022-09-17 03:01:26 +03:00
nillerusr
c3a9e6a712 game(client): fix touch editor 2022-09-16 19:00:32 +03:00
nillerusr
1dba980e85 game(client): optimize touch drawing 2022-09-16 02:41:03 +03:00
nillerusr
9294be82b4 game(android): add custom chat 2022-09-08 21:23:06 +03:00
nillerusr
de093fab7a game(hl1): fix bigmomma decal 2022-09-05 01:17:02 +03:00
nillerusr
a34bfeee56 game(hl1): fix SetBoneController 2022-09-03 02:51:56 +03:00
nillerusr
f11b939733 game(hl1): fix gibbing 2022-08-31 18:23:22 +03:00
nillerusr
9bc00099a8 game(hl1): fix UTIL_DropToFloor 2022-08-31 18:22:56 +03:00
nillerusr
9bd64e1e57 use threaded bone setup by default 2022-08-31 18:19:52 +03:00
nillerusr
540b564ff2 game(hl1): fix stupid mp5 recoil 2022-08-23 18:17:31 +03:00
nillerusr
340e7a3f34 game(hl1): fix use after scope 2022-08-23 17:33:12 +03:00
nillerusr
a6cd47485b hl1: make pushable rotatable 2022-08-23 03:21:46 +03:00
nillerusr
42f1152705 game(hl1): fix apache,can bbox, fix DROP_TO_FLOOR, fix barnacle 2022-08-21 02:56:36 +03:00
nillerusr
16392ee9e4 fix day of defeat build 2022-08-21 02:12:18 +03:00
nillerusr
00c8966aa0 Merge pull request #112 from SanyaSho/fixes
Fixes (x2)
2022-08-20 00:05:05 +03:00
SanyaSho
0af88b985b game: disable text on buttons by default 2022-08-19 23:43:31 +03:00
nillerusr
04c61c7aa1 use HAVE_* macros for dependencies 2022-08-19 23:19:53 +03:00
SanyaSho
60632d7286 Revert "game: fixes some player's origin displacements for fire events, impulses commands etc... (ValveSoftware/source-sdk-2013#442)"
This reverts commit 2e969d3890.
2022-08-19 23:00:06 +03:00
SanyaSho
d2f3c3726a game: fix camera glitch with FOV 110 2022-08-17 02:45:02 +03:00
SanyaSho
e80d5e199a game: fix satchel/tripmine damage and damage radius cvars (hrgve/hl2dm-bugfix@d2aa89fc0f) 2022-08-16 18:41:34 +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
7932135fe6 game: update hud_flashlight.cpp (::yoba_Ukraine::) (ValveSoftware/source-sdk-2013#275) 2022-08-16 17:54:53 +03:00
SanyaSho
3849ff5874 game: changed delay parameter for ent_fire (ValveSoftware/source-sdk-2013#300) 2022-08-16 17:50:12 +03:00
SanyaSho
f861f44689 game: fixed a format string vulnerability in CDebugOverlay::Paint (ValveSoftware/source-sdk-2013#372) 2022-08-16 17:39:41 +03:00
SanyaSho
abb6994bc8 game: fix typo in logical expression (ValveSoftware/source-sdk-2013#502) 2022-08-16 17:24:18 +03:00
SanyaSho
bc5ff62f7a game: touch customization and small update 2022-08-16 17:21:59 +03:00
SanyaSho
0dd5e4866d game: fixed npc_manhack not notifying npc_template_maker/npc_maker when thrown and destroyed with gravity gun. (ValveSoftware/source-sdk-2013#362) 2022-08-16 17:21:59 +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
d90d4abf51 game: fixes some player's origin displacements for fire events, impulses commands etc... (ValveSoftware/source-sdk-2013#442) 2022-08-16 17:21:59 +03:00
SanyaSho
0a55a71ac3 game: use gpGlobals->interval_per_tick instead of DEFAULT_TICK_INTERVAL (ValveSoftware/source-sdk-2013#515) 2022-08-16 17:05:58 +03:00
SanyaSho
5d7bce9937 game: fix hl2mp slam (ValveSoftware/source-sdk-2013#532) 2022-08-16 17:04:26 +03:00
SanyaSho
0ac3a168c6 game: fix linux soundscapes (ValveSoftware/source-sdk-2013#448) 2022-08-16 17:03:33 +03:00
LegendGuard
e07899b5f3 Add PBR support (#91)
* Add PBR support
* Fix physics props turning black
2022-08-10 17:41:01 +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
0bd18b8020 game: grenade trail fix 2022-08-04 17:01:54 +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
4291e168de game: fix env_sun sprite disappearing when you look at it 2022-08-04 16:47:14 +03:00
SanyaSho
ef81226759 fix game: don`t rotate viewmodels in zoom 2022-08-04 16:42:23 +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
eabe6af3a0 game: restore dropship ability to shoot with rotsting gun 2022-08-04 16:27:21 +03:00
SanyaSho
f9bb2afb6c game: restore combine elite soldiers ability to use alt-fire of SMG1 2022-08-04 16:17:51 +03:00
SanyaSho
672550be01 game: don`t rotate viewmodels in zoom 2022-08-04 15:53:29 +03:00
SanyaSho
9788690afd game: beta houndeye painsound fix 2022-08-04 15:36:04 +03:00
SanyaSho
9b4aaff48f game: fix NPC blink 2022-08-04 11:42:52 +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
d88dfa2db3 game: restore combine ability to play pain sounds 2022-08-03 17:34:05 +03:00
SanyaSho
357efab5c7 game: fix ent_create crash if entity model is NULL 2022-08-03 17:19:43 +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
99a4097df9 appframework: use rawinput for android by default 2022-08-02 10:45:21 +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
2dd0fb3af0 game/server: fix some Asan issues 2022-07-29 04:34:23 +03:00
HappyDOGE
cd47c8312e fix no return in EditDestroyNotification 2022-07-28 16:02:15 +03:00
HappyDOGE
1d0be96892 copy correct check 2022-07-28 15:39:35 +03:00
HappyDOGE
5e7b5de897 fix compile time assert 2022-07-28 15:28:35 +03:00
HappyDOGE
f3379c0b46 Merge branch 'master' of https://github.com/nillerusr/source-engine into windows 2022-07-28 14:40:20 +03:00
HappyDOGE
a7e90573c6 fix windows build scripts, add windows opus support 2022-07-28 14:27:56 +03:00
nillerusr
67893ea361 fix buffer overflow in shader and closed captions 2022-07-27 18:29:48 +03:00
HappyDOGE
34bb8aa1ae Merge branch 'master' into windows 2022-07-27 12:58:56 +03:00
nillerusr
8336547b24 game/client: fix C_BaseEntity prediction 2022-07-25 16:47:41 +03:00
nillerusr
3a3dde7dd5 game: fix spin_none,spin_zaxis physgun interactions 2022-06-26 22:42:13 +03:00
nillerusr
6ba5ea4e69 game: fix compilation problems for clang 2022-06-20 14:17:53 +03:00
nillerusr
ed37b1062f game/client: make font size proportional 2022-06-19 15:23:01 +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
85c48e9855 game/server: fix AI_TaskFailureCode_t size 2022-06-05 03:30:44 +03:00
nillerusr
2e5a08b894 amd64: fix multithread, fix vgui, fix physmodels 2022-06-05 01:44:42 +03:00
hymei
c329da4d7a arm64 : fix mempool align 2022-06-05 01:14:23 +03:00
hymei
a5c119c1f6 arm64 ptr size fix 2022-06-05 01:14:23 +03:00
hymei
f7a489f828 arm64 : fix clang compile errors 2022-06-05 01:13:14 +03:00
hymei
4ee5ff003a arm64 : fix vgui2 VPAMEL in messagemap 2022-06-05 01:13:13 +03:00
hymei
2fca33b4b0 arm64 : intp fixes 2022-06-05 01:13:13 +03:00
hymei
e3f7810566 arm64 : fix intptr_t size 2022-06-05 01:12:32 +03:00
nillerusr
d0c601d189 game: small fixes 2022-06-04 23:08:40 +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
660a8391ee fix address sanitizer issues 2022-04-25 17:21:00 +03:00
nillerusr
9fd47d0823 game: make achievements work without steam 2022-04-16 13:08:46 +03:00
nillerusr
cbcedcdc1a game/client: fix messagemode, add acceleration for touch, GameUI: add touch options 2022-04-16 12:58:59 +03:00
nillerusr
d87c806f4e engine: fix hdr to ldr conversion 2022-04-16 12:54:00 +03:00
nillerusr
0280f18ad1 add hl1,portal,dod source code 2022-04-16 12:05:19 +03:00
JusicP
d5d0cac107 Fix Windows build with WAF 2022-03-19 14:40:11 +02:00
nillerusr
55ba87f223 game/server: fix build 2022-03-02 20:47: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
501c43b9b9 Disable trusted key verification for sv_pure, fix mod_texture.txt loading 2022-02-12 13:45:43 +03:00