Commit graph

1577 commits

Author SHA1 Message Date
smallmodel
b592d15d1f
Added netoptimize enum types 2023-08-29 20:00:13 +02:00
smallmodel
78d70a892c
Fixed leanAngle being never 0 2023-08-29 20:00:03 +02:00
smallmodel
dbcf4c1800
Use GT_SINGLE_PLAYER instead of comparing non-zero 2023-08-29 18:48:36 +02:00
smallmodel
cbd4630b3c
SV_MasterHeartbeat: Use MAX_HEARTBEAT_TIME instead of the constant 2023-08-29 18:48:09 +02:00
smallmodel
92fdfe3f35
Moved MIN_HEARTBEAT_TIME and MAX_HEARTBEAT_TIME to sv_gqueryreporting.h 2023-08-29 18:45:46 +02:00
smallmodel
8b563e5232
Fixed heartbeat being always sent every frame 2023-08-29 08:17:23 +02:00
smallmodel
aeb4875fa5
Commented out call to WSACleanup() (as it is already handled by the engine) 2023-08-29 01:08:33 +02:00
smallmodel
5ebb9c61f9
Removed call to NET_Init (already called from main()) 2023-08-29 01:08:09 +02:00
smallmodel
c0e5b8fe15
Entities visibility enhancement
Implemented SV_WorldTrace(), SV_ClientIsVisibleTrace(), EntityDistCheck() and SV_ClientIsVisible()
Entities also will be hidden when:
- Their parent are not sent to clients
- They don't have a model
- They are behind t he farplane
- Clients can't see eachother with sv_netoptimize
2023-08-29 00:44:33 +02:00
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