Commit graph

609 commits

Author SHA1 Message Date
smallmodel
6a31381c8e
Format localization source files 2025-01-08 21:26:41 +01:00
ysdragon
7ba29029e1
Add support for additional BSD platforms in platform detection 2025-01-08 11:26:54 +02:00
smallmodel
528039f80b
Don't sanitize semicolon 2025-01-05 17:49:27 +01:00
smallmodel
9427137dbd
Properly increment the packet number before sending the gamespy reply
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 32s
Some programs parse the packet number and stop working properly if the packet number is an incorrect value
2025-01-04 19:43:47 +01:00
smallmodel
c10fd17d19
Bump patch number 2025-01-04 18:01:52 +01:00
smallmodel
3c26b98b65
Generate checksum with noncompat protocol 2025-01-04 17:55:33 +01:00
smallmodel
6e357459e6
Fix fragments being sent too fast
This prevented players with low connection speed unable to connect due to UDP packets being lost. The rate of connecting clients will be properly taken into account
2025-01-04 17:55:11 +01:00
smallmodel
51a2f7d479
Use an enumeration for weapon commands and a function to get the weapon command
This improves clarity for using weapon commands. Also the mask was incorrect for protocol above version 8 (mohaas and mohaab)
2024-12-30 00:55:29 +01:00
smallmodel
583c2720e2
Fix Info_RemoveKey not correctly removing the key 2024-12-25 15:00:32 +01:00
smallmodel
9d4ea75a18
Increase the number of aliases that can be found
Previously, 64 aliases could be chosen for random search, it was incremented to 128 since 2.0, however it should have been increased in Breakthrough as well, because there are aliases with more than 128 elements
2024-12-19 19:19:12 +01:00
smallmodel
ac4138a763
Declare PID functions
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 17s
2024-12-15 00:20:31 +01:00
smallmodel
d3fb1331f8
Fix NDEBUG check 2024-12-14 20:09:33 +01:00
smallmodel
1ef61a6e3d
Use the PID file in non-debug builds
The PID file is used to check if openmohaa cleanly exited, and in case it didn't, the user is prompted to start in safe mode
2024-12-14 19:40:49 +01:00
smallmodel
0fb80a4ab5
Use unnamedsoldier.cfg config file if the openmohaa config file doesn't exist 2024-12-14 19:38:52 +01:00
smallmodel
cd06dc0535
Don't validate facet if there is an invalid border plane
The check was missing, which would cause a crash during collision test
2024-12-12 22:37:09 +01:00
smallmodel
1b8ef411ee
Increase the value of MAX_PATCH_PLANES
Some checks failed
Build branch / build-all (push) Failing after 17s
CodeQL / Analyze (push) Has been cancelled
2024-12-11 23:20:27 +01:00
smallmodel
0a41f3bb76
Indicate when processing events 2024-12-11 21:55:22 +01:00
smallmodel
8a84436d1b
Fix Cmd_TokenizeString2 incorrectly ignoring extended ascii characters
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 17s
2024-12-09 22:33:36 +01:00
smallmodel
3897a44ce6
Bump the version number 2024-12-08 19:58:59 +01:00
smallmodel
f684349c18
Make sure to pop the loading screen on error
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 16s
This fixes the client getting stuck in the loading screen due to a drop error
2024-12-08 18:47:10 +01:00
smallmodel
333c452f44
Sanitize the name with a maximum buffer size limit 2024-12-08 12:51:14 +01:00
smallmodel
5801af34bb
Don't execute newconfig.cfg
This prevents graphic settings from being overridden by the configuration file previously generated by the original game
2024-12-08 12:43:05 +01:00
smallmodel
c3157ad4d7
Use DebugPrintf for errors that are relevant to developers
Some checks failed
Build branch / build-all (push) Failing after 16s
CodeQL / Analyze (push) Has been cancelled
2024-12-06 20:36:12 +01:00
smallmodel
28bdd1b2b3
Made the renderer modular and loadable
This removes coupling between the renderer and UI/client functions. An option USE_RENDERER_DLOPEN was added to specify whether a renderer module should be compiled and loaded, instead of integrating the renderer into the executable directly. This opens the door for a new renderer
2024-12-06 00:15:19 +01:00
smallmodel
115b7b82aa
Correctly handle the scenario where multiple architectures are specified
Each target will produce a single binary having multiple architectures, instead of having a binary per architecture. The suffix for each binary will be `multiarch`. This makes it easier for the end-user to install and use. This also helps the transition between Intel and Apple Silicon hardware
2024-12-05 21:12:19 +01:00
smallmodel
0559d643b7
Use TIKI_DPrintf instead of Skel_DPrintf 2024-12-05 00:42:31 +01:00
smallmodel
ac6b274a4f
Use MAP_SIZE instead of MAX_MAP_BOUNDS
This fixes collision being incorrect on big maps
2024-12-04 19:22:56 +01:00
smallmodel
f7c8c745c4
Don't return a slash at the end for directory name 2024-12-02 21:08:42 +01:00
smallmodel
861338b0fc
Add support for smaller lightmaps
Large lightmap can be disabled for very low-end hardware. A BSP file with a smaller lightmap (_sml.bsp) will be used instead of the standard one if the map supports it
2024-12-02 20:36:45 +01:00
smallmodel
b5a73384d3
Exclude the slash at the beginning of each file for FS_ListFilteredFiles 2024-12-01 20:33:51 +01:00
smallmodel
4f699f3b58
Add support to compile renderergl2 (currently unimplemented) 2024-12-01 19:21:07 +01:00
smallmodel
4ea598d76b
Reimplement SkipBracedSection 2024-12-01 17:53:51 +01:00
smallmodel
387ccd5cc3
Bump the minimum CMake version to 3.12 2024-11-30 00:36:33 +01:00
smallmodel
83a874e4fd
Add an option for CMake to specify when targeting the local system 2024-11-29 20:59:47 +01:00
smallmodel
b2e6e1b56f
Comment out the Illegal XYZ coordinates message to avoid spamming the console 2024-11-25 22:30:44 +01:00
smallmodel
04baf673dc
Set MAX_MAP_BOUNDS to 8192 2024-11-25 22:12:47 +01:00
ysdragon
23ad991743 Use nullptr instead 2024-11-24 16:04:30 +01:00
smallmodel
ad825f5114
Reimplement noise functions 2024-11-20 23:02:22 +01:00
smallmodel
69621335db
Put the target extension version in the version string 2024-11-17 21:31:45 +01:00
smallmodel
880acf9120
Make com_target_game and com_target_demo write-protected (can only be set at startup) 2024-11-17 14:28:00 +01:00
smallmodel
67d8cad64d
Allow sound files from OS disk in pure mode 2024-11-16 21:34:19 +01:00
smallmodel
e96a3f4f59
Use c_str() instead of accessing m_data
c_str() will always return a valid string even if empty
2024-11-16 19:27:48 +01:00
smallmodel
f6c9de4286
Use com_basegame instead of BASEGAME macro 2024-11-15 20:58:46 +01:00
smallmodel
9a6472210c
Use a separate user-data location for the demo version 2024-11-13 23:15:31 +01:00
smallmodel
ab84a6ea58
Add support for the demo version of the game
This allows the demo version of the game to be used, both for playing on demo servers, or for hosting a demo server
2024-11-12 23:09:37 +01:00
smallmodel
02af9a763d
Better support for older BSP versions 2024-11-12 20:56:26 +01:00
smallmodel
132903a843
Use different fields for protocol version 6 and 8 2024-11-12 20:56:02 +01:00
smallmodel
50fdbaf152
Use CVAR_RESETSTRING instead of CVAR_SERVER_CREATED 2024-11-11 20:36:03 +01:00
smallmodel
81b49236a5
Use proper types for playerState_t structure 2024-11-11 19:00:36 +01:00
smallmodel
1ef1bad9ae
Add network profiling tool from Spearhead and Breakthrough
Profiling can be enabled with `cl_netprofile` and `sv_netprofile`, the overlay can be shown using `cl_netprofileoverlay` and `sv_netprofileoverlay` and the server can dump network profile using the `netprofiledump` command
2024-11-09 21:38:16 +01:00