14 years agoreworked Image_HeightmapToNormalmap to use a somewhat blurrier but more consistent...
havoc [Sun, 11 Feb 2007 22:43:43 +0000 (22:43 +0000)]
reworked Image_HeightmapToNormalmap to use a somewhat blurrier but more consistent algorithm

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

14 years agomodified Mod_LoadSkinFrame to set base = r_texture_notexture on failure, this reduced...
havoc [Sun, 11 Feb 2007 17:44:59 +0000 (17:44 +0000)]
modified Mod_LoadSkinFrame to set base = r_texture_notexture on failure, this reduced fallback code elsewhere
reworked Mod_BuildAliasSkinsFromSkinFiles, it no longer tries fallbacks if a skin texture fails to load
fixed a crash on missing meshes in a skin file (which are intentionally nodraw, just like in Quake3)

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

14 years agodisabled cl.stairoffset adjustments when airborn
havoc [Sun, 11 Feb 2007 15:52:17 +0000 (15:52 +0000)]
disabled cl.stairoffset adjustments when airborn

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

14 years agosome optimizations of CL_UpdateNetworkEntity to lower cpu overhead of the client
havoc [Sun, 11 Feb 2007 15:27:18 +0000 (15:27 +0000)]
some optimizations of CL_UpdateNetworkEntity to lower cpu overhead of the client

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

14 years agofix gamedir error when connecting to quakeworld servers
havoc [Sun, 11 Feb 2007 02:12:16 +0000 (02:12 +0000)]
fix gamedir error when connecting to quakeworld servers

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

14 years agoadded an extern for r_bloom_brighten to fix menu.c compilation
havoc [Sun, 11 Feb 2007 01:59:02 +0000 (01:59 +0000)]
added an extern for r_bloom_brighten to fix menu.c compilation

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

14 years agofixed r_bloom_brighten to use the correct range
havoc [Sat, 10 Feb 2007 22:44:46 +0000 (22:44 +0000)]
fixed r_bloom_brighten to use the correct range

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

14 years agoadded r_bloom_brighten modification in graphics options menu, this was already displa...
havoc [Sat, 10 Feb 2007 22:43:41 +0000 (22:43 +0000)]
added r_bloom_brighten modification in graphics options menu, this was already displayed but wasn't working, messing up all options after it
updated graphics options item count from 19 to 20

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

14 years agofix graphics options menu editing of bloom/scene brightness settings (they were swapped)
havoc [Sat, 10 Feb 2007 22:01:19 +0000 (22:01 +0000)]
fix graphics options menu editing of bloom/scene brightness settings (they were swapped)

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

14 years agofix stupid bug in last patch that made entities not update
havoc [Sat, 10 Feb 2007 21:17:06 +0000 (21:17 +0000)]
fix stupid bug in last patch that made entities not update
reworked priorities some more

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

14 years agofixed bug from lingering code that was resetting entity priority every frame
havoc [Sat, 10 Feb 2007 20:31:19 +0000 (20:31 +0000)]
fixed bug from lingering code that was resetting entity priority every frame
more tweaks to entity priority code

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

14 years agofix a stupid bug in transparent water detection for q1bsp, it now works
havoc [Sat, 10 Feb 2007 20:06:49 +0000 (20:06 +0000)]
fix a stupid bug in transparent water detection for q1bsp, it now works

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

14 years agochanged entity priority code again, it should have less 'starvation' issues now ...
havoc [Fri, 9 Feb 2007 21:17:37 +0000 (21:17 +0000)]
changed entity priority code again, it should have less 'starvation' issues now (high priority entities causing others to be missed)

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

14 years agoreenabled exact portal culling of surface triangles, because it was not bugged after all
havoc [Fri, 9 Feb 2007 04:36:48 +0000 (04:36 +0000)]
reenabled exact portal culling of surface triangles, because it was not bugged after all

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

14 years agosome minor state change optimizations on GL20 path, it now does even less per batch
havoc [Fri, 9 Feb 2007 04:24:27 +0000 (04:24 +0000)]
some minor state change optimizations on GL20 path, it now does even less per batch

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

14 years agomade r_shadow_frontsidecasting cvar disable the portal culling features when it is...
havoc [Fri, 9 Feb 2007 03:26:24 +0000 (03:26 +0000)]
made r_shadow_frontsidecasting cvar disable the portal culling features when it is casting from back sides (which portal culling can't work with)

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

14 years agoadded back portal culling to rtlights because svbsp code is not working as well as...
havoc [Fri, 9 Feb 2007 03:22:34 +0000 (03:22 +0000)]
added back portal culling to rtlights because svbsp code is not working as well as it's supposed to

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

14 years agofix Q3BSP map loader's sky surface detection so that it doesn't assume all submodels...
havoc [Fri, 9 Feb 2007 01:19:05 +0000 (01:19 +0000)]
fix Q3BSP map loader's sky surface detection so that it doesn't assume all submodels have sky if the base model does, this improves rendering performance a bit (by not scanning for sky in submodels that claim to have it but don't)

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

14 years agoremoved CL_UpdateEntities call in CSQC rendering code
havoc [Thu, 8 Feb 2007 15:57:21 +0000 (15:57 +0000)]
removed CL_UpdateEntities call in CSQC rendering code
changed r_refdef.lights from dlight_t * to rtlight_t (no longer a pointer)
modified CL_UpdateLights to setup the r_refdef.lights[] entry instead of merely pointing to the rtlight_t in the dlight_t struct
changed csqc dlight handling to comply with the spec (R_ClearScene resets r_refdef.numlights, then VM_R_AddEntities adds all engine-based entities and lights)
moved single-frame dlight spawning for rocket glow and such from CL_UpdateNetworkEntity to CL_LinkNetworkEntity (which is called by VM_R_AddEntities)
replaced all single-frame uses of CL_AllocDLight with R_RTLight_Update(&r_refdef.lights[r_refdef.numlights++], ...) calls, this includes lights such as muzzleflash, rocket glow, .glow_size lights, tenebrae dlights, etc
renamed CL_AllocDlight to CL_AllocLightFlash
renamed CL_DecayLights to CL_DecayLightFlashes
renamed CL_UpdateLights to CL_RelinkLightFlashes
renamed CL_ParticleEffect to CL_ParticleTrail and added spawndlight/spawnparticles boolean parameters, then added a CL_ParticleEffect which calls this with true for both
removed cubemapnum field from dlight_t

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

14 years agoadded DP_QC_STRFTIME extension to menu vm (somehow I missed this when committing...
havoc [Thu, 8 Feb 2007 15:56:40 +0000 (15:56 +0000)]
added DP_QC_STRFTIME extension to menu vm (somehow I missed this when committing earlier)

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

14 years agoreworked entity priority handling in DP6/7 protocols to better utilize limited bandwi...
havoc [Thu, 8 Feb 2007 15:56:10 +0000 (15:56 +0000)]
reworked entity priority handling in DP6/7 protocols to better utilize limited bandwidth and just be cleaner code in general

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

14 years agodisabled use of certain prediction code when the server has blocked prediction
havoc [Thu, 8 Feb 2007 15:37:08 +0000 (15:37 +0000)]
disabled use of certain prediction code when the server has blocked prediction

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

14 years agolowered minimum maxpacketsize from 100 bytes to 50 bytes (this means rate 1000 will...
havoc [Thu, 8 Feb 2007 15:13:27 +0000 (15:13 +0000)]
lowered minimum maxpacketsize from 100 bytes to 50 bytes (this means rate 1000 will be honored at the default sys_ticrate 0.05)

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

14 years agoadded DP_QC_STRFTIME extension
havoc [Thu, 8 Feb 2007 10:15:36 +0000 (10:15 +0000)]
added DP_QC_STRFTIME extension

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

14 years agoadded a check for move->sequence that is more than 16 packets old to avoid having...
havoc [Wed, 7 Feb 2007 18:39:41 +0000 (18:39 +0000)]
added a check for move->sequence that is more than 16 packets old to avoid having frozen players after a level change

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

14 years agosome slight cleanup of CL_LerpPoint, and now does a bound() on cl.time as well as...
havoc [Tue, 6 Feb 2007 08:43:08 +0000 (08:43 +0000)]
some slight cleanup of CL_LerpPoint, and now does a bound() on cl.time as well as cl.timenonlerp whenever cl.mtime[] is updated

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

14 years agotolerate clients living up to one frame in the future, just to be more flexible with...
havoc [Tue, 6 Feb 2007 08:36:14 +0000 (08:36 +0000)]
tolerate clients living up to one frame in the future, just to be more flexible with client prediction

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

14 years agono longer sends moves if time is not moving forward, except when paused (this fixes...
havoc [Tue, 6 Feb 2007 08:18:50 +0000 (08:18 +0000)]
no longer sends moves if time is not moving forward, except when paused (this fixes some bugs causing cl_movement 0 to lose impulse/buttons)
no longer repeats old moves if cl_movement is off (because they would serve no purpose)
eliminated cl.movemessages (now uses cl.movesequence for the same purpose)

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

14 years agofix very stupid typo in input merging when cl_movement is 0
havoc [Tue, 6 Feb 2007 05:38:08 +0000 (05:38 +0000)]
fix very stupid typo in input merging when cl_movement is 0

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

14 years agodisabled debug print I forgot about
havoc [Mon, 5 Feb 2007 17:53:30 +0000 (17:53 +0000)]
disabled debug print I forgot about

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

14 years agoredesigned input networking code (still same protocol) and did a lot of cleaning...
havoc [Mon, 5 Feb 2007 17:45:59 +0000 (17:45 +0000)]
redesigned input networking code (still same protocol) and did a lot of cleaning, now predicts movement even if server packets are lost
added cl_netinputpacketlosstolerance cvar (default 4, qw used 2, can be up to 16) to repeat old input messages in each packet so that they can only be lost by heavy packet loss
changed sv_clmovement_waitforinput default to 16 to match this capability
reworked a lot of timing code related to input networking
fixed some bugs when frametime is 0 in player physics

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

14 years agothanks to morfar for updating the Dev-C++ project file
havoc [Mon, 5 Feb 2007 15:47:55 +0000 (15:47 +0000)]
thanks to morfar for updating the Dev-C++ project file

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

14 years agochanged default sv_clmovement_minping from 100 to 0
havoc [Mon, 5 Feb 2007 13:32:09 +0000 (13:32 +0000)]
changed default sv_clmovement_minping from 100 to 0

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

14 years agofixed double-jump bug in prediction when jumping up sides of crates or on stairs
havoc [Mon, 5 Feb 2007 09:04:01 +0000 (09:04 +0000)]
fixed double-jump bug in prediction when jumping up sides of crates or on stairs

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

14 years agofix q1bsp detection of stuck entities (needed some more parentheses)
havoc [Mon, 5 Feb 2007 08:55:12 +0000 (08:55 +0000)]
fix q1bsp detection of stuck entities (needed some more parentheses)

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

14 years agoremoved an unneeded extern prototype
havoc [Mon, 5 Feb 2007 08:41:34 +0000 (08:41 +0000)]
removed an unneeded extern prototype

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

14 years agoremoved an unneeded cl.movement_replay = true; line
havoc [Mon, 5 Feb 2007 08:39:49 +0000 (08:39 +0000)]
removed an unneeded cl.movement_replay = true; line

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

14 years agofix a couple printf format string warnings that only occur with COLLISIONPARANOID on
havoc [Sun, 4 Feb 2007 12:55:09 +0000 (12:55 +0000)]
fix a couple printf format string warnings that only occur with COLLISIONPARANOID on

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

14 years agorefactored end code in Collision_Trace*BrushFloat functions to fix a severe logic...
havoc [Sun, 4 Feb 2007 12:54:09 +0000 (12:54 +0000)]
refactored end code in Collision_Trace*BrushFloat functions to fix a severe logic bug that caused players to get stuck inside eachother in nexuiz

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

14 years agominor optimization of surface scanning
havoc [Sun, 4 Feb 2007 11:27:42 +0000 (11:27 +0000)]
minor optimization of surface scanning
minor optimization of leaf recursion
added a leafstack overflow check to visibility flooding

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

14 years agoadded r_showsurfaces 2 mode which shorts triangle draw order (to analyze whether...
havoc [Sun, 4 Feb 2007 08:32:57 +0000 (08:32 +0000)]
added r_showsurfaces 2 mode which shorts triangle draw order (to analyze whether models are optimized for vertex cache)

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

14 years agorevised sv_clmovement_waitforinput default from 2 to 5 frames to have more tolerance...
havoc [Sat, 3 Feb 2007 13:01:36 +0000 (13:01 +0000)]
revised sv_clmovement_waitforinput default from 2 to 5 frames to have more tolerance for inconsistent packet timing

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

14 years agoadded DP_SV_PRINT extension
havoc [Sat, 3 Feb 2007 12:10:03 +0000 (12:10 +0000)]
added DP_SV_PRINT extension

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

14 years agomade CL_SetInfo check for more forbidden characters (key now refuses any form of...
havoc [Sat, 3 Feb 2007 12:08:54 +0000 (12:08 +0000)]
made CL_SetInfo check for more forbidden characters (key now refuses any form of whitespace, value now refuses \r and \n) and refactored the checking code to make it a bit cleaner

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

14 years agomoved DP_QC_UNLIMITEDTEMPSTRINGS in extensions list to its proper place
havoc [Sat, 3 Feb 2007 12:07:59 +0000 (12:07 +0000)]
moved DP_QC_UNLIMITEDTEMPSTRINGS in extensions list to its proper place

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

14 years agoadded r_shadow_frontsidecasting cvar (default 1), this allows switching to back-side...
havoc [Sat, 3 Feb 2007 08:49:02 +0000 (08:49 +0000)]
added r_shadow_frontsidecasting cvar (default 1), this allows switching to back-side casting instead, however this has proven buggy so it is not to be used yet

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

14 years agooptimized trimesh collision culling (this mostly affects patches)
havoc [Sat, 3 Feb 2007 08:40:38 +0000 (08:40 +0000)]
optimized trimesh collision culling (this mostly affects patches)

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

14 years agofix really stupid typo in previous patch that caused a memory smash
havoc [Sat, 3 Feb 2007 06:33:07 +0000 (06:33 +0000)]
fix really stupid typo in previous patch that caused a memory smash

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

14 years agofix bug in Collision_SnapCopyPoints that made it only snap the first vertex
havoc [Sat, 3 Feb 2007 05:19:55 +0000 (05:19 +0000)]
fix bug in Collision_SnapCopyPoints that made it only snap the first vertex

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

14 years agoremoved single-quoted string support in console parser because it breaks the maplist...
havoc [Sat, 3 Feb 2007 04:03:01 +0000 (04:03 +0000)]
removed single-quoted string support in console parser because it breaks the maplist in nexuiz

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

14 years agofixed two bugs that caused a constant state of "player stuck" (one was that it always...
havoc [Sat, 3 Feb 2007 03:36:26 +0000 (03:36 +0000)]
fixed two bugs that caused a constant state of "player stuck" (one was that it always thought this was a q1bsp/hlbsp map, and the other was that the q1bsp/hlbsp corner checking was checking the wrong locations)

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

14 years agofixed bug in AVI RIFF chunk 1GB size limiting code (it was not accounting for the...
havoc [Sat, 3 Feb 2007 03:08:57 +0000 (03:08 +0000)]
fixed bug in AVI RIFF chunk 1GB size limiting code (it was not accounting for the index buffer size which will be written afterward) which was causing the chunk to often exceed 1GB

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

14 years agomoved interpolation of viewangles when playing back demos or spectating someone to...
havoc [Fri, 2 Feb 2007 14:39:13 +0000 (14:39 +0000)]
moved interpolation of viewangles when playing back demos or spectating someone to a better place, this should work better with csqc

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

14 years agoUpdated the workspaces to include svbsp.c and svbsp.h
tomaz [Mon, 29 Jan 2007 21:32:09 +0000 (21:32 +0000)]
Updated the workspaces to include svbsp.c and svbsp.h

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

14 years ago497
havoc [Mon, 29 Jan 2007 10:33:33 +0000 (10:33 +0000)]

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

14 years agoreverted r_bloom_colorsubtract and r_shadow_brighten defaults to 0.125 and 2
havoc [Mon, 29 Jan 2007 10:31:14 +0000 (10:31 +0000)]
reverted r_bloom_colorsubtract and r_shadow_brighten defaults to 0.125 and 2

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

14 years agochanged default r_shadow_gloss2intensity from 0.5 to 0.125, now looks more like teneb...
havoc [Mon, 29 Jan 2007 10:20:05 +0000 (10:20 +0000)]
changed default r_shadow_gloss2intensity from 0.5 to 0.125, now looks more like tenebrae again (except a little better)

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

14 years agofix very stupid bug in svbsp calls that made only the first triangle of an occluding...
havoc [Mon, 29 Jan 2007 09:52:31 +0000 (09:52 +0000)]
fix very stupid bug in svbsp calls that made only the first triangle of an occluding surface polygon be inserted into the svbsp, and some other cleanup/corrections

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

14 years agosome minor optimizations, comment corrections, and changed debug polygon colors
havoc [Mon, 29 Jan 2007 09:51:20 +0000 (09:51 +0000)]
some minor optimizations, comment corrections, and changed debug polygon colors

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

14 years agofix stupid bug in insertion of occluder triangles in the svbsp code (it was stopping...
havoc [Mon, 29 Jan 2007 07:51:07 +0000 (07:51 +0000)]
fix stupid bug in insertion of occluder triangles in the svbsp code (it was stopping after adding the first one)

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

14 years agocorrected OPTIONS_ITEMS and OPTIONS_GRAPHICS_ITEMS constants (the last 3 items of...
havoc [Sun, 28 Jan 2007 08:25:15 +0000 (08:25 +0000)]
corrected OPTIONS_ITEMS and OPTIONS_GRAPHICS_ITEMS constants (the last 3 items of the graphics options submenu were not reachable)

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

14 years agofix stupid bug (dynamic shadowing from models was checking if NOSHADOW was set, not...
havoc [Sun, 28 Jan 2007 04:14:59 +0000 (04:14 +0000)]
fix stupid bug (dynamic shadowing from models was checking if NOSHADOW was set, not if it was clear)

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

14 years agoimplemented Shadow Volume BSP based culling of lit surfaces, this is slightly better...
havoc [Sun, 28 Jan 2007 02:57:51 +0000 (02:57 +0000)]
implemented Shadow Volume BSP based culling of lit surfaces, this is slightly better than the existing portal culling code (or much better in the case of detail brush terrain in q3bsp where little culling was performed previously), and is now the only culling method used by rtlight compilation

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

14 years agoadded MATERIALFLAG_NOSHADOW in an effort to clean up the material checking in shadow...
havoc [Sun, 28 Jan 2007 02:55:15 +0000 (02:55 +0000)]
added MATERIALFLAG_NOSHADOW in an effort to clean up the material checking in shadow code a bit

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

14 years agopatch from Tomaz adding a proper matrix inverter, it should be able to invert any...
havoc [Sun, 28 Jan 2007 02:52:41 +0000 (02:52 +0000)]
patch from Tomaz adding a proper matrix inverter, it should be able to invert any matrix that is possible to invert, but is VERY slow, and consequently Matrix4x4_Invert_Simple has been kept for speed reasons
it is probably possible to optimize this function significantly, and it would also be possible to add non-uniform-scaling inversion to Matrix4x4_Invert_Simple to make it more flexible

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

14 years agoadded Debug_Polygon functions for testing, these are currently abusing the CSQC polyg...
havoc [Sun, 28 Jan 2007 02:50:32 +0000 (02:50 +0000)]
added Debug_Polygon functions for testing, these are currently abusing the CSQC polygon queue and have many stupid limitations which should be cleaned up at some point, but it is now possible to call these to draw things for debugging purposes

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

14 years agochanged sbar stats (Monsters/Secrets/Time/map title) around a bit, inspired by a...
havoc [Fri, 26 Jan 2007 05:58:43 +0000 (05:58 +0000)]
changed sbar stats (Monsters/Secrets/Time/map title) around a bit, inspired by a patch from steven a but not directly based on it
specific changes: Monsters/Secrets are now on top row (rather than left side), map filename (minus path/extension) and map title are shown, time moved to far right of second row

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

14 years agofixed renderflags handling in CSQC_AddRenderEdict
havoc [Thu, 25 Jan 2007 16:27:19 +0000 (16:27 +0000)]
fixed renderflags handling in CSQC_AddRenderEdict

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

14 years agoclients who are downloading can now receive chat messages and other notices
havoc [Thu, 25 Jan 2007 16:07:30 +0000 (16:07 +0000)]
clients who are downloading can now receive chat messages and other notices

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

14 years agodisabled use of Portal_PortalThroughPortalPlanes on triangles in exact triangle culli...
havoc [Wed, 24 Jan 2007 21:27:06 +0000 (21:27 +0000)]
disabled use of Portal_PortalThroughPortalPlanes on triangles in exact triangle culling mode because it was falsely culling some polygons (particularly in start.bsp), this makes the culling less exact unfortunately

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

14 years agofixed bug where toggling r_shadow_realtime_world_compile would alter the culling...
havoc [Wed, 24 Jan 2007 21:26:13 +0000 (21:26 +0000)]
fixed bug where toggling r_shadow_realtime_world_compile would alter the culling boxes of the compiled rtlights when in the non-compiled state

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

14 years agoadded BX_WAL_SUPPORT to extensions list and documented it (.wal texture support has...
havoc [Wed, 24 Jan 2007 18:40:26 +0000 (18:40 +0000)]
added BX_WAL_SUPPORT to extensions list and documented it (.wal texture support has been in for a long time before this)

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

14 years agosome cleanup of shader permutation handling
havoc [Wed, 24 Jan 2007 17:48:49 +0000 (17:48 +0000)]
some cleanup of shader permutation handling
expanded shader permutation system to allow multiple shader source files (not sure if this will ever be used) rather than just "glsl/default.glsl"
added code support for geometry shaders (not actually hooked up because there's no GL_ARB_geometry_shader extension yet)
added flagging of which shader objects are needed by a given permutation (to allow vertex-only shaders for shadow volume projection and such, also not implemented)

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

14 years agofix a few typos in comments
havoc [Wed, 24 Jan 2007 14:21:05 +0000 (14:21 +0000)]
fix a few typos in comments

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

14 years agoreplaced prvm_tempstringmemory cvar with automatic buffer growth (with a limit of...
havoc [Wed, 24 Jan 2007 14:19:39 +0000 (14:19 +0000)]
replaced prvm_tempstringmemory cvar with automatic buffer growth (with a limit of 256MB)

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

14 years agoredesigned tempstring system, now uses a fixed size buffer based on the prvm_tempstri...
havoc [Wed, 24 Jan 2007 04:15:45 +0000 (04:15 +0000)]
redesigned tempstring system, now uses a fixed size buffer based on the prvm_tempstringmemory cvar (this is probably safe to automatically resize in the future but is not currently resized)
audited PRVM_G_STRING use in the engine (eliminated many NULL checks in functions because it never returns NULL)
added DP_QC_UNLIMITEDTEMPSTRINGS extension to indicate this new tempstring system's wonderous features (not yet documented)

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

14 years agoadded r_hdr_range cvar (which just divides r_bloom_colorscale and multiplies r_bloom_...
havoc [Wed, 24 Jan 2007 03:56:16 +0000 (03:56 +0000)]
added r_hdr_range cvar (which just divides r_bloom_colorscale and multiplies r_bloom_brighten)
changed default r_bloom_brighten from 2 to 1 and r_bloom_colorsubtract from 0.125 to 0, this gives a more color-preserving bloom effect and actually seems brighter in many cases

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

14 years agoanother minor cleanup for static entities related to delayed model loading (no bugs...
havoc [Tue, 23 Jan 2007 19:36:14 +0000 (19:36 +0000)]
another minor cleanup for static entities related to delayed model loading (no bugs involved though)

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

14 years agofixed bug in CL_RelinkStaticEntities related to delayed model loading, now calls...
havoc [Tue, 23 Jan 2007 19:34:20 +0000 (19:34 +0000)]
fixed bug in CL_RelinkStaticEntities related to delayed model loading, now calls CL_UpdateRenderEntity so the culling box is correct

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

14 years agochanged Cmd_StuffCmds_f to combine the entire set of commandline arguments into one...
havoc [Tue, 23 Jan 2007 16:58:57 +0000 (16:58 +0000)]
changed Cmd_StuffCmds_f to combine the entire set of commandline arguments into one string before calling Cbuf_InsertText, this fixes the reverse order execution bug (where +deathmatch 7 +map dpdm2 would execute deathmatch 7 AFTER starting the map, which was useless until a restart command was issued)

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

14 years agofix bug in GL_CullFace which was causing it to often malfunction
havoc [Tue, 23 Jan 2007 16:51:26 +0000 (16:51 +0000)]
fix bug in GL_CullFace which was causing it to often malfunction

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

14 years ago504 (-7)
havoc [Tue, 23 Jan 2007 03:12:39 +0000 (03:12 +0000)]
504 (-7)

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

14 years agochanged the not-very-useful min/avg/max part of timedemo results to one-second min...
havoc [Tue, 23 Jan 2007 03:02:53 +0000 (03:02 +0000)]
changed the not-very-useful min/avg/max part of timedemo results to one-second min/avg/max

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

14 years agofixed bug in CSQC_AddRenderEdict (it was using the tempentity's modelindex rather...
havoc [Tue, 23 Jan 2007 01:40:36 +0000 (01:40 +0000)]
fixed bug in CSQC_AddRenderEdict (it was using the tempentity's modelindex rather than the vm entity, meaning that csqc entities never had a visible model)
reduced code by merging cl.csqc_model_precache lookups into CSQC_GetModelByIndex and CSQC_GetModelFromEntity functions

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

14 years agoeliminated cl.csqc_entities array and related fields
havoc [Tue, 23 Jan 2007 00:43:51 +0000 (00:43 +0000)]
eliminated cl.csqc_entities array and related fields

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

14 years agosignificant cleanup of CL_UpdateEntities, GL_UpdateNetworkEntity, CL_LinkNetworkEntit...
havoc [Tue, 23 Jan 2007 00:27:49 +0000 (00:27 +0000)]
significant cleanup of CL_UpdateEntities, GL_UpdateNetworkEntity, CL_LinkNetworkEntity, V_CalcRefdef handling, and CSQC issues related to these
eliminated linkframe from entity_t (this means CL_UpdateNetworkEntity may sometimes process an entity twice, and CL_LinkNetworkEntity is no longer recursive as it does not need to be)

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

14 years agofix a couple warnings (one of them more serious than the other)
havoc [Mon, 22 Jan 2007 23:16:00 +0000 (23:16 +0000)]
fix a couple warnings (one of them more serious than the other)

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

14 years agoadded support for single-quoted strings in COM_ParseTokenConsole
havoc [Mon, 22 Jan 2007 22:14:47 +0000 (22:14 +0000)]
added support for single-quoted strings in COM_ParseTokenConsole

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

14 years agoremoved \ escape character support from COM_ParseTokenConsole because it breaks ...
havoc [Mon, 22 Jan 2007 22:13:51 +0000 (22:13 +0000)]
removed \ escape character support from COM_ParseTokenConsole because it breaks \ bindings in configs and may have other issues

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

14 years agoimplemented csprogs.dat downloading with special dlcache/name.size.crc file naming...
havoc [Mon, 22 Jan 2007 22:01:27 +0000 (22:01 +0000)]
implemented csprogs.dat downloading with special dlcache/name.size.crc file naming, this is in need of testing
added csqc_progsize cvar to csqc signon process (still compatible with old servers)

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

14 years agotwo improvements to vid_restart in the SDL client: hardware gamma is now
havoc [Mon, 22 Jan 2007 19:31:49 +0000 (19:31 +0000)]
two improvements to vid_restart in the SDL client: hardware gamma is now
restored after vid_restart, and the brief fullscreen window (used to reset
the SDL GL attributes) is now only used during vid_restart, not the initial
client startup

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

14 years agoSTAT_TOTALSECRETS and STAT_TOTALMONSTERS are now networked so deathmatch 7 mode in...
havoc [Mon, 22 Jan 2007 18:34:13 +0000 (18:34 +0000)]
STAT_TOTALSECRETS and STAT_TOTALMONSTERS are now networked so deathmatch 7 mode in dpmod shows the total monsters now

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

14 years agomodified droptofloor to treat trace.startsolid as an acceptable situation, this preve...
havoc [Mon, 22 Jan 2007 18:20:05 +0000 (18:20 +0000)]
modified droptofloor to treat trace.startsolid as an acceptable situation, this prevents many items falling out of various user-made maps (including a critial item in level x2m4 of X-Men: Ravages of Apocalypse)
added sv_gameplayfix_droptofloorstartsolid cvar to control this behavior

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

14 years agoadded framecount and framerate checks to PF_effect
havoc [Mon, 22 Jan 2007 14:59:47 +0000 (14:59 +0000)]
added framecount and framerate checks to PF_effect

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

14 years agoadded \' and \\ support to parsers, and added such escape code support to ' quoted...
havoc [Mon, 22 Jan 2007 14:53:52 +0000 (14:53 +0000)]
added \' and \\ support to parsers, and added such escape code support to ' quoted strings and regular words

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

14 years agoimplemented \" and \n support in quoted string parsers (console and otherwise)
havoc [Mon, 22 Jan 2007 14:51:05 +0000 (14:51 +0000)]
implemented \" and \n support in quoted string parsers (console and otherwise)

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

14 years agomoved EF_MUZZLEFLASH checking to CL_MoveLerpEntityStates to make muzzleflashes reliab...
havoc [Mon, 22 Jan 2007 14:42:05 +0000 (14:42 +0000)]
moved EF_MUZZLEFLASH checking to CL_MoveLerpEntityStates to make muzzleflashes reliably work when the client is running slower than the server
made muzzleflash 1.5x as large and 4x as bright as before, and fade in 50ms instead of 100ms
changed dlight decay to scale color instead of radius

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

14 years agotweaked default TE_TELEPORT effect, it now spawns one large very bright particle...
havoc [Mon, 22 Jan 2007 13:37:39 +0000 (13:37 +0000)]
tweaked default TE_TELEPORT effect, it now spawns one large very bright particle in the middle and 1/8th as many small particles, this should improve multiplayer performance on slow graphics cards, also doubled the brightness of the dlight created, and made it last a bit longer

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

14 years agoimproved SV_TestEntityPosition in q1bsp/hlbsp by checking the 8 corner points of...
havoc [Mon, 22 Jan 2007 13:22:46 +0000 (13:22 +0000)]
improved SV_TestEntityPosition in q1bsp/hlbsp by checking the 8 corner points of the box, this fixes the misaligned double-doors bug in the Prydon Gate expansion "The Dark Age"
changed Stuck entity warning from developer 1 to developer 100 because it's annoying and not very helpful

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

14 years agoclient no longer tries to download missing files from server if it is hosting the...
havoc [Mon, 22 Jan 2007 13:20:29 +0000 (13:20 +0000)]
client no longer tries to download missing files from server if it is hosting the server

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