Commit graph

3100 commits

Author SHA1 Message Date
smallmodel
391450f090
Swap bsp header on big-endian architectures
See #332 where the lump's offset and length are incorrect on big-endian architectures
2024-07-29 19:03:26 +02:00
smallmodel
60e4fa7005
Handle shader picmip and fix shaders not rendered properly with force32bit (alpha channel was ignored) 2024-07-28 19:25:24 +02:00
smallmodel
c13f9dc9a8
Increase MAX_IMAGE_ANIMATIONS
This fixes emitters not playing correctly
2024-07-28 19:12:08 +02:00
smallmodel
f213943b2d
Fix RB_SetGL2D 2024-07-28 19:02:06 +02:00
smallmodel
5159a534bb
Fix animated images playing at the same time for all entities 2024-07-28 19:01:34 +02:00
smallmodel
c7a4e705cb
Fix libmad still producing shared libraries 2024-07-28 18:51:15 +02:00
smallmodel
864ea08393
Fix special characters not being handled properly
This fixes characters (signed character below 0) being replaced by '?' in UI text elements, like in the console
2024-07-27 23:41:12 +02:00
smallmodel
ebfb6d1846
Fix inwardsphere not being used
This fixes emitters looking incorrect, like `animate/adamspark.tik`, for the explosion of electric panels
2024-07-27 23:20:30 +02:00
smallmodel
6b89ec615a
Set damage angles only for mohaa 1.0-1.11 2024-07-27 19:45:18 +02:00
smallmodel
af432e6d3f
Allow pain if the current time is above the allowed next pain time 2024-07-27 19:37:05 +02:00
smallmodel
44c17409a7
Allow pain if the player dies 2024-07-27 19:33:39 +02:00
smallmodel
0f48c39bc1
Add more resilience against null entity in G_FixEntityPosition 2024-07-27 19:05:45 +02:00
smallmodel
572e6652cc
Fix followpath not working under special circumstances
This fixes an issue where some planes (like the final bomber plane in t3l2) would not fly and look stuck
2024-07-27 19:05:05 +02:00
smallmodel
fecb601fc4
Clear velocity only if it's not ignored 2024-07-27 18:17:10 +02:00
smallmodel
7b238e9d34
Set new orders appropriately 2024-07-27 18:13:31 +02:00
smallmodel
73c8ff11b3
Call CurrentScriptThread() to get the current script, so it can throw an exception if the current thread is NULL 2024-07-27 18:03:41 +02:00
smallmodel
682dc89067
Add ignorevelocity argument for followpath 2024-07-27 17:54:48 +02:00
smallmodel
ee514710c5
Add Emscripten implementation from ioquake3 upstream 2024-07-26 23:57:50 +02:00
Alan Zhao
769d06b0f0
Use nanosleep(2) instead of usleep(3)
usleep(3) was declared obsolete in POSIX.1-2001 and removed in
POSIX.1-2008 and nanosleep(2) was recommended to be used instead.
2024-07-26 23:03:09 +02:00
smallmodel
1b35d3ce05
Fix angular delta being wrong
This fixes animated characters being sometimes badly positioned, like actors in the plane in t1l1
2024-07-25 21:46:33 +02:00
smallmodel
31d254cb9f
Use ceil() and set the delta appropriately if time1 is after team2 2024-07-25 21:43:19 +02:00
smallmodel
bf4780bbdb
From now, load streamed sound into memory as deferred loading is currently unsupported 2024-07-25 19:49:34 +02:00
smallmodel
5af8e127f8
Added NULL sound flag 2024-07-25 19:04:08 +02:00
smallmodel
016e062fef
Fix UIReggedMaterial::ReregisterMaterial and UIReggedMaterial::GetMaterial
ReregisterMaterial() must register the material if it was registered before, and GetMaterial() must register the material if it hasn't been registered and return it
2024-07-24 21:10:46 +02:00
smallmodel
c093122764
Made code C++ compatible so UI_LoadResource() can be used 2024-07-24 20:07:22 +02:00
smallmodel
11ec6270da
Made OpenAL package required 2024-07-24 19:57:22 +02:00
smallmodel
81df55310b
Fix medals always being awarded
This fixes #316
2024-07-23 19:53:40 +02:00
smallmodel
e5fb85ad08
Fix material not refreshing when it already has a shader.
This fixes #329 where the material (matching quick.tga) would be loaded only once without being able to change
2024-07-23 19:06:48 +02:00
smallmodel
c5ef60040a
Fix sounds not being resumed properly after loading from save 2024-07-22 20:44:00 +02:00
smallmodel
757b4849f8
Add a fix to load the music from save
This commit implements code to get/set sample offset in an OpenAL channel and saves the music filename/offset into the file. This only works by using the experimental sound system, so it partially fixes #327
2024-07-22 20:13:03 +02:00
smallmodel
2198bdec21
Added stub variables and functions for loading 2024-07-22 19:15:52 +02:00
smallmodel
8bd377ce85
Fix the save system taking a screenshot of the whole UI menu instead of just the 3D view
This fixes #328 where the save would have a screenshot of the save menu
2024-07-22 19:00:50 +02:00
smallmodel
89eae68318
Fixed parameter mistake
(Why didn't you tell anything about that, MSVC?)
2024-07-20 22:09:03 +02:00
smallmodel
d1e94f3934
Fix saveshot not executed when saving
This fixes #273 where the loadsave menu wouldn't show the screenshot
2024-07-20 16:07:02 +02:00
smallmodel
fc0a995c66
Added code to save image with custom resolution to a file 2024-07-20 16:04:04 +02:00
smallmodel
eee0eaac4a
Process the "!" (not) syntax for enabledcvar
This fixes #265 where the mine detector icon wouldn't appear because it wants SP mode
2024-07-17 23:55:11 +02:00
smallmodel
535da856a4
When returning a cvar value, use the latched string if present 2024-07-17 23:43:00 +02:00
smallmodel
422bf647a7
Save the client-game state into the archive file (feature from moh spearhead 2.0)
This saves cgame data such as emitters and vss sources
2024-07-15 23:45:32 +02:00
smallmodel
93cd470659
Fix broken cgame state saving 2024-07-15 23:44:11 +02:00
smallmodel
81b86d61da
Fix read-only cvar being improperly archived
This caused cvars like `paused` being wrongly restored. If the `paused` value is 1 or above, like when saving from the menu, the game would get stuck loading the level because it's paused, no frame could be executed.
It also fixes cvars like `sv_fps`, `g_playermodel` not being archived when they should.
Fixes #326
2024-07-15 20:39:22 +02:00
smallmodel
eac8580f64
Add libmad 0.16.4
This new version introduces patches against crashes and exploits. CMake is also fully supported and platforms are properly detected so architecture specific optimizations are used.

To use it, USE_SOUND_NEW must be non-zero when configuring the project
2024-07-11 23:04:04 +02:00
smallmodel
d56498e622
Adds CHANNEL_NONE case statement even if there is nothing to do 2024-07-11 22:04:03 +02:00
smallmodel
551fccb761
Fixes wrong handle being compared for uniqueness
This should fix invisible models (fixes #322)
2024-07-02 22:47:41 +02:00
smallmodel
5317b8424f
Prevents the player from walking
This fixes #275
2024-07-02 22:16:13 +02:00
smallmodel
5816391e9b
Fixes loopsound not properly working (not playing, or not being 3D) 2024-07-02 20:25:08 +02:00
smallmodel
543c00037a
Implements sample playback rate 2024-07-02 20:10:54 +02:00
smallmodel
d5f435ee90
Makes loops work as they should 2024-07-02 20:01:01 +02:00
smallmodel
02e2e92d36
Uses linear sound distance model 2024-07-02 19:30:29 +02:00
smallmodel
040f8db0ef
Fixes wrong sound volume and pitch 2024-07-02 19:10:48 +02:00
smallmodel
14927df9fa
Moves MAX_SUBTITLES to `q_shared.h| 2024-07-02 19:03:27 +02:00