]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
18 years agochanged 3 occurences of very if (developer.integer) Con_Print code to Con_DPrint
havoc [Mon, 9 May 2005 12:58:05 +0000 (12:58 +0000)]
changed 3 occurences of very if (developer.integer) Con_Print code to Con_DPrint

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

18 years agoimplemented caching of DNS names in lhnet.c
havoc [Sun, 8 May 2005 19:57:24 +0000 (19:57 +0000)]
implemented caching of DNS names in lhnet.c
changed sv_masterextra* servers back to DNS names (but kept IP addresses as comments, note the dpmaster.deathmask.net IP has changed)

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

18 years agoS_LocalSound now uses ATTN_NONE, so menu sounds and such will no longer be centered...
havoc [Sun, 8 May 2005 18:32:46 +0000 (18:32 +0000)]
S_LocalSound now uses ATTN_NONE, so menu sounds and such will no longer be centered at world origin

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

18 years agorewrote the notes on the Creative patent after re-reading it
havoc [Sun, 8 May 2005 18:28:32 +0000 (18:28 +0000)]
rewrote the notes on the Creative patent after re-reading it
fixed my incomplete StencilOp changes (reverted back to the way it was before)

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

18 years agorevised a number of terminology notes at the beginning of r_shadow.c, including notes...
havoc [Sun, 8 May 2005 13:22:50 +0000 (13:22 +0000)]
revised a number of terminology notes at the beginning of r_shadow.c, including notes about the Creative Labs patent on the Carmack's Reverse technique

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

18 years agoadded rmesh_t and R_Mesh_AddVertex3f, R_Mesh_AddPolygon3f, R_Mesh_AddBrushMeshFromPla...
havoc [Sun, 8 May 2005 12:59:38 +0000 (12:59 +0000)]
added rmesh_t and R_Mesh_AddVertex3f, R_Mesh_AddPolygon3f, R_Mesh_AddBrushMeshFromPlanes functions
R_Shadow_ScissorForBBox now uses R_Mesh_AddBrushMeshFromPlanes function to get an exact clipped box-brush vertex set for calculating scissor area, this should reduce the scissor area used in some cases compared to the old hacky method
added nearclip plane to frustum[] array (only used by R_Shadow_ScissorForBBox)

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

18 years agovarious printf/fprintf calls are now Con_Printf, and some other minor cleanups
havoc [Sun, 8 May 2005 10:42:51 +0000 (10:42 +0000)]
various printf/fprintf calls are now Con_Printf, and some other minor cleanups

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

18 years agoPR_Alloc/Free/FreeAll now report filename/fileline of their caller in the Mem_ calls...
havoc [Sun, 8 May 2005 10:42:09 +0000 (10:42 +0000)]
PR_Alloc/Free/FreeAll now report filename/fileline of their caller in the Mem_ calls, for better readability of "memlist all" reports

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

18 years agorearranged mouse grabbing rules again to force grabbing when fullscreen (for some...
havoc [Sat, 7 May 2005 18:07:20 +0000 (18:07 +0000)]
rearranged mouse grabbing rules again to force grabbing when fullscreen (for some reason it isn't the active window)

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

18 years agofix a crash in portal clipping code (forgot to include polygon.h)
havoc [Sat, 7 May 2005 17:53:47 +0000 (17:53 +0000)]
fix a crash in portal clipping code (forgot to include polygon.h)

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

18 years agoportal code now uses Polygon_DivideF instead of its own polygon clipper
havoc [Sat, 7 May 2005 14:51:49 +0000 (14:51 +0000)]
portal code now uses Polygon_DivideF instead of its own polygon clipper

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

18 years agominor rearrangement of Render_Init
havoc [Fri, 6 May 2005 20:03:18 +0000 (20:03 +0000)]
minor rearrangement of Render_Init

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

18 years agohush "Unknown command" warnings during startup
havoc [Fri, 6 May 2005 20:01:55 +0000 (20:01 +0000)]
hush "Unknown command" warnings during startup

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

18 years agorenamed VID_Open to VID_Start, inlined VID_Close ito eliminate the only call to it
havoc [Fri, 6 May 2005 20:00:53 +0000 (20:00 +0000)]
renamed VID_Open to VID_Start, inlined VID_Close ito eliminate the only call to it

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

18 years agoreorganized Palette_Init code
havoc [Fri, 6 May 2005 19:58:33 +0000 (19:58 +0000)]
reorganized Palette_Init code

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

18 years agoplayvideo and cd loop/cd play commands now call Host_StartVideo (this fixes a crash...
havoc [Fri, 6 May 2005 19:43:18 +0000 (19:43 +0000)]
playvideo and cd loop/cd play commands now call Host_StartVideo (this fixes a crash and missing menu music respectively in Nexuiz)

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

18 years agofix a misplaced variable
havoc [Fri, 6 May 2005 12:31:05 +0000 (12:31 +0000)]
fix a misplaced variable

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

18 years agochanged Host_Init to execute configs only once
havoc [Fri, 6 May 2005 11:37:35 +0000 (11:37 +0000)]
changed Host_Init to execute configs only once
cleaned up Host_Init (and related functions like Con_Init, COM_Init, Cbuf_Init, etc) a great deal
now uses host_framecount >= 3 checks instead of host_loopactive or host_initialized checks, this should fix any problems with crashes erasing config.cfg
VID_Open and friends are now called from Host_StartVideo which is called by SCR_BeginLoadingPlaque (such as by SV_SpawnServer) as well as the end of Host_Init, this only calls them the first time it is called, so it can be called during config parsing (such as +map start on the commandline)
moved sys_usetimegettime and dedicated server console opening in sys_wgl.c into Sys_InitConsole and Sys_Init_Commands functions called by Host_Init
merged Sys_Shared_EarlyInit and Sys_Shared_LateInit into Host_Init
got rid of sys_usetimegettime (windows-only) cvar in sys_sdl.c
changed type of a number of vid_* variables from int to qboolean
renamed vidmode_active to vid_isfullscreen in vid_glx.c for more code consistency
fixed a bug in vid_glx.c that made it grab the mouse/keyboard even when it was not the active window
no longer grabs mouse while playing demos in a window

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

18 years agomoved mod_shared.c detail texture and distortion texture stuff to gl_rmain.c (renamed...
havoc [Fri, 6 May 2005 11:28:31 +0000 (11:28 +0000)]
moved mod_shared.c detail texture and distortion texture stuff to gl_rmain.c (renamed mod_shared_* to r_texture_*)
got rid of unused mod_q1bsp_novis array
moved Mod_Q1BSP_Collision_Init into the boxhull code (which isn't even used anyway)
made r_restart reload models (as was intended) by making Mod_UnloadModel preserve the ->use field

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

18 years agochanged Mem_FreePool and Mem_EmptyPool to report their caller's filename/fileline...
havoc [Fri, 6 May 2005 11:27:18 +0000 (11:27 +0000)]
changed Mem_FreePool and Mem_EmptyPool to report their caller's filename/fileline when Mem_Free detects an error

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

18 years agoattachments now inherit RENDER_VIEWMODEL from their parent (they already inherited...
havoc [Fri, 6 May 2005 08:58:29 +0000 (08:58 +0000)]
attachments now inherit RENDER_VIEWMODEL from their parent (they already inherited RENDER_EXTERIORMODEL)

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

18 years agoremoved a clear of names in the render modules init code, this allows it to be called...
havoc [Fri, 6 May 2005 06:09:33 +0000 (06:09 +0000)]
removed a clear of names in the render modules init code, this allows it to be called AFTER some modules are registered (for a minor cleanup of the Host_Init code)

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

18 years agoenabled SDL builds by default (in addition to cl and dedicated)
havoc [Fri, 6 May 2005 04:29:25 +0000 (04:29 +0000)]
enabled SDL builds by default (in addition to cl and dedicated)

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

18 years agoadded cl.movement_velocity to allow view bobbing to match up with cl_movement
havoc [Fri, 6 May 2005 00:36:07 +0000 (00:36 +0000)]
added cl.movement_velocity to allow view bobbing to match up with cl_movement
fixed some bugs in cl_movement timing, it now applies input to the next move not the current one, making it work properly (assuming cl_movement_latency is exact)

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

18 years agohush some texture loading warnings in dedicated servers (thanks to Biomass for report...
havoc [Thu, 5 May 2005 14:24:24 +0000 (14:24 +0000)]
hush some texture loading warnings in dedicated servers (thanks to Biomass for reporting this)

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

18 years agoadded some commented out code that can make a log of stereo wav sounds loaded
havoc [Thu, 5 May 2005 12:52:07 +0000 (12:52 +0000)]
added some commented out code that can make a log of stereo wav sounds loaded

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

18 years agocl_netlocalping now adds only half as much lag, so that the number specified is rough...
havoc [Thu, 5 May 2005 12:49:17 +0000 (12:49 +0000)]
cl_netlocalping now adds only half as much lag, so that the number specified is roughly what it will achieve

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

18 years ago-Changed the SDL window icon back to DP's icon.
black [Thu, 5 May 2005 12:48:43 +0000 (12:48 +0000)]
-Changed the SDL window icon back to DP's icon.
-Cmds, Cvars and Aliases are now inserted at the right alphanumerical
 position on creation.
-Fixed a bug in the serverlist which caused it to not mask entries properly.

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

18 years agochanged cl_movement_latency to be in milliseconds rather than seconds (less confusing...
havoc [Wed, 4 May 2005 20:14:06 +0000 (20:14 +0000)]
changed cl_movement_latency to be in milliseconds rather than seconds (less confusing because of ping being milliseconds)
added code to remove 'impossibly far into the future' movement queue items (useful if latency is set to a high value initially and then lower, this will remove the stale high latency items)

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

18 years agomoved a Cvar_RegisterVariable call to ensure that it happens before config parsing
havoc [Wed, 4 May 2005 14:07:47 +0000 (14:07 +0000)]
moved a Cvar_RegisterVariable call to ensure that it happens before config parsing

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

18 years agofixed a stupid bug in PF_te_customflash that made it send lifetime as /256 (should...
havoc [Wed, 4 May 2005 10:26:36 +0000 (10:26 +0000)]
fixed a stupid bug in PF_te_customflash that made it send lifetime as /256 (should've been *256)

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

18 years agoforgot to add 1 to radius byte in parsing TE_CUSTOMFLASH, probably not noticable...
havoc [Wed, 4 May 2005 09:55:13 +0000 (09:55 +0000)]
forgot to add 1 to radius byte in parsing TE_CUSTOMFLASH, probably not noticable though

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

18 years agoremoved .lmp suffix from a number of DrawQ_Pic calls, which should cure the gfx/net...
havoc [Wed, 4 May 2005 09:51:41 +0000 (09:51 +0000)]
removed .lmp suffix from a number of DrawQ_Pic calls, which should cure the gfx/net.lmp not found warnings

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

18 years ago393 (+53)
havoc [Tue, 3 May 2005 21:49:25 +0000 (21:49 +0000)]
393 (+53)

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

18 years agocleaned up portions of rtlighting system, allowing GLSL lighting to use very few...
havoc [Tue, 3 May 2005 18:33:21 +0000 (18:33 +0000)]
cleaned up portions of rtlighting system, allowing GLSL lighting to use very few state changes, for a 6% speed gain on my system

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

18 years agofix a bug that made rtlighting crash (thanks to Vic for reporting this)
havoc [Tue, 3 May 2005 18:30:12 +0000 (18:30 +0000)]
fix a bug that made rtlighting crash (thanks to Vic for reporting this)

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

18 years agoadded code for enabling GL_LINE_SMOOTH (antialiased lines) in r_showtris mode, but...
havoc [Tue, 3 May 2005 10:38:55 +0000 (10:38 +0000)]
added code for enabling GL_LINE_SMOOTH (antialiased lines) in r_showtris mode, but disabled because it wasn't a speed gain

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

18 years agodon't show extra time reports in r_speeds report when using r_showtris 1
havoc [Tue, 3 May 2005 10:36:20 +0000 (10:36 +0000)]
don't show extra time reports in r_speeds report when using r_showtris 1

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

18 years agoadded developer_texturelogging
havoc [Tue, 3 May 2005 05:06:41 +0000 (05:06 +0000)]
added developer_texturelogging
R_MarkEntities now updates r_refdef.worldentity visframe as well (for more internal consistency)

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

18 years agoa bit of cleanup
havoc [Sun, 1 May 2005 12:26:58 +0000 (12:26 +0000)]
a bit of cleanup

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

18 years agomoved r_shadow_ white and normal cubemaps to r_texture_
havoc [Sun, 1 May 2005 12:14:05 +0000 (12:14 +0000)]
moved r_shadow_ white and normal cubemaps to r_texture_

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

18 years agorelocated the CL_SendMove call to put it at the end of network parsing (and only...
havoc [Sat, 30 Apr 2005 07:14:37 +0000 (07:14 +0000)]
relocated the CL_SendMove call to put it at the end of network parsing (and only called if there was an svc_time message in this packet), this should greatly improve consistency of ping times and input sending (which was sometimes falling way behind with lag), no longer uses sys_ticrate to control input frequency
changed CL_TraceLine to CL_TraceBox and made it return a trace_t
worked on CL_ClientMovement function for clientside movement simulation (not working yet), this has many cl_movement* cvars associated with it which will be updated by the server at some point in the future
added (currently unused and not updated) cl_gravity and cl_slowmo cvars, which the server will be setting at some point in the future

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

18 years agomoved some Con_PrintToHistory code into Con_Print and reenabled talk.wav in GAME_NEXUIZ
havoc [Fri, 29 Apr 2005 02:40:37 +0000 (02:40 +0000)]
moved some Con_PrintToHistory code into Con_Print and reenabled talk.wav in GAME_NEXUIZ

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

18 years agoremoved an unused function I thought I removed in the previous commit
havoc [Sun, 24 Apr 2005 07:00:16 +0000 (07:00 +0000)]
removed an unused function I thought I removed in the previous commit

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

18 years agoslight cleanup of surface clipping code (got rid of a rather redundent function)
havoc [Sun, 24 Apr 2005 06:19:10 +0000 (06:19 +0000)]
slight cleanup of surface clipping code (got rid of a rather redundent function)
major bugfix to surface portal clipping, lights should hit all the right surfaces now

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

18 years agodon't apply dlights to opaque models (this was happening when flashblend is on)
havoc [Sun, 24 Apr 2005 05:24:30 +0000 (05:24 +0000)]
don't apply dlights to opaque models (this was happening when flashblend is on)
default dlight shadowing on

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

18 years agofixed CL_SendMove packet rate limiting to not have a heartattack when going from...
havoc [Sat, 23 Apr 2005 07:38:48 +0000 (07:38 +0000)]
fixed CL_SendMove packet rate limiting to not have a heartattack when going from singleplayer to multiplayer (this was causing the player to be stuck in place for a very long time)

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

19 years agoadded cl_capturevideo_sound (defaulted to 0) to allow enabling/disabling sound saving...
havoc [Thu, 21 Apr 2005 01:26:44 +0000 (01:26 +0000)]
added cl_capturevideo_sound (defaulted to 0) to allow enabling/disabling sound saving, with sound disabled you can save videos at a framerate your machine can't maintain (no sound sync to worry about)

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

19 years agoreimplemented rtlight portal culling (used for compiled rtlights, and can be used...
havoc [Wed, 20 Apr 2005 11:16:36 +0000 (11:16 +0000)]
reimplemented rtlight portal culling (used for compiled rtlights, and can be used for dlights but that is often a major speed loss)
added additional bounding box and triangle facing checks to rtlight compilation, triangles outside the box are no longer drawn

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

19 years agochanged rtlight compiled cluster list/pvs to leaf list/pvs to enable slightly more...
havoc [Wed, 20 Apr 2005 08:49:26 +0000 (08:49 +0000)]
changed rtlight compiled cluster list/pvs to leaf list/pvs to enable slightly more accurate culling

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

19 years agoenabled portals on q3bsp for a small (occasionally huge) fps increase
havoc [Wed, 20 Apr 2005 06:02:47 +0000 (06:02 +0000)]
enabled portals on q3bsp for a small (occasionally huge) fps increase

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

19 years agor_shadow_staticworldlights has mutated into r_shadow_realtime_world_compile, r_shadow...
havoc [Wed, 20 Apr 2005 05:33:29 +0000 (05:33 +0000)]
r_shadow_staticworldlights has mutated into r_shadow_realtime_world_compile, r_shadow_realtime_world_compilelight, r_shadow_realtime_world_compileshadow
added r_shadow_visiblelighting

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

19 years agofixed a stupid bug in SV_PushMove that made it ignore the first entity in the move box
havoc [Wed, 20 Apr 2005 01:12:46 +0000 (01:12 +0000)]
fixed a stupid bug in SV_PushMove that made it ignore the first entity in the move box
fixed a rotation check in SV_PushMove so that it would detect roll rotations without pitch/yaw

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

19 years agocleaned up transparency handling in q3 shaders, should fix many glitched jumppads...
havoc [Tue, 19 Apr 2005 08:00:18 +0000 (08:00 +0000)]
cleaned up transparency handling in q3 shaders, should fix many glitched jumppads and such

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

19 years agonow clears view to fog color if fog is enabled, this should cure fogging of sky in...
havoc [Mon, 18 Apr 2005 21:22:09 +0000 (21:22 +0000)]
now clears view to fog color if fog is enabled, this should cure fogging of sky in hlbsp

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

19 years agoclean up script init a bit, now starts nexuiz logo video and such only if there's...
havoc [Mon, 18 Apr 2005 21:21:00 +0000 (21:21 +0000)]
clean up script init a bit, now starts nexuiz logo video and such only if there's nothing to do

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

19 years agoreenabled hlbsp sky polygon rendering so that fogging works
havoc [Mon, 18 Apr 2005 20:50:57 +0000 (20:50 +0000)]
reenabled hlbsp sky polygon rendering so that fogging works

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

19 years agochanged crosshair_static default to 1
havoc [Mon, 18 Apr 2005 06:48:21 +0000 (06:48 +0000)]
changed crosshair_static default to 1

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

19 years agochanged in_pitch_min and in_pitch_max defaults to -90 and 90 respectively
havoc [Mon, 18 Apr 2005 06:47:40 +0000 (06:47 +0000)]
changed in_pitch_min and in_pitch_max defaults to -90 and 90 respectively

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

19 years agofixed the SU_ITEMS fix so that it doesn't trash the PROTOCOL_DARKPLACES6 parsing
havoc [Mon, 18 Apr 2005 02:21:48 +0000 (02:21 +0000)]
fixed the SU_ITEMS fix so that it doesn't trash the PROTOCOL_DARKPLACES6 parsing

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

19 years agofixed a bug in CL_ParseClientdata that was breaking on hipnotic demos
havoc [Sun, 17 Apr 2005 21:15:50 +0000 (21:15 +0000)]
fixed a bug in CL_ParseClientdata that was breaking on hipnotic demos

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

19 years agogl_texture_anisotropy now only affects TEXF_MIPMAP textures which should fix a number...
havoc [Sun, 17 Apr 2005 09:08:54 +0000 (09:08 +0000)]
gl_texture_anisotropy now only affects TEXF_MIPMAP textures which should fix a number of 'wandering off the lightmap' issues (as well as similar issues with model skins, as they are not mipmapped)

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

19 years agotexture images now take on the TEXF_FORCENEAREST and TEXF_FORCELINEAR flags from...
havoc [Sun, 17 Apr 2005 09:05:32 +0000 (09:05 +0000)]
texture images now take on the TEXF_FORCENEAREST and TEXF_FORCELINEAR flags from the textures placed in them (as was intended), so gl_texturemode changes
should no longer affect them

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

19 years agodefault to insert mode instead of replace mode in console
havoc [Sun, 17 Apr 2005 08:37:08 +0000 (08:37 +0000)]
default to insert mode instead of replace mode in console
get rid of stupid cursor right at end of line behavior in console, repeating characters from the previous edit line is annoying
allow typing characters > 126 in console

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

19 years agofix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)
havoc [Sun, 17 Apr 2005 08:33:17 +0000 (08:33 +0000)]
fix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)

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

19 years agodon't draw glow twice when gl_combine is on
havoc [Sun, 17 Apr 2005 08:32:21 +0000 (08:32 +0000)]
don't draw glow twice when gl_combine is on

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

19 years agofixed a stupid bug in Entityframe5_ExpandEdicts
havoc [Sat, 16 Apr 2005 21:30:13 +0000 (21:30 +0000)]
fixed a stupid bug in Entityframe5_ExpandEdicts

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

19 years agofix a crash when s->tag_entity is higher than current d->maxedicts
havoc [Sat, 16 Apr 2005 09:15:18 +0000 (09:15 +0000)]
fix a crash when s->tag_entity is higher than current d->maxedicts

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

19 years agochanged R_Shadow_RenderLighting to do full base+pants+shirt+gloss rendering in one...
havoc [Fri, 15 Apr 2005 08:37:47 +0000 (08:37 +0000)]
changed R_Shadow_RenderLighting to do full base+pants+shirt+gloss rendering in one call (will optimize the rendering itself later to merge some of the passes)

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

19 years agofix a bug in the early out case of R_Q1BSP_DrawLight
havoc [Fri, 15 Apr 2005 08:30:53 +0000 (08:30 +0000)]
fix a bug in the early out case of R_Q1BSP_DrawLight

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

19 years agoR_Q1BSP_GetLightInfo now uses BSP tree recursion as an optimization for a small speed...
havoc [Fri, 15 Apr 2005 08:21:11 +0000 (08:21 +0000)]
R_Q1BSP_GetLightInfo now uses BSP tree recursion as an optimization for a small speed gain

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

19 years agomade dland2.wav not play in GAME_NEXUIZ
havoc [Fri, 15 Apr 2005 08:18:26 +0000 (08:18 +0000)]
made dland2.wav not play in GAME_NEXUIZ
no longer runs physics on disconnected clients (quake did not run them), fixing the physics problems with frikbots, thanks to FrikaC for explanation of this problem

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

19 years ago-Added the parameter 'persistent'(naming?) to Draw_CachePic, which decides
black [Thu, 14 Apr 2005 20:45:08 +0000 (20:45 +0000)]
-Added the parameter 'persistent'(naming?) to Draw_CachePic, which decides
 whether the texture is loaded in texture memory directly or only on demand.
-Adapted all Draw_CachePic calls (I'll do some corrections, atm most of them
 pass persistent := false)

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

19 years agoLoadTGA is now more compliant with the TGA spec regarding colormaps (they can be...
havoc [Thu, 14 Apr 2005 08:27:36 +0000 (08:27 +0000)]
LoadTGA is now more compliant with the TGA spec regarding colormaps (they can be present even on a truecolor image, just not used by it) and attributebits (alpha is now ignored if attributebits is not 8 which fixes a number of malformed TGA files (though they still waste disk space) - note that attributebits is part of the attributes header byte)

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

19 years agorenamed r_shadow_cursor cvars to actually have the word cursor in their name like...
havoc [Mon, 11 Apr 2005 19:37:04 +0000 (19:37 +0000)]
renamed r_shadow_cursor cvars to actually have the word cursor in their name like they were supposed to

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

19 years agoremove unused variable
havoc [Mon, 11 Apr 2005 19:06:49 +0000 (19:06 +0000)]
remove unused variable

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

19 years ago-Changed the dpv buffer to 1 MB.
black [Mon, 11 Apr 2005 16:53:33 +0000 (16:53 +0000)]
-Changed the dpv buffer to 1 MB.

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

19 years agoimplemented playerclip and monsterclip brush support for q3bsp levels
havoc [Mon, 11 Apr 2005 02:27:30 +0000 (02:27 +0000)]
implemented playerclip and monsterclip brush support for q3bsp levels

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

19 years agochanged color codes to match Quake3
havoc [Mon, 11 Apr 2005 02:23:16 +0000 (02:23 +0000)]
changed color codes to match Quake3
changed chat coloring in Nexuiz to use yellow, instead of shifting to upper 128 characters, this should open up the possibility of 8bit fonts in Nexuiz (for multilingual chat)

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

19 years agosmoke no longer expands over time (eats fillrate and isn't very realistic)
havoc [Sun, 10 Apr 2005 16:53:42 +0000 (16:53 +0000)]
smoke no longer expands over time (eats fillrate and isn't very realistic)

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

19 years agofixed ut2003-style smoke ring effect on explosions (not that anyone uses this I assume)
havoc [Sun, 10 Apr 2005 15:46:47 +0000 (15:46 +0000)]
fixed ut2003-style smoke ring effect on explosions (not that anyone uses this I assume)

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

19 years agoreimplemented particle lighting, however it is not used (too slow)
havoc [Sun, 10 Apr 2005 15:36:33 +0000 (15:36 +0000)]
reimplemented particle lighting, however it is not used (too slow)
fixed a stupid bug in fogging of alpha blend and modulation blend

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

19 years agofixed a crash if decals are stuck to submodels when cl_entities expands
havoc [Sun, 10 Apr 2005 15:29:29 +0000 (15:29 +0000)]
fixed a crash if decals are stuck to submodels when cl_entities expands

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

19 years agoremoved unused leaf parameter on CompleteLightPoint
havoc [Sun, 10 Apr 2005 14:01:22 +0000 (14:01 +0000)]
removed unused leaf parameter on CompleteLightPoint

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

19 years agoUmm, I think this todo item (netconn) has been done some time ago.
black [Sat, 9 Apr 2005 20:11:40 +0000 (20:11 +0000)]
Umm, I think this todo item (netconn) has been done some time ago.

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

19 years agoAdded the DP_HALFLIFE_SPRITE QC extension
molivier [Thu, 7 Apr 2005 10:00:48 +0000 (10:00 +0000)]
Added the DP_HALFLIFE_SPRITE QC extension

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

19 years agofix 256 frame limit (stupid legacy bug in entity_state_t building code)
havoc [Wed, 6 Apr 2005 20:30:19 +0000 (20:30 +0000)]
fix 256 frame limit (stupid legacy bug in entity_state_t building code)

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

19 years agochanged cl_brushmodel_entities array from entity_render_t * to int, to fix a crash...
havoc [Wed, 6 Apr 2005 11:12:56 +0000 (11:12 +0000)]
changed cl_brushmodel_entities array from entity_render_t * to int, to fix a crash when cl_entities array expands

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

19 years agofixed a stupid typo in EntityFrame5_ExpandEdicts that caused a double free error
havoc [Wed, 6 Apr 2005 10:06:26 +0000 (10:06 +0000)]
fixed a stupid typo in EntityFrame5_ExpandEdicts that caused a double free error

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

19 years agofixed an error case in S_StartSound
havoc [Tue, 5 Apr 2005 22:23:17 +0000 (22:23 +0000)]
fixed an error case in S_StartSound

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

19 years agofix some crashes with fogged surfaces
havoc [Tue, 5 Apr 2005 20:28:07 +0000 (20:28 +0000)]
fix some crashes with fogged surfaces

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

19 years agomade CL_ExpandEntities cause an error if called before cl_entities is initialized
havoc [Tue, 5 Apr 2005 20:01:33 +0000 (20:01 +0000)]
made CL_ExpandEntities cause an error if called before cl_entities is initialized

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

19 years agoconsolidated many mempools to make memlist more readable (and very slightly reduce...
havoc [Tue, 5 Apr 2005 18:23:53 +0000 (18:23 +0000)]
consolidated many mempools to make memlist more readable (and very slightly reduce memory usage)
changed gltexture_t->identifier from a pointer to an array to reduce the number of allocations per texture (now 2-3 rather than 3-4)
made all MAX_EDICTS arrays in entityframe5_database_t adaptive size to reduce server memory usage

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

19 years agono longer uses SZ_Alloc for cmd_text buffer
havoc [Tue, 5 Apr 2005 17:31:37 +0000 (17:31 +0000)]
no longer uses SZ_Alloc for cmd_text buffer

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

19 years agoreduced client memory usage by 29MB by making cl_max_entities dynamic (starts out...
havoc [Tue, 5 Apr 2005 11:15:45 +0000 (11:15 +0000)]
reduced client memory usage by 29MB by making cl_max_entities dynamic (starts out at 256)
cleaned up cl_num_entities to be more generally useful, it is only increased by network entities, this should speed up some code (by using cl_num_entities instead of MAX_EDICTS or cl_max_entities)

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

19 years agofixed a unintended-water-scroll bug on transparent fullbright surfaces
havoc [Mon, 4 Apr 2005 19:33:09 +0000 (19:33 +0000)]
fixed a unintended-water-scroll bug on transparent fullbright surfaces

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

19 years agofix gl_combine 0 crashes (it was indexing the color vector as if it was a vertex...
havoc [Mon, 4 Apr 2005 18:46:20 +0000 (18:46 +0000)]
fix gl_combine 0 crashes (it was indexing the color vector as if it was a vertex property... wrong!)

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

19 years agooptimized surface rendering to surface->groupmesh->data_* array pointers directly...
havoc [Mon, 4 Apr 2005 16:01:17 +0000 (16:01 +0000)]
optimized surface rendering to surface->groupmesh->data_* array pointers directly instead of indexing them with surface->num_firstvertex, this allows fewer pointer changes (a small speed gain)
fixed stupid bug in q1bsp texture loading which was making all missing textures invisible
changed portal generation to not break when a portal is clipped away, this fixes a crash at render time with bogus portals
changed r_drawportals to only draw portals surrounding the visible leafs (speed gain, but also useful for debugging vis glitches)

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

19 years agoFixed getserversResponse parsing:
molivier [Mon, 4 Apr 2005 14:51:56 +0000 (14:51 +0000)]
Fixed getserversResponse parsing:
* serverquerycount was incremented even when it didn't query this server
* if the list contained a server that was already queried, the remaining servers were ignored

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

19 years ago-ServerList: Changed some if-else-chains to switch constructs.
black [Mon, 4 Apr 2005 13:03:54 +0000 (13:03 +0000)]
-ServerList: Changed some if-else-chains to switch constructs.
-Added a pointer check (!= NULL) to VM_strunzone.

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