xonotic/darkplaces.git
17 years agoDP code cleanup, stage one - all headers that can be protected by ifdef
knghtbrd [Sun, 2 Jun 2002 13:43:41 +0000 (13:43 +0000)]
DP code cleanup, stage one - all headers that can be protected by ifdef
and define now are.  Some dead code found in them was also removed.

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

17 years agoremove unused DrawNotifyString, fix intermission screen so only the finale-style...
lordhavoc [Sat, 1 Jun 2002 21:30:36 +0000 (21:30 +0000)]
remove unused DrawNotifyString, fix intermission screen so only the finale-style intermission screens print a message slowly onto the screen

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

17 years agoadded -texgamma, -texcontrast, -texbrightness, these manipulate the palette (note...
lordhavoc [Sat, 1 Jun 2002 21:27:23 +0000 (21:27 +0000)]
added -texgamma, -texcontrast, -texbrightness, these manipulate the palette (note: only affects quake palette images) in ways similar to qgamma (or so I assume, having never used it), possibly useful, sorta

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

17 years agouse volatile on icolor and fcolor pointers in GL_ConvertColorsFloatToByte to avoid...
lordhavoc [Sat, 1 Jun 2002 21:04:36 +0000 (21:04 +0000)]
use volatile on icolor and fcolor pointers in GL_ConvertColorsFloatToByte to avoid aliasing problems (aliasing is exactly what that code is doing, after all)

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

17 years agoI have commit access to DP? When did that happen?
mercury [Wed, 29 May 2002 11:28:09 +0000 (11:28 +0000)]
I have commit access to DP? When did that happen?

Fix the flying backpacks, just moving two lines, one of which is a comment.

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

17 years agoattempt at working around a NVIDIA 23.11 TNT driver bug which causes the menu text...
lordhavoc [Mon, 27 May 2002 06:54:54 +0000 (06:54 +0000)]
attempt at working around a NVIDIA 23.11 TNT driver bug which causes the menu text to be squished to the top

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

17 years agomake bbox collisions work again
lordhavoc [Mon, 27 May 2002 06:48:03 +0000 (06:48 +0000)]
make bbox collisions work again

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

17 years agofix for gl_mesh_maxtriangles not defaulting correctly and raised minimum limit to...
lordhavoc [Mon, 27 May 2002 06:47:22 +0000 (06:47 +0000)]
fix for gl_mesh_maxtriangles not defaulting correctly and raised minimum limit to 1024

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

17 years agoadded some smoke to the fire effect (requested for bloodbath)
lordhavoc [Mon, 27 May 2002 06:44:59 +0000 (06:44 +0000)]
added some smoke to the fire effect (requested for bloodbath)

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

17 years agofix for uninitialized start/end of trace against bbox (oops!!)
lordhavoc [Wed, 22 May 2002 10:08:34 +0000 (10:08 +0000)]
fix for uninitialized start/end of trace against bbox (oops!!)

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

17 years agoadded RecursiveHullCheckPoint for quicker tracing of a single point (that is to say...
lordhavoc [Wed, 22 May 2002 09:57:49 +0000 (09:57 +0000)]
added RecursiveHullCheckPoint for quicker tracing of a single point (that is to say: start == end)
rewrote RecursiveHullCheck a few times trying to improve it and gave up (epsilons are finicky), mostly reverted, however the mid point calculation is more accurate
(this fixes the 'can't move' bug)

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

17 years agofix a bunch of pointer type warnings introduced by the change to const parameters...
lordhavoc [Wed, 22 May 2002 03:17:50 +0000 (03:17 +0000)]
fix a bunch of pointer type warnings introduced by the change to const parameters in R_ConcatRotations and R_ConcatTransforms (now take float * instead of two dimensional array)

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

17 years agoignore various MSVC files (.opt, .plg, .ncb) and .exe
lordhavoc [Tue, 21 May 2002 11:12:40 +0000 (11:12 +0000)]
ignore various MSVC files (.opt, .plg, .ncb) and .exe

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

17 years agoignore .o files
lordhavoc [Tue, 21 May 2002 11:10:23 +0000 (11:10 +0000)]
ignore .o files

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

17 years agoadded collision.c, cl_collision.c. collision.h, cl_collision.h
lordhavoc [Tue, 21 May 2002 10:49:48 +0000 (10:49 +0000)]
added collision.c, cl_collision.c. collision.h, cl_collision.h

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

17 years agosplit out RecursiveHullCheck and related code into collision.c (shared by client...
lordhavoc [Tue, 21 May 2002 10:47:23 +0000 (10:47 +0000)]
split out RecursiveHullCheck and related code into collision.c (shared by client and server, doesn't care what an entity is), and cl_collision.c (CL_TraceLine and related code), this cleans up a lot of messy RecursiveHullCheck calls, replacing them with Collision_ClipTrace calls
also removed some commented out code
and fixed an epsilon glitch in RecursiveHullCheck which was mostly visible when shooting a gun along a wall at angles nearly parallel with the wall

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

17 years agomade various things take const pointers (optimizer hint), commented out and/or remove...
lordhavoc [Tue, 21 May 2002 10:36:48 +0000 (10:36 +0000)]
made various things take const pointers (optimizer hint), commented out and/or removed a lot of unused functions

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

17 years agochanged Length() call to VectorLength() macro in two places
lordhavoc [Tue, 21 May 2002 10:22:32 +0000 (10:22 +0000)]
changed Length() call to VectorLength() macro in two places

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

17 years agochanged Length() call to VectorLength() macro... inside a comment... yes pointless...
lordhavoc [Tue, 21 May 2002 10:20:45 +0000 (10:20 +0000)]
changed Length() call to VectorLength() macro...  inside a comment...  yes pointless I know...

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

17 years agooptimized (now does not use a sqrt for each entity) and improved findradius (now...
lordhavoc [Tue, 21 May 2002 10:18:11 +0000 (10:18 +0000)]
optimized (now does not use a sqrt for each entity) and improved findradius (now compares sphere against bboxes, rather than entity centers)

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

17 years agobuild for -mwindows (so it doesn't open a console)
lordhavoc [Tue, 21 May 2002 03:51:57 +0000 (03:51 +0000)]
build for -mwindows (so it doesn't open a console)

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

17 years agovalidate animations in zym models
lordhavoc [Tue, 21 May 2002 02:32:04 +0000 (02:32 +0000)]
validate animations in zym models

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

17 years agofix for really dumb mistake (missing memset) in Mod_SplitSurfMeshIfTooBig
lordhavoc [Sun, 19 May 2002 01:30:53 +0000 (01:30 +0000)]
fix for really dumb mistake (missing memset) in Mod_SplitSurfMeshIfTooBig

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

17 years agonow fetchs wgl functions
lordhavoc [Thu, 16 May 2002 06:54:20 +0000 (06:54 +0000)]
now fetchs wgl functions
now works with all drivers I would hope (tries both wglGetProcAddress and GetProcAddress to get a function's address)
now detects both glDrawRangeElements (1.2 function) and GL_EXT_draw_range_elements (1.1 and above extension)
now tunes gl_mesh_maxtriangles based on DrawRangeElements limitations reported by driver (if available)

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

17 years agouse qglDeleteTextures, not glDeleteTextures
lordhavoc [Thu, 16 May 2002 06:51:15 +0000 (06:51 +0000)]
use qglDeleteTextures, not glDeleteTextures

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

17 years agoincreased MAX_SURFVERTS to hold as many as the surf mesh splitter in model_brush...
lordhavoc [Wed, 15 May 2002 09:04:56 +0000 (09:04 +0000)]
increased MAX_SURFVERTS to hold as many as the surf mesh splitter in model_brush.c allows (and added comment saying so)

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

17 years agomuzzleflash fades out
lordhavoc [Wed, 15 May 2002 08:56:45 +0000 (08:56 +0000)]
muzzleflash fades out
changed .lights file format very slightly to add customizable distance bias (softness)
now splits surface meshs bigger than 1000 tris into multiple smaller ones automatically while loading

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

17 years agoreduced skysphere from 2048 triangles to 1024
lordhavoc [Wed, 15 May 2002 08:53:48 +0000 (08:53 +0000)]
reduced skysphere from 2048 triangles to 1024

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

17 years agodirectional static lighting support (but not fast yet), for maps compiled with (as...
lordhavoc [Wed, 15 May 2002 04:00:37 +0000 (04:00 +0000)]
directional static lighting support (but not fast yet), for maps compiled with (as yet unreleased) new version of hlight

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

17 years agochange a lot of calls from gl to qgl
lordhavoc [Wed, 15 May 2002 03:58:00 +0000 (03:58 +0000)]
change a lot of calls from gl to qgl

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

17 years agooops forgot to commit this piece of the unsuccessful support for floating items
lordhavoc [Wed, 15 May 2002 03:55:53 +0000 (03:55 +0000)]
oops forgot to commit this piece of the unsuccessful support for floating items

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

17 years agosv_stepheight cvar, SV_Init now calls SV_Phys_Init, and another unsuccessful attempt...
lordhavoc [Wed, 15 May 2002 02:30:05 +0000 (02:30 +0000)]
sv_stepheight cvar, SV_Init now calls SV_Phys_Init, and another unsuccessful attempt to make items float in air if spawned on soon-deleted platforms (mapper trick for floating items)

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

17 years agoslight optimizations to GL_ConvertColorsFloattoByte
lordhavoc [Wed, 15 May 2002 02:25:08 +0000 (02:25 +0000)]
slight optimizations to GL_ConvertColorsFloattoByte

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

17 years agosearch for GL functions using GetProcAddress on win32 instead of wglGetProcAddress...
lordhavoc [Tue, 14 May 2002 10:43:25 +0000 (10:43 +0000)]
search for GL functions using GetProcAddress on win32 instead of wglGetProcAddress (which only lists extensions, apparently), fixes inability to find GL 1.1.0 functions in 3dfx driver (maybe NVIDIA and others, only tested 3dfx)

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

17 years agoindependent control of gl_mesh_maxtriangles and gl_mesh_transtriangles (that is to...
lordhavoc [Tue, 14 May 2002 10:40:35 +0000 (10:40 +0000)]
independent control of gl_mesh_maxtriangles and gl_mesh_transtriangles (that is to say you can have more transparent triangles than normal ones, they get rendered in batchs anyway)

also a check for meshs too big for 3DFX drivers, which might fix problems for some people, I dunno, I was unable to reproduce the problem on my voodoo2 this time (has occurred in the past, maybe something else is broken in the gl_backend preventing it from overflowing the vertex buffers of the driver)

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

17 years agocleaned up and fixed collisions with brush models (example: you can now ramp jump...
lordhavoc [Sat, 4 May 2002 12:08:45 +0000 (12:08 +0000)]
cleaned up and fixed collisions with brush models (example: you can now ramp jump and hit the light fixture in e4m1 in dp mod), now uses 3 different bounding boxes for the trace (hullmins/hullmaxs for collisions with brush models, mins/maxs for collisions with normal entities, mins2/maxs2 for collisions with monsters), and the movebounds use the largest of the bounding boxes to ensure proper collisions
items suspended in the air on a func_door (or similar) entity which is then killed by a trigger, should now continue floating in the air (this is a gross hack, to make suspended items in various maps stay in the air)

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

17 years agomostly dynamic GL binding (more needs to be done, but it's closer)
lordhavoc [Sat, 4 May 2002 12:04:19 +0000 (12:04 +0000)]
mostly dynamic GL binding (more needs to be done, but it's closer)
added gl_mesh_drawmode cvar (3 = drawrangeelements (if available), 2 = drawelements, 1 = arrayelement, 0 = completely manual), 0 should get the 3dfx glquake minigl running...

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

17 years agoreverted embedded-in-other-object behavior to sticking, rather than allowing you...
lordhavoc [Fri, 3 May 2002 22:07:16 +0000 (22:07 +0000)]
reverted embedded-in-other-object behavior to sticking, rather than allowing you to walk through it, to fix many maps

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

17 years agohopefully this fixes the problem in TNT drivers with the options menu (too much text...
lordhavoc [Fri, 3 May 2002 22:06:05 +0000 (22:06 +0000)]
hopefully this fixes the problem in TNT drivers with the options menu (too much text in one batch)

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

17 years agoi is not longer an unsigned short in Palette_Setup8to24
lordhavoc [Tue, 30 Apr 2002 07:37:35 +0000 (07:37 +0000)]
i is not longer an unsigned short in Palette_Setup8to24

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

17 years agomore cleaning - glTexParameterf replaced with glTexParameteri
lordhavoc [Tue, 30 Apr 2002 06:28:21 +0000 (06:28 +0000)]
more cleaning - glTexParameterf replaced with glTexParameteri

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

17 years agochanged texrgbscale to int rather than float, this allowed me to change all remaining...
lordhavoc [Tue, 30 Apr 2002 06:24:30 +0000 (06:24 +0000)]
changed texrgbscale to int rather than float, this allowed me to change all remaining glTexEnvf calls to glTexEnvi

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

17 years agono longer uses glColor3f at all
lordhavoc [Tue, 30 Apr 2002 06:03:29 +0000 (06:03 +0000)]
no longer uses glColor3f at all

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

17 years agodisabled lookup of unused multitexture function (glMultiTexCoord2f)
lordhavoc [Tue, 30 Apr 2002 06:02:29 +0000 (06:02 +0000)]
disabled lookup of unused multitexture function (glMultiTexCoord2f)

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

17 years agodisabled lookup of unused multitexture function (glMultiTexCoord2f)
lordhavoc [Tue, 30 Apr 2002 05:43:54 +0000 (05:43 +0000)]
disabled lookup of unused multitexture function (glMultiTexCoord2f)

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

17 years agofix for misparsing of sound length in "data" chunk of WAVE, this should fix stereo...
lordhavoc [Sun, 28 Apr 2002 20:15:05 +0000 (20:15 +0000)]
fix for misparsing of sound length in "data" chunk of WAVE, this should fix stereo sound crashs

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

17 years agosome cleaning which seems to have fixed (I hope?) a crash in stereo 16bit sound resam...
lordhavoc [Sun, 28 Apr 2002 19:41:52 +0000 (19:41 +0000)]
some cleaning which seems to have fixed (I hope?) a crash in stereo 16bit sound resampling when source and destination rates are the same

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

17 years agofix for savegames containing newlines inside strings (now they are converted to escap...
lordhavoc [Sun, 28 Apr 2002 19:37:59 +0000 (19:37 +0000)]
fix for savegames containing newlines inside strings (now they are converted to escape codes, which COM_Parse will happily dismantle again when loading)

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

17 years agominor cleaning of obsolete protocol stuff (svc_fog is now considered unused, because...
lordhavoc [Sun, 28 Apr 2002 19:35:17 +0000 (19:35 +0000)]
minor cleaning of obsolete protocol stuff (svc_fog is now considered unused, because it really never was used)

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

17 years agocleaned up the newlines (carriagereturn carriagereturn linefeed? weird!)
lordhavoc [Fri, 12 Apr 2002 04:24:29 +0000 (04:24 +0000)]
cleaned up the newlines (carriagereturn carriagereturn linefeed?  weird!)

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

17 years agoremoved silly uses of 'long' (now int, or qbyte *, depending on the way it was used...
lordhavoc [Thu, 11 Apr 2002 09:33:15 +0000 (09:33 +0000)]
removed silly uses of 'long' (now int, or qbyte *, depending on the way it was used), and changed memheader sentinels to work on processors which can not handle unaligned memory access (Sparc for example)

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

17 years agotimerefresh works more sanely again
lordhavoc [Thu, 11 Apr 2002 09:30:51 +0000 (09:30 +0000)]
timerefresh works more sanely again

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

17 years agoadded back the hacky NAT routing fix since it actually does work, the win32 problems...
lordhavoc [Sat, 6 Apr 2002 03:43:50 +0000 (03:43 +0000)]
added back the hacky NAT routing fix since it actually does work, the win32 problems were unrelated and have been fixed

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

17 years agoMSG_Read functions are never used inside if's anymore (this fixes some problems with...
lordhavoc [Fri, 5 Apr 2002 09:34:39 +0000 (09:34 +0000)]
MSG_Read functions are never used inside if's anymore (this fixes some problems with MSVC)

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

17 years agominor cleanup/simplification (though a bit of a de-optimization) of explosion shading...
lordhavoc [Fri, 5 Apr 2002 09:32:12 +0000 (09:32 +0000)]
minor cleanup/simplification (though a bit of a de-optimization) of explosion shading, might fix a glitch or two on the edges, not sure

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

17 years agonewline change?
lordhavoc [Mon, 1 Apr 2002 09:14:45 +0000 (09:14 +0000)]
newline change?

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

17 years agoremoved hacky network code that tried to make DP work through NAT routers (but infact...
lordhavoc [Mon, 1 Apr 2002 09:00:29 +0000 (09:00 +0000)]
removed hacky network code that tried to make DP work through NAT routers (but infact just broke everything, sigh)

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

17 years agofix for dedicated server spewing error about cl_avidemo
lordhavoc [Mon, 1 Apr 2002 08:58:47 +0000 (08:58 +0000)]
fix for dedicated server spewing error about cl_avidemo

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

17 years agoadded cl_avidemo cvar (saves a series of tga images named gamedir/dpavi000000.tga...
lordhavoc [Sat, 30 Mar 2002 05:04:54 +0000 (05:04 +0000)]
added cl_avidemo cvar (saves a series of tga images named gamedir/dpavi000000.tga and so on, the parameter to it is the framerate to save, locks framerate to this while saving, set back to 0 to stop - note there is sound saving code but it is commented out because it's always desynchronized to the video because quake has such a lousy sound engine)

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

17 years agoforgot to commit this before
lordhavoc [Sat, 30 Mar 2002 05:00:08 +0000 (05:00 +0000)]
forgot to commit this before

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

17 years agoforce filenames to lowercase in listdirectory code on windows
lordhavoc [Sat, 30 Mar 2002 03:04:49 +0000 (03:04 +0000)]
force filenames to lowercase in listdirectory code on windows

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

17 years ago-lXIE does not seem to be necessary, disabled (but left a comment incase anyone needs it)
lordhavoc [Wed, 27 Mar 2002 10:21:45 +0000 (10:21 +0000)]
-lXIE does not seem to be necessary, disabled (but left a comment incase anyone needs it)

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

17 years agoremoved fog shaderstage, merged it into the normal stage
lordhavoc [Wed, 27 Mar 2002 09:13:34 +0000 (09:13 +0000)]
removed fog shaderstage, merged it into the normal stage

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

17 years agoreorganized shader rendering calls to process the whole surface chain multiple times...
lordhavoc [Wed, 27 Mar 2002 03:44:35 +0000 (03:44 +0000)]
reorganized shader rendering calls to process the whole surface chain multiple times in the shader function (pretty fast), rather than calling the shader function multiple times per surface (slow!)

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

17 years agosmoke is alpha again (not additive), rather dark in appearance, lingers longer
lordhavoc [Wed, 27 Mar 2002 03:42:22 +0000 (03:42 +0000)]
smoke is alpha again (not additive), rather dark in appearance, lingers longer

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

17 years agomassive speedups (removed a few 256k memsets)
lordhavoc [Wed, 27 Mar 2002 03:40:26 +0000 (03:40 +0000)]
massive speedups (removed a few 256k memsets)

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

17 years agoadded some (not yet used) key config menu code, part of a redesign for loading the...
lordhavoc [Wed, 27 Mar 2002 00:34:02 +0000 (00:34 +0000)]
added some (not yet used) key config menu code, part of a redesign for loading the key config menu layout from configs (more specifically default.cfg in DP mod and any others that use it)

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

17 years agoAdded newline at end for lame gcc versions ;)
eviltypeguy [Tue, 26 Mar 2002 17:47:42 +0000 (17:47 +0000)]
Added newline at end for lame gcc versions ;)

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

17 years agoSome menu customizations for BloodBath
molivier [Tue, 26 Mar 2002 12:40:19 +0000 (12:40 +0000)]
Some menu customizations for BloodBath

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

17 years agoFixed PF_registercvar
molivier [Tue, 26 Mar 2002 09:55:33 +0000 (09:55 +0000)]
Fixed PF_registercvar

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

17 years agominor speed increase in surface shaders, by splitting out surfaces with and without...
lordhavoc [Tue, 26 Mar 2002 00:47:44 +0000 (00:47 +0000)]
minor speed increase in surface shaders, by splitting out surfaces with and without fullbrights into different shader code

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

17 years agoupdated MSVC and mingw files to compile filematch.c
lordhavoc [Mon, 25 Mar 2002 23:00:53 +0000 (23:00 +0000)]
updated MSVC and mingw files to compile filematch.c

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

17 years agonow loads gamedir/*.pak instead of gamedir/pak#.pak, sorted by ASCII value (note...
lordhavoc [Mon, 25 Mar 2002 22:51:57 +0000 (22:51 +0000)]
now loads gamedir/*.pak instead of gamedir/pak#.pak, sorted by ASCII value (note: lowercase overrides uppercase)

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

17 years agoreduced the drawqueue buffer from 1mb to 256k (really it only needs about 60k)
lordhavoc [Mon, 25 Mar 2002 22:48:25 +0000 (22:48 +0000)]
reduced the drawqueue buffer from 1mb to 256k (really it only needs about 60k)

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

17 years agoseed the random number generator with the current time at startup (quake never seeded it)
lordhavoc [Mon, 25 Mar 2002 22:46:41 +0000 (22:46 +0000)]
seed the random number generator with the current time at startup (quake never seeded it)

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

17 years agoDarkPlaces should always wait for connections in BloodBath mode
molivier [Mon, 25 Mar 2002 12:38:10 +0000 (12:38 +0000)]
DarkPlaces should always wait for connections in BloodBath mode

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

17 years agoA few minor changes for BloodBath support (including the map list); more to come
molivier [Fri, 22 Mar 2002 07:12:05 +0000 (07:12 +0000)]
A few minor changes for BloodBath support (including the map list); more to come

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

17 years agocleaned up nehahra demo list
lordhavoc [Wed, 20 Mar 2002 19:06:49 +0000 (19:06 +0000)]
cleaned up nehahra demo list
cleaned up level/episode system, now it is much easier (and cleaner) to add new maps/episodes/games

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

17 years agoadded -bloodbath game
lordhavoc [Wed, 20 Mar 2002 19:05:16 +0000 (19:05 +0000)]
added -bloodbath game

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

17 years agofix for CreatePath creating a directory of the drive's letter in windows (d:\quake...
lordhavoc [Wed, 20 Mar 2002 17:31:29 +0000 (17:31 +0000)]
fix for CreatePath creating a directory of the drive's letter in windows (d:\quake created a d directory, then d: (ignored), then d:\quake, now creates d: (ignored), then d:\quake)  (thanks Elric)

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

17 years agofixed options menu item count (thanks Elric)
lordhavoc [Wed, 20 Mar 2002 17:29:43 +0000 (17:29 +0000)]
fixed options menu item count (thanks Elric)

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

17 years agoadded EF_STARDUST effect (showering golden sparks, and the entity glows)
lordhavoc [Sun, 17 Mar 2002 16:32:02 +0000 (16:32 +0000)]
added EF_STARDUST effect (showering golden sparks, and the entity glows)
reduced rocket glow a little
made blood stains brighter again (so you can at least see the floor)
EF_STARDUST and EF_FLAME now create a fixed size effect rather than attempting to use the model bounding box (which is too big usually)

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

17 years agofix for EF_FLAME and lots of other bugs with 16bit/8bit fields (modelindex, frame...
lordhavoc [Sun, 17 Mar 2002 15:56:18 +0000 (15:56 +0000)]
fix for EF_FLAME and lots of other bugs with 16bit/8bit fields (modelindex, frame, effects)

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

17 years agochanged protocol back to using float coordinates, unless the mod specifies EF_LOWPREC...
lordhavoc [Sat, 16 Mar 2002 15:00:15 +0000 (15:00 +0000)]
changed protocol back to using float coordinates, unless the mod specifies EF_LOWPRECISION on an entity, then it is sent using shorts (if it is within the short range, otherwise it uses floats), this loses some bandwidth but makes everything look nice (lifts aren't jerky, etc)

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

17 years agoadded note not to use athlon optimizations in current gcc versions
lordhavoc [Sat, 16 Mar 2002 14:51:55 +0000 (14:51 +0000)]
added note not to use athlon optimizations in current gcc versions

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

17 years agowhitespace
lordhavoc [Sat, 16 Mar 2002 14:49:13 +0000 (14:49 +0000)]
whitespace

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

17 years agodon't do down traces if sitting on the floor of world (world never moves, so we can...
lordhavoc [Sat, 16 Mar 2002 14:46:57 +0000 (14:46 +0000)]
don't do down traces if sitting on the floor of world (world never moves, so we can skip it), restores a lot of the speed lost in recent commits

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

17 years agoCheck bbox for overlap even on bmodels again (disabling it was a speed loss)
lordhavoc [Sat, 16 Mar 2002 14:45:18 +0000 (14:45 +0000)]
Check bbox for overlap even on bmodels again (disabling it was a speed loss)

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

17 years agodarkened blood
lordhavoc [Fri, 15 Mar 2002 14:40:18 +0000 (14:40 +0000)]
darkened blood

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

17 years agochanged blood settings (note: these are saved cvars, so clear your config for them...
lordhavoc [Thu, 14 Mar 2002 19:54:08 +0000 (19:54 +0000)]
changed blood settings (note: these are saved cvars, so clear your config for them to take effect)

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

17 years agorandomized blood and smoke color a bit (darker/brighter randomly), got rid of smoke...
lordhavoc [Thu, 14 Mar 2002 19:52:06 +0000 (19:52 +0000)]
randomized blood and smoke color a bit (darker/brighter randomly), got rid of smoke texture color (so now it fogs for free, no state thrash), looks a bit worse on blood, but oh well

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

17 years agoHide no such frame warning if developer is off
lordhavoc [Thu, 14 Mar 2002 19:46:31 +0000 (19:46 +0000)]
Hide no such frame warning if developer is off

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

17 years agoworkaround for absolutely empty sprites (Nehahra s_null.spr)
lordhavoc [Thu, 14 Mar 2002 19:26:12 +0000 (19:26 +0000)]
workaround for absolutely empty sprites (Nehahra s_null.spr)

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

17 years agoRemoved references to r_particles.c
molivier [Thu, 14 Mar 2002 16:46:07 +0000 (16:46 +0000)]
Removed references to r_particles.c

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

17 years agoMerged r_particles.c back into cl_particles.c to reduce overhead (renderparticle...
lordhavoc [Thu, 14 Mar 2002 13:30:03 +0000 (13:30 +0000)]
Merged r_particles.c back into cl_particles.c to reduce overhead (renderparticle stuff is gone now)

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

17 years agoMOVETYPE_STEP entities should now fall when support is removed (even if it is not...
lordhavoc [Thu, 14 Mar 2002 00:04:15 +0000 (00:04 +0000)]
MOVETYPE_STEP entities should now fall when support is removed (even if it is not a MOVETYPE_PUSH object beneath them), and fish fall if in the air

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

17 years agoskip bbox check on bmodels because it is fast enough to trace against their hull...
lordhavoc [Thu, 14 Mar 2002 00:02:34 +0000 (00:02 +0000)]
skip bbox check on bmodels because it is fast enough to trace against their hull and has less problem cases
commented out no longer useful clip.trace.allsolid check in SV_Move

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

17 years agosprite code now uses left vector instead of right, and upright facing sprites now...
lordhavoc [Wed, 13 Mar 2002 23:59:09 +0000 (23:59 +0000)]
sprite code now uses left vector instead of right, and upright facing sprites now work correctly

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

17 years agofog water when r_wateralpha is 1
lordhavoc [Wed, 13 Mar 2002 23:57:42 +0000 (23:57 +0000)]
fog water when r_wateralpha is 1

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

17 years agogreatly improved chances of an entity being visible (in traceline test), checks neare...
lordhavoc [Wed, 13 Mar 2002 23:56:41 +0000 (23:56 +0000)]
greatly improved chances of an entity being visible (in traceline test), checks nearest point (typically corner) on bbox as well as a random trace

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