divverent/darkplaces.git
16 years agoadded an easteregg (v_psycho), thanks to Zinx Verituse and Ben Winslow for the origin...
havoc [Sun, 7 Dec 2003 13:01:28 +0000 (13:01 +0000)]
added an easteregg (v_psycho), thanks to Zinx Verituse and Ben Winslow for the original code for this

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

16 years agotodo item done: now ignores modelflags on view entities and tag attached entities...
havoc [Sun, 7 Dec 2003 11:40:03 +0000 (11:40 +0000)]
todo item done: now ignores modelflags on view entities and tag attached entities, so there aren't spinning view models and such anymore in Zerstorer and Malice

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

16 years agotodo item done: turning keys are no longer affected by slowmo
havoc [Sun, 7 Dec 2003 11:13:25 +0000 (11:13 +0000)]
todo item done: turning keys are no longer affected by slowmo

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

16 years agotodo item done: fixed con_notify cvar (limits number of displayed notify lines)
havoc [Sun, 7 Dec 2003 11:08:32 +0000 (11:08 +0000)]
todo item done: fixed con_notify cvar (limits number of displayed notify lines)

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

16 years agotodo item done: added cl_particles_blood_bloodhack cvar so now id1 blood particles...
havoc [Sun, 7 Dec 2003 10:57:29 +0000 (10:57 +0000)]
todo item done: added cl_particles_blood_bloodhack cvar so now id1 blood particles use the blood effect, and added this to effects options menu as Force New Blood Effect

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

16 years ago*** empty log message ***
havoc [Sun, 7 Dec 2003 10:28:54 +0000 (10:28 +0000)]
*** empty log message ***

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

16 years agoadded scr_screenshot_jpeg_quality cvar (and added it to the menu)
havoc [Sun, 7 Dec 2003 10:26:20 +0000 (10:26 +0000)]
added scr_screenshot_jpeg_quality cvar (and added it to the menu)

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

16 years agotodo item done: added "saveconfig" console command
havoc [Sun, 7 Dec 2003 09:56:51 +0000 (09:56 +0000)]
todo item done: added "saveconfig" console command

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

16 years agoadded DP_LITSUPPORT extension
havoc [Sun, 7 Dec 2003 09:48:29 +0000 (09:48 +0000)]
added DP_LITSUPPORT extension

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

16 years agotodo item done: GAME_FNIGGIUM minimum resolution of 640x480
havoc [Sun, 7 Dec 2003 09:39:49 +0000 (09:39 +0000)]
todo item done: GAME_FNIGGIUM minimum resolution of 640x480

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

16 years agoadded r_wateralpha to effects menu
havoc [Sun, 7 Dec 2003 09:24:41 +0000 (09:24 +0000)]
added r_wateralpha to effects menu

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

16 years agoremoved vid_allowhwgamma variable because vid_activewindow is a better thing to check
havoc [Sun, 7 Dec 2003 08:35:48 +0000 (08:35 +0000)]
removed vid_allowhwgamma variable because vid_activewindow is a better thing to check

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

16 years ago*** empty log message ***
havoc [Sun, 7 Dec 2003 08:33:54 +0000 (08:33 +0000)]
*** empty log message ***

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

16 years agono longer throttles back framerate when console is active, now only when app is not...
havoc [Sun, 7 Dec 2003 08:24:23 +0000 (08:24 +0000)]
no longer throttles back framerate when console is active, now only when app is not the focus

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

16 years agofixed behavior of vid_activewindow and vid_allowhwgamma in x11 event code, now behave...
havoc [Sun, 7 Dec 2003 08:21:54 +0000 (08:21 +0000)]
fixed behavior of vid_activewindow and vid_allowhwgamma in x11 event code, now behaves more like the windows version (gamma is now based on whether the window is the focus, not related to mouse entering/leaving anymore)

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

16 years agoadded CSHIFT_VCSHIFT blend so v_cshift now affects underwater blending (as well as...
havoc [Sun, 7 Dec 2003 08:01:01 +0000 (08:01 +0000)]
added CSHIFT_VCSHIFT blend so v_cshift now affects underwater blending (as well as other liquids) for more consistent behavior, and disabled powerup blends in transfusion (at their request)

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

16 years agoeradicated SZ_Print, thanks to Fuh for pointing out the sheer evil of this function...
havoc [Thu, 4 Dec 2003 11:13:57 +0000 (11:13 +0000)]
eradicated SZ_Print, thanks to Fuh for pointing out the sheer evil of this function found in nq, qw and q2...  SZ_Print is a strcat onto a sizebuf - note that it could OVERWRITE THE SIZEBUF STRUCT if it is empty (but it was never empty where quake used it).

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

16 years agoremoved need for gfx/menuplyr.lmp (this code wasn't even used anymore, since the...
havoc [Thu, 4 Dec 2003 10:05:12 +0000 (10:05 +0000)]
removed need for gfx/menuplyr.lmp (this code wasn't even used anymore, since the menu loads it directly on demand and that is optional)

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

16 years agoconsole parsing now behaves like qwcl, thanks to Fuh for pointing out the problems...
havoc [Thu, 4 Dec 2003 09:47:38 +0000 (09:47 +0000)]
console parsing now behaves like qwcl, thanks to Fuh for pointing out the problems with the winquake COM_ParseToken (it treated : as a single character keyword, thus breaking connect commands involving a port, for example), so I added COM_ParseTokenConsole for the console parsing

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

16 years agofix a severe bug with 16bit modes (VID_InitMode in vid_glx.c was taking a stencil...
havoc [Wed, 3 Dec 2003 02:00:15 +0000 (02:00 +0000)]
fix a severe bug with 16bit modes (VID_InitMode in vid_glx.c was taking a stencil parameter which does not exist, and thus stencil was in general always on even in 16bit)

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

16 years agoadded a note about the Creative Technology Ltd patent (US Patent #6384822) on the...
havoc [Mon, 1 Dec 2003 00:17:32 +0000 (00:17 +0000)]
added a note about the Creative Technology Ltd patent (US Patent #6384822) on the Carmack's Reverse approach to stencil shadow volume rendering, and changed the rendering algorithm to further distance it from Creative's patent.

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

16 years agoThe menu isnt initialized for dedicated servers
black [Sun, 30 Nov 2003 18:33:26 +0000 (18:33 +0000)]
The menu isnt initialized for dedicated servers

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

16 years agonow uses q3bsp surfaceflags when possible instead of shaders (but the trans flag...
havoc [Sun, 30 Nov 2003 06:33:33 +0000 (06:33 +0000)]
now uses q3bsp surfaceflags when possible instead of shaders (but the trans flag still exists only in shader surfaceparms so they are still read for that)

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

16 years agoadded GAME_FNIGGIUM and GAME_SETHERAL
havoc [Sun, 30 Nov 2003 01:56:29 +0000 (01:56 +0000)]
added GAME_FNIGGIUM and GAME_SETHERAL

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

16 years agofix a little bug in the FS_Search code (it was checking the pak case sensitivity...
havoc [Sun, 30 Nov 2003 01:48:34 +0000 (01:48 +0000)]
fix a little bug in the FS_Search code (it was checking the pak case sensitivity flag even if it was looking at a directory listing)

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

16 years agonow parses q3 shaders for surfaceparms (this mainly fixes up the many falsely transpa...
havoc [Sun, 30 Nov 2003 01:14:47 +0000 (01:14 +0000)]
now parses q3 shaders for surfaceparms (this mainly fixes up the many falsely transparent walls in shader tricks, and also detects nodraw shaders properly)

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

16 years agoadded comment support to COM_ReadAndTokenizeLine
havoc [Sun, 30 Nov 2003 01:10:51 +0000 (01:10 +0000)]
added comment support to COM_ReadAndTokenizeLine

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

16 years agoadded dir and ls console commands (yes they are different), these search paks (althou...
havoc [Sat, 29 Nov 2003 05:32:06 +0000 (05:32 +0000)]
added dir and ls console commands (yes they are different), these search paks (although not very good at pattern matching), and FS_Search and FS_FreeSearch functions

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

16 years agoadded a quick hack for nodraw support in q3bsp (I hope this is right)
havoc [Sat, 29 Nov 2003 05:30:13 +0000 (05:30 +0000)]
added a quick hack for nodraw support in q3bsp (I hope this is right)

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

16 years agovid_hardwaregammasupported is now a read-only cvar
black [Wed, 19 Nov 2003 14:59:56 +0000 (14:59 +0000)]
vid_hardwaregammasupported is now a read-only cvar

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

16 years agoCvars can be read-only now.
black [Wed, 19 Nov 2003 13:56:38 +0000 (13:56 +0000)]
Cvars can be read-only now.

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

16 years agofixed oriented sprite problems (no longer uses entity angles for them) by rewriting...
havoc [Wed, 19 Nov 2003 10:07:39 +0000 (10:07 +0000)]
fixed oriented sprite problems (no longer uses entity angles for them) by rewriting the whole R_SpriteSetup function, it is now VERY optimized and more readable

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

16 years agoignore vid_restart commands in configs
havoc [Wed, 19 Nov 2003 08:50:19 +0000 (08:50 +0000)]
ignore vid_restart commands in configs

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

16 years agoClearAllStates cleared the key states twice in vid_wgl.c, and vid_glx.c didn't do...
molivier [Wed, 19 Nov 2003 07:50:53 +0000 (07:50 +0000)]
ClearAllStates cleared the key states twice in vid_wgl.c, and vid_glx.c didn't do that when he closes its window (which caused missed key strokes with vid_restart and the video options menu)

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

16 years agoUpdated MSVC6 DSP file
molivier [Wed, 19 Nov 2003 07:45:46 +0000 (07:45 +0000)]
Updated MSVC6 DSP file

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

16 years agofix an input bug that prevented function keys from working inside console
havoc [Tue, 18 Nov 2003 17:48:40 +0000 (17:48 +0000)]
fix an input bug that prevented function keys from working inside console

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

16 years agonow includes quake palette as a fallback if no gfx/palette.lmp is loaded
havoc [Mon, 17 Nov 2003 05:00:50 +0000 (05:00 +0000)]
now includes quake palette as a fallback if no gfx/palette.lmp is loaded

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

16 years ago*** empty log message ***
havoc [Sat, 15 Nov 2003 04:17:54 +0000 (04:17 +0000)]
*** empty log message ***

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

16 years ago*** empty log message ***
havoc [Sat, 15 Nov 2003 04:16:30 +0000 (04:16 +0000)]
*** empty log message ***

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

16 years agofixed flipped sound (stupid bug in S_Update call)
havoc [Sat, 15 Nov 2003 01:03:37 +0000 (01:03 +0000)]
fixed flipped sound (stupid bug in S_Update call)

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

16 years agor_refdef.vieworg and r_refdef.viewangles replaced by r_refdef.viewentitymatrix
havoc [Fri, 14 Nov 2003 14:02:56 +0000 (14:02 +0000)]
r_refdef.vieworg and r_refdef.viewangles replaced by r_refdef.viewentitymatrix
fixed intermission camera bug (now the right place and angles by copying the entity matrix directly to r_refdef)
fixed intermission listener bug (now the right place by copying the entity matrix to listener variables)
fixed envmap command saving (now reads the correct part of the screen according to GL's bottom to top coordinates, so this works again)
fixed envmap command rendering (it was not hiding view and exterior models)
fixed timerefresh command rendering (it was not properly setting up the view)
merged chase.c into view.c because it really didn't have any good reasons to be separate
renamed listener_forward to listener_viewforward, listener_up to listener_viewup, listener_origin to listener_vieworigin, and converted listener_right to listener_viewleft
renamed vpn to r_viewforward, vup to r_viewup, vright to r_viewright (deprecated, trying to use just r_viewleft but haven't finished converting things over to it yet), r_origin to r_vieworigin

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

16 years agoremoved double newlines (don't have a clue how this file got them)
havoc [Fri, 14 Nov 2003 13:55:44 +0000 (13:55 +0000)]
removed double newlines (don't have a clue how this file got them)

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

16 years agofix a couple signed/unsigned comparison warnings
havoc [Fri, 14 Nov 2003 13:46:28 +0000 (13:46 +0000)]
fix a couple signed/unsigned comparison warnings

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

16 years agodon't draw viewmodel during intermission
havoc [Fri, 14 Nov 2003 13:19:24 +0000 (13:19 +0000)]
don't draw viewmodel during intermission

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

16 years agoOptions menu has a width of 320, not 640
molivier [Wed, 12 Nov 2003 11:37:53 +0000 (11:37 +0000)]
Options menu has a width of 320, not 640

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

16 years agomake quake completable again (killtarget problem with double remove call, now just...
havoc [Wed, 12 Nov 2003 08:44:54 +0000 (08:44 +0000)]
make quake completable again (killtarget problem with double remove call, now just a developer warning instead of an error)

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

16 years agoAdded {0,0} to vid_resolutions and added the macro/constant VID_RES_COUNT
black [Tue, 11 Nov 2003 20:20:11 +0000 (20:20 +0000)]
Added {0,0} to vid_resolutions and added the macro/constant VID_RES_COUNT

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

16 years agoAdded 2 builtins.
black [Tue, 11 Nov 2003 20:18:37 +0000 (20:18 +0000)]
Added 2 builtins.

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

16 years agoq3bsp transparency support (note: makes maps that abuse alpha in shaders for special...
havoc [Tue, 11 Nov 2003 04:56:32 +0000 (04:56 +0000)]
q3bsp transparency support (note: makes maps that abuse alpha in shaders for special effects look quite weird)

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

16 years agoq1bsp lightmaps are now always rendered at 2x overbright like software quake and...
havoc [Tue, 11 Nov 2003 02:36:21 +0000 (02:36 +0000)]
q1bsp lightmaps are now always rendered at 2x overbright like software quake and q3bsp (this means all multitexture lightmapped wall methods now require combine)

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

16 years agonow limits animation lerp time to .1 second to fix a problem with framegroup models...
havoc [Mon, 10 Nov 2003 08:20:04 +0000 (08:20 +0000)]
now limits animation lerp time to .1 second to fix a problem with framegroup models changing frame (which they do infrequently) and interpolating the change really slowly

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

16 years agoadded Polygon_Divide_Double and Polygon_Divide_Float functions which take point array...
havoc [Sat, 8 Nov 2003 08:33:41 +0000 (08:33 +0000)]
added Polygon_Divide_Double and Polygon_Divide_Float functions which take point arrays and such instead of windings, for more flexibility

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

16 years agocheck for many invalid attempts to modify entities (like setmodel on world, or on...
havoc [Sat, 8 Nov 2003 03:16:11 +0000 (03:16 +0000)]
check for many invalid attempts to modify entities (like setmodel on world, or on a free entity)

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

16 years agoWhen exiting the color control menu, return to the options menu instead of the main...
molivier [Fri, 7 Nov 2003 08:13:43 +0000 (08:13 +0000)]
When exiting the color control menu, return to the options menu instead of the main menu

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

16 years agocall reset functions in init code (not necessary currently, as the compilers currentl...
havoc [Wed, 5 Nov 2003 08:18:54 +0000 (08:18 +0000)]
call reset functions in init code (not necessary currently, as the compilers currently being used for darkplaces clear uninitialized variables, but a good practice)

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

16 years agoimmense speedups to triangle neighbor building by using an edge hash table (this...
havoc [Wed, 5 Nov 2003 08:03:27 +0000 (08:03 +0000)]
immense speedups to triangle neighbor building by using an edge hash table (this sped up rtlight loading by 10x or more in some cases)

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

16 years agofixed r_restart/vid_restart bugs with skybox (now reloads skybox as it should) and...
havoc [Wed, 5 Nov 2003 08:00:34 +0000 (08:00 +0000)]
fixed r_restart/vid_restart bugs with skybox (now reloads skybox as it should) and cleaned up skybox loading/unloading (no more memory leaks when changing skybox during game)

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

16 years agoadded r_fullbright (and EF_FULLBRIGHT) support to q3bsp rendering
havoc [Wed, 5 Nov 2003 04:14:55 +0000 (04:14 +0000)]
added r_fullbright (and EF_FULLBRIGHT) support to q3bsp rendering

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

16 years agoadded r_ambient support to q3bsp rendering
havoc [Wed, 5 Nov 2003 04:10:10 +0000 (04:10 +0000)]
added r_ambient support to q3bsp rendering

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

16 years agoadded r_shadow_showtris
havoc [Wed, 5 Nov 2003 03:36:38 +0000 (03:36 +0000)]
added r_shadow_showtris
added gl_texture_anisotropy to menu
changed sv_cullentities_trace and _pvs defaults to 0 and 1 respectively (now uses pvs culling because trace culling was too slow in q3bsp)
r_shadow_realtime_world now works in q3bsp (using upgraded Mod_ShadowMesh functions to combine lighting meshes)
rewrote most of R_Q3BSP_DrawFace - now supports singletexture cards, r_shadow_realtime_world, and glow textures

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

16 years agoadded R_Mesh_Draw_ShowTris function which draws a triangle mesh as lines
havoc [Wed, 5 Nov 2003 03:34:24 +0000 (03:34 +0000)]
added R_Mesh_Draw_ShowTris function which draws a triangle mesh as lines

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

16 years agoAdded isfunction and changed callfunction so it works
black [Fri, 31 Oct 2003 19:24:12 +0000 (19:24 +0000)]
Added isfunction and changed callfunction so it works

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

16 years agoAdded 2(3) builtin functions.
black [Thu, 30 Oct 2003 12:49:30 +0000 (12:49 +0000)]
Added 2(3) builtin functions.
Changed the 2d mouse code, so that the relative coords are mapped into the console coord system (mouse speed is always the same in the menu qc).

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

16 years agoFixed a bug that caused some messages to not be logged to the disk (Con_Print calls...
black [Tue, 28 Oct 2003 22:29:30 +0000 (22:29 +0000)]
Fixed a bug that caused some messages to not be logged to the disk (Con_Print calls instead of Con_Printf).
Changed the comment of Con_Print, so it isnt misleading any more.
Fixed a bug so dp wont crash when VM_strzone/VM_strunzone is used.

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

16 years agoMoved some sound code in preparation of adding Ogg Vorbis support
molivier [Tue, 28 Oct 2003 11:17:36 +0000 (11:17 +0000)]
Moved some sound code in preparation of adding Ogg Vorbis support

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

16 years agoChanged the way the new vm is handling the unloading of programs - respectively clean...
black [Sun, 26 Oct 2003 21:54:59 +0000 (21:54 +0000)]
Changed the way the new vm is handling the unloading of programs - respectively cleaned PRVM_ResetProgs.
Moved the key_dest reset from MR_Restart to M_Shutdown/MP_Shutdown.

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

16 years agoAdded a new builin function (callfunction)
black [Sat, 25 Oct 2003 16:28:18 +0000 (16:28 +0000)]
Added a new builin function (callfunction)
Fixed my drawqueue clipping code - should work now

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

16 years agoFixed FS code so that unpacked files are handled normally when AKVERSION isn't defined
molivier [Fri, 24 Oct 2003 06:47:21 +0000 (06:47 +0000)]
Fixed FS code so that unpacked files are handled normally when AKVERSION isn't defined

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

16 years agoChanged prvm_ed_loadfromfile - it isnt really compatible with the old vm anymore...
black [Thu, 23 Oct 2003 19:47:08 +0000 (19:47 +0000)]
Changed prvm_ed_loadfromfile - it isnt really compatible with the old vm anymore (allows now loading multiple files. Fixed prvm_crashall and altered some error texts.

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

16 years agoFactorized the code of the S_Play* functions
molivier [Wed, 22 Oct 2003 08:41:27 +0000 (08:41 +0000)]
Factorized the code of the S_Play* functions

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

16 years agoFixed 2 warnings found by MSVC6
molivier [Wed, 22 Oct 2003 08:35:11 +0000 (08:35 +0000)]
Fixed 2 warnings found by MSVC6

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

16 years agoremoved pragma that disabled signed/unsigned mismatch warnings in MSVC4, as these...
havoc [Tue, 21 Oct 2003 13:02:16 +0000 (13:02 +0000)]
removed pragma that disabled signed/unsigned mismatch warnings in MSVC4, as these have all been fixed in the engine already

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

16 years agoI hope this fixes some warnings
black [Tue, 21 Oct 2003 12:59:55 +0000 (12:59 +0000)]
I hope this fixes some warnings

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

16 years agophysics code no longer uses allsolid (mainly of concern to q3bsp which rarely set...
havoc [Tue, 21 Oct 2003 12:21:26 +0000 (12:21 +0000)]
physics code no longer uses allsolid (mainly of concern to q3bsp which rarely set it), only startsolid (allsolid is of course kept for QC compatibility, as non-functional as it may be), and I reenabled movement when in solid (so objects can move out of obstacles they managed to end up inside)

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

16 years agoSV_Move (and children) now only set trace.ent if there is an impact, not if it was...
havoc [Tue, 21 Oct 2003 12:18:43 +0000 (12:18 +0000)]
SV_Move (and children) now only set trace.ent if there is an impact, not if it was an allsolid situation...  and SV_PointQ1Contents now uses SV_PointSuperContents

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

16 years agoAdded in_mouse_x and in_mouse_y, which contain the rel. coords of the mouse.
black [Tue, 21 Oct 2003 12:08:29 +0000 (12:08 +0000)]
Added in_mouse_x and in_mouse_y, which contain the rel. coords of the mouse.
Fixed a bug where PRVM_Stacktrace/PR_Stacktrace were involved.
Added some vm builtin functions to the new vm and changed PRVM_ED_LoadFromFile, so it can load multiple files.

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

16 years agomoved trace endpos calculation outside of RecursiveHullCheck, to improve code layout...
havoc [Tue, 21 Oct 2003 11:43:58 +0000 (11:43 +0000)]
moved trace endpos calculation outside of RecursiveHullCheck, to improve code layout consistency between collision box and q1bsp code (no effect on results)

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

16 years agoone more input underrun check in pvs decompression
havoc [Tue, 21 Oct 2003 11:34:57 +0000 (11:34 +0000)]
one more input underrun check in pvs decompression

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

16 years agoRemoved some bugs (I forget to change a few pr_argc to prog->argc)
black [Fri, 17 Oct 2003 15:30:22 +0000 (15:30 +0000)]
Removed some bugs (I forget to change a few pr_argc to prog->argc)

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

16 years agoUpdated some builtin parameter lists, added 2 functions to the menu builtins.
black [Fri, 17 Oct 2003 14:02:34 +0000 (14:02 +0000)]
Updated some builtin parameter lists, added 2 functions to the menu builtins.
Added the boolean in_client_mouse (used to indicate wheter mouse position data
should be send to the client.
(Only Win at the moment)

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

16 years agoread multiple frames from demo if client is falling behind
havoc [Fri, 17 Oct 2003 03:32:32 +0000 (03:32 +0000)]
read multiple frames from demo if client is falling behind

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

16 years agoFixed crash in Host_Shutdown when MR_Shutdown was 0.
black [Thu, 16 Oct 2003 17:45:29 +0000 (17:45 +0000)]
Fixed crash in Host_Shutdown when MR_Shutdown was 0.

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

16 years agohandle one error condition I forgot to code in PF_setattachment (modelindex was check...
havoc [Thu, 16 Oct 2003 11:41:18 +0000 (11:41 +0000)]
handle one error condition I forgot to code in PF_setattachment (modelindex was checked, but did not check for it resolving to a NULL model, as is the case whem modelindex is 0)

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

16 years agomarked off some completed items and such
havoc [Wed, 15 Oct 2003 07:37:05 +0000 (07:37 +0000)]
marked off some completed items and such

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

16 years agoadded r_shadow_help and r_editlights_help commands containing documentation
havoc [Mon, 13 Oct 2003 21:14:05 +0000 (21:14 +0000)]
added r_shadow_help and r_editlights_help commands containing documentation

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

16 years agoFixed windows input (bad,bad hack)
black [Mon, 13 Oct 2003 12:43:28 +0000 (12:43 +0000)]
Fixed windows input (bad,bad hack)

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

16 years agoWhoops, fix some stupidity on my part, should work better.
warp [Sun, 12 Oct 2003 09:05:19 +0000 (09:05 +0000)]
Whoops, fix some stupidity on my part, should work better.

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

16 years agoChange key handling, er, quite a bit.
warp [Sun, 12 Oct 2003 08:43:23 +0000 (08:43 +0000)]
Change key handling, er, quite a bit.

Note, Windows is broken by this, it needs fixing up ASAP.

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

16 years agoTweak the key handling, may need more invasive changes.
warp [Sun, 12 Oct 2003 05:45:42 +0000 (05:45 +0000)]
Tweak the key handling, may need more invasive changes.

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

16 years agoAdded S_GetCached so the dedicated servers compiles now
black [Sat, 11 Oct 2003 19:46:12 +0000 (19:46 +0000)]
Added S_GetCached so the dedicated servers compiles now

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

16 years agoremove +use and -use commands because they prevent mods from defining them (and they...
havoc [Sat, 11 Oct 2003 19:32:36 +0000 (19:32 +0000)]
remove +use and -use commands because they prevent mods from defining them (and they never worked anyway)

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

16 years agoAdded the drawing functions and added also probably menu only message functions
black [Sat, 11 Oct 2003 12:14:33 +0000 (12:14 +0000)]
Added the drawing functions and added also probably menu only message functions
(almost the same as the server ones, but with different param (order)).
Also added all functions to the menu builtin list (except the menu specific ones :-/).
The drawflag constants are now the drawqueue_drawflag_e enum.
Added function S_GetCached.

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

16 years agoadded DP_QC_TRACE_MOVETYPE_HITMODEL extension (and added DP_QC_TRACE_MOVETYPE_WORLDON...
havoc [Sat, 11 Oct 2003 05:34:49 +0000 (05:34 +0000)]
added DP_QC_TRACE_MOVETYPE_HITMODEL extension (and added DP_QC_TRACE_MOVETYPE_WORLDONLY to extension list) - this means traceline/tracebox can now check model geometry

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

16 years ago*** empty log message ***
havoc [Sat, 11 Oct 2003 05:16:19 +0000 (05:16 +0000)]
*** empty log message ***

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

16 years agoreverted two bugs introduced by Black (anum red digits were not being loaded, and...
havoc [Sat, 11 Oct 2003 03:39:39 +0000 (03:39 +0000)]
reverted two bugs introduced by Black (anum red digits were not being loaded, and restored the positioning of the minideathmatchoverlay to exactly where quake had it - my previous commit was 4 pixels off in positioning)

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

16 years agofix Sbar_MiniDeathmatchOverlay to draw to the right of the sbar (in non-Nexuiz modes...
havoc [Sat, 11 Oct 2003 03:25:09 +0000 (03:25 +0000)]
fix Sbar_MiniDeathmatchOverlay to draw to the right of the sbar (in non-Nexuiz modes) like quake did

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

16 years agoadded another todo item for dpmod, sorted list again
havoc [Sat, 11 Oct 2003 03:12:36 +0000 (03:12 +0000)]
added another todo item for dpmod, sorted list again

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

16 years agomade weapon only 50% invisible in Transfusion with the invisibility powerup, and...
havoc [Sat, 11 Oct 2003 03:11:49 +0000 (03:11 +0000)]
made weapon only 50% invisible in Transfusion with the invisibility powerup, and now being dead or invisible only affects the main viewmodel (not viewmodelforccient entities) to allow more flexibility in mods

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

16 years agofixed a crash in PR_objerror (trying to free self when there is no self), and removed...
havoc [Fri, 10 Oct 2003 04:50:00 +0000 (04:50 +0000)]
fixed a crash in PR_objerror (trying to free self when there is no self), and removed an unused prototype called "error();"

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

16 years agoone more reminder that nested for(i) loops are bad, mmk?
havoc [Fri, 10 Oct 2003 04:42:37 +0000 (04:42 +0000)]
one more reminder that nested for(i) loops are bad, mmk?

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