Commit graph

1568 commits

Author SHA1 Message Date
smallmodel
f852efea7d
Added cvars 2023-08-29 00:04:07 +02:00
smallmodel
664ae905bb
Fixed lastRadarTime and lastVisCheckTime fields 2023-08-29 00:03:44 +02:00
smallmodel
243b0fd109
Added sv_netprofile, sv_netprofileoverlay, sv_netoptimize and g_netoptimize 2023-08-29 00:03:28 +02:00
smallmodel
43b0944403
Added centroid in entityShared_t and removed currentOrigin 2023-08-29 00:03:07 +02:00
smallmodel
ecc3c9f7b4
Renamed SVF_HIDEOWNER to SVF_SENT 2023-08-28 23:00:58 +02:00
smallmodel
296249b203
Fixed wrong SVF flags 2023-08-28 22:13:16 +02:00
smallmodel
8c1145bb9f
Clear all unsupported farplane fields in protocol below version 15 2023-08-28 20:59:02 +02:00
smallmodel
7ad18a68f8
Rendering fog fixes
Fixed wrong fog flag being used (must be GLS_FOG) in RB_SetupFog().
R_SetupFrustum():
- Use skybox farplane and farplane bias
- RB_SetupFog() is now the only function who handle fog activation

RE_RenderScene():
- Set renderTerrain, skybox_farplane and farplane_bias parameters
- Set color overrides
- Use farclip when necessary

RB_StageIteratorLightmappedMultitextureUnfogged(): Fixed issue with fog being reset
2023-08-28 20:50:32 +02:00
smallmodel
99ba396c24
Make sure to not error out if the map checksum isn't used. Also fixed cg.farclipOverride, must be -1 if the server is a mohaa server 2023-08-28 20:46:48 +02:00
smallmodel
f88e9960f2
Use the map's checksum only if the server has sv_mapChecksum exported 2023-08-28 20:45:10 +02:00
smallmodel
b53466ea0d
Fixed cheats variable being improperly configured 2023-08-28 20:44:33 +02:00
smallmodel
2afda6a470
Check the map checksum in CG_GameStateReceived 2023-08-28 20:29:18 +02:00
smallmodel
acc8081ef2
Added checksum return parameter in CL_CM_LoadMap for cgame 2023-08-28 20:28:59 +02:00
smallmodel
7433677ead
CG_Init(): clear fog overrides 2023-08-28 20:22:43 +02:00
smallmodel
4132f7efe6
Fixed farplane
Animated farplane is cleared when setting the farplane
Fixed farclip_override and farplane_color_override being mixed up
2023-08-28 20:22:06 +02:00
smallmodel
56e0f5797e
Don't iterate the sky when tr.farclip is set 2023-08-28 19:52:12 +02:00
smallmodel
54c142ce78
Flag mistake, now using GLS_MULTITEXTURE_ENV instead of GLS_FOG_WHITE 2023-08-28 19:46:31 +02:00
smallmodel
c106aeef2b
Clear fog when drawing 2D window 2023-08-28 19:45:54 +02:00
smallmodel
66bde85807
Added GLS_COLOR_MASK and GLS_FOG_BITS 2023-08-28 19:45:40 +02:00
smallmodel
08363511a7
farclip must be an integer 2023-08-28 18:36:03 +02:00
smallmodel
d6b93b712c
Fixed sound location when in camera view + subtract refdef viewangles when PMF_DAMAGE_ANGLES is set 2023-08-28 18:35:47 +02:00
smallmodel
a85d6d0f4c
Added PMF_DAMAGE_ANGLES for mohaas/mohaab 2023-08-28 18:34:50 +02:00
smallmodel
2c1f341099
Initialize cg.farplaneColorOverride values to -1 2023-08-28 17:53:47 +02:00
smallmodel
52bb709ca5
Implemented CG_SetupFog() and CG_SetupPortalSky()
CG_SetupFog() must be called by CG_CalcViewValues()
CG_SetupPortalSky() must be called in CG_DrawActiveFrame()
2023-08-28 17:53:35 +02:00
smallmodel
24ea958748
Added R_ClearRealDlights() declaration 2023-08-28 17:45:11 +02:00
smallmodel
b6143ce54c
Better fog rendering
Implemented RB_SetupFog()
2023-08-28 17:36:57 +02:00
smallmodel
463ea7d34b
Using viewParms.isPortalSky 2023-08-28 17:36:34 +02:00
smallmodel
1015302a7f
Remove GLS_FOG_ENABLED if stateBits has GLS_FOG_WHITE 2023-08-28 17:36:19 +02:00
smallmodel
c73f5917f8
Removed image->UseCount 2023-08-28 17:36:01 +02:00
smallmodel
9315cfa488
Added mohaas/mohaab variables 2023-08-28 17:35:54 +02:00
smallmodel
0f58b5780a
Fixed fall damage on mohaas/mohaab
Use a percentage of the health instead
2023-08-28 15:49:28 +02:00
smallmodel
edd5f07d48
Added healrate support (from mohaas) 2023-08-28 15:49:07 +02:00
smallmodel
a7f258f2b1
Fixed health not healing with the healrate 2023-08-28 15:48:12 +02:00
smallmodel
65dcb72cba
Fixed AmmoPickup not sending a message to the player 2023-08-28 15:41:06 +02:00
smallmodel
4885c536c8
Fixed wrong RB_CHECKOVERFLOW call (maybe #67) 2023-08-28 15:20:31 +02:00
smallmodel
b6204dab78
Added LOD support 2023-08-28 02:32:33 +02:00
smallmodel
5b5951483a
Added GetLodCutoff() and GetToolLodCutoff() 2023-08-28 02:26:36 +02:00
smallmodel
194d53569f
Added foliage AFunc 2023-08-28 00:51:43 +02:00
smallmodel
5e8b54be7e
Added new cvars from mohaas/mohaab 2023-08-27 23:24:06 +02:00
smallmodel
8dc91e413e
Commented out GLS_MULTITEXTURE_ENV since it was removed in mohaas 2023-08-27 23:18:48 +02:00
smallmodel
57cf513b39
Added $bumpmap and normalmap (from mohaab) 2023-08-27 23:18:32 +02:00
smallmodel
bb1326860b
Added normalmap fields 2023-08-27 23:18:21 +02:00
smallmodel
136838e40b
Fixed R_ColorShiftLightingBytes()
The lighting bytes must use tr.overbrightShift instead of tr.overbrightBits.
This makes the rendering more colorful
2023-08-27 22:18:09 +02:00
smallmodel
30d9483504
Decreased SHADERNUM and STATICMODEL shift values
When the number of shaders reached >1023, some surfaces started to be have random shaders started on them
The number of sorted shaders in a single game can now be up to 2048
2023-08-27 22:17:16 +02:00
smallmodel
05d3c50866
Stage fixes
Initialize animation phase to 0
Made CollapseMultitexture() work for more shaders
2023-08-27 22:15:08 +02:00
smallmodel
d5e93d863a
Set ps.walking in CG_TransitionSnapshot() instead 2023-08-27 19:53:29 +02:00
smallmodel
d3f93aae15
Interpolate fLeanAngle #66 2023-08-27 19:32:38 +02:00
smallmodel
963e4aa7ec
Restore saved Cgame state if the server is different (clear it otherwise) 2023-08-27 19:31:45 +02:00
smallmodel
5a250ea247
Fill cent->snapShotTime 2023-08-27 19:30:08 +02:00
smallmodel
bc8d8aafc0
Fixed the viewmodel not being normal when no prediction is active 2023-08-27 19:14:23 +02:00