Alibek Omarov
eefb823ee2
engine: client: remove legacy movie audio track streaming functions
2024-12-13 03:04:32 +03:00
Alibek Omarov
a3c33e0fa9
engine: client: sound: make S_RawSampleStereo public to other parts of engine
2024-12-13 03:04:32 +03:00
Alibek Omarov
16fe6b1b1a
engine: client: avi: remove VFW-based player
2024-12-13 03:04:32 +03:00
Alibek Omarov
4275829bd5
engine: client: partially rework how AVI playback works in Xash. Add ffmpeg-based player.
...
This intentionally will not build without --enable-ffmpeg for now.
We add new functions to the RenderAPI called AVI_Think and AVI_SetParm. Game
developer is supposed to call AVI_Think each frame and set video playback
parameters through AVI_SetParm function.
What's tested:
* Intro cinematics.
* Looping videos.
* Playing back an hour long video.
* API extension (PrimeXT's avi branch at https://github.com/a1batross/PrimeXT ).
What's broken:
* There is no way to seek a video file, only rewind to the start.
2024-12-13 03:04:32 +03:00
Alibek Omarov
1884f0a3ce
engine: client: avi: add new macro XASH_AVI and corresponding backend select macros (AVI_NULL and AVI_FFMPEG)
2024-12-09 00:27: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
Alibek Omarov
d15949d2e8
Rename _format to FORMAT_CHECK
2024-11-07 14:24:07 +03:00
Alibek Omarov
3917e096ea
engine: client: the most important change since forever, move downloading message a bit to the right so it looks better on 640x480
2024-11-07 14:12:10 +03:00
Alibek Omarov
d1a571201b
engine: client: s_mix: attempt to fix S_InterpolateCubic2x buffer overflow
2024-11-07 14:12:10 +03:00
Alibek Omarov
8a8cdd2927
engine: client: another possible null pointer dereference
2024-11-07 14:12:10 +03:00
Alibek Omarov
6a2a2c33ee
engine: client: don't go out of bounds if studio model don't have any sequences
...
Fixes models/null.mdl in Master Sword Rebirth. It's technically a valid model, though
completely useless for renderer.
2024-11-07 07:13:20 +03:00
Alibek Omarov
0d2a8488ae
engine: client: replace illegal for infostring characters in server info got from TSource Engine Query
2024-11-06 19:46:22 +03:00
Alibek Omarov
41b78c26ef
engine: client: s_vox: fix incorrect check in VOX_FreeWord
2024-11-06 01:39:46 +03:00
Alibek Omarov
ca93c5b666
engine: client: touch: use FillRGBA to draw edit grid
2024-11-06 01:39:46 +03:00
Alibek Omarov
80f8b778a9
engine: client: cl_tent: more accurate R_FizzEffect
2024-11-06 01:39:46 +03:00
Alibek Omarov
8c5db5f980
engine: client: turn some asserts in texture remap code into proper nullptr checks
2024-11-06 01:39:46 +03:00
Alibek Omarov
3756361cfe
engine: client: fix possible NULL dereference when setting up bbox for non-solid visent that somehow doesn't have a model
2024-11-06 01:39:46 +03:00
Alibek Omarov
5f3e167799
engine: client: prevent possible null dereference with malformed consistency info packet
2024-11-06 01:39:45 +03:00
Alibek Omarov
fa6f564c12
engine: client: allow extended amount of commands to be sent for newer GoldSrc server. Also refactoring
2024-11-06 01:39:45 +03:00
Alibek Omarov
ad457f717b
engine: client: no sense to check for position history pointers for NULL in CL_FindInterpolationUpdates, as they never are
2024-11-06 01:39:45 +03:00
Alibek Omarov
f95ce7f52d
engine: client: cl_font: fix possible NULL dereference
2024-11-06 01:39:45 +03:00
Alibek Omarov
ec73f23e4a
engine: client: rewrite R_RocketTrail for accuracy and fix potential uninitialized vectors
2024-11-05 17:43:09 +03:00
Alibek Omarov
4cb11861e4
engine: client: reimplement Mod_LoadMapSprite on engine side
2024-11-03 02:58:31 +03:00
Alibek Omarov
addd50467e
engine: remove FillRGBABlend from RefAPI. FillRGBA now accepts rendermode parameter
2024-11-03 02:24:36 +03:00
Alibek Omarov
f079e63737
engine: client: reimplement R_DrawTileClear on engine-side
2024-11-03 02:19:49 +03:00
Alibek Omarov
d807041aa5
engine: client: register sound cvars even if audio was disabled
2024-11-03 01:20:30 +03:00
Alibek Omarov
6153d7f168
engine: make CL_RunLightStyles accept lightstyles array pointer as an argument. Make necessary changes in renderers.
2024-11-03 01:20:30 +03:00
Alibek Omarov
e37feece4d
engine: finally remove GetLightStyle, GetDynamicLight and GetEntityLight from RefAPI
2024-11-03 01:20:30 +03:00
Alibek Omarov
9ed55776a9
engine: add PARM_GET_*_PTR for lightstyles and dlights arrays
2024-11-03 01:20:30 +03:00
Alibek Omarov
b45bc9af67
engine: remove gamma functions from RefAPI
2024-11-03 01:20:30 +03:00
Alibek Omarov
2227e487c0
engine: client: explicitly set rendermode for R_ShowTree
2024-11-03 01:20:30 +03:00
Alibek Omarov
1f49ce599f
engine: client: fix out of bound read in gamma table access functions
2024-11-03 01:20:30 +03:00