Commit graph

4325 commits

Author SHA1 Message Date
smallmodel
8446a655bb
Print an error when the skel file extension is unknown 2024-12-04 22:33:42 +01:00
smallmodel
01d098dab5
Clear the number of uses of the skel cache when registering a new skeleton 2024-12-04 22:33:28 +01:00
smallmodel
b6dd3914be
Correctly free skels when freeing TIKIs
This fixes a potential memory leak that would occur when the first skelcache's skel is NULL
2024-12-04 22:30:26 +01:00
smallmodel
c2e45710ad
Improve code clarity 2024-12-04 22:15:01 +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
499fe44bde
Call R_RegisterShaderNoMip for the crosshair
This prevents the crosshair texture from being altered by the texture quality settings
2024-12-02 19:00:43 +01:00
smallmodel
ba74943844
Fix picmip adjustment 2024-12-02 18:59:48 +01:00
smallmodel
21f631e733
Compile SDL input/client and SDL OpenGL independently
This decouple the renderer from the client part of SDL (input), and only uses SDL for OpenGL
2024-12-01 22:23:28 +01:00
smallmodel
b5c32a41de
Check for tabs alongside spaces in the lexer between expressions and variables
This fixes a compile error in some scripts that use tabs instead of spaces between expressions
2024-12-01 20:36:30 +01:00
smallmodel
c9373cbc97
Comment out ABI compatibility checks 2024-12-01 20:34:38 +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
7e6b0a1c2b
Remove SMP and render thread code, as they're unused 2024-12-01 16:32:19 +01:00
smallmodel
d884512a76
Update renderergl2 from upstream ioq3 2024-12-01 15:41:48 +01:00
smallmodel
71450fb36e
Move renderer to renderergl1 2024-12-01 15:30:23 +01:00
smallmodel
4775f29194
Fix build warnings and errors 2024-11-30 23:36:37 +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
aa74934ae0
Fix huddraw scaling with high resolutions 2024-11-30 23:21:20 +01:00
smallmodel
0534482c22
Fix a small mistake where it uses vidWidth rather than vidHeight 2024-11-30 23:08:23 +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
0fb775cd60
Only set the infoclient if it's a teammate player that can be sent to other clients 2024-11-29 23:45:52 +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
b3da62f77e
Don't use an offset for constArrayValue
This is risky and a bad practice to offset a pointer. This also fixes the compiler warning
2024-11-29 21:58:07 +01:00
smallmodel
f1e5d02169
Fix insecure printf format 2024-11-29 21:48:56 +01:00
smallmodel
7cad7a4bd0
Fix printf format specifiers 2024-11-29 21:34:41 +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
d944b4a21e
Fix wrong command name for ForceDropHealth 2024-11-27 22:40:40 +01:00
smallmodel
58f0245e83
Only add entries for servers that were queried successfully 2024-11-27 22:12:55 +01:00
smallmodel
2f8382f100
Initialize m_bMumble 2024-11-27 21:15:49 +01:00
smallmodel
167bd45a6a
Make the AI rarely play the standidentify animation (pointing finger to the player) 2024-11-27 21:14:51 +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
459e13dc76
Allow pusher to teleport
This fixes an issue where teamslaves (bind elements) would not be in sync with the pusher
2024-11-27 14:36:16 +01:00
smallmodel
eeb9139024
Fix incorrect delta for FaceEnemyOrMotion
The AI would not consistently aim at the enemy while covering
2024-11-27 11:57:05 +01:00
smallmodel
486b6f40e5
Don't play sound if the parameter is not specified 2024-11-26 22:47:55 +01:00
smallmodel
d3fdaa060a
Fix bad parameters passed to CG_AnimationDebugMessage 2024-11-26 19:21:18 +01:00
smallmodel
766258e84b
Archive instances of SmokeGrenade
This was mistakenly missing and fixes smoke grenade explosions disappearing after loading from save
2024-11-26 18:38:34 +01:00
smallmodel
8213bf41a8
Fix player having no inventory or dying when respawning immediately after getting killed 2024-11-26 00:53:38 +01:00
smallmodel
8843a8ee15
Remove owner assert
The owner can be NULL so there is no reason to assert on this
2024-11-26 00:36:47 +01:00
smallmodel
6bb09256c5
Teleport the player back to (0,0,0) origin if out of map bounds 2024-11-25 22:32:08 +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
6b402e5215
Format g_phys source file 2024-11-25 22:21:51 +01:00
smallmodel
04baf673dc
Set MAX_MAP_BOUNDS to 8192 2024-11-25 22:12:47 +01:00
smallmodel
10b7651eff
Use getters for max fire movement and zoom movement 2024-11-25 22:12:29 +01:00
smallmodel
6c9d6940cc
Disable sv_floodProtect by default 2024-11-25 19:35:37 +01:00