Alibek Omarov
d52d50e283
engine: client: set user name as default value for name cvar. Add ui_username cvar with user name.
2024-07-28 14:44:03 +03:00
Alibek Omarov
31c20ac4d8
engine: client: don't call Host_IsDedicated when getting split size for client
2024-07-10 10:34:30 +03:00
Alibek Omarov
1458014a29
engine: remove unused CL_IsInMenu, don't check for Host_IsDedicated in SCR_BeginLoadingPlaque, it's useless
2024-07-10 10:24:22 +03:00
Alibek Omarov
e0dc1eec93
engine: client: more reliable way to find the payload the netinfo response
2024-07-07 06:49:54 +03:00
Alibek Omarov
ab130ee92c
engine: client: fix infostring truncation in NetAPI requests
2024-07-07 06:17:38 +03:00
Alibek Omarov
f8b958738a
engine: client: rework NetAPI response parsing
2024-07-07 03:30:34 +03:00
Alibek Omarov
e55577fd26
engine: get rid of some size constants passed to Info_SetValueForKey, use sizeof instead
2024-07-07 03:02:02 +03:00
Alibek Omarov
b6967a432a
engine: add NetAPI flag NET_ERROR_FORBIDDEN
2024-07-07 02:05:25 +03:00
Alibek Omarov
b4376a6a8c
engine: client: make a common function for sending out userinfo changes
2024-07-06 06:09:19 +03:00
Alibek Omarov
e18b61e041
Fixes for -Wformat=2 on 64-bit targets
2024-06-22 07:31:37 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
95b48da37d
engine: allow to change hardcoded path to custom.hpk
2024-06-15 17:22:26 +03:00
Alibek Omarov
1a5e2b907d
engine: client: minor refactoring for cls.demoplayback check
2024-06-15 13:56:25 +03:00
Alibek Omarov
3717e5c2e0
engine: client: simplify server message parsing by moving common code out of protocol-specific parsing funcs
2024-06-15 13:51:02 +03:00
Alibek Omarov
611d07fc16
engine: client: redefine legacymode from qboolean to an enum with selected protocol. Remove protocol auto-guess hack, it's useless since connect accept accepts protocol string
2024-06-15 10:52:26 +03:00
Alibek Omarov
2b6b898102
engine: client: make some cvars static
2024-06-15 08:44:19 +03:00
Alibek Omarov
5f4b8b60cb
engine: client: make remote print messages more obvious
2024-06-15 08:44:18 +03:00
Alibek Omarov
b3026a7991
engine: client: don't use CL_Active/CL_GetMaxClients wrappers as they are only intended to be either passed to DLL or used in common/server code
2024-06-13 01:19:38 +03:00
Alibek Omarov
21195b3491
engine: increase logo and hpak limits, add cl_logomaxdim cvar to limit decal size (set to 96, default HL logo size is 64)
2024-06-11 07:47:01 +03:00
SNMetamorph
ec5e9cb6e3
engine: client: send engine build information to masterserver
2024-06-10 20:53:59 +03:00
Alibek Omarov
413a0fb2e5
engine: client: improve accumulating rounding error, thanks @SNMetamorph for suggestion
2024-06-02 13:09:10 +03:00
Alibek Omarov
0796c14e79
engine: client: fix framerate depending player move
2024-06-02 04:15:17 +03:00
Alibek Omarov
1eb2816bc4
engine: client: manually call FS_Rescan if we downloaded an archive while connecting to server
2024-05-30 06:48:17 +03:00
Alibek Omarov
077be5aaf3
engine: client: only strip DEFAULT_SOUNDPATH from t_sound resources
2024-05-30 06:47:46 +03:00
SNMetamorph
73883b504f
engine: client: improved bandwidth test logic
2024-02-26 19:41:32 +03:00
Alibek Omarov
3cea12627e
engine: client: add cl_trace_stufftext from old engine
2024-02-17 22:16:39 +03:00
Alibek Omarov
c2da125358
engine: client: as an experiment, let users override default font rendermode through hud_fontrender and con_fontrender cvars
2024-02-09 07:25:47 +03:00
Alibek Omarov
af316bff14
engine: client: add hud_scale_minimal_width to limit scaling factor and potentially avoid unsupported hud sprites resolutions
2024-01-29 04:58:07 +03:00
Alibek Omarov
0b24810927
engine: client: clean up client.h from unused function prototypes, or move them to appropriate C file
2024-01-28 11:17:06 +03:00
Alibek Omarov
b3d8fb03bf
engine: client: add generic handler for simple types of screenshots commands
2024-01-28 10:43:37 +03:00
Alibek Omarov
75d476f9df
engine: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
5d6cf62405
engine: client: voice: open microphone only after server sends svc_voiceinit to us and shutdown immediately after disconnect
2024-01-24 20:52:21 +03:00
Alibek Omarov
266f9a6bc6
engine: client: add support for parsing IPv6 server list
2024-01-09 16:59:06 +03:00
Alibek Omarov
df6546d5b1
engine: client: add new gamma implementation
...
* immediately expose it in RefAPI. Bump RefAPI to version 7.
* remove VID_StartupGamma, it's not used anymore
* remove stub lightgamma and direct cvars
* add a temporary check for v_direct and v_lightgamma default values
2024-01-09 03:33:24 +03:00
Alibek Omarov
c56e876043
engine: client: don't reset runfuncs for demoplayback
2024-01-04 06:11:15 +03:00
Alibek Omarov
18136e5320
engine: client: implement HL25's cl_fixmodelinterpolationartifacts cvar
2024-01-04 03:32:36 +03:00
mittorn
b4a7c266b5
platform/linux: implement debug timers and cl_maxframetime to catch very long frames on debugger
2023-12-25 14:22:20 +03:00
Alibek Omarov
279cec5ae9
engine: rename cl/sv_allowdownload for GoldSrc compatibility
2023-10-27 07:25:09 +03:00
Alibek Omarov
3ac8ad9484
engine: fixup endianness found by -Werror=strict-aliasing in old armv7hf compiler (d259421111289af3b49c055150e02213f39075a6)
2023-10-22 20:02:14 +03:00
mittorn
b949da291e
engine: fix strict aliasing issues found by an old armv7hf compiler
2023-10-22 20:02:14 +03:00
Alibek Omarov
7d61b5317c
engine: client: add random key to the query, so we can validate master server response
2023-10-22 18:16:42 +03:00
Alibek Omarov
201258dc9e
engine: client: allow passing additional filter through internetservers command arguments
2023-10-22 17:58:28 +03:00
Alibek Omarov
0330569537
engine: client: remove master server queries from NetAPI, they are never used by mods
2023-10-22 17:49:52 +03:00
Alibek Omarov
33be1b7591
engine: client: let time flow in Xash demos
2023-10-14 15:11:26 +03:00
Alibek Omarov
706ef65208
engine: client: make unprefixed important userinfo cvars filterable, so servers won't be able to change them, for security
2023-09-04 02:39:34 +03:00
Alibek Omarov
3168e5ccf0
wscript: add an option to request and accept any servers
2023-08-08 09:24:10 +03:00
Alibek Omarov
87a56a5fa1
engine: client: initialize netadr_t structure in LAN games scan
2023-08-03 01:11:31 +03:00
Alibek Omarov
e23580c1de
engine: remove czeror sequence parser
...
This file initially came from HLND, a Chinese GoldSrc recreation.
It turned out to be suspiciously close to the original version, down
to the comments and code style. We don't work with leaked sources here,
so remove it.
A proper parser should be reimplemented from ground-up, when we will
start working on CZDS support.
2023-07-26 19:40:03 +03:00
Alibek Omarov
a862446072
engine: client: restore cl_trace_events from old engine branch
2023-07-02 04:48:43 +03:00
Alibek Omarov
450f77443d
engine: client: ignore some out of band packets if we're not connecting to server
2023-06-11 07:06:01 +03:00