]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
18 years agochanged strzone, stuffcmd, and localcmd to be able to take multiple strings
havoc [Fri, 25 Nov 2005 06:55:40 +0000 (06:55 +0000)]
changed strzone, stuffcmd, and localcmd to be able to take multiple strings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5833 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoping command now works from server console
havoc [Fri, 25 Nov 2005 06:14:05 +0000 (06:14 +0000)]
ping command now works from server console

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5832 d7cf8633-e32d-0410-b094-e92efae38249

18 years agocleaned up edict clearing when connecting or coming back from a level change, this...
havoc [Fri, 25 Nov 2005 05:24:25 +0000 (05:24 +0000)]
cleaned up edict clearing when connecting or coming back from a level change, this fixes the botclient bugs regarding .colormap, but also meant that NetConn_ServerFrame requires SV_VM_Begin/End around it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5830 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoadded support for model scaling in bounding box calculations for network culling...
havoc [Fri, 25 Nov 2005 03:24:59 +0000 (03:24 +0000)]
added support for model scaling in bounding box calculations for network culling, so now entities can be made bigger and won't disappear incorrectly

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5829 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoSOLID_NOT is now linked into the areagrid, which fixed the bugs with corpses not...
havoc [Fri, 25 Nov 2005 01:34:12 +0000 (01:34 +0000)]
SOLID_NOT is now linked into the areagrid, which fixed the bugs with corpses not riding lifts, and also means that findradius will find SOLID_NOT entities more often like the sv_gameplayfix_blowupfallenzombies was intended to
reorganized and optimized the TOSS/FLY/BOUNCE/STEP physics for better handling of sv_gameplayfix_noairborncorpse

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5828 d7cf8633-e32d-0410-b094-e92efae38249

18 years agochanged serverlist to using color tags instead of shifting the numbers to different...
havoc [Fri, 25 Nov 2005 01:31:18 +0000 (01:31 +0000)]
changed serverlist to using color tags instead of shifting the numbers to different charsets in the quake font

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5827 d7cf8633-e32d-0410-b094-e92efae38249

18 years agochanged serverlist menu to use color tags instead of shifting the numbers to differen...
havoc [Fri, 25 Nov 2005 01:29:59 +0000 (01:29 +0000)]
changed serverlist menu to use color tags instead of shifting the numbers to different character sets in the quake font

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5826 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoallow typing characters above 126
havoc [Fri, 25 Nov 2005 01:17:43 +0000 (01:17 +0000)]
allow typing characters above 126

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5825 d7cf8633-e32d-0410-b094-e92efae38249

18 years agouse color tags for chat messages instead of 0x80 masking
havoc [Fri, 25 Nov 2005 01:16:07 +0000 (01:16 +0000)]
use color tags for chat messages instead of 0x80 masking

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5824 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofixed up various bugs with cl_beams_relative, and reenabled smooth sweeping on other...
havoc [Fri, 25 Nov 2005 01:12:00 +0000 (01:12 +0000)]
fixed up various bugs with cl_beams_relative, and reenabled smooth sweeping on other players/enemies

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5823 d7cf8633-e32d-0410-b094-e92efae38249

18 years agochanged default bloom settings to faster performing and less overkill values
havoc [Wed, 23 Nov 2005 18:41:13 +0000 (18:41 +0000)]
changed default bloom settings to faster performing and less overkill values

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5822 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoadded a remaining < 1 check to centerprint display code, this might have fixed the...
havoc [Wed, 23 Nov 2005 03:40:59 +0000 (03:40 +0000)]
added a remaining < 1 check to centerprint display code, this might have fixed the problem where it briefly showed the full text at the beginning of a finale

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5821 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix bugs with crosshair_static 0 mode when the player is an EF_NODRAW entity
havoc [Wed, 23 Nov 2005 03:33:20 +0000 (03:33 +0000)]
fix bugs with crosshair_static 0 mode when the player is an EF_NODRAW entity

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5820 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoremoving uses of entity_render_t->origin in the client
havoc [Wed, 23 Nov 2005 03:28:28 +0000 (03:28 +0000)]
removing uses of entity_render_t->origin in the client

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5819 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoimplemented 7.1 audio, only works with SDL (attempted ALSA support but ALSA doesn...
havoc [Wed, 23 Nov 2005 03:00:34 +0000 (03:00 +0000)]
implemented 7.1 audio, only works with SDL (attempted ALSA support but ALSA doesn't seem to like mmap access to 4/6/8 channel buffers)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5818 d7cf8633-e32d-0410-b094-e92efae38249

18 years ago*** empty log message ***
havoc [Wed, 23 Nov 2005 02:59:05 +0000 (02:59 +0000)]
*** empty log message ***

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5817 d7cf8633-e32d-0410-b094-e92efae38249

18 years agocleaned up many text buffer sizes throughout the engine, most now use MAX_INPUTLINE...
havoc [Wed, 23 Nov 2005 02:54:50 +0000 (02:54 +0000)]
cleaned up many text buffer sizes throughout the engine, most now use MAX_INPUTLINE, some use MAX_QPATH, also cleaned up a lot of stuff that had buffer sizes in the code (now uses sizeof)
increased MAX_INPUTLINE from 256 to 16384, so now console commandlines and many other things can be very large

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5816 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofixed backwards q3bsp model lighting and backwards rtlighting
havoc [Tue, 22 Nov 2005 00:55:26 +0000 (00:55 +0000)]
fixed backwards q3bsp model lighting and backwards rtlighting

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5815 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoadded r_shownormals
havoc [Tue, 22 Nov 2005 00:40:00 +0000 (00:40 +0000)]
added r_shownormals
fixed Mod_BumpVectors to generate normals the correct way...  now all rtlighting and q3bsp vertex shading is backwards :(

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5814 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoclear the client->weaponmodel cache on level change
havoc [Mon, 21 Nov 2005 18:14:56 +0000 (18:14 +0000)]
clear the client->weaponmodel cache on level change

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5813 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoFixed black screen when using fullscreen mode on Mac OS X
molivier [Sun, 20 Nov 2005 15:14:10 +0000 (15:14 +0000)]
Fixed black screen when using fullscreen mode on Mac OS X

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5812 d7cf8633-e32d-0410-b094-e92efae38249

18 years agodisable sbar in GAME_NETHERWORLD (it draws it using qc)
havoc [Sat, 19 Nov 2005 12:45:01 +0000 (12:45 +0000)]
disable sbar in GAME_NETHERWORLD (it draws it using qc)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5811 d7cf8633-e32d-0410-b094-e92efae38249

18 years agomade gl_max_size cvar only affect TEXF_PICMIP textures, this prevents it from breakin...
havoc [Thu, 17 Nov 2005 15:17:14 +0000 (15:17 +0000)]
made gl_max_size cvar only affect TEXF_PICMIP textures, this prevents it from breaking bloom like it did previously, and bloom now disables itself if the hardware doesn't support big enough textures (such as 3Dfx Voodoo1/2/3/Rush/Banshee)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5810 d7cf8633-e32d-0410-b094-e92efae38249

18 years agochanged DNS name cache expiration time to 12 hours
havoc [Sun, 13 Nov 2005 12:10:08 +0000 (12:10 +0000)]
changed DNS name cache expiration time to 12 hours

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5809 d7cf8633-e32d-0410-b094-e92efae38249

18 years agocorrected dpmaster.deathmask.net IP address comment again
havoc [Sun, 13 Nov 2005 12:08:35 +0000 (12:08 +0000)]
corrected dpmaster.deathmask.net IP address comment again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5808 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoadded Matrix4x4_Normalize
havoc [Sun, 13 Nov 2005 12:05:24 +0000 (12:05 +0000)]
added Matrix4x4_Normalize
now normalizes dlight matrix so that attached dlight entities won't be smaller/bigger than normal

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5807 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoexpire internal DNS name cache entries after 5 minutes (this way a master server...
havoc [Sun, 13 Nov 2005 12:04:28 +0000 (12:04 +0000)]
expire internal DNS name cache entries after 5 minutes (this way a master server can change IP address)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5806 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoupdated ip address comment for dpmaster.deathmask.net
havoc [Sun, 13 Nov 2005 11:59:31 +0000 (11:59 +0000)]
updated ip address comment for dpmaster.deathmask.net

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5805 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoincreased max cachepics from 256 to 1024 at VorteX's request
havoc [Fri, 11 Nov 2005 12:47:09 +0000 (12:47 +0000)]
increased max cachepics from 256 to 1024 at VorteX's request

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5804 d7cf8633-e32d-0410-b094-e92efae38249

18 years agocondensed CL_EntityParticles code
havoc [Thu, 10 Nov 2005 07:03:40 +0000 (07:03 +0000)]
condensed CL_EntityParticles code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5803 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoMoved the cmd preprocessor call from ExecuteString to Cbuf_Execute which
black [Tue, 8 Nov 2005 16:49:35 +0000 (16:49 +0000)]
Moved the cmd preprocessor call from ExecuteString to Cbuf_Execute which
should fix the messagemode issue.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5802 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoremoved \n from all Host_Error, Sys_Error, PRVM_ERROR, PF_ERROR calls, since Host_Err...
havoc [Mon, 7 Nov 2005 12:37:15 +0000 (12:37 +0000)]
removed \n from all Host_Error, Sys_Error, PRVM_ERROR, PF_ERROR calls, since Host_Error/Sys_Error add their own \n as needed

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5801 d7cf8633-e32d-0410-b094-e92efae38249

18 years agocleaned up all Con_Printf calls that were missing a \n
havoc [Mon, 7 Nov 2005 11:08:12 +0000 (11:08 +0000)]
cleaned up all Con_Printf calls that were missing a \n

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5800 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix a bug in loading colormap.lmp to determine number of fullbrights, forgot to pass...
havoc [Mon, 7 Nov 2005 09:52:57 +0000 (09:52 +0000)]
fix a bug in loading colormap.lmp to determine number of fullbrights, forgot to pass &filesize to FS_LoadFile

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5799 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofixed a bug in the r_lockpvs cvar silently added in the last commit (r_lockvisibility...
havoc [Mon, 7 Nov 2005 09:44:12 +0000 (09:44 +0000)]
fixed a bug in the r_lockpvs cvar silently added in the last commit (r_lockvisibility cvar also added in the last commit)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5798 d7cf8633-e32d-0410-b094-e92efae38249

18 years agogot rid of unused r_vismarklights cvar
havoc [Mon, 7 Nov 2005 09:41:51 +0000 (09:41 +0000)]
got rid of unused r_vismarklights cvar

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5797 d7cf8633-e32d-0410-b094-e92efae38249

18 years agocleaned up R_WorldVisibility code some more and added additional documentation
havoc [Mon, 7 Nov 2005 09:35:58 +0000 (09:35 +0000)]
cleaned up R_WorldVisibility code some more and added additional documentation
renamed r_surfaceworldnode to r_useportalculling and inverted its behavior accordingly
added a special no-pvs-at-all case for floating around in the void to improve readability

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5796 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoremoved .tga/.lmp extensions from all Pic names in the engine to improve consistency
havoc [Mon, 7 Nov 2005 06:51:09 +0000 (06:51 +0000)]
removed .tga/.lmp extensions from all Pic names in the engine to improve consistency

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5795 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix rendering issues with light crosshairs and the world crosshair
havoc [Mon, 7 Nov 2005 06:48:48 +0000 (06:48 +0000)]
fix rendering issues with light crosshairs and the world crosshair

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5794 d7cf8633-e32d-0410-b094-e92efae38249

18 years agocleanup of Cmd_PreprocessString and removal of a commented code block as requested...
havoc [Mon, 7 Nov 2005 05:30:44 +0000 (05:30 +0000)]
cleanup of Cmd_PreprocessString and removal of a commented code block as requested by Black

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5793 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix stupid crash
havoc [Sun, 6 Nov 2005 15:56:28 +0000 (15:56 +0000)]
fix stupid crash

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5792 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoMerged the $ handling into one preprocessor function.
black [Sun, 6 Nov 2005 15:23:23 +0000 (15:23 +0000)]
Merged the $ handling into one preprocessor function.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5791 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoeliminated fs_filesize global, now File_LoadFile and File_Open take a fs_offset_t...
havoc [Sat, 5 Nov 2005 14:18:22 +0000 (14:18 +0000)]
eliminated fs_filesize global, now File_LoadFile and File_Open take a fs_offset_t filesize variable pointer to store the file size into

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5790 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoeliminated qbyte type, now uses unsigned char throughout the engine for this purpose
havoc [Sat, 5 Nov 2005 07:48:17 +0000 (07:48 +0000)]
eliminated qbyte type, now uses unsigned char throughout the engine for this purpose

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5789 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoimplemented sv_fixedframeratesingleplayer cvar
havoc [Fri, 4 Nov 2005 13:24:15 +0000 (13:24 +0000)]
implemented sv_fixedframeratesingleplayer cvar

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5788 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoeliminated use of node bounding box when recursing collision traces and lights throug...
havoc [Fri, 4 Nov 2005 12:32:52 +0000 (12:32 +0000)]
eliminated use of node bounding box when recursing collision traces and lights through the BSP tree, now only uses BoxOnPlaneSide approach, with an optimized axial case inlined

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5787 d7cf8633-e32d-0410-b094-e92efae38249

18 years agominor optimizations to GLSL path layer checking
havoc [Fri, 4 Nov 2005 12:31:35 +0000 (12:31 +0000)]
minor optimizations to GLSL path layer checking

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5786 d7cf8633-e32d-0410-b094-e92efae38249

18 years agomade timing even more reliable (now sleeps only as little as possible, and only if...
havoc [Tue, 1 Nov 2005 09:57:40 +0000 (09:57 +0000)]
made timing even more reliable (now sleeps only as little as possible, and only if at least 10ms remains)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5785 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix dedicated server timing, now sleeps less than the full amount of time (like liste...
havoc [Tue, 1 Nov 2005 09:52:47 +0000 (09:52 +0000)]
fix dedicated server timing, now sleeps less than the full amount of time (like listen servers/clients already did) to maintain a steady framerate, also made it not sleep unless it is at least 10ms, to try to further improve the timing accuracy, thanks to GreEn`mArine for testing this change

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5784 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix another crash on level change caused by NetConn_ServerFrame being called
havoc [Sun, 30 Oct 2005 05:17:27 +0000 (05:17 +0000)]
fix another crash on level change caused by NetConn_ServerFrame being called

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5783 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix server physics crash on level change from reading player movement packets during...
havoc [Sat, 29 Oct 2005 11:26:25 +0000 (11:26 +0000)]
fix server physics crash on level change from reading player movement packets during SV_SpawnServer (bad idea!)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5782 d7cf8633-e32d-0410-b094-e92efae38249

18 years agorewrote much of the voodoo/tnt rtlight path, now supports fog, and now avoids renderi...
havoc [Sat, 29 Oct 2005 10:59:10 +0000 (10:59 +0000)]
rewrote much of the voodoo/tnt rtlight path, now supports fog, and now avoids rendering any black triangles (since these cards don't have a lot of fillrate it's better to cull triangles on the cpu)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5781 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoconverted vertex fogging to use a fogtable array which matches the fog texture
havoc [Sat, 29 Oct 2005 06:51:14 +0000 (06:51 +0000)]
converted vertex fogging to use a fogtable array which matches the fog texture
enabled fog texturing on GLSL lighting path (dot3 path and vertex path still need work)
changed EyeVector/LightVector in GLSL shader back to full fp32 precision because at fp16 the vectors were reaching infinity at only a few meters, which obviously broke fogging

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5780 d7cf8633-e32d-0410-b094-e92efae38249

18 years agomerged two sprite functions into the main callback to slightly clean up the code...
havoc [Sat, 29 Oct 2005 00:58:15 +0000 (00:58 +0000)]
merged two sprite functions into the main callback to slightly clean up the code and simplify it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5779 d7cf8633-e32d-0410-b094-e92efae38249

18 years agomigrated r_lerpsprites cvar check to r_lerpanim, r_lerpmodels no longer affects sprites
havoc [Sat, 29 Oct 2005 00:39:53 +0000 (00:39 +0000)]
migrated r_lerpsprites cvar check to r_lerpanim, r_lerpmodels no longer affects sprites

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5778 d7cf8633-e32d-0410-b094-e92efae38249

18 years agotweaked GLSL lighting shader to get a bit more performance (at least 7%) on GF6 by...
havoc [Fri, 28 Oct 2005 05:44:11 +0000 (05:44 +0000)]
tweaked GLSL lighting shader to get a bit more performance (at least 7%) on GF6 by making all variables half precision except TexCoord, hopefully also helps GFFX

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5777 d7cf8633-e32d-0410-b094-e92efae38249

18 years agothe beginnings of texture fog support (to cure the vertex artifacts and simplify...
havoc [Thu, 27 Oct 2005 06:41:42 +0000 (06:41 +0000)]
the beginnings of texture fog support (to cure the vertex artifacts and simplify the renderer a bit)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5776 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoremove a debugging message related to ammo > 200 in zymotic hud
havoc [Thu, 27 Oct 2005 05:55:59 +0000 (05:55 +0000)]
remove a debugging message related to ammo > 200 in zymotic hud

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5775 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix free/malloc problems from a partial switch to Z_Free and Z_Malloc, the switch...
havoc [Wed, 26 Oct 2005 22:23:41 +0000 (22:23 +0000)]
fix free/malloc problems from a partial switch to Z_Free and Z_Malloc, the switch over is now complete

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5774 d7cf8633-e32d-0410-b094-e92efae38249

18 years agonew zymotic hud
havoc [Wed, 26 Oct 2005 10:57:05 +0000 (10:57 +0000)]
new zymotic hud

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5773 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoreplaced CL_PointQ1Contents with longer calls to contents conversion and CL_PointSupe...
havoc [Wed, 26 Oct 2005 10:13:00 +0000 (10:13 +0000)]
replaced CL_PointQ1Contents with longer calls to contents conversion and CL_PointSuperContents
changed CL_PointSuperContents to a #define calling SV_Move directly as an optimization

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5772 d7cf8633-e32d-0410-b094-e92efae38249

18 years agosplit SV_Physics_Entity into SV_Physics_Entity and SV_Physics_ClientEntity as an...
havoc [Wed, 26 Oct 2005 10:11:47 +0000 (10:11 +0000)]
split SV_Physics_Entity into SV_Physics_Entity and SV_Physics_ClientEntity as an optimization

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5771 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix stupid bug introduced by merging CL_DecayLights into CL_UpdateLights, fixed by...
havoc [Wed, 26 Oct 2005 10:09:28 +0000 (10:09 +0000)]
fix stupid bug introduced by merging CL_DecayLights into CL_UpdateLights, fixed by splitting them again, now glowing entities should work again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5770 d7cf8633-e32d-0410-b094-e92efae38249

18 years agooptimized SV_WriteClientdataToMessage by caching weaponmodelindex in client structure...
havoc [Wed, 26 Oct 2005 02:09:48 +0000 (02:09 +0000)]
optimized SV_WriteClientdataToMessage by caching weaponmodelindex in client structure, saving 1% cpu time in masque.bsp

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5769 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoreverted bsp recursion changes (back to the BoxOnPlaneSide method) because the skippi...
havoc [Wed, 26 Oct 2005 02:02:49 +0000 (02:02 +0000)]
reverted bsp recursion changes (back to the BoxOnPlaneSide method) because the skipping of solid leafs in node bounding box generation was completely breaking q3bsp collisions, and without the reduced node boxes the bsp recursion code runs horribly slow for unknown reasons

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5768 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoupdated IP address comment for Willis's dpmaster.deathmask.net master server
havoc [Tue, 25 Oct 2005 04:29:39 +0000 (04:29 +0000)]
updated IP address comment for Willis's dpmaster.deathmask.net master server

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5767 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix a use of cs.specialvisibilityradius before it was initialized (thanks to gcc...
havoc [Mon, 24 Oct 2005 05:55:21 +0000 (05:55 +0000)]
fix a use of cs.specialvisibilityradius before it was initialized (thanks to gcc 4 for pointing out this bug)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5766 d7cf8633-e32d-0410-b094-e92efae38249

18 years agomoved d_lightstylevalue into r_refdef.lightstyle
havoc [Mon, 24 Oct 2005 04:42:22 +0000 (04:42 +0000)]
moved d_lightstylevalue into r_refdef.lightstyle
moved r_dlights into r_redef.lights and made it an array of pointers into cl_dlights to save memory and time
merged R_UpdateLights into CL_DecayLights and renamed it CL_UpdateLights
renamed R_RTLight_UpdateFromDLight to R_RTLight_Update and made it take only the dlight pointer
implemented cl_activedlights variable to prevent scanning whole MAX_DLIGHTS range every frame

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5765 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofixed a flaw in Mod_Q1BSP_RecursiveRecalcNodeBBox, it was merging bounding boxes...
havoc [Mon, 24 Oct 2005 04:28:49 +0000 (04:28 +0000)]
fixed a flaw in Mod_Q1BSP_RecursiveRecalcNodeBBox, it was merging bounding boxes even if they came from solid leafs, which meant that the solid hull around the world was making almost all nodes have a bounding box of +-1 billion units, negating any benefit at all to node bounding boxes
10% speed gain in masque.bsp by changing pvs box checking functions to use box tests when recursing the bsp tree instead of BoxOnPlaneSide (now that the node boxes are usable)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5764 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoslightly optimized Mod_ForName to make less calls to Mod_LoadModel
havoc [Mon, 24 Oct 2005 04:22:16 +0000 (04:22 +0000)]
slightly optimized Mod_ForName to make less calls to Mod_LoadModel

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5763 d7cf8633-e32d-0410-b094-e92efae38249

18 years agomade an optimized SV_ClipMoveToWorld function to save time on large numbers of world...
havoc [Mon, 24 Oct 2005 04:19:23 +0000 (04:19 +0000)]
made an optimized SV_ClipMoveToWorld function to save time on large numbers of world collisions

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5762 d7cf8633-e32d-0410-b094-e92efae38249

18 years ago#ifdef 0'd out BoxOnPlaneSide_Separate as it is not used
havoc [Mon, 24 Oct 2005 04:17:09 +0000 (04:17 +0000)]
#ifdef 0'd out BoxOnPlaneSide_Separate as it is not used

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5761 d7cf8633-e32d-0410-b094-e92efae38249

18 years agodon't send empty lightstyles during signon
havoc [Sun, 23 Oct 2005 23:13:11 +0000 (23:13 +0000)]
don't send empty lightstyles during signon

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5760 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofixed a bug that was making "Model %s not found" warnings never appear when parsing...
havoc [Sun, 23 Oct 2005 20:24:03 +0000 (20:24 +0000)]
fixed a bug that was making "Model %s not found" warnings never appear when parsing the model precache list

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5759 d7cf8633-e32d-0410-b094-e92efae38249

18 years agogot rid of Mod_CheckLoaded, changed how model system restart works to make this work...
havoc [Sun, 23 Oct 2005 20:02:31 +0000 (20:02 +0000)]
got rid of Mod_CheckLoaded, changed how model system restart works to make this work properly
disabled model purging on level change, now only the world model is unloaded, this should improve slightly load times from level to level if a model is used in an early level, then not used in the next, and then used again in the next after that, however it also increases memory usage

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5758 d7cf8633-e32d-0410-b094-e92efae38249

18 years agochanged network entity pvs checking to cache the cluster list (updated whenever the...
havoc [Sun, 23 Oct 2005 19:42:34 +0000 (19:42 +0000)]
changed network entity pvs checking to cache the cluster list (updated whenever the cull box changes), this got a 20% speed gain in masque.bsp, also rewrote much of the network entity handling code for another 1% speed gain and slight readability improvement

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5757 d7cf8633-e32d-0410-b094-e92efae38249

18 years agorewrote r_speeds stats code, now uses renderstats global structure rather than indivi...
havoc [Sun, 23 Oct 2005 06:36:05 +0000 (06:36 +0000)]
rewrote r_speeds stats code, now uses renderstats global structure rather than individual c_ global variables, this makes maintenance a lot easier, additionally changed all the stats to be more representitive of how the engine actually works (counting entities instead of models/bmodels/sprites separately, among other changes), condensed r_speeds stats display to fewer lines

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5756 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix another g++ conversion error
havoc [Fri, 21 Oct 2005 06:35:08 +0000 (06:35 +0000)]
fix another g++ conversion error

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5754 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoadded explicit casts for agl functions when calling GL_GetProcAddress
havoc [Fri, 21 Oct 2005 06:32:19 +0000 (06:32 +0000)]
added explicit casts for agl functions when calling GL_GetProcAddress

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5753 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix another float->enum conversion error with g++ 4
havoc [Fri, 21 Oct 2005 06:15:55 +0000 (06:15 +0000)]
fix another float->enum conversion error with g++ 4

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5752 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofixed two Con_Printf format strings with the wrong type
havoc [Fri, 21 Oct 2005 06:15:25 +0000 (06:15 +0000)]
fixed two Con_Printf format strings with the wrong type

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5751 d7cf8633-e32d-0410-b094-e92efae38249

18 years agogave names to nearly all structs and enums which should make for better C++ error...
havoc [Fri, 21 Oct 2005 06:08:25 +0000 (06:08 +0000)]
gave names to nearly all structs and enums which should make for better C++ error messages, and fix any more of those anonymous struct errors

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5750 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix an anonymous struct error with g++ 4
havoc [Fri, 21 Oct 2005 05:30:33 +0000 (05:30 +0000)]
fix an anonymous struct error with g++ 4

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5749 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix a float->enum conversion error with g++ 4
havoc [Fri, 21 Oct 2005 05:28:59 +0000 (05:28 +0000)]
fix a float->enum conversion error with g++ 4

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5748 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix a float->enum conversion error with g++ on big endian systems
havoc [Fri, 21 Oct 2005 05:26:35 +0000 (05:26 +0000)]
fix a float->enum conversion error with g++ on big endian systems

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5747 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix an int->enum conversion error with g++ on big endian systems
havoc [Fri, 21 Oct 2005 05:23:37 +0000 (05:23 +0000)]
fix an int->enum conversion error with g++ on big endian systems

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5746 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoadded struct name to imageformats to cure an error in g++ 4
havoc [Fri, 21 Oct 2005 05:15:15 +0000 (05:15 +0000)]
added struct name to imageformats to cure an error in g++ 4

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5745 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoadded a struct name to envmapinfo to stop a g++ 4 error about envmapinfo (which is...
havoc [Fri, 21 Oct 2005 05:11:58 +0000 (05:11 +0000)]
added a struct name to envmapinfo to stop a g++ 4 error about envmapinfo (which is a global) using an anonymous type (a struct with no name)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5744 d7cf8633-e32d-0410-b094-e92efae38249

18 years agomade darkplaces compile successfully with g++ to test for errors C doesn't care about...
havoc [Fri, 21 Oct 2005 05:05:49 +0000 (05:05 +0000)]
made darkplaces compile successfully with g++ to test for errors C doesn't care about (result: found no actual bugs, just C++ compilers being ultra fussy)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5743 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix one more signedness warning
havoc [Thu, 20 Oct 2005 22:22:24 +0000 (22:22 +0000)]
fix one more signedness warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5742 d7cf8633-e32d-0410-b094-e92efae38249

18 years agogcc 4.0 signedness warning fixes and uninitialized vector fixes
havoc [Thu, 20 Oct 2005 22:14:19 +0000 (22:14 +0000)]
gcc 4.0 signedness warning fixes and uninitialized vector fixes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5741 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoadded very preliminary zymotic hud
havoc [Mon, 17 Oct 2005 22:51:42 +0000 (22:51 +0000)]
added very preliminary zymotic hud

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5740 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix typo
havoc [Sat, 15 Oct 2005 15:36:36 +0000 (15:36 +0000)]
fix typo

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5739 d7cf8633-e32d-0410-b094-e92efae38249

18 years agodon't try to compile GL_NV_half_float shaders if the extension is missing
havoc [Sat, 15 Oct 2005 15:21:02 +0000 (15:21 +0000)]
don't try to compile GL_NV_half_float shaders if the extension is missing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5738 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoremoved Lights Per Model setting from effects options menu, as it only affects .light...
havoc [Fri, 14 Oct 2005 07:36:45 +0000 (07:36 +0000)]
removed Lights Per Model setting from effects options menu, as it only affects .lights files now that vertex dlights are gone...  leading to much confusion among users

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5737 d7cf8633-e32d-0410-b094-e92efae38249

18 years agowork around for empty key/value pairs in nehahra neh1m8.bsp entities
havoc [Thu, 13 Oct 2005 12:03:05 +0000 (12:03 +0000)]
work around for empty key/value pairs in nehahra neh1m8.bsp entities

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5736 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix a stupid bug with the runes display on the hud (it was detecting rogue/hipnotic...
havoc [Tue, 11 Oct 2005 10:06:10 +0000 (10:06 +0000)]
fix a stupid bug with the runes display on the hud (it was detecting rogue/hipnotic hud's by the existence of the items2 field, which due to the DP progs loader always exists)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5735 d7cf8633-e32d-0410-b094-e92efae38249

18 years agochanged the unused line/sphere collision code to use Vector macros instead of doing...
havoc [Tue, 11 Oct 2005 09:58:50 +0000 (09:58 +0000)]
changed the unused line/sphere collision code to use Vector macros instead of doing everything manually (possibly improving readability)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5734 d7cf8633-e32d-0410-b094-e92efae38249

18 years agoupdated a comment about the nehahra pmodel command/field
havoc [Tue, 11 Oct 2005 09:57:44 +0000 (09:57 +0000)]
updated a comment about the nehahra pmodel command/field

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5733 d7cf8633-e32d-0410-b094-e92efae38249

18 years agofix a stupid bug in line/sphere collision code (was using sqrt where it shouldn't)
havoc [Fri, 7 Oct 2005 12:56:54 +0000 (12:56 +0000)]
fix a stupid bug in line/sphere collision code (was using sqrt where it shouldn't)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5731 d7cf8633-e32d-0410-b094-e92efae38249