18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

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

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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 years agofix for fall-through-floor-when-embedded-in-another-entity situation (now the entity...
lordhavoc [Wed, 13 Mar 2002 13:58:20 +0000 (13:58 +0000)]
fix for fall-through-floor-when-embedded-in-another-entity situation (now the entity only falls through entities it is embedded in, and blocks on all others), and another fix for grenade bounce sound, also some cleanup of the toss physics code, and corpses no longer block against eachother

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

18 years agoadded athlon CPU choice (for gcc 2.96 and up)
lordhavoc [Wed, 13 Mar 2002 13:46:05 +0000 (13:46 +0000)]
added athlon CPU choice (for gcc 2.96 and up)

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

18 years agofixed grenades to behave more like quake again (60 normal-dot-velocity tolerance...
lordhavoc [Wed, 13 Mar 2002 12:23:18 +0000 (12:23 +0000)]
fixed grenades to behave more like quake again (60 normal-dot-velocity tolerance for stopping), fixed continuous bounce sound (repeated touch when sitting on floor), you can now walk on SOLID_SLIDEBOX/SOLID_BBOX objects (like in Q2/Q3), if two objects are stacked and the bottom one moves out from under, the top one will fall (always wished quake would do that)

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

18 years agoknight/scrag/vore trail effects are half as intense now
lordhavoc [Wed, 13 Mar 2002 10:41:45 +0000 (10:41 +0000)]
knight/scrag/vore trail effects are half as intense now

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

18 years agowhoever last modified this forgot a rather important ;
lordhavoc [Wed, 13 Mar 2002 05:56:20 +0000 (05:56 +0000)]
whoever last modified this forgot a rather important ;

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

18 years agomore subtle rocket smoke
lordhavoc [Tue, 12 Mar 2002 17:14:29 +0000 (17:14 +0000)]
more subtle rocket smoke

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

18 years agoadded cl_particles_blood_size_min, cl_particles_blood_size_max, and cl_particles_bloo...
lordhavoc [Tue, 12 Mar 2002 16:57:26 +0000 (16:57 +0000)]
added cl_particles_blood_size_min, cl_particles_blood_size_max, and cl_particles_blood_alpha cvars
changed trails back to quake-style (spawn over distance, not over time)
pt_fade now takes a fade rate (in p->time2)
many tweaks to particle effets
loading screens work correctly now
cleaned up backend code a bit, now does not freak out if a texture upload occurs during rendering
added r_quickmodels (default: on) which makes single-pass models (the vast majority of models) store vertex data directly into the backend arrays (using R_Mesh_Draw_GetBuffer)
model vertex transforms are now applied *after* lighting, this avoids transforming the normals, and prepares for someday adding transforms to the backend
fixed view blend in gl_rmain.c to work correctly with fov values above 90
moved image resampling and mipmapping from gl_textures.c to image.c
now updates screen twice while connecting to a server (so it displays the 'trying...' messages)
improved directional shading of explosions
disabled r_lightmodelhardness since the default was nearly 1.0 anyway, 1.0 is a special quick case
R_LightModel now tints the model and can accept vertices/normals in either model or world coordinates (previously required world coordinates)

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

18 years agocheck for empty submodels (lacrima.bsp for example)
lordhavoc [Sun, 10 Mar 2002 05:04:22 +0000 (05:04 +0000)]
check for empty submodels (lacrima.bsp for example)

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

18 years agoslowed down explosion so it lasts about as long as the light flash
lordhavoc [Mon, 4 Mar 2002 11:10:53 +0000 (11:10 +0000)]
slowed down explosion so it lasts about as long as the light flash

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

18 years agogreatly improved movetype bounce stopping check to consider the angle of the surface
lordhavoc [Mon, 4 Mar 2002 11:09:40 +0000 (11:09 +0000)]
greatly improved movetype bounce stopping check to consider the angle of the surface

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

18 years agodon't send entities outside addressable origin range (+-32767)
lordhavoc [Mon, 4 Mar 2002 11:08:20 +0000 (11:08 +0000)]
don't send entities outside addressable origin range (+-32767)

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

18 years agofix for being stuck on a loading screen when it could not find the map (and any other...
lordhavoc [Fri, 1 Mar 2002 12:53:52 +0000 (12:53 +0000)]
fix for being stuck on a loading screen when it could not find the map (and any other such failures)

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

18 years agoadded Texture Combine option to menu
lordhavoc [Fri, 1 Mar 2002 12:52:43 +0000 (12:52 +0000)]
added Texture Combine option to menu

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

18 years agoreenabled loading plaques (and cleaned up that code a lot)
lordhavoc [Fri, 1 Mar 2002 12:27:33 +0000 (12:27 +0000)]
reenabled loading plaques (and cleaned up that code a lot)
moved screenshot/envmap code from gl_backend.c to cl_screen.c (except for the GL SCR_ScreenShot function of course)
cleaned up trailing whitespace in console.c
backend between-batch overhead is now pretty much non-existent (set up state at start of frame, keep it until end of 3D rendering)
default batch size is now 0 triangles (never batch)
index array is not offset for first mesh in batch (which might be the only mesh in the batch)
does not lock arrays until it tries to render the first mesh
moved GL_LockArray/GL_UnlockArray from gl_models.c to gl_backend.c
made GL calls in r_sky.c unnecessary (now uses R_Mesh_ClearDepth)
made every enum in GL_PrintError (used by CHECKGLERROR) optional, for consistency (not that any GL headers would lack most of them)
inlined MYgluPerspective
removed a few unnecessary GL calls in frame setup code
reformatted uses of CHECKGLERROR to be on the same line as the function they are checking (looks cleaner)
increased MAX_TEXTUREUNITS from 4 to 8 (not that there is any code trying to use more than 2 textures anyway)
calling R_RenderView with no worldmodel is no longer fatal (just returns)
R_Mesh_Clear renamed to R_Mesh_Start
R_Mesh_Finish added (ends 3D rendering)
cleaned up some cruft in screen.h
moved gldepthmin/max from vid_ files to gl_backend, and then commented it out anyway (not currently used)

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

18 years agochanged mingw makefile to by default not compile for any specific processor
lordhavoc [Fri, 1 Mar 2002 00:13:42 +0000 (00:13 +0000)]
changed mingw makefile to by default not compile for any specific processor

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

18 years agofixed fogging on models and opaque liquids (teleport/lava)
lordhavoc [Thu, 28 Feb 2002 10:36:58 +0000 (10:36 +0000)]
fixed fogging on models and opaque liquids (teleport/lava)

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

18 years agomade sprite interpolation optional with a #define (enabled currently, looks too bad...
lordhavoc [Thu, 28 Feb 2002 10:35:32 +0000 (10:35 +0000)]
made sprite interpolation optional with a #define (enabled currently, looks too bad ingame without it)

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

18 years agofixed some majorly messed up fixes to the angle clamping
lordhavoc [Thu, 28 Feb 2002 07:15:41 +0000 (07:15 +0000)]
fixed some majorly messed up fixes to the angle clamping

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

18 years agofixed some sloppyness in my earlier input merging
lordhavoc [Thu, 28 Feb 2002 06:43:22 +0000 (06:43 +0000)]
fixed some sloppyness in my earlier input merging

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

18 years agofix mingw warnings
lordhavoc [Thu, 28 Feb 2002 02:58:30 +0000 (02:58 +0000)]
fix mingw warnings

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

18 years agocleaned up mouse input system
lordhavoc [Thu, 28 Feb 2002 01:38:47 +0000 (01:38 +0000)]
cleaned up mouse input system
fixed a bug with svc_setangle on pitch (it was immediately getting clamped in some cases, which made it quite useless)

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

18 years agofixed warnings in mingw
lordhavoc [Wed, 27 Feb 2002 05:07:47 +0000 (05:07 +0000)]
fixed warnings in mingw

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

18 years agoremoved unneeded protocol
lordhavoc [Wed, 27 Feb 2002 05:06:45 +0000 (05:06 +0000)]
removed unneeded protocol

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

18 years agoadded glFlush call when done feeding geometry, to get a very nice speed boost, and...
lordhavoc [Wed, 27 Feb 2002 04:57:43 +0000 (04:57 +0000)]
added glFlush call when done feeding geometry, to get a very nice speed boost, and removed unnecessary glFinish (since VID_Finish does one itself)

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

18 years agodarkplaces now compiles in mingw
lordhavoc [Wed, 27 Feb 2002 04:00:45 +0000 (04:00 +0000)]
darkplaces now compiles in mingw

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

18 years agorenamed byte to qbyte throughout engine to eliminate a mingw conflict
lordhavoc [Wed, 27 Feb 2002 03:58:07 +0000 (03:58 +0000)]
renamed byte to qbyte throughout engine to eliminate a mingw conflict

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

18 years agohopeful fix for flymove !trace.ent error
lordhavoc [Tue, 26 Feb 2002 23:20:50 +0000 (23:20 +0000)]
hopeful fix for flymove !trace.ent error

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

18 years agoremoved a few CheckSentinelsGlobal calls to get a loading speedup
lordhavoc [Mon, 25 Feb 2002 13:46:26 +0000 (13:46 +0000)]
removed a few CheckSentinelsGlobal calls to get a loading speedup

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

18 years agoremoved gl_mesh_merge feature due to unknown buggyness
lordhavoc [Mon, 25 Feb 2002 12:58:23 +0000 (12:58 +0000)]
removed gl_mesh_merge feature due to unknown buggyness

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

18 years agocleaned up backend code a bit more, added R_Mesh_Draw_GetBuffer (untested - returns...
lordhavoc [Mon, 25 Feb 2002 12:52:56 +0000 (12:52 +0000)]
cleaned up backend code a bit more, added R_Mesh_Draw_GetBuffer (untested - returns addresses in geometry buffers to fill in, to save memcpy on singlepass objects), rewrote Q2 model loading (now Q2 models are the same as Q1 models after loading), removed Q2 model renderer (and good riddence!), changed aliasvert array from 3 float to 4 float alignment to make copies faster

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

18 years agoadded in_pitch_min and in_pitch_max cvars to limit pitch (default: -90 to +90)
lordhavoc [Mon, 25 Feb 2002 08:31:17 +0000 (08:31 +0000)]
added in_pitch_min and in_pitch_max cvars to limit pitch (default: -90 to +90)

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

18 years agoclean up
lordhavoc [Mon, 25 Feb 2002 07:14:21 +0000 (07:14 +0000)]
clean up

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

18 years agoremoved mergesky code
lordhavoc [Mon, 25 Feb 2002 03:47:56 +0000 (03:47 +0000)]
removed mergesky code

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

18 years agoremoved r_mergesky
lordhavoc [Mon, 25 Feb 2002 03:45:00 +0000 (03:45 +0000)]
removed r_mergesky

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

18 years agoremoved gl_viewmodeldepthhack
lordhavoc [Mon, 25 Feb 2002 02:06:58 +0000 (02:06 +0000)]
removed gl_viewmodeldepthhack
fixed gl_mesh_merge bug (which was causing bizarre glitchs)
added mesh index validation when DEBUGGL is enabled

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

18 years agoimproved internal texture management error messages
lordhavoc [Sun, 24 Feb 2002 23:48:19 +0000 (23:48 +0000)]
improved internal texture management error messages

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

18 years agoForgot to commit removal of DrawDecal
lordhavoc [Sun, 24 Feb 2002 23:40:11 +0000 (23:40 +0000)]
Forgot to commit removal of DrawDecal

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

18 years agorestructured transparent mesh processing to do conversion from straight index list...
lordhavoc [Sun, 24 Feb 2002 07:22:42 +0000 (07:22 +0000)]
restructured transparent mesh processing to do conversion from straight index list to transtris during AddTransparent

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

18 years agocleaned up lots of unused code, restructured where certain operations are done (index...
lordhavoc [Sun, 24 Feb 2002 05:06:26 +0000 (05:06 +0000)]
cleaned up lots of unused code, restructured where certain operations are done (index lists are now relative to mesh->firstvert until R_Mesh_Render, for instance)
working toward major speed gains by avoiding geometry copying

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

18 years agocleanup of float/byte colors, now colors are always floats until R_Mesh_Render conver...
lordhavoc [Sat, 23 Feb 2002 22:48:03 +0000 (22:48 +0000)]
cleanup of float/byte colors, now colors are always floats until R_Mesh_Render converts them to bytes before use

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

18 years agofix for explosions sometimes not being freed at very high framerates
lordhavoc [Sat, 23 Feb 2002 22:00:46 +0000 (22:00 +0000)]
fix for explosions sometimes not being freed at very high framerates

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

18 years agoCRITICAL fix to checkextension function, it absolutely did not work until this fix.
lordhavoc [Sat, 23 Feb 2002 10:50:01 +0000 (10:50 +0000)]
CRITICAL fix to checkextension function, it absolutely did not work until this fix.

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

18 years agomajor cleanup to pusher and SV_Move code, major fixes to pusher code (everything...
lordhavoc [Sat, 23 Feb 2002 09:35:29 +0000 (09:35 +0000)]
major cleanup to pusher and SV_Move code, major fixes to pusher code (everything should work right now)

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

18 years agowhitespace
lordhavoc [Sat, 23 Feb 2002 09:32:50 +0000 (09:32 +0000)]

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

18 years agoimproved client number check to prevent potential crashs
lordhavoc [Sat, 23 Feb 2002 09:31:47 +0000 (09:31 +0000)]
improved client number check to prevent potential crashs

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

18 years agoremoved -zone mention from SZ_GetSpace overflow error
lordhavoc [Sat, 23 Feb 2002 09:30:15 +0000 (09:30 +0000)]
removed -zone mention from SZ_GetSpace overflow error

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

18 years agofixed bugs with explosion intensity shading according to view direction
lordhavoc [Fri, 22 Feb 2002 10:41:18 +0000 (10:41 +0000)]
fixed bugs with explosion intensity shading according to view direction

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

18 years agoModified 3 casts to get rid of a few warnings in MSVC6.
molivier [Wed, 20 Feb 2002 08:59:38 +0000 (08:59 +0000)]
Modified 3 casts to get rid of a few warnings in MSVC6.

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

18 years agochanged clean to delete *.o
lordhavoc [Wed, 20 Feb 2002 08:08:01 +0000 (08:08 +0000)]
changed clean to delete *.o

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

18 years agoadded viewzoom extension to QC and client (smooth sniper zooming, with sensitivity...
lordhavoc [Tue, 19 Feb 2002 10:56:54 +0000 (10:56 +0000)]
added viewzoom extension to QC and client (smooth sniper zooming, with sensitivity scaling)
protocol should be able to masq now (not a perfect fix like net_chan, but a fix for most people - I hope) - server waits to send serverinfo until first reply from client (any clc_ message will do), client spams clc_nop every 3 seconds until it gets serverinfo (FIXME: maybe only once would do?)
upgraded aiming angles sent from client to floats in DPPROTOCOL_VERSION2 mode
updated cl_shownet 2 svc name list in cl_parse.c (it was quite outdated)

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

18 years agoUpdated DSP file
molivier [Mon, 18 Feb 2002 10:49:31 +0000 (10:49 +0000)]
Updated DSP file

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

18 years agonew entity protocol, GREATLY improved over quake, massive net traffic reduction
lordhavoc [Mon, 18 Feb 2002 06:35:09 +0000 (06:35 +0000)]
new entity protocol, GREATLY improved over quake, massive net traffic reduction

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

18 years agofixed dedicated erroring on startup
lordhavoc [Mon, 18 Feb 2002 04:57:58 +0000 (04:57 +0000)]
fixed dedicated erroring on startup

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

18 years agonew entity protocol nearly complete, but still unused
lordhavoc [Sun, 17 Feb 2002 20:56:00 +0000 (20:56 +0000)]
new entity protocol nearly complete, but still unused

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

18 years agochanged bgmvolume/volume to always be registered, sliders for them always work (even...
lordhavoc [Fri, 15 Feb 2002 23:50:36 +0000 (23:50 +0000)]
changed bgmvolume/volume to always be registered, sliders for them always work (even with -nosound), but the items are displayed ghosted if -nosound or -nocdaudio is used
changed all Cvar_SetValue calls to Cvar_SetValueQuick

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

18 years agoremoved (unused) quake endscreen text
lordhavoc [Fri, 15 Feb 2002 23:21:38 +0000 (23:21 +0000)]
removed (unused) quake endscreen text

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

18 years agoreduced view warping when underwater
lordhavoc [Fri, 15 Feb 2002 23:16:06 +0000 (23:16 +0000)]
reduced view warping when underwater

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

18 years agodisable sliders for volume and vgmvolume (CD volume) when they do not exist
lordhavoc [Fri, 15 Feb 2002 23:15:20 +0000 (23:15 +0000)]
disable sliders for volume and vgmvolume (CD volume) when they do not exist

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

18 years agomoved a lot of 2D/screen stuff out of gl_screen.c into cl_screen.c
lordhavoc [Fri, 15 Feb 2002 22:28:08 +0000 (22:28 +0000)]
moved a lot of 2D/screen stuff out of gl_screen.c into cl_screen.c
moved remainder of gl_screen.c into gl_backend.c
removed gl_screen.c
inlined GL_BrightenScreen in gl_draw.c
moved a lot of GL stuff out of gl_rmain.c into gl_backend.c
converted polyblend to R_Mesh based
replaced lighthalf/gl_lightmode with v_overbrightbits
renamed contrast to brightness, and brightness to contrast (to match monitor controls)
merged hardware and software brightness/contrast/gamma into v_contrast, v_brightness, v_gamma, etc, switchable using v_hwgamma (automatically forced off if hardware gamma support is unavailable)
added ghostable menu items (unavailable gamma, for example)
rearranged options menu
2D resolution slider added (from 320x240 to full resolution)
fixed misuse of strncmp for bindings menu (thanks Elric)
adjustable crosshair size
renamed GL_BeginRendering to VID_GetWindowSize
renamed GL_EndRendering to VID_Finish
made screenshot and envmap share one function for grabbing images
moved underwater warping into cl_screen code
starting work on new entity protocol (not hooked up yet)

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

18 years agoparticle tweaks
lordhavoc [Fri, 15 Feb 2002 21:40:24 +0000 (21:40 +0000)]
particle tweaks

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

18 years agodouble precision RecursiveHullCheck
lordhavoc [Fri, 15 Feb 2002 21:33:31 +0000 (21:33 +0000)]
double precision RecursiveHullCheck

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