Commit graph

531 commits

Author SHA1 Message Date
smallmodel
4f699f3b58
Add support to compile renderergl2 (currently unimplemented) 2024-12-01 19:21:07 +01:00
smallmodel
d5d5c7a55d
Use bits per sample rather than bytes as there are 4-bit sounds 2024-11-30 23:23:49 +01:00
smallmodel
6fe1e86b31
Automatically scale UI elements for high resolutions
This fixes UI elements being tiny on high resolutions like 4K. Now most UI elements will scale automatically with resolutions above 1920x1080.
2024-11-30 22:40:00 +01:00
smallmodel
47983481c9
Use UI definitions instead of cls.glconfig for UI code to get the resolution 2024-11-30 13:54:50 +01:00
smallmodel
387ccd5cc3
Bump the minimum CMake version to 3.12 2024-11-30 00:36:33 +01:00
smallmodel
56cc3fff53
Use a single variable to disable modern DMA 2024-11-29 22:53:04 +01:00
smallmodel
5f33a617ab
Allow linking directly against system OpenAL library 2024-11-29 22:03:39 +01:00
smallmodel
58f0245e83
Only add entries for servers that were queried successfully 2024-11-27 22:12:55 +01:00
smallmodel
1e9decf193
Add support for IMA-ADPCM sounds (4-bit)
Sounds such as sea waves (mohaa m3l1a) and subpen (mohaas flughafen) will be played accordingly. This uses OpenAL extensions such as AL_EXT_IMA4 and SOFT features such as AL_SOFT_block_alignment
2024-11-27 20:37:56 +01:00
smallmodel
486b6f40e5
Don't play sound if the parameter is not specified 2024-11-26 22:47:55 +01:00
smallmodel
be34870a18
Copy the channel origin to the sound entity origin when loading
If the channel had a valid entity at the time of saving, make sure to restore the origin
2024-11-23 21:12:58 +01:00
smallmodel
4d4b9288c6
Don't update the streamed channel if the source status AL_INITIAL
This can occur when starting a new sound without playing it, which can happen when reloading the sound system while all sounds are paused (game paused)
2024-11-23 18:42:27 +01:00
smallmodel
e2f4d8cd6b
Use explicit constants when checking g_gametype 2024-11-22 19:44:53 +01:00
smallmodel
a0e2162dd7
Fix 1.11 servers filtered out 2024-11-19 22:16:55 +01:00
smallmodel
d83374d38c
Set the default compass scale to 0.5 for the base game 2024-11-19 19:44:55 +01:00
smallmodel
05e14f6364
Adjust the objectives menu accordingly depending on the game message box which depends on the compass scale 2024-11-19 19:41:46 +01:00
smallmodel
6bc621462c
Use CL_FontStringWidth instead of uie.FontStringWidth 2024-11-19 19:17:16 +01:00
smallmodel
acb08b89f7
Fix constant for screenOrg 2024-11-18 22:03:58 +01:00
smallmodel
2107523eda
Use MAX_CLIENTS - 1 instead of 63 2024-11-18 21:57:02 +01:00
smallmodel
2662174eba
Fix radar clients not blinking when talking 2024-11-18 21:22:50 +01:00
smallmodel
05d304dfc3
Set ignoredFiles only if ignore_files was specified
This fixes a crash that would occur due to a NULL string
2024-11-18 20:38:03 +01:00
smallmodel
953091cdc8
Move and rename macros to snd_local_new.h 2024-11-17 19:11:59 +01:00
smallmodel
5819145af8
Synchronize the entity time with the channel time when loading
This prevents the channel from stopping immediately during respatialization, the entity time may be updated quite some time after loading
2024-11-17 18:46:21 +01:00
smallmodel
cea0d95fee
Set the pitch to default when setting a new SFX
This fixes channels having an incorrect pitch when starting the sound under some circumstances
2024-11-17 17:12:36 +01:00
smallmodel
b007842fb4
Fix pure checksums not matching the server 2024-11-16 21:32:53 +01:00
smallmodel
857d25825b
Remove tmvolume like other commands when shutting down OpenAL 2024-11-16 16:57:59 +01:00
smallmodel
67b285924c
Prefix OpenAL with debug prints 2024-11-14 19:49:22 +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
9e060d11b6
Allow user-created variables 2024-11-11 20:58:37 +01:00
smallmodel
50fdbaf152
Use CVAR_RESETSTRING instead of CVAR_SERVER_CREATED 2024-11-11 20:36:03 +01:00
smallmodel
5edee7d12e
Add tmvolume from Spearhead and Breakthrough 2024-11-11 14:24:57 +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
smallmodel
ec73268f94
Reorder methods 2024-11-09 19:21:24 +01:00
smallmodel
f5d2fdbcad
Return an empty string if the channel is neither playing nor paused
It was only checking if the channel was playing. This was an issue because, in the main menu the music is paused, which means saving from main menu would not save the music filename
2024-11-05 22:16:15 +01:00
smallmodel
effbbd6c62
Support long subtitles 2024-11-05 01:14:21 +01:00
smallmodel
b97c47ab32
Cast to clock_t before left-shift 2024-11-03 18:40:18 +01:00
smallmodel
9042ea320c
Refactor UI_RegisterLoadResource 2024-11-03 18:38:12 +01:00
smallmodel
98e725ef7b
Fix EV_StatsUpdater_UpdateStats missing parameter declaration 2024-11-03 18:28:00 +01:00
smallmodel
05b2d3529e
Implement UI_EndLoadResource 2024-11-03 18:27:41 +01:00
smallmodel
bc834b021c
Use and draw the marker material when specified
This is used by the fuse stopwatch hud
2024-11-03 15:09:47 +01:00
smallmodel
c650af7b55
Fix stack corruption due to an improper assignment to the alias 2024-10-29 21:37:31 +01:00
smallmodel
8fdfffab36
Keep the mouse cursor position when the client disconnects 2024-10-28 21:13:47 +01:00
smallmodel
3d46bae1d0
Stop the triggered music when the server is restarted 2024-10-26 15:07:47 +02:00
smallmodel
16bedf7e86
Warp the sample offset for small streams so it doesn't get past the stream size 2024-10-26 15:07:09 +02:00
smallmodel
e7499cca04
Also halt the secondary server list if it exists, when canceling refresh 2024-10-25 22:07:23 +02:00
smallmodel
edb52a8448
Properly move items in the map rotation list 2024-10-23 20:52:22 +02:00
smallmodel
afb08e0ea9
Prevent adding duplicate maps in the rotation list 2024-10-23 20:49:00 +02:00
smallmodel
8758ba6cb1
Fix the map not starting after applying the rotation list 2024-10-23 20:42:03 +02:00
smallmodel
83acdeb16e
Allow activation of the game menu so it can be focused 2024-10-22 22:06:19 +02:00
smallmodel
d52bf52e6a
Add BUTTON_ANY flag when moving mouse 2024-10-21 19:22:54 +02:00