107d4cdd61
engine: client: fix buffer overrun in S_TrimEnd
2024-07-30 15:25:20 +03:00
7bb5175084
Turn downloaded/ and custom/ into com_strings.h definitions, like sound path and saves path
2024-07-30 15:25:20 +03:00
dd570b616b
engine: client: properly exit from touch editor to menu when user have chosen to cancel and reset
2024-07-29 05:11:41 +03:00
943a30af04
engine: client: add privileged flag to touch_in_menu and touch_enable
2024-07-29 05:08:35 +03:00
eabed60e56
engine: automatically turn-on touch emulation while editing touch from menu
2024-07-29 05:06:10 +03:00
f4a3b8571d
engine: fix inverted check in debug log output
...
Why there is even this check in the first place???
2024-07-29 04:48:21 +03:00
4a5f34089d
engine: client: fix TriColor4fRendermode
2024-07-28 20:50:20 +03:00
90da9659d1
engine: client: vgui: enable texturing in VGUI by default, just in case reset color too
2024-07-28 20:03:32 +03:00
2e30acf611
engine: client: voice: allow restoring voice after toggling voice_enable while connected to server
2024-07-28 17:12:32 +03:00
5554d13f7f
engine: client: fix buffer overflow in voice sound mixer
2024-07-28 16:41:20 +03:00
9a2588f7eb
engine: client: console: fix a rare crash when we're in game, console is enabled but it's empty
...
With ui_allowconsole toggle it's easy to reproduce: join game without console, go to menu,
enable console and return back to game.
2024-07-28 14:48:40 +03:00
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
6911da8581
engine: client: add ui_allowconsole command that enables console
...
To be used by UI
2024-07-28 13:32:52 +03:00
e70f9a67b8
engine: host: always enable console for dedicated
2024-07-26 11:08:34 +03:00
6120c0daec
engine: print command line args alongside developer level during init
2024-07-22 22:15:56 +03:00
790f9bde54
engine: client: hack mobile API init because of incorrectly defined export in hlsdk-portable
2024-07-21 21:18:00 +03:00
7a469fb481
engine: always use original player hulls for pmove trace, because mods can write invalid data in pmove->player_{mins,maxs}
2024-07-21 11:01:18 +03:00
38bef99f98
engine: client: fix opening Quake demos
2024-07-21 05:01:31 +03:00
95ff9e7165
engine: client: prevent empty lightstyle console flood
2024-07-21 05:01:16 +03:00
2fddbdddee
engine: client: fix ScreenFade under quake compatibility mode
2024-07-21 04:33:46 +03:00
465e812ed9
engine: client: fix EF_DIMLIGHT under quake compatibility mode
2024-07-21 04:33:31 +03:00
3b1fb79a85
engine: client: use Host_IsQuakeCompatible instead of checking host.features bit
2024-07-21 04:32:38 +03:00
0f8f35b415
engine: fix alias model loading
2024-07-21 04:15:56 +03:00
a133b1c2a9
engine: remove unused texFlags argument in Mod_LoadSpriteModel
2024-07-21 03:04:21 +03:00
fa74acb5f0
Revert "engine: client: make client engfuncs const"
...
This reverts commit 14ae9b312d
.
2024-07-21 02:53:28 +03:00
836b4c358f
Revert "engine: server: make physic engfuncs const"
...
This reverts commit 5af9511505
.
2024-07-21 02:53:23 +03:00
982e32d108
engine: client: don't mistakingly tell user about failed mobile api, when it's just not used by client.dll
2024-07-21 02:07:38 +03:00
024a335505
engine: move wcon definitions to platform.h
2024-07-21 02:06:51 +03:00
6d98d2c7c3
engine: check XASH3D_GAME if -game argument wasn't found, do not override default base directory
...
Clarify that `--gamedir` configure option and `XASH_GAMEDIR` macro specify base directory
2024-07-21 01:04:50 +03:00
64726f13e1
engine: client: more accurate R_BeamKill reimplementation
...
Reverse engineered from HL25 hw.so
2024-07-19 07:13:14 +03:00
85dfaaa2c2
engine: imagelib: add LUMP_TEXGAMMA palette kind to only pass HL textures through texgamma, not Quake
2024-07-19 06:34:51 +03:00
56464d3291
engine: when colorizing standard output, use bold text, as it makes it more visible (especially with black text)
2024-07-17 22:53:35 +03:00
aed96ee753
engine: common: reduce large static arrays amount for logging by adding generic function accepting va_list
2024-07-17 22:27:20 +03:00
a937320c65
engine: wscript: add ffmpeg hidden option, just to make it easier for me to switch between branches
2024-07-17 22:27:20 +03:00
a81a0cb059
engine: client: make menu engfuncs const
2024-07-16 15:23:03 +03:00
5af9511505
engine: server: make physic engfuncs const
2024-07-16 15:23:03 +03:00
14ae9b312d
engine: client: make client engfuncs const
2024-07-16 15:23:03 +03:00
2d3e5c2e0b
engine: client: make renderer engfuncs const
2024-07-16 15:23:03 +03:00
17950fec3e
filesystem: make engfuncs const
2024-07-16 15:23:03 +03:00
09a7585643
engine: soundlib: super micro-optimization, reallocate buffer in Image_Copy rather than allocating and copying
2024-07-16 05:11:06 +03:00
a09084ceba
engine: imagelib: super micro-optimization, reallocate buffer in Image_Copy rather than allocating and copying
2024-07-16 05:10:29 +03:00
147e5dceff
engine: request SDL to ungrab mouse before signaling debugger to stop
2024-07-16 05:09:02 +03:00
3510afd30b
engine: zone: allow moving allocation from one pool to another during realloc
2024-07-16 05:06:44 +03:00
d3586c2143
engine: soundlib: add support for converting stereo to mono and back, attempt to simplify conversion boilerplate
2024-07-16 05:05:50 +03:00
56ba2325c1
engine: client: skip drawing 2D during changelevel before the client was active
...
* Prevents screen garbage on GPUs with tile-based renderers like Adreno and ImgTec
2024-07-11 09:01:19 +03:00
b77a4ed3a1
engine: client: ignore changelevel for old protocol
...
* Prevents engine from drawing too early during reconnect to a
legacy coop server
2024-07-11 08:59:42 +03:00
9b86c3127a
engine: properly disconnect from online game when loading local game (save, newgame or a level)
2024-07-10 12:32:33 +03:00
0da7ffe45f
engine: client: reset video after last screen update in begin loading plaque. Because update screen supposedly should draw the whole screen now, gl_clear hack shouldn't be required anymore
2024-07-10 11:59:54 +03:00
c16abc0b85
engine: server: first check for dedicated server in SV_IsSimulating, as CL_Active()/CL_IsInConsole() don't make sense if we're running dedicated server already
2024-07-10 10:35:47 +03:00
708c691cdb
engine: fix XASH_DEDICATED check
2024-07-10 10:34:57 +03:00
31c20ac4d8
engine: client: don't call Host_IsDedicated when getting split size for client
2024-07-10 10:34:30 +03:00
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
1c84a5c8ad
engine: platform: sdl: disable restoring desktop resolution for mobile platforms, as it leads to unwanted window minimize (which correctly implemented by SDL by the way)
2024-07-09 19:52:11 +03:00
6728b843f7
engine: platform: android: use RTLD_NOW in dlopen()
...
We basically use RTLD_NOW everywhere in the engine these days,
only platform code is behind that
2024-07-09 16:50:37 +03:00
6ff3231dab
engine: change current working directory before initializing filesystem_stdio
2024-07-09 08:45:27 +03:00
a1191eb4ab
engine: platform: win32: request error string in wide chars and then transform it to UTF-8 using our utflib
2024-07-09 08:24:58 +03:00
166bed732e
engine: crashhandler: few improvements for win32 crashhandler
...
* Larger message buffer
* Print version at first line
* Tell SDL2 to ungrab mouse
2024-07-08 05:56:20 +03:00
159467ad44
engine: add IPv6 master server
2024-07-07 21:18:02 +03:00
e0dc1eec93
engine: client: more reliable way to find the payload the netinfo response
2024-07-07 06:49:54 +03:00
ab130ee92c
engine: client: fix infostring truncation in NetAPI requests
2024-07-07 06:17:38 +03:00
dabbe09918
engine: add NetAPI flag to send NetAPI requests to old protocol servers
2024-07-07 06:17:15 +03:00
296a7ac11d
engine: client: fix NetAPI request sending
2024-07-07 06:16:46 +03:00
6bbf08893e
engine: add NetAPI to extended menu API
2024-07-07 03:39:09 +03:00
f8b958738a
engine: client: rework NetAPI response parsing
2024-07-07 03:30:34 +03:00
1b4427f13f
engine: server: rework NetAPI responses
...
players list and rules are now actually useful
2024-07-07 03:29:27 +03:00
e55577fd26
engine: get rid of some size constants passed to Info_SetValueForKey, use sizeof instead
2024-07-07 03:02:02 +03:00
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
c033d4b65c
engine: server: optimize source query
2024-07-07 02:34:43 +03:00
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
b6967a432a
engine: add NetAPI flag NET_ERROR_FORBIDDEN
2024-07-07 02:05:25 +03:00
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
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
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
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
b4376a6a8c
engine: client: make a common function for sending out userinfo changes
2024-07-06 06:09:19 +03:00
457422c679
engine: server: fix possible byte overflow when sending sound with attenuation == 4.0f
2024-07-06 05:50:53 +03:00
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
fcb463d400
engine: client: flush demoheader before copying it
2024-07-04 07:23:48 +03:00
a0230b7e00
engine: client: console: minor refactoring, move common NXPrintf code to Con_NXPrintfv
2024-07-04 05:49:33 +03:00
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
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
e18b61e041
Fixes for -Wformat=2 on 64-bit targets
2024-06-22 07:31:37 +03:00
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
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
3503c721ac
engine: client: console: simplify loading console background image
2024-06-19 03:35:28 +03:00
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
b0d12f8bf9
engine: client: fix build
...
Forgot to stage these changes two commits ago =/
2024-06-18 00:01:54 +03:00
9fe58aaabc
engine: client: send expected cvar not found string for old protocol cvar query
2024-06-17 23:44:05 +03:00
03c8ea14cc
engine: client: mute music if not in focus
2024-06-17 20:32:04 +03:00
95b48da37d
engine: allow to change hardcoded path to custom.hpk
2024-06-15 17:22:26 +03:00
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
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
1a5e2b907d
engine: client: minor refactoring for cls.demoplayback check
2024-06-15 13:56:25 +03:00
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
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
ff4221fbe7
engine: client: write correct cls.legacymode/net_protocol value for demos
2024-06-15 13:43:18 +03:00
486bca82e8
engine: add quake svc messages names
2024-06-15 11:04:30 +03:00
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
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
f62aa051c8
engine: common: make netchan cvars static
2024-06-15 08:44:19 +03:00
2b6b898102
engine: client: make some cvars static
2024-06-15 08:44:19 +03:00
1dd0444531
engine: server: comment out unused cvars, make some static
2024-06-15 08:44:19 +03:00
ba9eb01c1f
engine: server: replace timeout cvar by sv_timeout cvar for consistency with GoldSrc
2024-06-15 08:44:19 +03:00
73a8144e75
engine: client: reduce console spam about not precached model to dev level 1
2024-06-15 08:44:18 +03:00
5f4b8b60cb
engine: client: make remote print messages more obvious
2024-06-15 08:44:18 +03:00
3256236ba2
engine: common: mod_studio: reject models with split textures files that cannot be loaded
2024-06-14 11:34:42 +03:00
b102727320
engine: client: try to not save passwords to console history
2024-06-14 11:34:37 +03:00
3434005e66
engine: common: make Host_IsLocalGame and Host_IsLocalClient inlined
2024-06-13 01:20:14 +03:00
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
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
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
240b6fb6f2
engine: fix possible unprivileged config execute with fake extension
2024-06-12 11:16:31 +03:00
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
2c7bf49fc9
engine: host: avoid some of unnecessary double-to-float conversions
2024-06-12 10:20:09 +03:00
739592e50d
engine: host: refactoring, reduce usage of global variables a bit
2024-06-12 10:20:09 +03:00
393e31e509
engine: move finding root/readonly directory to FS initialization, remove unused host.rodir, host.rootidr
2024-06-12 10:20:09 +03:00
a1dceacc8f
engine: remove unused host.hMutex and host.hInst
2024-06-12 10:20:09 +03:00
cf26c87872
engine: remove unused host.decalList and host.numdecals
2024-06-12 10:20:09 +03:00
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
daae4f2f80
engine: ref_api: bump RefAPI to version 8
2024-06-11 06:18:09 +03:00
4e2708c1ac
engine: bring back texture replacement
2024-06-11 06:16:26 +03:00
9577a6af21
ref: moved VGUI support API implementation to the engine
2024-06-11 02:07:49 +03:00
107a6aed01
ref: move PARM_SURF_SAMPLESIZE handling to the engine
2024-06-11 02:07:49 +03:00
2c2045d413
ref: move PARM_SKY_SPHERE handling to the engine
2024-06-11 02:07:49 +03:00
30fe471d2b
ref: move loading skybox into the engine
2024-06-11 02:07:44 +03:00
5ab6979633
ref: move common quake sky cloud loading to the engine
2024-06-10 22:47:39 +03:00
SNMetamorph
ec5e9cb6e3
engine: client: send engine build information to masterserver
2024-06-10 20:53:59 +03:00
f4b4546197
engine: temporarily fix loading studio models with split texture model
2024-06-10 14:57:00 +03:00
f047749e61
engine: move studio model truncation into separate function, disable it by default
2024-06-10 13:34:02 +03:00
87840ce91d
engine: fix potential buffer overflow in Mod_StudioTexName
...
* Model names are 64 bytes wide, adding texture character means we needs 65 byte wide string.
* It never gets stored in memory anyway.
2024-06-10 13:28:01 +03:00
bf31e9f634
engine: fix NO_ASAN macro usage with MSVC
2024-06-09 09:37:16 +03:00
f86d84daed
engine: platform: sdl: initialize window name string when building with old SDL
2024-06-09 09:16:45 +03:00
df23ddb545
engine: server: fix signed integer overflow in challenge generator
2024-06-09 07:05:24 +03:00
767556ccad
engine: temporarily disable ASan in MSG_WriteUBitLong (evil!)
2024-06-09 07:03:59 +03:00
f9dab2ad19
engine: server: rename sv_allow_upload to sv_allowupload for compatibility
2024-06-09 07:02:50 +03:00
66cb3a6120
engine: client: add room_off variable to toggle sound effects processing for GoldSrc compatibility
...
* Fixes Sven-Coop 4.8 client.
* Declare dsp_off deprecated.
2024-06-09 03:51:43 +03:00
Tuldok
7672a370da
engine: Crashhandler support for Windows-on-ARM (arm/arm64)
2024-06-08 21:35:55 +03:00
870e47ed03
engine: ensure character signness when checking for nonprintable characters
2024-06-07 22:22:13 +03:00
32d4bdb80f
engine: fix UTF-8 sequence input
...
Fixes: 2e0fc3e4c1
("engine: client: do not repeatedly check cl_charset value, use generic Con_UtfProcessChar")
2024-06-07 22:16:32 +03:00
413a0fb2e5
engine: client: improve accumulating rounding error, thanks @SNMetamorph for suggestion
2024-06-02 13:09:10 +03:00
999b43b89f
engine: implement changing cursor type in gameui
2024-06-02 12:24:14 +03:00
6255293dd4
engine: fix using OpenMP PHS generation under Visual Studio
2024-06-02 10:34:10 +03:00
a709f30da9
engine: soundlib: libmpg: add wrappers on top of libc read & lseek in case they don't match internal mpg123 types
...
(we better migrate to upstream libmpg at some point)
2024-06-02 09:19:17 +03:00
0796c14e79
engine: client: fix framerate depending player move
2024-06-02 04:15:17 +03:00
a9c0a4be23
engine: server: add cvar to disable bandwidth test on server side
2024-06-01 05:27:35 +03:00
3e1209d3a4
engine: client: do not rely on host.downloadcount when connecting to the server with HTTP enabled
...
* Replace cl.downloadUrl by cl.http_download
2024-06-01 04:30:21 +03:00
caf14c1b7c
engine: soundlib: libmpg: fix the inconsistent use of offset types in lseek()
2024-05-31 03:35:39 +03:00
27f7d2c8d2
engine: common: ban few more executable types for COM_IsSafeFileToDownload
2024-05-31 00:43:28 +03:00
8ee430eda2
engine: common: double check that resource starting with !MD5 doesn't have any extension
2024-05-31 00:42:44 +03:00
484e4cb225
engine: common: net_ws: less verbose HTTP client, fix printing header size in case of an error
2024-05-31 00:07:14 +03:00
b080ad9954
engine: moved link_t helpers to sv_world.c from world.c and made them static
2024-05-30 07:31:03 +03:00
f6625d9188
engine: common: remove unused et_name array
2024-05-30 07:22:21 +03:00
1eb2816bc4
engine: client: manually call FS_Rescan if we downloaded an archive while connecting to server
2024-05-30 06:48:17 +03:00
077be5aaf3
engine: client: only strip DEFAULT_SOUNDPATH from t_sound resources
2024-05-30 06:47:46 +03:00
d59875f114
engine: common: for automatic wad precache to work, we need to count the real wad usage on dedicated
2024-05-30 06:18:15 +03:00
e89191ed39
engine: common: automatically precache wad files required by loaded map
...
Makes it easier to host server with multiplayer maps and broken .res files.
2024-05-30 05:58:41 +03:00
ea21438637
engine: netchan: append .ztmp extension instead of replacing original extension
...
* so we don't send wrong file that has same name but different extension
* validate filename size so it won't get truncated in fragbuf_t
2024-05-30 04:50:58 +03:00
338399e622
engine: common: implement PHS calculation like in QuakeWorld/GoldSrc
2024-05-29 05:58:51 +03:00
1545a49b4c
engine: client: only allocate debug hulls polygons when they're requested
...
* Make the appropriate changes in ref_gl
2024-05-29 05:41:47 +03:00
3ca15250e8
engine: common: use Mod_PointInLeaf in Mod_GetPVSForPoint instead of traversing nodes manually
2024-05-29 05:41:47 +03:00
6cbac51731
engine: common: add function for compressing visdata
2024-05-29 05:41:47 +03:00
e310c666b1
engine: common: add phs flag to Mod_FatPVS, unused currently
2024-05-29 05:41:47 +03:00
677b0170aa
engine: server: remove recalculating viewpoint for PVS hack, as it causes issues with inconsistency between real and "restored" view positions
2024-05-29 05:41:47 +03:00
9150b770e4
engine: common: mod_bmodel: add function Mod_DecompressVisTo that will copy fat vis data into the provided buffer
2024-05-29 05:41:47 +03:00
823fe9ebbd
waf: upgrade to waf 2.1.1/waifu 1.3.0. Try to fix most optparse->argparse migration issues
2024-05-25 04:58:28 +03:00
4bf72b5383
engine: forbid accessing cvars starting with con_ and scr_ through stufftext
...
Some stupid servers might mess up with console cvars values.
2024-05-25 02:26:42 +03:00
51945f002b
engine: server: check for invoker entity when filtering out host client during entities thinking
2024-05-23 02:06:54 +03:00
bcca9387de
engine: server: sv_pmove: always set FEV_NOTHOST for events coming from PMove (like GoldSrc)
2024-05-23 01:51:42 +03:00
6c03fb0226
engine: client: first attempt to use utflib to replace Con_UtfProcessCharForce calls
2024-05-15 05:25:53 +03:00
2e0fc3e4c1
engine: client: do not repeatedly check cl_charset value, use generic Con_UtfProcessChar
2024-05-15 05:06:57 +03:00
052e0445ab
engine: client: console: cleanup input buffer from line feed characters before pushing it to the console history
2024-05-15 03:08:22 +03:00
f4a77308ec
engine: soundlib: fix possible buffer overflow in Sound_ConvertUpsample
2024-05-06 15:45:49 +03:00
75a315ecf0
engine: client: add optional (compile time for now) setting to reconfigure engine to use 48kHz sounds
2024-05-06 15:10:34 +03:00
63b3b9ef6d
engine: client: fix missing upsampling for >32kHz sounds
2024-05-06 15:09:52 +03:00
a6c2cfe89b
engine: avoid constants in Q_strncpy third argument, where possible
2024-05-06 14:27:26 +03:00
5120657386
engine: fix possible buffer overflow in S_StreamGetCurrentState
2024-05-06 06:53:22 +03:00
e754de46d1
engine: client: fix buffer overflow in S_FindName
2024-05-06 06:42:47 +03:00
55fcbc8880
engine: soundlib: implement linear interpolation in Sound_ResampleInternal
...
* split resampling into three functions
* added resampling using SDL_AudioCVT, it's slow, so isn't enabled by default
2024-05-06 06:41:23 +03:00
e19aa001b2
engine: client: ref_common: slight refactoring, reorder ref_state_t
2024-05-06 01:59:50 +03:00
b447ea9c18
engine: client: remove unused fields in client_static_t
2024-05-06 01:59:14 +03:00
13274655d4
engine: client: sound: slight refactoring, removed unused s_listener.velocity
2024-05-06 01:30:06 +03:00
3723ac60ef
engine: client: s_mix: _inline -> static
2024-05-06 00:51:32 +03:00
da578f47f1
engine: client: fix sounds being paused in menu and then blasted all at the same time in multiplayer
2024-05-06 00:41:38 +03:00
433e7de686
engine: clean up unused soundlib flags, set SOUND_LOOPED flag on looped sounds
2024-05-05 06:16:57 +03:00
e18e9ae2ea
engine: platform: sdl: ignore keyboard events if text mode is active
2024-05-04 11:05:17 +03:00
94d3eff9ce
engine: host: fix build with Q_strchrnul returning const char *
2024-05-03 15:31:20 +03:00
31c0934108
engine: fix parsing -bugcomp flags, assume bugcomp flags only starts with alphabetic character
2024-05-03 06:28:48 +03:00
dd410a2de5
engine: implement small Message Rewrite Facitility that allows to run mods that directly write internal GoldSrc messages
2024-04-28 06:59:18 +03:00
2f3429a144
engine: common: base_cmd: use flexible array to store basecmd name
2024-04-28 06:59:18 +03:00
20782693f4
engine: server: rename symbols for svs, sv and SV_DropClient to avoid AMXModX trying to acquire their pointers
2024-04-28 06:59:18 +03:00
9be5b7c6c9
engine: physint: empty-define ALLOC_CHECK if not defined by SDK, so this header can be freely moved to another SDK
2024-04-28 06:59:18 +03:00
e7653d2ea6
engine: soundlib: fix searching for a RIFF/WAVE chunks in streams
2024-04-27 10:51:56 +03:00
1494887e29
engine: soundlib: snd_wav: replace strncmp by IsFourCC helper function
2024-04-26 06:29:38 +03:00
42dab2b1a5
engine: soundlib: snd_wav: attempt to fix misleading warning about truncated file
2024-04-26 06:25:18 +03:00
60c6767337
filesystem: copy absolute path to library in FS_FindLibrary for compatibility
...
Extend fullPath for longer absolute paths.
2024-04-22 04:02:46 +03:00
75451cc7fa
engine: client: print correct message names in legacymode
2024-04-22 04:02:46 +03:00
db10035d9d
engine: add GoldSrc protocol definitions
2024-04-22 04:02:46 +03:00
de21d845ec
engine: don't forget to put newline at the end of overflowed console message
2024-04-21 20:21:17 +03:00
320f8466e6
engine: hpak: don't print error about missing custom.hpak in quiet mode
2024-04-21 20:05:37 +03:00
f3208e95b2
engine: server: remove misleading message about interface version in case when GetEntityAPI2 has failed
...
Add message when GetEntityAPI was used instead
2024-04-21 20:05:34 +03:00
ea34bc8652
engine: turn bugcomp into flags that can be enabled/disabled separately
2024-04-21 16:52:15 +03:00
ca9d3d262a
engine: common: net_encode: directly call MSG_ReadSBitLong for DT_TIMEWINDOW_*, don't do the multiplier check for DT_TIMEWINDOW_BIG
2024-04-20 20:48:01 +03:00
a08f5e439d
engine: common: net_encode: fix comparing DT_TIMEWINDOW_* fields
...
Fixes: 35783bcec2
("engine: common: net_encode: fix inaccuracy in DT_TIMEWINDOW_* encoding")
2024-04-19 01:51:25 +03:00
8f6771dff4
engine: common: zone: check that Mem_FindPool might return NULL (it can if Sys_Error was called inside of a Sys_Error)
2024-04-19 00:14:26 +03:00
cd47c6b5b3
engine: common: zone: disallow migrating allocations from one pool to another, as this isn't practically used anywhere
2024-04-19 00:14:26 +03:00
1f4f3d7fda
engine: common: zone: remove mempool sentinels as pools aren't subject to buffer overflow or double free anymore
2024-04-19 00:14:26 +03:00
e81b5144b3
engine: common: zone: use realloc for managing mem pools
...
rearrange data in memheader_s to avoid unnecessary paddings
2024-04-19 00:14:26 +03:00
9ec1caed53
engine: common: zone: implement dummy Q_realloc for XASH_CUSTOM_SWAP
2024-04-19 00:14:26 +03:00
ca3b4a9d7f
engine: host: oops
2024-04-18 16:48:41 +03:00
87ac217887
engine: common: net_encode: add bitmask operation to delta tests
2024-04-18 16:44:15 +03:00
213650db8f
engine: exit with non-zero return code if engine tests are failed
2024-04-18 16:36:18 +03:00
ac46164a6e
engine: common: net_encode: implement basic delta tests
2024-04-17 20:27:22 +03:00
6d12d84e94
engine: common: net_encode: apply post_multiplier to integer fields, like GoldSrc does
2024-04-17 06:23:22 +03:00
2a18cde60c
engine: common: net_encode: fix applying integer clamp before multiplier
...
Without this fix, data still might overflow after applying multiplier
and potentially send incorrect data.
2024-04-17 06:16:44 +03:00
35783bcec2
engine: common: net_encode: fix inaccuracy in DT_TIMEWINDOW_* encoding
...
By avoiding double rounding, we get more accurate time on client when timebase
gets rounded down and target time gets rounded up:
```
>>> round(123.1) - round(124.51)
-2
>>> round(123.1 - 124.51)
-1
```
2024-04-17 06:09:52 +03:00
1677835b45
engine: common: simplify bit buffer operations
...
Yields a small performance boost
2024-04-08 07:24:53 +03:00
f60e856f35
engine: server: replace useless call to SV_Serverinfo to a direct access
2024-04-06 06:58:15 +03:00
fcd0982524
engine: server: free 64-bit string pool last when unloading library
2024-04-05 19:45:24 +03:00
6881ee742d
engine: server: fix incorrect NULL check in pfnCvar_RegisterServerVariable
2024-04-05 18:45:15 +03:00
f070bbef3c
engine: server: make EDICT_NUM inlined
2024-04-04 20:42:25 +03:00
dd8c66d90e
engine: common: fix possible NULL dereference in LZSS_Compress
2024-04-04 20:42:25 +03:00
fed65dd497
engine: imagelib: fix possible NULL dereference
2024-04-04 20:42:25 +03:00
c896425ad9
engine: server: make changelevel commands compatible with GoldSrc
2024-04-04 00:21:28 +03:00
4107bd4e0f
engine: common: quickly assume that map is valid when generating maps.lst if mpfilter is set or game is multiplayer only
2024-04-03 06:13:43 +03:00
156b2b2b10
engine: server: remove MAP_HAS_SPAWNPOINT checks
2024-04-03 05:52:42 +03:00
ef786b7d79
engine: client: fix sprites transparency in Night at the Office
2024-04-02 02:18:49 +03:00
d041b2aa27
engine: fix error_on_exit data type
2024-03-26 17:15:34 +03:00
f6d489e038
engine: server: register str64stats command that prints string pool usage statistics
2024-03-26 17:15:15 +03:00
d34fedea69
engine: server: cleanup unused variables
2024-03-25 05:50:04 +03:00
80b3f90091
engine: server: more accurate SV_ParseEdict
...
* Add removing trailing spaces, like GoldSrc does
* Pass classname first to allow game to override it
* Remove FL_CUSTOMENTITY flag usage, GoldSrc doesn't set this flag for "custom"
export entities
* Fix possible memory leak
2024-03-25 05:49:59 +03:00
SNMetamorph
2a4fafc3f9
engine: voice: added voice_transmit_scale cvar to configure outcoming voice audio volume
2024-03-23 23:37:03 +03:00
SNMetamorph
9b3ccf5f04
engine: voice: output_buffer renamed to compress_buffer
2024-03-23 23:37:03 +03:00
SNMetamorph
f59ac2360a
engine: voice: made voice_scale to influence incoming voice audio volume
2024-03-23 23:37:03 +03:00
ff21fb42e6
engine: client: create separate Opus decoders for each player
...
Turns out, we can't re-use same decoder for different streams.
2024-03-20 18:41:52 +03:00
2640b6d869
engine: host: remove misleading message about TAB-autocompletion in dedicated mode
2024-03-19 21:24:21 +03:00
d8910b0e38
engine: platform: linux: do not search sd_notify if NOTIFY_SOCKET isn't set
2024-03-19 21:23:53 +03:00
049bed555e
engine: host: fit -help into 80 columns terminal
2024-03-19 21:13:28 +03:00
fe5944720b
engine: use common strings to name the engine, makes branding easier for custom forks
2024-03-19 21:11:10 +03:00
975ab6785e
engine: make log starting and ending messages shorter, so it fits into standard 80 columns term
2024-03-19 20:41:46 +03:00
SNMetamorph
0506a1dfce
engine: sys_con: added VCS branch name printing to log file header
2024-03-19 19:31:54 +03:00
SNMetamorph
7d7e72196b
engine: host: enabled printing current developer level
2024-03-19 19:31:54 +03:00
SNMetamorph
7cc67157e5
engine: sys_con: fixed incorrect logging init messages order
2024-03-19 19:31:54 +03:00
SNMetamorph
b7ff9c7a24
engine: sys_con: added missing title for log messages
2024-03-19 19:31:54 +03:00
599a1f026e
engine: client: fix missing comma
2024-03-11 22:56:52 +03:00
081cf9132b
engine: client: read console_history.txt as binary, skip empty and repeating lines, reimplement it through FS_Gets for fun
2024-03-08 15:25:36 +03:00
6a7e027248
engine: common: add joy_ prefix to automatically filterable cvars
2024-03-08 15:25:36 +03:00
27100e7751
engine: client: hook sensitivity cvar registration and make it priveleged cvar
2024-03-08 15:25:36 +03:00
1a0867523d
engine: system: parent messagebox to main window when dealing with Sys_Error
2024-03-05 17:12:51 +03:00
7584bbe47e
engine: client: fix sound mute when losing focus
2024-03-03 19:00:50 +03:00
24f23908be
engine: platform: stub Sys_DebuggerPresent on unsupported platforms
2024-02-27 05:17:01 +03:00