Commit graph

411 commits

Author SHA1 Message Date
smallmodel
dbd10a281b
call CL_ShutdownInput() 2024-09-22 16:39:30 +02:00
smallmodel
d57ea3695b
Add VOIP code for cl_input 2024-09-22 16:38:00 +02:00
smallmodel
8dd74b7789
Get rid of the code that sends next fragments from clients 2024-09-22 16:35:12 +02:00
smallmodel
36c00f146d
Improve gamepad support 2024-09-22 16:19:55 +02:00
SmileTheory
aba9f25744
Fix frame_msec possibly being zero in cl_input.c.
This fixes a mouse freezing bug.
2024-09-22 16:14:01 +02:00
smallmodel
5b567f4cba
Fix music volume not restored when the map restarts after the intermission 2024-09-22 01:39:40 +02:00
smallmodel
ce0004a296
Use unsafe version of strcpy as the buffer length is unknown 2024-09-21 23:08:52 +02:00
smallmodel
f9d264058b
Use safe version of sprintf and strcpy 2024-09-20 23:08:53 +02:00
smallmodel
a69d9d4483
Fix compilation errors for MacOS, and add support for MacOS 2024-09-20 21:31:27 +02:00
smallmodel
8b19d00086
Remove the last OpenAL linking as it's already linked before 2024-09-20 21:29:15 +02:00
smallmodel
f055162ac0
Adjust the quick message DM console rectangle to avoid seeing characters 2024-09-19 19:46:27 +02:00
Sébastien Noel
a010e648ee Fix a few typos 2024-09-19 10:52:47 +02:00
smallmodel
8fc6b6e3c3
Correctly handle quick message and message mode for the chat window
This fixes the chat window not being put in quick message mode at all when intended, now it also correctly handle team/private message modes
2024-09-18 22:14:16 +02:00
smallmodel
6c2c8ca2b7
Don't archive s_openaldevice and s_openaldriver 2024-09-18 22:10:33 +02:00
smallmodel
1b6bdd07e7
Disable function keys for UI
This fixes the issue where menus like the message mode can't be toggled
2024-09-18 21:51:35 +02:00
smallmodel
539688dd3d
Reduced the delay to 33 ms (30 fps) to update the loading bar
This makes the loading bar smoother
2024-09-18 20:56:13 +02:00
smallmodel
08e09c3b4c
Avoid setting variables with the same value
This prevents the console from being spammed with constant variable change when `developer` is set to 2
2024-09-18 20:55:02 +02:00
smallmodel
4259053c7e
Expose methods for basic DMA (when OpenAL is unavailable) 2024-09-18 20:49:38 +02:00
smallmodel
c3e3f368e0
use cheats rather than sv_cheats to check if the client is connected to a cheat server 2024-09-16 18:59:36 +02:00
smallmodel
a6377fedab
Remove useless code 2024-09-14 23:36:19 +02:00
smallmodel
2f884e6d55
Call Key_GetCatcher/Key_SetCatcher instead of modifying the variable directly 2024-09-14 23:32:24 +02:00
smallmodel
28f8c65771
Key_SetCatcher() must use cls.keyCatchers 2024-09-14 23:30:30 +02:00
smallmodel
9f48dabaec
Play the game's intro when starting 2024-09-14 22:59:27 +02:00
smallmodel
5b0224ae3c
Implement support for playing movies
Videos like briefings and intro are now played correctly
2024-09-14 22:58:43 +02:00
smallmodel
c3ef267d6d
Implement movie audio in OpenAL code 2024-09-14 21:55:15 +02:00
smallmodel
fe9b298705
Export cl_movieaudio 2024-09-14 21:53:19 +02:00
smallmodel
37d5458c4c
Partially implement cinematic support for reading RoQ files (no audio yet) 2024-09-13 23:00:31 +02:00
smallmodel
77d48cb104
Don't call UI_ClearBackground in cinematic mode 2024-09-13 22:58:37 +02:00
smallmodel
a25200741a
Finis the loading screen if it's the default 2024-09-13 22:23:53 +02:00
smallmodel
690a7a7557
Format cl_ui file 2024-09-13 21:36:23 +02:00
smallmodel
39add5ccec
Fix incorrect parsing of music volumes 2024-09-13 20:01:01 +02:00
smallmodel
2d696cf500
Also use the port when connecting to a server 2024-09-13 19:07:06 +02:00
smallmodel
45fe0bc8b7
Add an IP column
See #353 where servers would appear twice
2024-09-13 19:06:38 +02:00
smallmodel
34aeab5f77
Fix the game type string being empty
(see #353 for the game type)
2024-09-13 18:34:43 +02:00
smallmodel
10b30d74e7
Implement sample_volume() 2024-09-12 22:23:27 +02:00
smallmodel
1ba4c6b7ad
Remove useless comment 2024-09-12 22:18:09 +02:00
smallmodel
c68f23cdaf
Fix compilation warnings 2024-09-11 00:21:31 +02:00
smallmodel
a586f13af8
Remove CL_GamespyServers_f as there is an existing implementation 2024-09-10 19:58:28 +02:00
smallmodel
37820c1673
Generate QKey 2024-09-10 19:57:25 +02:00
smallmodel
6adad053d9
Explicitly disable looping when setting the sample loop count to a value other than 0
This fixes a rare occurrence where some sounds would loop forever
2024-09-09 00:15:39 +02:00
smallmodel
725561b655
Fix the usage of memory, strings, constant and parameters 2024-09-08 23:54:47 +02:00
smallmodel
c18cdc78ea
Fix Cgame key catching 2024-09-08 15:48:46 +02:00
smallmodel
cd9b1a741f
Match CG_PermanentMark parameters
This fixes #355
2024-09-07 23:57:17 +02:00
smallmodel
78f0072c59
Update the SFX datasize when downsampling
This fixes #349 where the size of the AL buffer didn't match the real downsampled size, which would cause AL to read way past of end of the data buffer
2024-09-04 20:12:46 +02:00
smallmodel
1022ce531a
Fix AL buffers having sound data past end of the sound buffer 2024-09-04 20:10:56 +02:00
smallmodel
fb875501f0
Fix UI library forcing latched variables
This caused issues when setting render variables
2024-09-01 23:34:57 +02:00
smallmodel
7852929da3
Fix the music replaying when loading from save after it ended 2024-09-01 20:38:11 +02:00
smallmodel
a9b8cdce64
Only print the long word error in debug mode 2024-09-01 18:10:16 +02:00
smallmodel
010a5ffc74
Mark entities as missing until they are received
This fixes a bug where the plane sound in t1l1 would stop immediately because the entity isn't received at this point
2024-09-01 16:21:56 +02:00
smallmodel
2239efa439
Fix sample_offset() returning a wrong value with looping sounds
The returned offset will now be the correct when the stream has been re-read from the beginning due to the sound looping
2024-08-30 21:12:39 +02:00