Commit graph

3292 commits

Author SHA1 Message Date
smallmodel
3f139f463b
Remove stub print 2024-09-18 00:19:05 +02:00
smallmodel
0597191319
Implement SkelVec3::IsUnit 2024-09-18 00:18:08 +02:00
smallmodel
f4c8b0c21f
Initialize the cube build info
This should fix lighting being too dark or incorrect in some places
2024-09-17 22:22:42 +02:00
smallmodel
bba7031f3d
Add more clarity to code 2024-09-17 22:20:20 +02:00
smallmodel
4785913e02
compare_light_intensities should compare intensity as integers directly 2024-09-17 21:31:50 +02:00
smallmodel
a6808d1f6a
Fix incorrect light color for point lights and spot lights, also handle negative point light intensity
This fixes lighting from sphere being computed incorrectly for entities, making entities often look black or having strange lighting color
2024-09-17 21:27:14 +02:00
smallmodel
7188e9832a
Fix leaf iteration 2024-09-17 20:51:00 +02:00
smallmodel
0cce0c81fb
Prevent world values from being overridden by entities 2024-09-17 20:32:39 +02:00
smallmodel
a60baa03e0
Add MAX_SPHERE_LIGHTS 2024-09-17 20:06:35 +02:00
smallmodel
b0c8dafb33
Correctly compute colors for static model in vertex lit texture 2024-09-17 20:02:37 +02:00
smallmodel
b672fc8b29
Add #if, #if_not and #else shader statements 2024-09-17 20:00:24 +02:00
smallmodel
eac69f659f
For dot/oneminusdot, shader needs normal 2024-09-17 20:00:00 +02:00
smallmodel
d9ab65154c
Fix incorrect lighting grid blend 2024-09-17 00:27:01 +02:00
smallmodel
c120aed8bb
Fix incorrect static model grid lighting 2024-09-16 22:11:58 +02:00
smallmodel
ecdbe3d959
Don't check lightmap for RB_StageIteratorVertexLitTextureUnfogged to be used 2024-09-16 22:01:04 +02:00
smallmodel
96d10fb8b0
Mark r_light_nolight as cheat 2024-09-16 20:50:02 +02:00
smallmodel
2ab826268d
Clear the legs state during the torso evaluation when the movecontrol is not legs
The legs state won't be stuck anymore waiting for an empty animation. This could happen under special circumstances, when the torso evaluation sets the movecontrol to non-legs (clears the legs anim) and then back to legs in subsequent iterations.
Fixes #105, the issue cannot be exploited anymore for land-sharking
2024-09-16 20:20:19 +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
f35582489d
Fix support for british, russian and italian voices in Spearhead and Breakthrough 2024-09-16 18:09:56 +02:00
smallmodel
9acea3484d
Play zing sounds only if the location if the zing is valid
This fixes a potential crash where uninitialized position would be passed to the sound system
2024-09-16 17:39:15 +02:00
smallmodel
a72da9b73e
Fix incorrect terrain height for poly
This caused decals to float in the air when they were placed on the terrain
2024-09-15 23:49:42 +02:00
smallmodel
df53d35967
Fix real dynamic lighting algorithm for both terrain and patch
This fixes #356 where real dynamic lighting would look completely wrong, making it look like there are graphical artifacts on surfaces
2024-09-15 21:23:17 +02:00
smallmodel
e5e7421d3c
Fix terrain lightmap when there is a dynamic light map
This fixes terrain having a completely wrong lightmap texture coordinates for dynamic lighting
2024-09-15 21:21:38 +02:00
smallmodel
6ff25d00fc
Use lightmap offset for grid surface when a dlightmap is specified 2024-09-15 21:15:01 +02:00
smallmodel
4a5b0b3105
Fix y lightmap position when allocating a new lightmap block
See the issue with dynamic lights: #356
2024-09-15 19:39:22 +02:00
smallmodel
d05d964432
Fix NaN lmapStep for terrain patches 2024-09-15 19:34:25 +02:00
smallmodel
daa4a67b49
Reuse dlightmap in R_CheckDlightSurface and R_CheckDlightTerrain 2024-09-15 19:34:06 +02:00
smallmodel
9c0224911c
Reset the number of dynamic lights when calculating the real terrain lighting
This fixes a crash that can occur when there is only the terrain that can be lit with dlights
2024-09-15 12:02:05 +02:00
smallmodel
ef5759cff5
Don't execute commands during the intro 2024-09-15 01:21:20 +02:00
smallmodel
77292fb9ab
First person spectator fix (not working yet) 2024-09-15 01:21:17 +02:00
smallmodel
6fb9ab078e
Implement RE_DrawBackground_DrawPixels 2024-09-15 01:12:00 +02:00
smallmodel
844a72e0f3
Add DrawPixels and PixelZoom 2024-09-15 01:11:52 +02:00
smallmodel
46e9046629
Implement VehicleHalfTrack 2024-09-15 01:03:37 +02:00
smallmodel
e5af60787e
Partially implement GetZone/IsInZone 2024-09-15 00:42:35 +02:00
smallmodel
4b0696a187
Implement remaining methods of ClientGameCommandManager 2024-09-15 00:42:22 +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
b509ef5ab4
Deactivate the mouse only when loading 2024-09-14 23:29: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
0b106cf47e
Print errors only when developer mode is set 2024-09-14 13:21:08 +02:00
smallmodel
9b417c9b26
Add EV_Client_ForceFeedback (unused) 2024-09-14 13:20:55 +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
d04a32920a
Fix an incorrect parameter value passed to FS_Read when reading the DCL file 2024-09-13 21:49:45 +02:00
smallmodel
792b676c11
Set the number of brush models
The level marks system depends on the number of brush models and leafs, having a number that doesn't match what was saved would cause a crash
2024-09-13 21:47:57 +02:00