]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

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

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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 years agochanged FS_ChangeGamedir to FS_ChangeGameDirs and made it fail if any of the gamedirs...
havoc [Mon, 22 Jan 2007 12:06:42 +0000 (12:06 +0000)]
changed FS_ChangeGamedir to FS_ChangeGameDirs and made it fail if any of the gamedirs are missing (if the failmissing parameter is set) and detect various other failures
FS_Init now checks if game directories are found and does a Sys_Error if not
now does a Host_Error if a QW server specifies an invalid gamedir (missing gamedir is ok however, because QW downloads files)

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

17 years agochanged ping report name matching to allow scoreboard names to be longer than ping...
havoc [Mon, 22 Jan 2007 10:40:58 +0000 (10:40 +0000)]
changed ping report name matching to allow scoreboard names to be longer than ping report names (because recent versions of ClanRing CTF seem to append READY on the scoreboard but not the ping report)

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

17 years agoCL_Effect (called by svc_effect parsing) now sanity checks framerate and framecount
havoc [Mon, 22 Jan 2007 10:38:06 +0000 (10:38 +0000)]
CL_Effect (called by svc_effect parsing) now sanity checks framerate and framecount

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

17 years agoautodetect whether a map supports transparent water at load time
havoc [Sun, 21 Jan 2007 23:12:20 +0000 (23:12 +0000)]
autodetect whether a map supports transparent water at load time

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

17 years agoimplemented individual file downloads on darkplaces servers
havoc [Sun, 21 Jan 2007 20:27:36 +0000 (20:27 +0000)]
implemented individual file downloads on darkplaces servers
deferred loading of files until signon 2 (necessary for download system)
made loading of files operate in two passes, first for existing files and then again for files that need to be downloaded
added cl_joinbeforedownloadsfinish cvar to cause the game to begin after the map is loaded, before other downloads finish (not entirely sure this is a good idea, but it's cool)
added sv_allowdownloads cvar to allow enabling/disabling of downloads, and sv_allowdownloads_inarchive and sv_allowdownloads_archive cvars to allow server administrators to enable downloading files from archives or even whole archives if so desired (however the client does not currently request archives)

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

17 years agoreorganized view rendering setup code a bit to reduce potential for state bugs (more...
havoc [Sun, 21 Jan 2007 14:21:53 +0000 (14:21 +0000)]
reorganized view rendering setup code a bit to reduce potential for state bugs (more thorough and consistent state resets now)
added support for glStencilOpSeparate function in OpenGL 2.0 (or GL_ATI_separate_stencil extension prior to that), so ATI cards should get a speed boost now, this path is now also used on NVIDIA hardware, but support for GL_EXT_stencil_two_side extension has been retained to support several other vendors

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

17 years agoadded some comments in Mod_LoadModel
havoc [Sun, 21 Jan 2007 11:53:08 +0000 (11:53 +0000)]
added some comments in Mod_LoadModel

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

17 years agofixed negative time delta problem with sbar item flashing
havoc [Sun, 21 Jan 2007 11:52:29 +0000 (11:52 +0000)]
fixed negative time delta problem with sbar item flashing

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

17 years agoadded FS_FileSize and made FS_FileExtension public
havoc [Sun, 21 Jan 2007 11:51:27 +0000 (11:51 +0000)]
added FS_FileSize and made FS_FileExtension public

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

17 years agor_textshadow is now a saved cvar
havoc [Sun, 21 Jan 2007 11:39:19 +0000 (11:39 +0000)]
r_textshadow is now a saved cvar
the r_textshadow shadow color is now 1-red-green-blue (basically meaning it is black except for black text where it is white)

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

17 years agovery minor cleaning
havoc [Sat, 20 Jan 2007 22:52:03 +0000 (22:52 +0000)]
very minor cleaning

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

17 years agofix a crash in R_SkyStartFrame when there is no worldmodel
havoc [Sat, 20 Jan 2007 09:27:05 +0000 (09:27 +0000)]
fix a crash in R_SkyStartFrame when there is no worldmodel

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

17 years agoadded FS_CheckNastyPath prototype to fs.h so that it can be used elsewhere
havoc [Sat, 20 Jan 2007 09:16:17 +0000 (09:16 +0000)]
added FS_CheckNastyPath prototype to fs.h so that it can be used elsewhere

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

17 years agoS_PrecacheSound now clears the SFXFLAG_FILEMISSING flag so that loading will try...
havoc [Sat, 20 Jan 2007 09:14:02 +0000 (09:14 +0000)]
S_PrecacheSound now clears the SFXFLAG_FILEMISSING flag so that loading will try again on previously missing files whenever the level changes (particularly important if downloads or gamedir changes have occurred)

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

17 years agoincreased M_MAX_EDICTS to 32768
havoc [Thu, 18 Jan 2007 11:08:11 +0000 (11:08 +0000)]
increased M_MAX_EDICTS to 32768
note to Black: 640k ought to be enough for everybody using the nexuiz menu, right? ;)

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

17 years agochanged CL_MAX_EDICTS to match MAX_EDICTS
havoc [Thu, 18 Jan 2007 11:04:31 +0000 (11:04 +0000)]
changed CL_MAX_EDICTS to match MAX_EDICTS

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

17 years agoapplied div0's patch to the tell command adding player number support (as opposed...
havoc [Thu, 18 Jan 2007 10:58:03 +0000 (10:58 +0000)]
applied div0's patch to the tell command adding player number support (as opposed to the hard-to-type player names) as well as fixing a bug with quoted player names containing spaces accidentally sending part of the player name to the recipient (similar to the quake tell bug which sent the entire player name)

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

17 years agoadded collision_prefernudgedfraction cvar (defaults to 1), which should improve colli...
havoc [Thu, 18 Jan 2007 10:44:24 +0000 (10:44 +0000)]
added collision_prefernudgedfraction cvar (defaults to 1), which should improve collision stability in 'wedge corner' cases (such as creases in terrain)

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

17 years agorenamed r_bloomstate.vertex3f to r_screenvertex3f and made it constant
havoc [Thu, 18 Jan 2007 10:41:26 +0000 (10:41 +0000)]
renamed r_bloomstate.vertex3f to r_screenvertex3f and made it constant

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

17 years agofixed problems with cl.time stepping backwards causing a black fade-in and other...
havoc [Thu, 18 Jan 2007 10:39:02 +0000 (10:39 +0000)]
fixed problems with cl.time stepping backwards causing a black fade-in and other problems

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

17 years agosupport partial IP addresses in the ipv4 address parser, this fixes the 20+ second...
havoc [Thu, 18 Jan 2007 08:49:50 +0000 (08:49 +0000)]
support partial IP addresses in the ipv4 address parser, this fixes the 20+ second delay when parsing status messages on some modified quake servers that report only partial addresses (hiding the last octet)

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

17 years agoexpanded the Replacement Content section with some example filenames and other inform...
havoc [Thu, 18 Jan 2007 07:04:14 +0000 (07:04 +0000)]
expanded the Replacement Content section with some example filenames and other information

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

17 years agochanged extResponse handler to quote the address string when passing it to the menu qc
havoc [Sun, 14 Jan 2007 11:18:17 +0000 (11:18 +0000)]
changed extResponse handler to quote the address string when passing it to the menu qc

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

17 years agopatch from div0 that enables printf format warnings in gcc
havoc [Sun, 14 Jan 2007 10:19:20 +0000 (10:19 +0000)]
patch from div0 that enables printf format warnings in gcc
patch from div0 that fixes a lot of printf format warnings (some quite bad)

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

17 years agopatch from div0 that adds sv_random_seed for benchmarking servers with bots the same...
havoc [Sun, 14 Jan 2007 10:09:16 +0000 (10:09 +0000)]
patch from div0 that adds sv_random_seed for benchmarking servers with bots the same way repeatedly

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