Alibek Omarov
|
f8b958738a
|
engine: client: rework NetAPI response parsing
|
2024-07-07 03:30:34 +03:00 |
|
Alibek Omarov
|
1b4427f13f
|
engine: server: rework NetAPI responses
players list and rules are now actually useful
|
2024-07-07 03:29:27 +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
|
c42960ec2a
|
engine: server: mark some cvars and movevars as server cvars, so they get reported in rules query
Bring back sv_contact cvar, as it makes sense to get this from rules query
|
2024-07-07 03:01:59 +03:00 |
|
Alibek Omarov
|
c033d4b65c
|
engine: server: optimize source query
|
2024-07-07 02:34:43 +03:00 |
|
Alibek Omarov
|
dc6f03b4e4
|
engine: server: add function SV_HavePassword that correctly checks whether this server have set up password
|
2024-07-07 02:10:48 +03:00 |
|
Alibek Omarov
|
b6967a432a
|
engine: add NetAPI flag NET_ERROR_FORBIDDEN
|
2024-07-07 02:05:25 +03:00 |
|
Alibek Omarov
|
7d0467863c
|
engine: server: add cvar to not expose current player list, or if server has a password
|
2024-07-07 01:59:56 +03:00 |
|
Alibek Omarov
|
a0b72d3995
|
engine: server: light sv_query.c refactoring, use Netchan_OutOfBand instead of manually creating out of band packet
|
2024-07-07 01:55:03 +03:00 |
|
Alibek Omarov
|
5fe4b867f3
|
engine: server: do not expose some cvars in rules, some of them just don't make sense
|
2024-07-07 01:51:50 +03:00 |
|
Alibek Omarov
|
40af058406
|
engine: client: console: add conback.dds by request, don't fail on texture that cannot be loaded
|
2024-07-06 22:30:05 +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
|
457422c679
|
engine: server: fix possible byte overflow when sending sound with attenuation == 4.0f
|
2024-07-06 05:50:53 +03:00 |
|
Alibek Omarov
|
080eba948f
|
engine: server: fix sound not being overriden when an entity sound came from has an aiment set
This check was added 10+ years ago in 8f6f3fc (viewable in Xash3DArchive) and
probably doesn't make any sense anymore.
|
2024-07-06 05:32:20 +03:00 |
|
Alibek Omarov
|
fcb463d400
|
engine: client: flush demoheader before copying it
|
2024-07-04 07:23:48 +03:00 |
|
Alibek Omarov
|
a0230b7e00
|
engine: client: console: minor refactoring, move common NXPrintf code to Con_NXPrintfv
|
2024-07-04 05:49:33 +03:00 |
|
Alibek Omarov
|
768755c31a
|
engine: client: use Con_Printf instead of Con_Print (which is just printing to console, not the logging)
|
2024-07-03 04:22:28 +03:00 |
|
Alibek Omarov
|
fe3644a417
|
engine: client: add simple debugging tool that shows entities number, model and movetype (to be extended)
|
2024-06-22 08:19:19 +03:00 |
|
Alibek Omarov
|
e18b61e041
|
Fixes for -Wformat=2 on 64-bit targets
|
2024-06-22 07:31:37 +03:00 |
|
Alibek Omarov
|
d054782693
|
engine: client: fix broken legacy demos playing
Fixes: ff4221fbe7 ("engine: client: write correct cls.legacymode/net_protocol value for demos")
|
2024-06-22 07:30:47 +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
|
3503c721ac
|
engine: client: console: simplify loading console background image
|
2024-06-19 03:35:28 +03:00 |
|
Alibek Omarov
|
0fab5f07d0
|
Revert "engine: common: mod_studio: reject models with split textures files that cannot be loaded"
This reverts commit 3256236ba2 .
|
2024-06-18 22:50:06 +03:00 |
|
Alibek Omarov
|
b0d12f8bf9
|
engine: client: fix build
Forgot to stage these changes two commits ago =/
|
2024-06-18 00:01:54 +03:00 |
|
Alibek Omarov
|
9fe58aaabc
|
engine: client: send expected cvar not found string for old protocol cvar query
|
2024-06-17 23:44:05 +03:00 |
|
Alibek Omarov
|
03c8ea14cc
|
engine: client: mute music if not in focus
|
2024-06-17 20:32:04 +03:00 |
|
Alibek Omarov
|
95b48da37d
|
engine: allow to change hardcoded path to custom.hpk
|
2024-06-15 17:22:26 +03:00 |
|
Alibek Omarov
|
1b36785177
|
engine: common: hpak: rename hpk_maxsize to hpak_max_size to avoid Valve's defaults
While we're here:
* Increase it to 64 MiB.
* Make it privileged.
* Add hpk_maxsize stub command as a deprecation notice.
|
2024-06-15 16:55:25 +03:00 |
|
Alibek Omarov
|
8bc76e3d58
|
engine: host: do not specifically check timedemo or vsync in Host_CalcSleep, because it's already has been checked in Host_CalcFPS
|
2024-06-15 13:57:12 +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
|
33a1416199
|
engine: common: net_chan: remove unneeded check for demo and remote address in netchan, as it's handled in client and server already
|
2024-06-15 13:44:26 +03:00 |
|
Alibek Omarov
|
ff4221fbe7
|
engine: client: write correct cls.legacymode/net_protocol value for demos
|
2024-06-15 13:43:18 +03:00 |
|
Alibek Omarov
|
486bca82e8
|
engine: add quake svc messages names
|
2024-06-15 11:04:30 +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
|
f7e12586cf
|
engine: platform: sdl: we must notify the engine about the unpressed button when text input was activated
|
2024-06-15 08:44:19 +03:00 |
|
Alibek Omarov
|
f62aa051c8
|
engine: common: make netchan cvars static
|
2024-06-15 08:44:19 +03:00 |
|
Alibek Omarov
|
2b6b898102
|
engine: client: make some cvars static
|
2024-06-15 08:44:19 +03:00 |
|
Alibek Omarov
|
1dd0444531
|
engine: server: comment out unused cvars, make some static
|
2024-06-15 08:44:19 +03:00 |
|
Alibek Omarov
|
ba9eb01c1f
|
engine: server: replace timeout cvar by sv_timeout cvar for consistency with GoldSrc
|
2024-06-15 08:44:19 +03:00 |
|
Alibek Omarov
|
73a8144e75
|
engine: client: reduce console spam about not precached model to dev level 1
|
2024-06-15 08:44:18 +03:00 |
|
Alibek Omarov
|
5f4b8b60cb
|
engine: client: make remote print messages more obvious
|
2024-06-15 08:44:18 +03:00 |
|
Alibek Omarov
|
3256236ba2
|
engine: common: mod_studio: reject models with split textures files that cannot be loaded
|
2024-06-14 11:34:42 +03:00 |
|
Alibek Omarov
|
b102727320
|
engine: client: try to not save passwords to console history
|
2024-06-14 11:34:37 +03:00 |
|
Alibek Omarov
|
3434005e66
|
engine: common: make Host_IsLocalGame and Host_IsLocalClient inlined
|
2024-06-13 01:20:14 +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
|
0a051832a8
|
engine: client: do not mute sounds in menu with multiplayer, the bug already been solved different way
|
2024-06-13 01:07:49 +03:00 |
|
Alibek Omarov
|
2dbafbda02
|
engine: common: mod_studio: fix NULL mod->cache.data if model has split texture file but none was loaded
|
2024-06-12 23:37:30 +03:00 |
|
Alibek Omarov
|
240b6fb6f2
|
engine: fix possible unprivileged config execute with fake extension
|
2024-06-12 11:16:31 +03:00 |
|
Alibek Omarov
|
4163d3655a
|
engine: reformat and reorder host_parm_s struct, remove now unused host.daemonize and host.enabledll
|
2024-06-12 11:16:26 +03:00 |
|