]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

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