18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

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