smallmodel
7b92d99afa
Fix compile error
2024-08-07 22:24:52 +02:00
smallmodel
b463c905cf
Free up unused images
...
This fixes #93 where the game would hit `MAX_DRAWIMAGES` after loading a few maps
2024-08-07 21:11:16 +02:00
smallmodel
7f8a0c9931
Fix the image texture number not properly matching the image
...
It caused issues with textures being messed up sometimes, after multiple maps were loaded
2024-08-07 21:10:04 +02:00
smallmodel
53d812666c
Remove FIXME section
2024-08-07 21:02:48 +02:00
smallmodel
7b59f07181
Allow precaching image manually with r_precacheimages
2024-08-07 20:01:38 +02:00
smallmodel
d22dea5e8e
Count renderer memory
2024-08-07 19:57:09 +02:00
smallmodel
8817467216
Implement trace obfuscation
2024-08-06 22:58:16 +02:00
smallmodel
236afa7c3f
Implement obfuscation mapping setup
...
The implementation reads all obfuscation csv and return a list of visual obfuscations
2024-08-06 20:21:00 +02:00
smallmodel
cd6ec5e3a7
Fix streamed sound, use 2D instead with properly implemented panning
2024-08-06 18:43:15 +02:00
smallmodel
434aaf3eaf
Initialize last animation time
2024-08-05 23:41:17 +02:00
smallmodel
5b80ea20c7
Fix filename case sensitivity on Linux
...
This fixes #334 where some sounds wouldn't play because some scripts reference sounds without respecting the case
2024-08-05 21:11:49 +02:00
smallmodel
1d60405eaa
Fix heap corruption when taking screenshots with non-standard resolutions like 1366x768
2024-08-05 19:48:23 +02:00
smallmodel
64f4f59165
Fix vid_restart
and snd_restart
resetting the sound system (experimental sound system only)
...
This fixes #335 where one of those commands would clear all active sounds as well as the triggered music, and the soundtrack
2024-08-05 19:21:38 +02:00
smallmodel
192f9ac514
Added S_CurrentSoundtrack()
2024-08-05 19:14:30 +02:00
smallmodel
279b1413ec
Clear the active music when stopping the triggered music
2024-08-05 19:09:29 +02:00
smallmodel
9c5297882c
Renamed CHANNEL_FLAG_PLAYABLE to CHANNEL_FLAG_PLAY_DEFERRED
2024-08-05 18:49:41 +02:00
smallmodel
a6d508d791
Fix sounds replaying when unpausing
...
This caused some sounds to play again when saving
2024-08-05 18:49:16 +02:00
smallmodel
6b3402c631
Fix actor accuracy being crazy, killing the player easily
2024-08-05 18:43:56 +02:00
smallmodel
d5da32b8a9
Fix AI damage
2024-08-05 18:43:40 +02:00
smallmodel
39b3ed3d44
Fix part blend mult being incorrectly archived
...
This may have been the cause of animations not properly playing and the player being unable to climb on ladders
2024-08-03 18:40:27 +02:00
smallmodel
f8b97405ff
Fix infinite loop in DownSampleWav when s_khz
is less than 44 kHz
...
This fixes #330 where `s_khz` below 44 (the usual sample rate of mohaa wav files) would cause an infinite loop due to improper usage of the `ii` variable in the loop where another variable would be accidentally incremented instead
2024-07-30 20:59:48 +02:00
smallmodel
1d4fe357c8
Fix ShaderForShaderNum
incorrectly swapping the shader num
2024-07-29 21:39:24 +02:00
smallmodel
c7900b6048
Fix static model index endianness
2024-07-29 21:13:18 +02:00
smallmodel
6e3f959684
Fix header version incorrectly parsed
2024-07-29 20:32:21 +02:00
smallmodel
eb9a3b1bbf
R_UnpackTerraPatch: no need to get little-endian values as values are already swapped by R_SwapTerraPatch
...
See #332
2024-07-29 19:04:29 +02:00
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