divverent/darkplaces.git
15 years agoUndo moving cl_available. This really doesn't belong in system-specific
knghtbrd [Thu, 1 Jan 2004 16:45:56 +0000 (16:45 +0000)]
Undo moving cl_available.  This really doesn't belong in system-specific
video code, but it's the only place for that kind of thing unless someone
wants to make the dedicated DarkPlaces binary a lot less bloated.  Not on
my priority list right now.

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

15 years agoadded c_nodes, c_leafs, and c_faces increments in q3bsp rendering to make r_speeds...
havoc [Thu, 1 Jan 2004 12:25:36 +0000 (12:25 +0000)]
added c_nodes, c_leafs, and c_faces increments in q3bsp rendering to make r_speeds more useful

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

15 years agosorry Mathieu, can't use va() in filesystem code, not safe. (this was causing the...
havoc [Thu, 1 Jan 2004 10:25:05 +0000 (10:25 +0000)]
sorry Mathieu, can't use va() in filesystem code, not safe. (this was causing the crosshairs to not work due to heavy reuse of va() buffers)

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

15 years agofix a missing ; from knghtbrd's commit
havoc [Thu, 1 Jan 2004 05:22:21 +0000 (05:22 +0000)]
fix a missing ; from knghtbrd's commit

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

15 years agoMoved an extern to the proper header.
knghtbrd [Thu, 1 Jan 2004 04:39:47 +0000 (04:39 +0000)]
Moved an extern to the proper header.

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

15 years agoMoved cl_available definition to vid_shared.c
knghtbrd [Thu, 1 Jan 2004 04:01:00 +0000 (04:01 +0000)]
Moved cl_available definition to vid_shared.c

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

15 years agonow runs scripts at startup differently - runs scripts twice, once only executing...
havoc [Thu, 1 Jan 2004 02:35:56 +0000 (02:35 +0000)]
now runs scripts at startup differently - runs scripts twice, once only executing cvar and exec, then starts video, then runs scripts again

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

15 years agofixed the complaints about missing sounds (no longer complains after the initial...
havoc [Thu, 1 Jan 2004 02:33:48 +0000 (02:33 +0000)]
fixed the complaints about missing sounds (no longer complains after the initial precache failure)

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

15 years agoMore MacOS X stuff. The correct test for MacOS X in preprocessor seems to
knghtbrd [Wed, 31 Dec 2003 18:03:49 +0000 (18:03 +0000)]
More MacOS X stuff.  The correct test for MacOS X in preprocessor seems to
be defined(__APPLE__) && defined(__MACH__).  MacOS X has strl functions,
so don't bother compiling them.  Also, the correct name and location of
libGL for X11 on a Mac is /usr/X11R6/lib/libGL.1.dylib.  Compiles with one
warning caused by use of dlfcn.h (an emulation of the dynamic ELF object
loader which complains that you really should be using the Mach-O dylib
API instead.)

Compiled with gcc 3.1 (use gcc_select) on MacOS X 10.3 with X11 and the
Xcode Tools installed.  Makefile changes were: null sound/cd, removal of
-lxf86dga from the GLX build, and replacing -ggdb in both places with
plain old -g (someone at Apple needs a LARTing for this...)  SHOULD work
with 10.2 provided that you have developer tools, X11 with devel stuff,
and the dlfcn emulation package from fink.  I can't promise meaningful
support for anything but Panther, sorry.

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

15 years agomake sure client ports are opened before trying to connect to anything
havoc [Wed, 31 Dec 2003 08:32:54 +0000 (08:32 +0000)]
make sure client ports are opened before trying to connect to anything

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

15 years agodon't even try to support XF86DGA stuff on Mac
havoc [Wed, 31 Dec 2003 07:37:22 +0000 (07:37 +0000)]
don't even try to support XF86DGA stuff on Mac

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

15 years agofix a thinko in big endian support (forgot to use defined() in a #elif)
havoc [Wed, 31 Dec 2003 07:18:07 +0000 (07:18 +0000)]
fix a thinko in big endian support (forgot to use defined() in a #elif)

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

15 years agoFactorized the file searching algorithm in the FS code. Sorted packaged files list...
molivier [Tue, 30 Dec 2003 13:00:48 +0000 (13:00 +0000)]
Factorized the file searching algorithm in the FS code. Sorted packaged files list at load time to allow the use of a binary search. Overall, I think you can expect a file search time divided by a factor between 1.5 to 3 depending on your mod and packages layout. Time lost in the file search code on my P233MMX: vanilla Quake (4121 searches while loading the 1st demo): 2.7 sec -> 1.6 sec, Transfusion mod (9752 searches while loading BB1): 18.0 sec -> 7.6 sec

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

15 years agoupdated sv_masterextra1 to point to the newer master server address
havoc [Mon, 29 Dec 2003 23:47:55 +0000 (23:47 +0000)]
updated sv_masterextra1 to point to the newer master server address

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

15 years agochanged nexuiz hud to display a different (more minimal) sbar pic when viewsize is 110
havoc [Mon, 29 Dec 2003 05:43:47 +0000 (05:43 +0000)]
changed nexuiz hud to display a different (more minimal) sbar pic when viewsize is 110

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

15 years agoadded GAME_SOM (and its hud), and shuffled some hud code around to make things a...
havoc [Mon, 29 Dec 2003 01:57:38 +0000 (01:57 +0000)]
added GAME_SOM (and its hud), and shuffled some hud code around to make things a little cleaner

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

15 years agofixed bug with falling (not on ground) MOVETYPE_STEP entities not touching triggers
havoc [Sun, 28 Dec 2003 06:21:36 +0000 (06:21 +0000)]
fixed bug with falling (not on ground) MOVETYPE_STEP entities not touching triggers

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

15 years agomade TryUnstick failure a DPrintf (like TryUnstick success is)
havoc [Sun, 28 Dec 2003 05:14:29 +0000 (05:14 +0000)]
made TryUnstick failure a DPrintf (like TryUnstick success is)

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

15 years agoadded ogg.o to WGL exe build
havoc [Sun, 28 Dec 2003 02:14:15 +0000 (02:14 +0000)]
added ogg.o to WGL exe build

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

15 years agofix a thinko on clip.trace.ent = sv.edicts (it should only be set if startsolid or...
havoc [Sun, 28 Dec 2003 02:08:10 +0000 (02:08 +0000)]
fix a thinko on clip.trace.ent = sv.edicts (it should only be set if startsolid or fraction < 1)

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

15 years agofixed fiends jumping through player bug, huge thanks to Tomaz for days of help tracki...
havoc [Sun, 28 Dec 2003 01:05:40 +0000 (01:05 +0000)]
fixed fiends jumping through player bug, huge thanks to Tomaz for days of help tracking down this longstanding bug! (it supported rotated collisions with bbox entities - not good!)
refined the COLLISIONPARANOID checks (now centralized in SV_Move)

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

15 years agoimproved support for q3map2 lights (added fade and scale keys supported by rtcw and...
havoc [Sun, 28 Dec 2003 00:58:38 +0000 (00:58 +0000)]
improved support for q3map2 lights (added fade and scale keys supported by rtcw and sof2 respectively)

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

15 years agoSimple Ogg Vorbis support (no streaming: the file is fully decompressed in memory...
molivier [Sat, 27 Dec 2003 21:15:16 +0000 (21:15 +0000)]
Simple Ogg Vorbis support (no streaming: the file is fully decompressed in memory, you just save disk space). DP will try to load the VorbisFile library at startup and will enable Ogg Vorbis support if it succeeds, so you need the Ogg Vorbis official DLLs. Win32 binaries works, but the Linux binaries are still untested for the moment - they compile successfully though.

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

15 years agomade an annoying cbox message that I had forgotten to disable, into a COLLISIONPARANO...
havoc [Fri, 26 Dec 2003 17:28:18 +0000 (17:28 +0000)]
made an annoying cbox message that I had forgotten to disable, into a COLLISIONPARANOID >= 3 line

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

15 years agofix a bug with using the wrong trace end variable in the COLLISIONPARANOID print
havoc [Wed, 24 Dec 2003 21:24:49 +0000 (21:24 +0000)]
fix a bug with using the wrong trace end variable in the COLLISIONPARANOID print

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

15 years agopatched up some compiler warnings in incomplete code
havoc [Wed, 24 Dec 2003 21:22:43 +0000 (21:22 +0000)]
patched up some compiler warnings in incomplete code

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

15 years agoadded a bunch more COLLISIONPARANOID code trying to track down a physics bug with...
havoc [Wed, 24 Dec 2003 21:07:41 +0000 (21:07 +0000)]
added a bunch more COLLISIONPARANOID code trying to track down a physics bug with fiends jumping through players, this defaults off (see end of collision.h)

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

15 years agoadded "sv_saveentfile" command to allow easy dumping of .ent files from maps so they...
havoc [Wed, 24 Dec 2003 21:05:17 +0000 (21:05 +0000)]
added "sv_saveentfile" command to allow easy dumping of .ent files from maps so they can then be edited in a text editor

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

15 years agofixed cloud layers in quake sky loading
havoc [Wed, 24 Dec 2003 18:16:58 +0000 (18:16 +0000)]
fixed cloud layers in quake sky loading

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

15 years agoFast commit before Im off for 10 days. Please correct/undo my commit if it breaks...
black [Tue, 23 Dec 2003 12:12:03 +0000 (12:12 +0000)]
Fast commit before Im off for 10 days. Please correct/undo my commit if it breaks something, I havent had time to test everything perfectly but Im hoping that everything works. Merry Christmas everybody !

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

15 years agoAdded the cvar sbar_alpha.
black [Sat, 20 Dec 2003 18:32:47 +0000 (18:32 +0000)]
Added the cvar sbar_alpha.

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

15 years agoPR_SetString and PRVM_SetString now point to pr_strings - resp. prog->strings if...
black [Sat, 20 Dec 2003 18:21:18 +0000 (18:21 +0000)]
PR_SetString and PRVM_SetString now point to pr_strings - resp. prog->strings if a NULL string is passed.

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

15 years agoAdded the console commands edictset and prvm_edictset.
black [Fri, 19 Dec 2003 17:54:22 +0000 (17:54 +0000)]
Added the console commands edictset and prvm_edictset.

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

15 years agoFixed the crash that occured when the commandline got "too long".
black [Fri, 19 Dec 2003 16:46:48 +0000 (16:46 +0000)]
Fixed the crash that occured when the commandline got "too long".

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

15 years agoRemoved a potential buffer overflow and factorized some code
molivier [Thu, 18 Dec 2003 08:59:54 +0000 (08:59 +0000)]
Removed a potential buffer overflow and factorized some code

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

15 years agominor, minor change to Host_Init - the loading plaque is now displayed before the...
black [Wed, 17 Dec 2003 13:16:47 +0000 (13:16 +0000)]
minor, minor change to Host_Init - the loading plaque is now displayed before the menu is initialized

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

15 years agofixed a bug with high framerate (or low speed) rotating bmodels failing to push when...
havoc [Wed, 17 Dec 2003 09:50:20 +0000 (09:50 +0000)]
fixed a bug with high framerate (or low speed) rotating bmodels failing to push when blocked

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

15 years agoFixed AK version of the FS code, it should now behave as expected, without much dupli...
molivier [Wed, 17 Dec 2003 07:58:33 +0000 (07:58 +0000)]
Fixed AK version of the FS code, it should now behave as expected, without much duplicated code. Factorized "dir" and "ls" console commands code.

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

15 years agofix a filesystem directory listing bug in FS_Search
havoc [Tue, 16 Dec 2003 15:59:21 +0000 (15:59 +0000)]
fix a filesystem directory listing bug in FS_Search

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

15 years agorewrote FS_Search, hopefully it will work better now, and it now matches directories...
havoc [Tue, 16 Dec 2003 15:26:28 +0000 (15:26 +0000)]
rewrote FS_Search, hopefully it will work better now, and it now matches directories inside paks (in other words: listing sound/* will tell you about sound/plats and sound/whatever.wav, this is mainly to be consistent with filesystem directories), it is also no longer two-pass (although simple the two-pass approach was dangerous if the two listings came out different), and it now sorts the listing
rewrote much of matchpattern, now handles path separators specially, and uses a much better approach to handling the * wildcard (no longer looks for the following character, simply tries multiple matchpattern calls until it hits a path separator or gets a match)

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

15 years agoAdded the togglemenu command for both menus and the chr builtin command (menu qc)
black [Tue, 16 Dec 2003 12:43:50 +0000 (12:43 +0000)]
Added the togglemenu command for both menus and the chr builtin command (menu qc)

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

15 years agoadded cvar_string extension at the request of Paul Timofeyev
havoc [Tue, 16 Dec 2003 11:08:07 +0000 (11:08 +0000)]
added cvar_string extension at the request of Paul Timofeyev

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

15 years agoAudio CD support for NetBSD; it also compiles on OpenBSD, but I can't test it for...
molivier [Mon, 15 Dec 2003 07:48:43 +0000 (07:48 +0000)]
Audio CD support for NetBSD; it also compiles on OpenBSD, but I can't test it for now. Plus some diff noise reduction and a minor bug fix in cd_linux.c (the case when the user changes track without using the "cd" command should now be handled correctly)

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

15 years agoRemoved redundant definitions in cd_linux.c
molivier [Fri, 12 Dec 2003 15:01:14 +0000 (15:01 +0000)]
Removed redundant definitions in cd_linux.c

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

15 years agomade sure EF_FULLBRIGHT works on everything (bmodels were broken)
havoc [Fri, 12 Dec 2003 00:28:56 +0000 (00:28 +0000)]
made sure EF_FULLBRIGHT works on everything (bmodels were broken)

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

15 years agoBorland C++ makefile is *so* outdated that I can't even imagine someone is still...
molivier [Thu, 11 Dec 2003 14:17:34 +0000 (14:17 +0000)]
Borland C++ makefile is *so* outdated that I can't even imagine someone is still using it

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

15 years agoOops... I forgot to add this file to the previous commit
molivier [Thu, 11 Dec 2003 13:57:59 +0000 (13:57 +0000)]
Oops... I forgot to add this file to the previous commit

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

15 years agoFactorized audio CD code
molivier [Thu, 11 Dec 2003 13:52:46 +0000 (13:52 +0000)]
Factorized audio CD code

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

15 years agoOpenBSD support wasn't very far away...
molivier [Wed, 10 Dec 2003 08:05:25 +0000 (08:05 +0000)]
OpenBSD support wasn't very far away...

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

15 years agofixed the wall slide stuttering bug (the one that has been annoying me for months...
havoc [Tue, 9 Dec 2003 13:17:46 +0000 (13:17 +0000)]
fixed the wall slide stuttering bug (the one that has been annoying me for months), it turned out to be a float precision issue with cliphull selection, and this also fixed the movetogoal bug (monsters not noticing they hit a wall) and also the scrags-flying-through-wall/ceilings bug

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

15 years agoEarly support for NetBSD (the dedicated binary works and the GLX binary compiles)
molivier [Tue, 9 Dec 2003 08:05:43 +0000 (08:05 +0000)]
Early support for NetBSD (the dedicated binary works and the GLX binary compiles)

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

15 years agoFixed scr_screenshot_jpeg_quality slider in options menu
molivier [Tue, 9 Dec 2003 07:54:59 +0000 (07:54 +0000)]
Fixed scr_screenshot_jpeg_quality slider in options menu

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

15 years agotodo item done: sounds spawn even if out of hearing range (because the player might...
havoc [Mon, 8 Dec 2003 08:03:24 +0000 (08:03 +0000)]
todo item done: sounds spawn even if out of hearing range (because the player might teleport to them)

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

15 years agofixed gcc and linux related compilation problems from Black's recent commit
havoc [Mon, 8 Dec 2003 07:58:28 +0000 (07:58 +0000)]
fixed gcc and linux related compilation problems from Black's recent commit

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

15 years agofix the weapon alpha with invisibility in transfusion
havoc [Mon, 8 Dec 2003 07:11:31 +0000 (07:11 +0000)]
fix the weapon alpha with invisibility in transfusion

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

15 years ago*** empty log message ***
havoc [Mon, 8 Dec 2003 05:05:22 +0000 (05:05 +0000)]
*** empty log message ***

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

15 years agoadded a comment above particle() function to describe its parameters
havoc [Mon, 8 Dec 2003 00:22:13 +0000 (00:22 +0000)]
added a comment above particle() function to describe its parameters

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

15 years agoAdded qc fs search functions, so the qcs can easily verify directories contents,...
black [Sun, 7 Dec 2003 18:55:56 +0000 (18:55 +0000)]
Added qc fs search functions, so the qcs can easily verify directories contents, etc. -> useful for dynamic content loading.
Changed some 'bool's into read-only cvars to make them accessible for the menu qc.

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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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