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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

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

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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 years agomade smoke/blood texture a little brighter
lordhavoc [Fri, 15 Feb 2002 21:29:45 +0000 (21:29 +0000)]
made smoke/blood texture a little brighter

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

22 years agovalidate more when loading zymotic models, also reverse triangles so they don't rende...
lordhavoc [Fri, 15 Feb 2002 21:28:09 +0000 (21:28 +0000)]
validate more when loading zymotic models, also reverse triangles so they don't render inside out (FIXME: fix this in the converter)

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

22 years agomade corona texture brighter, and rendering of it darker, fixes 'white' coronas aroun...
lordhavoc [Fri, 15 Feb 2002 21:27:00 +0000 (21:27 +0000)]
made corona texture brighter, and rendering of it darker, fixes 'white' coronas around lava balls (they needed more overbright)

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

22 years agodouble precision RecursiveHullCheck
lordhavoc [Fri, 15 Feb 2002 21:25:43 +0000 (21:25 +0000)]
double precision RecursiveHullCheck

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

22 years agocleaned up zym cruft from debugging
lordhavoc [Fri, 15 Feb 2002 21:21:31 +0000 (21:21 +0000)]
cleaned up zym cruft from debugging

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

22 years agoadded Cvar_SetQuick and Cvar_SetValueQuick (both take a cvar_t * instead of a name)
lordhavoc [Fri, 15 Feb 2002 21:20:12 +0000 (21:20 +0000)]
added Cvar_SetQuick and Cvar_SetValueQuick (both take a cvar_t * instead of a name)

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

22 years agofixed rotating+moving pushers (teleport ball in end.bsp), cleaned up code a lot
lordhavoc [Fri, 15 Feb 2002 21:19:04 +0000 (21:19 +0000)]
fixed rotating+moving pushers (teleport ball in end.bsp), cleaned up code a lot
double precision RecursiveHullCheck

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

22 years agofixed zymotic model transforms (lots of cruft leftover that I will clean up soon)
lordhavoc [Thu, 14 Feb 2002 00:43:48 +0000 (00:43 +0000)]
fixed zymotic model transforms (lots of cruft leftover that I will clean up soon)

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

22 years agoRemove pointless and wasteful variable assignment
eviltypeguy [Thu, 7 Feb 2002 01:18:22 +0000 (01:18 +0000)]
Remove pointless and wasteful variable assignment

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

22 years agocheck if model is NULL when doing trace checking
lordhavoc [Tue, 5 Feb 2002 15:22:07 +0000 (15:22 +0000)]
check if model is NULL when doing trace checking

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

22 years agocleaned up entity culling in server code, implemented new option - sv_cullentities_tr...
lordhavoc [Tue, 5 Feb 2002 03:08:32 +0000 (03:08 +0000)]
cleaned up entity culling in server code, implemented new option - sv_cullentities_trace - traces a line from eye to random locations in the model box, if a trace succeeds it marks the entity visibility timeout for 1 second in the future, and if it fails and the timeout has expired by then, it culls the entity.  this method works great for most cases, and is far more aggressive (and faster) than pvs culling

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

22 years agoUpdated DSP file. Fixed a bunch of warnings with MSVC6
molivier [Mon, 4 Feb 2002 10:36:23 +0000 (10:36 +0000)]
Updated DSP file. Fixed a bunch of warnings with MSVC6

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

22 years agofixed numerous bugs in SV_Trace_Toss
lordhavoc [Sun, 3 Feb 2002 16:51:30 +0000 (16:51 +0000)]
fixed numerous bugs in SV_Trace_Toss

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

22 years agoremoved steporigin etc, they aren't used anymore
lordhavoc [Sun, 3 Feb 2002 16:50:42 +0000 (16:50 +0000)]
removed steporigin etc, they aren't used anymore

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

22 years agoremoved decals
lordhavoc [Sun, 3 Feb 2002 11:34:53 +0000 (11:34 +0000)]
removed decals
fixed viewmodel disappearing with masked sky (skybox or skyquality 2)
removed flare particle from rockets (might add it back later)

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

22 years agorearranged r_speeds report a bit, and split up reporting of meshtris into normal...
lordhavoc [Sun, 3 Feb 2002 10:40:46 +0000 (10:40 +0000)]
rearranged r_speeds report a bit, and split up reporting of meshtris into normal and transparent categories, also displays number of meshs of each type
made byte color array format work (byte format is very slightly faster than float)
disabled float color array format to save some memory
added gl_mesh_sorttransbymesh cvar (default: on) to get a performance gain in mingled mesh conditions (by never mingling triangles of different meshs), this mode can batch render transparent triangles too (unlike the other two modes)
increased default maxtriangles to 8192

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

22 years agochanged back to profiling, with optimizations, and back to alsa 0.5 sound
lordhavoc [Sun, 3 Feb 2002 10:34:02 +0000 (10:34 +0000)]
changed back to profiling, with optimizations, and back to alsa 0.5 sound

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

22 years agofixed monster interpolation in normal quake, which makes dpcrush not lerped unfortunately
lordhavoc [Sun, 3 Feb 2002 10:32:34 +0000 (10:32 +0000)]
fixed monster interpolation in normal quake, which makes dpcrush not lerped unfortunately

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

22 years agopassing 0 time to CL_AllocDlight now gives a die time of 0, not cl.time + 0
lordhavoc [Sun, 3 Feb 2002 10:30:25 +0000 (10:30 +0000)]
passing 0 time to CL_AllocDlight now gives a die time of 0, not cl.time + 0

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

22 years agomuzzleflashs do not keep stacking up on consecutive frames now
lordhavoc [Sun, 3 Feb 2002 10:29:16 +0000 (10:29 +0000)]
muzzleflashs do not keep stacking up on consecutive frames now

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

22 years agomoved viewmodel rendering to avoid polluting the main model rendering time
lordhavoc [Sun, 3 Feb 2002 10:27:54 +0000 (10:27 +0000)]
moved viewmodel rendering to avoid polluting the main model rendering time

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

22 years agoremoved some old commented out code
lordhavoc [Sun, 3 Feb 2002 10:26:48 +0000 (10:26 +0000)]
removed some old commented out code

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

22 years agolights should not decay now when console is down (pausing game), and cleaned up sound...
lordhavoc [Sun, 3 Feb 2002 10:25:45 +0000 (10:25 +0000)]
lights should not decay now when console is down (pausing game), and cleaned up sound update call to not use renderer variables

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

22 years agochanged explosion color calculations, they look much better now
lordhavoc [Sun, 3 Feb 2002 10:24:02 +0000 (10:24 +0000)]
changed explosion color calculations, they look much better now

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

22 years agomade coronas small and intense, much more noticable now
lordhavoc [Sun, 3 Feb 2002 10:23:09 +0000 (10:23 +0000)]
made coronas small and intense, much more noticable now

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

22 years agocoronas now scale with the light radius
lordhavoc [Sat, 2 Feb 2002 18:58:01 +0000 (18:58 +0000)]
coronas now scale with the light radius

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

22 years agocgame.c:60: warning: implicit declaration of function `memset', fixed
knghtbrd [Fri, 1 Feb 2002 15:28:42 +0000 (15:28 +0000)]
cgame.c:60: warning: implicit declaration of function `memset', fixed

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

22 years agocgamevm.h:11:6: no newline at end of file, fixed.
knghtbrd [Fri, 1 Feb 2002 15:22:46 +0000 (15:22 +0000)]
cgamevm.h:11:6: no newline at end of file, fixed.

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

22 years agoadded gib shower effect, they leave no trails but make blood marks where they hit...
lordhavoc [Fri, 1 Feb 2002 11:40:21 +0000 (11:40 +0000)]
added gib shower effect, they leave no trails but make blood marks where they hit...  (note: this is still highly experimental and cgame might be removed at some point, and no mods use this anyway)

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

22 years agoadded CGVM_Stain function
lordhavoc [Fri, 1 Feb 2002 11:37:41 +0000 (11:37 +0000)]
added CGVM_Stain function

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

22 years agoremoved unnecessary if in setting up divide table for dlighting
lordhavoc [Fri, 1 Feb 2002 09:22:28 +0000 (09:22 +0000)]
removed unnecessary if in setting up divide table for dlighting

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

22 years agoRemoved warnings in MSVC6. Updated the DSP file.
molivier [Fri, 1 Feb 2002 07:20:26 +0000 (07:20 +0000)]
Removed warnings in MSVC6. Updated the DSP file.

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

22 years agogot rid of buildnumber.c and buildnum program, now uses builddate.c (touched each...
lordhavoc [Thu, 31 Jan 2002 16:41:59 +0000 (16:41 +0000)]
got rid of buildnumber.c and buildnum program, now uses builddate.c (touched each time it is built to keep the date changing)
clientside TraceLine can now hit brush model entities (TraceLine_ScanForBModels updates list of entities to check)
added *highly experimental* clientside gamecode (currently embedded in the engine, just trying things out) which currently doesn't do anything really
made CL_RelinkEntities only called when the client is connected and there is a world model
added fractalnoisequick (variant of fractalnoise that does not allocate/free a temporary buffer, and to achieve this does not use the range remapping)
added stainmap effects (stained lightmaps), which will probably soon replace decals
spark showers now pay attention to the velocity in the TE_SPARKSHOWER packet (if the mod uses this), bullet impacts still have no velocity
added TE_PLASMABURN (combination of TE_SMALLFLASH and a stain on the walls)
added svc_cgame (DO NOT USE THIS, EXPERIMENTAL, but so is the cgame code itself)
Cmd_TokenizeString now uses a fixed size buffer instead of many little allocations (speedup by not having Z_Malloc/Z_Free happening constantly)
cvar code tries very hard to avoid reallocating string now
va() function now uses a cycling set of 8 string buffers to try to avoid conflicts
console logging no longer uses va()
reduced default mesh buffer size from 21760 triangles to 4096 (transparent triangles are costly enough it's not a good idea to exceed this anyway)
texture management code now uses 3 memory pools to give better memory reports according to type of data
R_UpdateTexture has better memory behavior on non-procedural textures now (replaces inputtexels if it has not been uploaded yet, otherwise just uploads it directly)
added -developer commandline option (which is rather hacky) to force developer on for entire startup process, to get logging before the configs are read
decals stick to brush model entities now
stains stick to embedded bmodels (ones that are part of the map, not ones instanced from outside like ammo boxes)
skingroups above 0 are not automatically precached now (if you have a lot of mods installed in your id1 directory, they tend to not use all the skins, which is wasteful)
starting a new game (from the singleplayer menu) forces deathmatch and coop to 0 now
lightmaps are precached again (can't remember why I ever disabled this)
changed VectorSet's parameter order to be more consistent with other vector ops
removed a duplicate registration of the vid_mouse cvar (in vid_glx.c)

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

22 years agoqsockets are now dynamically allocated/freed, this drops memory use by about 2mb
lordhavoc [Thu, 31 Jan 2002 12:16:59 +0000 (12:16 +0000)]
qsockets are now dynamically allocated/freed, this drops memory use by about 2mb

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

22 years agoFix for memset glibc bug crash
eviltypeguy [Wed, 30 Jan 2002 06:35:22 +0000 (06:35 +0000)]
Fix for memset glibc bug crash

(why would it read from PROT_WRITE only memory? silly thing...)

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

22 years agochanged free(dat) to Mem_Free(dat) (EWWW I HAD A FREE STILL??)
lordhavoc [Tue, 29 Jan 2002 07:10:28 +0000 (07:10 +0000)]
changed free(dat) to Mem_Free(dat) (EWWW I HAD A FREE STILL??)

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

22 years agoreplaced a bunch of one-line 3-statement while loops, with nicer looking one-line...
lordhavoc [Mon, 28 Jan 2002 09:09:03 +0000 (09:09 +0000)]
replaced a bunch of one-line 3-statement while loops, with nicer looking one-line for loops

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

22 years agofix problem with dynamic lights on lightmaps wider than 18 pixels (oops!)
lordhavoc [Sun, 27 Jan 2002 08:33:58 +0000 (08:33 +0000)]
fix problem with dynamic lights on lightmaps wider than 18 pixels (oops!)

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

22 years agohalved corona size
lordhavoc [Sun, 27 Jan 2002 07:58:52 +0000 (07:58 +0000)]
halved corona size

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

22 years agoadded coronas (glow) to dynamic lights
lordhavoc [Sun, 27 Jan 2002 00:16:17 +0000 (00:16 +0000)]
added coronas (glow) to dynamic lights

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

22 years agoadded gl_mesh_dupetransverts cvar (found it is a slowdown though)
lordhavoc [Sun, 27 Jan 2002 00:14:21 +0000 (00:14 +0000)]
added gl_mesh_dupetransverts cvar (found it is a slowdown though)
moved meshfarclip checking from R_Mesh_Draw to R_Mesh_Render

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

22 years agoadditive water
lordhavoc [Sat, 26 Jan 2002 23:36:03 +0000 (23:36 +0000)]
additive water
enabled transparency on world polygons (not a good idea in existing quake maps, but maybe someday...)

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

22 years agomade most particles additive (speedup in fog)
lordhavoc [Sat, 26 Jan 2002 23:33:42 +0000 (23:33 +0000)]
made most particles additive (speedup in fog)

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

22 years agomade explosions additive, softened edges (hacky but looks good enough), cleaned up...
lordhavoc [Sat, 26 Jan 2002 23:30:50 +0000 (23:30 +0000)]
made explosions additive, softened edges (hacky but looks good enough), cleaned up some of the physics

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

22 years agochanged most #define macros to use (,,,) format instead of {;;;} so they will gobble...
lordhavoc [Sat, 26 Jan 2002 23:27:07 +0000 (23:27 +0000)]
changed most #define macros to use (,,,) format instead of {;;;} so they will gobble a ; like a normal function

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

22 years agogot rid of cl_glowinglightning cvar, lightning no longer glows
lordhavoc [Sat, 26 Jan 2002 23:25:09 +0000 (23:25 +0000)]
got rid of cl_glowinglightning cvar, lightning no longer glows

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

22 years agomade "entities" command show scale and alpha
lordhavoc [Sat, 26 Jan 2002 23:24:13 +0000 (23:24 +0000)]
made "entities" command show scale and alpha
made rocket glow a little brighter (25%)

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

22 years agorenamed R_GetFragmentLocation to R_FragmentLocation
lordhavoc [Sat, 26 Jan 2002 23:18:22 +0000 (23:18 +0000)]
renamed R_GetFragmentLocation to R_FragmentLocation

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

22 years agodue to Mercury's insistance you can disable bobbing by using cl_bobcycle == 0 as...
lordhavoc [Sat, 26 Jan 2002 02:20:13 +0000 (02:20 +0000)]
due to Mercury's insistance you can disable bobbing by using cl_bobcycle == 0 as well as cl_bob == 0 (cl_bobcycle == 0 causes NaN bob)

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

22 years agoUpdated MSVC6 project files. Vanilla MSVC6 doesn't know the GL_TABLE_TOO_LARGE error...
molivier [Fri, 25 Jan 2002 12:33:35 +0000 (12:33 +0000)]
Updated MSVC6 project files. Vanilla MSVC6 doesn't know the GL_TABLE_TOO_LARGE error... Strange.

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

22 years agoadded back intermission overlays (oops)
lordhavoc [Fri, 25 Jan 2002 08:31:35 +0000 (08:31 +0000)]
added back intermission overlays (oops)

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

22 years agoadded cl_screen.c/h (eventually most 2D stuff should be moved here)
lordhavoc [Fri, 25 Jan 2002 00:45:55 +0000 (00:45 +0000)]
added cl_screen.c/h (eventually most 2D stuff should be moved here)
removed view.h (merged into client.h)
cleaned up the animation interpolation code (CL_LerpUpdate) a bit more
increased interpolation 'teleport' tolerance from 400 units to 1000 units per frame
changed calls to Mod_ForName to not use checkdisk (except for viewthing model changes and map changes)
added viewent to r_refdef
moved v_blend to r_refdef
all 2D art now goes through Draw_CachePic
cachepic replaced qpic (in all non-wad code)
moved all engine generated pics (mousepointer, crosshairs) to gl_draw.c (they are called by Draw_CachePic)
cachepic now uses a hash lookup instead of just a string search
added drawqueue to r_refdef
all 2D art now goes through DrawQ_ functions (drawqueue)
DrawQ_String now stretchs the character texture a tiny bit, and always uses default filtering
cleaned out some old cruft in console drawing code
fixed some silly bugs in showfps
made showfps display use only 4 characters, and made the text larger, and moved it down a little
moved showfps from gl_screen.c to sbar.c
moved Draw_ConsoleBackground to console.c
removed drawinput parameter from Con_DrawConsole (it was always true)
c_alias_polys now counts all meshs rendered (a model may be rendered multiple times), not just the total number of triangles in the model, much more accurate
r_speeds2 renamed to r_speeds
disabled all Mem_CheckSentinelsGlobal calls during gameplay (they were wasting time)
r_speeds now displays time spent throughout SCR_UpdateScreen code, not just R_RenderView
frame is now rendered in 'finish begin render' order instead of 'begin render finish' order in SCR_Updatescreen - not sure if this is a speedup or not
BLOCK_SIZE in gl_textures.c renamed to block_size and now adjustable (r_max_scrapsize cvar), r_restart for changes to take effect, 1024 (default) or less recommended
menu, r_speeds, and showfps now have a darkened (50% black) background beneath them to improve readability
menu is now centered on the screen
menu text is now white
translatepic code now updates texture rather than constantly cache mismatching
cleaned up cshift code
cleaned up viewent setup code
W_GetLumpinfo failing to find a lump is no longer fatal
added R_Mesh_DrawDecal for the highly specialized task of adding decals/particles/sprites to the mesh system (trying to get a minor speed gain)
decals, particles, and sprites now use R_Mesh_DrawDecal

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

22 years agomoved CHECKGLERROR to detect errors *after* rather than before uploading a texture
lordhavoc [Tue, 22 Jan 2002 07:01:30 +0000 (07:01 +0000)]
moved CHECKGLERROR to detect errors *after* rather than before uploading a texture

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

22 years agomade lights half as bright
lordhavoc [Tue, 22 Jan 2002 06:58:49 +0000 (06:58 +0000)]
made lights half as bright

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

22 years agomake dedicated work again
lordhavoc [Tue, 22 Jan 2002 05:36:02 +0000 (05:36 +0000)]
make dedicated work again

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

22 years agofake answers for R_GetFragmentLocation when running dedicated
lordhavoc [Tue, 22 Jan 2002 05:34:21 +0000 (05:34 +0000)]
fake answers for R_GetFragmentLocation when running dedicated

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

22 years agomodels don't allocate a texture pool when running dedicated
lordhavoc [Tue, 22 Jan 2002 05:33:30 +0000 (05:33 +0000)]
models don't allocate a texture pool when running dedicated

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

22 years agomore thorough checking of 'this should never happen' cases
lordhavoc [Tue, 22 Jan 2002 05:32:02 +0000 (05:32 +0000)]
more thorough checking of 'this should never happen' cases

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

22 years agoflush unused models when running dedicated server
lordhavoc [Tue, 22 Jan 2002 05:31:25 +0000 (05:31 +0000)]
flush unused models when running dedicated server

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

22 years agofixed 4 warnings in MSVC related to assigning -1000 to unsigned shorts
lordhavoc [Tue, 22 Jan 2002 04:46:52 +0000 (04:46 +0000)]
fixed 4 warnings in MSVC related to assigning -1000 to unsigned shorts

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