Commit graph

4049 commits

Author SHA1 Message Date
smallmodel
aa9847cf90
Use clean Radix sort code from ioquake3 to sort draw surfaces 2024-12-30 19:18:54 +01:00
smallmodel
18a3658935
Ignore fast path if the drawsurf is a sprite 2024-12-30 19:18:20 +01:00
smallmodel
716a574abe
Clean up terrain when shutting the Ref down 2024-12-30 18:51:10 +01:00
smallmodel
e0dee12578
Clamp LOD terrain values 2024-12-30 16:16:17 +01:00
smallmodel
04b1e88077
Clamp r_subdivisions value 2024-12-30 16:13:50 +01:00
smallmodel
51a2f7d479
Use an enumeration for weapon commands and a function to get the weapon command
This improves clarity for using weapon commands. Also the mask was incorrect for protocol above version 8 (mohaas and mohaab)
2024-12-30 00:55:29 +01:00
smallmodel
2656000ce4
Print chat message from the game module instead of the server 2024-12-29 18:46:40 +01:00
smallmodel
4ec10af1fd
Fix private message not working 2024-12-29 15:43:41 +01:00
smallmodel
78cd0cf28b
Prevent firing weapon if there is a weapon command
This prevent tricks like firing and dropping weapon to shoot silently
2024-12-29 13:45:18 +01:00
smallmodel
3e9d2bf89a
Fix incompatible type being used for shadertext
Some checks failed
Build branch / build-all (push) Failing after 17s
CodeQL / Analyze (push) Has been cancelled
2024-12-27 17:33:29 +01:00
smallmodel
ebe9795bba
Select a random player skin when the bot dies
Some checks failed
Build branch / build-all (push) Failing after 17s
CodeQL / Analyze (push) Has been cancelled
2024-12-25 15:08:57 +01:00
smallmodel
3f2c2f7aa4
Spectate the next player in mohaa 1.0 (instead of random) when pressing use in spectator 2024-12-25 15:08:00 +01:00
smallmodel
583c2720e2
Fix Info_RemoveKey not correctly removing the key 2024-12-25 15:00:32 +01:00
smallmodel
47d6843b70
Fix player model list never initialized 2024-12-25 14:50:11 +01:00
smallmodel
25fd01c46b
Automatically switch to another weapon when the current weapon has no ammo
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 22s
2024-12-24 20:19:08 +01:00
smallmodel
963b2a2bbd
Add getters for Sentient inventory and ammo inventory 2024-12-24 20:04:59 +01:00
smallmodel
7274ceb0ff
Make the bot melee when it is near the player 2024-12-24 19:53:20 +01:00
smallmodel
cb1c3c0b1c
Remove call to SV_WriteDownloadToClient() when sending snapshots, as it's already called when sending download messages 2024-12-24 18:42:05 +01:00
smallmodel
da5c35ec2b
Prevent connecting clients from receiving snapshots and CG messages while connecting
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 16s
2024-12-24 18:30:08 +01:00
smallmodel
515beeafa7
Fix wrong fov clamping
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 19s
2024-12-23 22:57:26 +01:00
smallmodel
85c401496a
Add a client-game variable for customizing the FOV client-side 2024-12-23 22:53:31 +01:00
smallmodel
31278fba92
Make sure to bind to the renderer FBO when drawing
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 16s
2024-12-22 22:41:54 +01:00
smallmodel
a760cb75a3
Use RE_AddPolyToScene2 for poly like beams 2024-12-22 20:27:59 +01:00
smallmodel
1d0b912f75
Make sure to check if the sprite is valid 2024-12-22 19:57:14 +01:00
smallmodel
439e0718ce
Fix sprite rendering causing crashes 2024-12-22 19:16:27 +01:00
smallmodel
4c57ba6ef3
Fix currentStaticModel assignment 2024-12-22 19:03:11 +01:00
smallmodel
b4bae40da8
Fix BSP minimum and maximum version on GL2 2024-12-22 19:00:15 +01:00
smallmodel
e04cbd57ea
Fix most shader errors, light rendering
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 18s
2024-12-21 22:49:38 +01:00
smallmodel
66664b7b46
Add tr_vis 2024-12-21 21:43:29 +01:00
smallmodel
546b90d75f
Add basic 3D GL2 rendering with static models and terrain 2024-12-21 17:04:31 +01:00
smallmodel
14e83a52a4
Add terrain rendering 2024-12-21 14:01:11 +01:00
smallmodel
dc9fec9d03
Load JPEG file first before TGA
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 28s
2024-12-20 23:35:14 +01:00
smallmodel
6d21d52d3e
Define USE_INTERNAL_JPEG macro for renderer when using the internal JPEG 2024-12-20 23:31:03 +01:00
smallmodel
3afb87486b
Add basic support for mohaa shaders for GL2 2024-12-20 23:21:28 +01:00
smallmodel
d0c0a55e6d
Fix drawing elements with color 2024-12-20 23:20:30 +01:00
smallmodel
1919b0efcb
Fix Cvar_SetValue not set for ref imports 2024-12-20 23:11:37 +01:00
smallmodel
954d096261
Fix font rendering 2024-12-20 21:53:33 +01:00
smallmodel
7e150c7a8a
Implement used draw functions 2024-12-20 21:27:10 +01:00
smallmodel
77646bda78
Implement RB_Stream draw surfaces 2024-12-20 21:21:10 +01:00
smallmodel
e6848a3ab0
Fix the window sizer losing focus when rapidly dragging the mouse
This would lead to annoyances when trying to resize the window as the window sizer would lose focus
2024-12-20 20:13:05 +01:00
smallmodel
011f49616b
Fix the improper focus and activation of pulldown menus 2024-12-20 19:35:27 +01:00
smallmodel
e1be3c0fd1
Call G_SetClientConfigString() instead to properly set the team configstring 2024-12-20 19:13:17 +01:00
smallmodel
3d950764a2
Add minimal renderergl2 implementation
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 17s
This implementation should just let the game run without crashing, the renderer doesn't show anything yet
2024-12-20 01:23:00 +01:00
smallmodel
fe16f999d8
Use ri.Printf to print instead of the Com_* functions 2024-12-19 22:40:38 +01:00
smallmodel
390c1d3f3d
Move tiki_mesh inclusion to renderercommon CMakeLists 2024-12-19 21:18:54 +01:00
smallmodel
49b5c29c11
Format renderergl1 source files 2024-12-19 21:13:39 +01:00
smallmodel
f86b495cc6
Set all common renderer imports and add openmohaa imports after ioquake3 imports for more clarity 2024-12-19 20:09:52 +01:00
smallmodel
a4d0a96ce5
Clear the camera jitter when ending the remote control 2024-12-19 19:52:29 +01:00
smallmodel
9d4ea75a18
Increase the number of aliases that can be found
Previously, 64 aliases could be chosen for random search, it was incremented to 128 since 2.0, however it should have been increased in Breakthrough as well, because there are aliases with more than 128 elements
2024-12-19 19:19:12 +01:00
smallmodel
38427fa3c5
Add support for compiling both opengl1 and opengl2 when they're built as shared libraries
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 26s
renderercommon is now used, which will appropriately use opengl1 when building static libraries, or compile both opengl1/opengl2 modules when building shared libraries
2024-12-18 23:24:04 +01:00