Alibek Omarov
69341e36a3
public: expose commit and branch as global variables instead of functions
2025-01-13 20:02:59 +03:00
Alibek Omarov
692bcc4073
engine: client: cl_tent: rewrite fizz effect, fix incorrect positoning along the way
2025-01-09 19:23:40 +03:00
Alibek Omarov
07189ca2f5
engine: client: remove spammy message about not precached model on client side
...
Recently, mods (Brutal Half-Life v3 and MMod) started to call this function
every frame as a hacky way to detect presence of some model on the level. I
don't know why they do that, but users (who co-incidentally run engine with
-dev) has been complaining about console spam.
This is why we can't have things.
2025-01-09 17:10:54 +03:00
Alibek Omarov
e70ba7ad64
engine: now, remove SUPPORT_BSP2_FORMAT macro, only prevent ref_soft from loading such maps
2025-01-09 08:02:39 +03:00
Alibek Omarov
47aff9e30b
engine: hack mnode_t struct so we can have 24-bit face and children indices to support BSP2 format in runtime
2025-01-09 08:02:39 +03:00
Alibek Omarov
734c07ddab
engine: split clipnodes struct into two with 16-bit indicies and 32-bit indicies to support BSP2 format in runtime
2025-01-08 14:46:07 +03:00
Alibek Omarov
9d2a85f11f
engine: client: clear mouse state along with everything else in Key_ClearStates
2025-01-06 16:38:16 +03:00
Alibek Omarov
93d3df81ee
engine: client: small refactoring and better explanation for char input handler for menus that don't query our extended API
2025-01-06 16:00:11 +03:00
Alibek Omarov
0c4f6ae61d
engine: client: like GoldSrc, use cancelselect command for escape key. It is handled in client.dll and allows mods to override Esc key behavior
2025-01-06 13:51:25 +03:00
Alibek Omarov
d6ebff81e2
engine: client: vgui: track textures upload to avoid issues in buggy mods (that are probably will never get fixed)
2024-12-30 07:28:33 +03:00
Alibek Omarov
ce4148f351
engine: client: vgui: deprecate VGUI_CreateTexture and VGUI_UploadTextureBlock functions, as they never used by vgui_support module
...
* vgui_support used them in old engine for font cache, but we don't have that anymore.
2024-12-30 07:16:30 +03:00
Alibek Omarov
5d6cf48687
engine: client: fix lightstyle timings on GoldSrc protocol, share the parser with Quake protocol handler
2024-12-28 01:40:59 +03:00
Alibek Omarov
a5d78ecfd7
engine: be more verbose on why the engine is going to be shut down
2024-12-27 18:30:46 +03:00
Alibek Omarov
3576e474e6
engine: get rid of SendKeyEvents function, it only listened for WM_QUIT on Windows and we don't use that with SDL
2024-12-27 18:30:01 +03:00
Alibek Omarov
48bdd4238e
engine: always include reason to server shutdown
2024-12-26 02:13:13 +03:00
Alibek Omarov
fd2b7e9197
engine: client: declare music command as overridable as the same command exists in HLU SDK
2024-12-26 01:16:48 +03:00
Alibek Omarov
74c19a1557
engine: client: leave SDL2 client.dll detection for Windows only
2024-12-24 10:46:39 +03:00
Alibek Omarov
bd0d6644e0
engine: move Sys_SendKeyEvents to platform/win32
2024-12-24 09:59:47 +03:00
Alibek Omarov
70897af362
public: add dll helpers to simplify basic interaction with exported functions lists
2024-12-23 04:43:15 +03:00
Alibek Omarov
f1d7101ad8
engine: client: get rid of NULL sentinels at the end of arrays
2024-12-22 07:43:26 +03:00
Alibek Omarov
1dd622fcbb
engine: client: keys: refactoring, remove NULL sentinels, make keys structs and few more functions private to keys.c file
2024-12-21 15:22:48 +03:00
Alibek Omarov
ce06b1d3d7
engine: client: allow CL_GetLocalPlayer to return NULL rather than halting whole server
2024-12-20 05:47:46 +03:00
Alibek Omarov
a834f4996f
engine: move client adding functions to their appropriate subsystems and make them static. Make in-engine functions inlined.
2024-12-20 05:47:46 +03:00
Alibek Omarov
fdcf267fe3
engine: client: fix usermessage being removed because of case-sensitivity (message names are case-insensitive when transferred from server to client)
2024-12-20 03:05:14 +03:00
Alibek Omarov
3f1eed9f59
engine: client: remove svc_goldsrc_* definitions for message that semantics matches Xash3D 49 protocol and instead use it's definitions
2024-12-20 01:51:24 +03:00
Alibek Omarov
0637dbaab1
engine: client: refactor and simplify CL_RegisterUserMessage
2024-12-20 01:51:24 +03:00
Alibek Omarov
85388e97c1
engine: client: add command cl_list_messages to print all registered user messages
2024-12-20 01:51:24 +03:00
Alibek Omarov
de961eb45e
engine: client: use new extension for creating temporary files for demoheader
2024-12-19 07:10:02 +03:00
Alibek Omarov
98e587285b
engine: client: allocate static entities only when server sends static entity packet
2024-12-18 06:57:43 +03:00
Alibek Omarov
ca0c5f929a
engine: slight refactoring of lightstyle handling functions
2024-12-17 17:04:26 +03:00
Alibek Omarov
48cc526c7e
engine: client: fix possible svc_pings misparse by reading until null bit is encountered
2024-12-15 18:22:40 +03:00
Alibek Omarov
964744d330
engine: client: fix broken build due to incorrect constant being used
2024-12-05 14:20:43 +03:00
Alibek Omarov
f5d635b67b
engine: client: allow VOX words use other formats than WAV
2024-12-05 12:41:56 +03:00
Alibek Omarov
d0112a98b5
engine: client: improve error reporting in VOX_LoadSound, allow longer result paths, fix possible buffer overflow
2024-12-05 12:41:56 +03:00
Alibek Omarov
b030cdb4e3
engine: client: add NULL check to prevent crash if in_graph key doesn't exist in client.dll
2024-12-03 21:56:06 +03:00
Alibek Omarov
6d00aef398
engine: move soundlib onto client, only leave snd_utils with some functions that's engine core or server are dependent on
2024-12-02 21:05:41 +03:00
SNMetamorph
86154f81aa
engine: soundlib: allowed resampling sounds with rate >44kHz
2024-12-02 20:36:33 +03:00
Alibek Omarov
1f5c97964b
engine: return full path in server's pfnGetGameDir, if possible
2024-11-30 09:28:30 +03:00
Alibek Omarov
bf6a9cb0e7
engine: client: make R_GetTextureParms inlined
2024-11-23 15:02:13 +03:00
Alibek Omarov
689e29bc42
engine: client: only load paused icon when requested
2024-11-23 15:01:50 +03:00
Alibek Omarov
b316af13d6
engine: client: only load tile image when requested
2024-11-23 15:01:50 +03:00
Alibek Omarov
b9f4f1eba4
engine: client: fix engine features masking for 48 and 49 protocol
2024-11-20 04:16:44 +03:00
Alibek Omarov
87f0217588
engine: client: add cl_showcmd, yet another debugging aid to print current usercmd state
2024-11-18 10:42:39 +03:00
Alibek Omarov
c4f71f1a44
engine: client: remove unncesseray int <-> qboolean branch in CL_GetMessage
2024-11-18 10:42:39 +03:00
Alibek Omarov
af332eb8ac
engine: client: validate dem_usercmd size before reading it into the buffer
2024-11-18 10:42:39 +03:00
Alibek Omarov
622d88eeba
engine: client: only check active tempentities when detaching player following tents
2024-11-17 13:38:14 +03:00
Alibek Omarov
56c19c4f5a
engine: client: make some simple functions, like querying entity by index, getting local player, inline
2024-11-17 13:37:32 +03:00
Alibek Omarov
229f1560b0
engine: fix some possible off by one errors
2024-11-17 13:04:20 +03:00
Alibek Omarov
0ceb0d9e11
engine: provide compatible replacement for CompareFileTime function
2024-11-17 04:33:13 +03:00
Alibek Omarov
190e4a5e8a
engine: client: don't kill entity's beams if this entity number was never used on client
...
Fixes issue when beam was sent over to client before it's start point entity
(due to PVS, for example)
2024-11-15 08:07:21 +03:00