xonotic/darkplaces.git
11 years agoimplemented occlusion query support on corona rendering, this enables
havoc [Thu, 12 Feb 2009 05:35:34 +0000 (05:35 +0000)]
implemented occlusion query support on corona rendering, this enables
coronas to fade according to the percentage of occluded pixels around
the light origin, giving a more realistic corona behavior
some minor cleanup on shadow volume construction code

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

11 years agofix memory corruption when using trailparticles with an effect that has a dlight
divverent [Wed, 11 Feb 2009 14:27:23 +0000 (14:27 +0000)]
fix memory corruption when using trailparticles with an effect that has a dlight

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

11 years agoremove two debug prints
divverent [Tue, 10 Feb 2009 13:23:48 +0000 (13:23 +0000)]
remove two debug prints

Working way to encode from darkplaces using mencoder without writing a huge dpvideo...avi:

mkfifo ~/.nexuiz/data/video/dpvideo001.avi
perl -e 'while(read STDIN, my $var, 1048576) { print $var; }' < ~/.nexuiz/data/video/dpvideo001.avi | mencoder -o outfile.avi - .....options......

while running DarkPlaces with cl_capturevideo from another shell

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

11 years agofix a typo
divverent [Tue, 10 Feb 2009 13:13:50 +0000 (13:13 +0000)]
fix a typo

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

11 years agoimproved handling of non-seekable AVIs; also: do less seeking when capturing now.
divverent [Tue, 10 Feb 2009 13:11:02 +0000 (13:11 +0000)]
improved handling of non-seekable AVIs; also: do less seeking when capturing now.

However, still ffmpeg and mplayer fail to read it. No idea why.

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

11 years agomake AVI writing a bit more robust; if seeking back fails, the block it wanted to...
divverent [Tue, 10 Feb 2009 11:22:47 +0000 (11:22 +0000)]
make AVI writing a bit more robust; if seeking back fails, the block it wanted to write won't be written. MAYBE this allows streaming the AVI to ffmpeg?

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

11 years agoCSQC traceline/tracebox: don't set hitnetworkplayers when MOVE_NOMONSTERS or MOVE_WOR...
divverent [Mon, 9 Feb 2009 13:04:39 +0000 (13:04 +0000)]
CSQC traceline/tracebox: don't set hitnetworkplayers when MOVE_NOMONSTERS or MOVE_WORLDONLY are specified; don't set hitnetworkbrushmodels when MOVE_WORLDONLY is specified

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

11 years agobugfix for showtopspeed
divverent [Sat, 7 Feb 2009 08:52:07 +0000 (08:52 +0000)]
bugfix for showtopspeed

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

11 years agofix a possible bug with zym model animation (this looks like a typo, and fixing it...
divverent [Fri, 6 Feb 2009 14:48:41 +0000 (14:48 +0000)]
fix a possible bug with zym model animation (this looks like a typo, and fixing it makes the shotgun anim in nexuiz appear more consistent)

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

11 years ago[ 2566720 ] showtopspeed v3
divverent [Fri, 6 Feb 2009 07:09:42 +0000 (07:09 +0000)]
2566720 ] showtopspeed v3

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

11 years agoAt O.Sezer's recommendation filematch.c has been changed to use
havoc [Mon, 2 Feb 2009 00:52:34 +0000 (00:52 +0000)]
At O.Sezer's recommendation filematch.c has been changed to use
FindFirstFile and friends instead of _findfirst and friends.

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

11 years agodisabled main in sys_win.c at O.Sezer's recommendation (vid_wgl.c
havoc [Mon, 2 Feb 2009 00:34:29 +0000 (00:34 +0000)]
disabled main in sys_win.c at O.Sezer's recommendation (vid_wgl.c
provides WinMain in the same build target - making this pointless)

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

11 years agochanged CC=gcc to CC?=gcc at O.Sezer's recommendation
havoc [Mon, 2 Feb 2009 00:25:06 +0000 (00:25 +0000)]
changed CC=gcc to CC?=gcc at O.Sezer's recommendation

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

11 years agofix two typos in vid_wgl code
divverent [Sun, 1 Feb 2009 08:35:49 +0000 (08:35 +0000)]
fix two typos in vid_wgl code

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

11 years agomore fullscreen cleanup
divverent [Sat, 31 Jan 2009 11:12:13 +0000 (11:12 +0000)]
more fullscreen cleanup

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

11 years agocleanup of fullscreen code; do not use VidMode when NetWM fullscreen is active (to...
divverent [Sat, 31 Jan 2009 10:34:32 +0000 (10:34 +0000)]
cleanup of fullscreen code; do not use VidMode when NetWM fullscreen is active (to prevent problems with screen scrolling); TODO make DP render at a lower res and scale up when NetWM fullscreen is in use

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

11 years agodamn, revert the accidental change to makefile.inc
divverent [Wed, 28 Jan 2009 14:04:37 +0000 (14:04 +0000)]
damn, revert the accidental change to makefile.inc

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

11 years agofix a type
divverent [Wed, 28 Jan 2009 13:55:38 +0000 (13:55 +0000)]
fix a type

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

11 years agomake DP compile with C++ again
divverent [Wed, 28 Jan 2009 12:41:41 +0000 (12:41 +0000)]
make DP compile with C++ again

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

11 years agooops, fixing syntax
divverent [Wed, 28 Jan 2009 11:26:12 +0000 (11:26 +0000)]
oops, fixing syntax

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

11 years agosome fixes for NetWM fullscreen
divverent [Wed, 28 Jan 2009 11:24:24 +0000 (11:24 +0000)]
some fixes for NetWM fullscreen

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

11 years agotry to improve netwm fullscreen mode
divverent [Wed, 28 Jan 2009 08:26:37 +0000 (08:26 +0000)]
try to improve netwm fullscreen mode

should now restore the video mode and iconify itself when unfocused, and set the game video mode when restored

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

11 years agofix another warning reported by O.Sezer
havoc [Wed, 28 Jan 2009 05:24:10 +0000 (05:24 +0000)]
fix another warning reported by O.Sezer

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

11 years agofix for a typo from O.Sezer
havoc [Wed, 28 Jan 2009 04:51:13 +0000 (04:51 +0000)]
fix for a typo from O.Sezer

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

11 years agohandle FocusIn and FocusOut in NetWM fullscreen mode
divverent [Tue, 27 Jan 2009 22:11:55 +0000 (22:11 +0000)]
handle FocusIn and FocusOut in NetWM fullscreen mode

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

11 years agofix my last fullscreen change
divverent [Tue, 27 Jan 2009 22:09:24 +0000 (22:09 +0000)]
fix my last fullscreen change

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

11 years agoattempt to fix csqc entity networking by not sending empty entity frames if no csqc...
divverent [Tue, 27 Jan 2009 21:47:55 +0000 (21:47 +0000)]
attempt to fix csqc entity networking by not sending empty entity frames if no csqc entity was sent

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

11 years agobeginning of vid_netwmfullscreen; does not work yet (apparently, the fullscreen windo...
divverent [Tue, 27 Jan 2009 15:19:44 +0000 (15:19 +0000)]
beginning of vid_netwmfullscreen; does not work yet (apparently, the fullscreen window gets no focus)

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

11 years agoremove an unused variable
havoc [Mon, 26 Jan 2009 05:17:20 +0000 (05:17 +0000)]
remove an unused variable

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

11 years agofix typos on sizing collision patches
divverent [Sun, 25 Jan 2009 18:48:07 +0000 (18:48 +0000)]
fix typos on sizing collision patches

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

11 years agoactually use the cross product of two DIFFERENT vectors...
divverent [Sun, 25 Jan 2009 18:15:48 +0000 (18:15 +0000)]
actually use the cross product of two DIFFERENT vectors...

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

11 years agofix stupid degenerate triangle check, I don't have a clue what I was
havoc [Sun, 25 Jan 2009 17:57:37 +0000 (17:57 +0000)]
fix stupid degenerate triangle check, I don't have a clue what I was
thinking when I wrote it

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

11 years agofix modelyawradius calculation
divverent [Sat, 24 Jan 2009 17:39:29 +0000 (17:39 +0000)]
fix modelyawradius calculation

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

11 years agocvarlist, buf_cvarlist: support wildcards if present (if not present, it's treated...
divverent [Fri, 23 Jan 2009 19:29:16 +0000 (19:29 +0000)]
cvarlist, buf_cvarlist: support wildcards if present (if not present, it's treated as a prefix)
fix two places where cvar names were treated case insensitively, while they usually are case sensitive (e.g. when hashed with crc32)

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

11 years agofix typo in Set/SetA
divverent [Fri, 23 Jan 2009 19:17:17 +0000 (19:17 +0000)]
fix typo in Set/SetA

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

11 years agodo the skipping here too
divverent [Fri, 23 Jan 2009 10:45:03 +0000 (10:45 +0000)]
do the skipping here too

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

11 years agoadd an argument to filter out a cvar prefix
divverent [Fri, 23 Jan 2009 10:32:27 +0000 (10:32 +0000)]
add an argument to filter out a cvar prefix

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

11 years ago+"DP_QC_CVAR_DESCRIPTION "
divverent [Fri, 23 Jan 2009 09:34:48 +0000 (09:34 +0000)]
+"DP_QC_CVAR_DESCRIPTION "
+"DP_QC_STRINGBUFFERS_CVARLIST "
allowing menu QC (and other code) to list all cvars, and retrieve their descriptions

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

11 years agoDP_SV_ONENTITYPREPOSTSPAWNFUNCTION - hooks before and after spawning an entity from...
divverent [Thu, 22 Jan 2009 08:20:15 +0000 (08:20 +0000)]
DP_SV_ONENTITYPREPOSTSPAWNFUNCTION - hooks before and after spawning an entity from a map/ent

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

11 years agofix bug with menu_mouse_absolute 1 in Nexuiz
havoc [Tue, 20 Jan 2009 19:21:34 +0000 (19:21 +0000)]
fix bug with menu_mouse_absolute 1 in Nexuiz

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

11 years agofixed a serious bug in initialization of frac[][]
havoc [Tue, 20 Jan 2009 18:58:27 +0000 (18:58 +0000)]
fixed a serious bug in initialization of frac[][]

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

11 years agofix bugs with q1bsp/hlbsp rotating submodels, caused by CLIP brushes not
havoc [Tue, 20 Jan 2009 18:47:41 +0000 (18:47 +0000)]
fix bugs with q1bsp/hlbsp rotating submodels, caused by CLIP brushes not
creating surfaces (thus vertex-based calculation of modelradius failed),
and some really stupid bugs with using min where it should have been max

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

11 years agofix a number of char types that should be int, to make them immune to
havoc [Mon, 19 Jan 2009 21:14:27 +0000 (21:14 +0000)]
fix a number of char types that should be int, to make them immune to
unsigned char vs signed char disputes on different operating systems

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

11 years agoGAME_NEXUIZ: skip player entities in hitnetworkplayers if they have -666 (spectator...
divverent [Sun, 18 Jan 2009 19:10:25 +0000 (19:10 +0000)]
GAME_NEXUIZ: skip player entities in hitnetworkplayers if they have -666 (spectator) or -616 (nonsolid player) frags

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

11 years agodisable DGA mouse by default
havoc [Sat, 17 Jan 2009 15:25:59 +0000 (15:25 +0000)]
disable DGA mouse by default

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

11 years agoadded servertime, serverprevtime, serverdeltatime globals to csqc
havoc [Fri, 16 Jan 2009 18:03:27 +0000 (18:03 +0000)]
added servertime, serverprevtime, serverdeltatime globals to csqc

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

11 years ago- fix tracing against networked players on the client (properly check if a client...
divverent [Fri, 16 Jan 2009 09:04:59 +0000 (09:04 +0000)]
- fix tracing against networked players on the client (properly check if a client is actually active before colliding against him)
- add float trace_networkentity to client VM, which helped debugging this

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

11 years agomake csqc entity sounds follow their entity
divverent [Thu, 15 Jan 2009 13:19:07 +0000 (13:19 +0000)]
make csqc entity sounds follow their entity

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

11 years agoremove templights change
havoc [Thu, 15 Jan 2009 01:43:00 +0000 (01:43 +0000)]
remove templights change

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

11 years agofix for more missing stuff
havoc [Thu, 15 Jan 2009 01:01:31 +0000 (01:01 +0000)]
fix for more missing stuff

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

11 years agoforgot to include this file, fixes PBLEND_INVMOD error
havoc [Wed, 14 Jan 2009 20:33:27 +0000 (20:33 +0000)]
forgot to include this file, fixes PBLEND_INVMOD error

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

11 years agoadded blend and orientation commands for effectinfo.txt (overrides the
havoc [Wed, 14 Jan 2009 16:23:32 +0000 (16:23 +0000)]
added blend and orientation commands for effectinfo.txt (overrides the
defaults chosen by the particle type)

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

11 years agocl_demo_mousegrab
divverent [Tue, 13 Jan 2009 19:21:20 +0000 (19:21 +0000)]
cl_demo_mousegrab

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

11 years agoI noticed the edgefriction value was wrong in the QW support (QW has
havoc [Tue, 13 Jan 2009 15:25:25 +0000 (15:25 +0000)]
I noticed the edgefriction value was wrong in the QW support (QW has
broken edgefriction, so it should always be 1 - it was set to 2, oops)

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

11 years agofix warning
divverent [Tue, 13 Jan 2009 11:29:57 +0000 (11:29 +0000)]
fix warning

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

11 years agoremove the PRVM_BOUNDSCHECK_CVAR define
divverent [Tue, 13 Jan 2009 09:15:13 +0000 (09:15 +0000)]
remove the PRVM_BOUNDSCHECK_CVAR define
instead, add a -noboundscheck command line option (those who really want to make use of that in their mod can easily make a wrapper that adds this command, e.g. a lnk file in the start menu)
also add a -norunaway command line option that turns off the runaway loop counter

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

11 years agofix csqc code insertion in autodemos
divverent [Mon, 12 Jan 2009 06:19:15 +0000 (06:19 +0000)]
fix csqc code insertion in autodemos

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

11 years agorotate the blur pentagram by 180 degrees :P
divverent [Sat, 10 Jan 2009 19:46:57 +0000 (19:46 +0000)]
rotate the blur pentagram by 180 degrees :P

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

11 years agoadd a second parameter to the blur to mix the pentagram blur with the main image
divverent [Sat, 10 Jan 2009 19:40:52 +0000 (19:40 +0000)]
add a second parameter to the blur to mix the pentagram blur with the main image

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

11 years agoremove the latest change (it was redundant, as a glsl shader sure can query the textu...
divverent [Sat, 10 Jan 2009 19:33:30 +0000 (19:33 +0000)]
remove the latest change (it was redundant, as a glsl shader sure can query the texture matrix), and instead add an example 6-tap blur filter to the glsl code.

To test:
r_glsl_postprocess 1
r_glsl_postprocess_uservec1 "3 0 0 0"

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

11 years agoadd a new vec2 LowerRightCorner to the glsl shader. The screen texture is in 0..Lower...
divverent [Sat, 10 Jan 2009 18:22:47 +0000 (18:22 +0000)]
add a new vec2 LowerRightCorner to the glsl shader. The screen texture is in 0..LowerRightCorner

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

11 years agoAdd a comment explaining how the compression algorithms are negotiated
divverent [Thu, 8 Jan 2009 19:06:17 +0000 (19:06 +0000)]
Add a comment explaining how the compression algorithms are negotiated

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

11 years agoBlub's "deflate" extension to the download system.
divverent [Thu, 8 Jan 2009 18:58:13 +0000 (18:58 +0000)]
Blub's "deflate" extension to the download system.
Currently only provides csprogs.dat in deflated form.
Compatible in both directions, compression is only done if both client and server use this new code.

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

11 years agocommandmode: use Cmd_ExecuteString so semicolons don't start new commands
divverent [Thu, 8 Jan 2009 16:07:01 +0000 (16:07 +0000)]
commandmode: use Cmd_ExecuteString so semicolons don't start new commands

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

11 years agoreject downloads of non-regular files
divverent [Thu, 8 Jan 2009 13:10:42 +0000 (13:10 +0000)]
reject downloads of non-regular files

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

11 years agoFS_LoadFile: don't segfault when trying to open a non-regular file
divverent [Thu, 8 Jan 2009 13:09:53 +0000 (13:09 +0000)]
FS_LoadFile: don't segfault when trying to open a non-regular file

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

11 years agomaking the new cvars saved ones
divverent [Thu, 8 Jan 2009 10:45:32 +0000 (10:45 +0000)]
making the new cvars saved ones

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

11 years agobetter defaults for headphones
divverent [Thu, 8 Jan 2009 10:39:16 +0000 (10:39 +0000)]
better defaults for headphones

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

11 years agosnd_spatialization_control: earphone friendly mode, reduces spatialization for distan...
divverent [Thu, 8 Jan 2009 10:34:39 +0000 (10:34 +0000)]
snd_spatialization_control: earphone friendly mode, reduces spatialization for distant objects

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

11 years agonow handle the SV_VM_Begin stuff correctly here
divverent [Thu, 8 Jan 2009 08:39:30 +0000 (08:39 +0000)]
now handle the SV_VM_Begin stuff correctly here

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

11 years agofix overrun in netconn.c when creating status replies (player names with 63 character...
divverent [Thu, 8 Jan 2009 08:38:06 +0000 (08:38 +0000)]
fix overrun in netconn.c when creating status replies (player names with 63 characters don't get a null terminator)

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

11 years agonow also save the old prog... hope THIS works always
divverent [Thu, 8 Jan 2009 08:26:25 +0000 (08:26 +0000)]
now also save the old prog... hope THIS works always

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

11 years agooops, this is in the server VM
divverent [Thu, 8 Jan 2009 08:23:19 +0000 (08:23 +0000)]
oops, this is in the server VM

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

11 years agobe a little more strict with contents of worldstatus and clientstatus fields (skip...
divverent [Thu, 8 Jan 2009 07:36:59 +0000 (07:36 +0000)]
be a little more strict with contents of worldstatus and clientstatus fields (skip more "forbidden" characters in them as they would make parsing the resulting string ambiguous), and also send a team number in Nexuiz team games (similar to SoF's team numbers in status replies, except that spectators are shown as team 0). This is already supported by qstat.

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

11 years agonew cvar: sv_status_show_qcstatus
divverent [Thu, 8 Jan 2009 07:34:44 +0000 (07:34 +0000)]
new cvar: sv_status_show_qcstatus
when 1, the ".string clientstatus" is used, atoi-ed, instead of the frags for the "status" reply (similar to netconn's handling of this field to replace the frags number)

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

11 years agosupport more different vorbis comment names for looped audio (someone please test...
divverent [Tue, 6 Jan 2009 11:10:19 +0000 (11:10 +0000)]
support more different vorbis comment names for looped audio (someone please test this!)

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

11 years agohide the R_Mesh_Draw message unless developer is 100 or a vertex/face count is even...
divverent [Mon, 5 Jan 2009 03:12:03 +0000 (03:12 +0000)]
hide the R_Mesh_Draw message unless developer is 100 or a vertex/face count is even negative;
instead, complain about empty surfaces when loading a Q3BSP map
as this seems to happen on some maps written by q3map2

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

11 years agoSV_PushMove: ignore pushes from and to "owned" entities
divverent [Sat, 3 Jan 2009 20:17:02 +0000 (20:17 +0000)]
SV_PushMove: ignore pushes from and to "owned" entities

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

11 years agofix cleanup of player names that use ^xRGB
divverent [Sat, 3 Jan 2009 19:58:58 +0000 (19:58 +0000)]
fix cleanup of player names that use ^xRGB

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

11 years agofix lod group comparing for pos/neg zeroes
divverent [Sat, 3 Jan 2009 13:48:31 +0000 (13:48 +0000)]
fix lod group comparing for pos/neg zeroes

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

11 years agomade particle PVS culling only take the origin into account; that way, it actually...
divverent [Fri, 2 Jan 2009 14:03:51 +0000 (14:03 +0000)]
made particle PVS culling only take the origin into account; that way, it actually is a minor performance gain without any visible quality loss

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

11 years agocheck BoxTouchingPVS, not PointInLeaf
divverent [Fri, 2 Jan 2009 13:48:44 +0000 (13:48 +0000)]
check BoxTouchingPVS, not PointInLeaf

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

11 years agoAdded vis culling of particles, and a new cvar cl_particles_novis.
divverent [Fri, 2 Jan 2009 13:48:04 +0000 (13:48 +0000)]
Added vis culling of particles, and a new cvar cl_particles_novis.
However, it is 1 by default, as the vis culling appears to gain no performance.

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

11 years agomodel_brush: use the same tesselation number for patches in the same LOD group
divverent [Thu, 1 Jan 2009 18:17:26 +0000 (18:17 +0000)]
model_brush: use the same tesselation number for patches in the same LOD group
(q3map2 writes the same mins/maxs for any patch inside a LOD group, and this fact is used for identifying LOD groups)

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

11 years agoalso support entity lumps that are NOT NUL terminated
divverent [Thu, 1 Jan 2009 17:01:49 +0000 (17:01 +0000)]
also support entity lumps that are NOT NUL terminated

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

11 years agofix two bugs in handling of invalid ^xRGB codes
divverent [Tue, 30 Dec 2008 08:30:17 +0000 (08:30 +0000)]
fix two bugs in handling of invalid ^xRGB codes

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

11 years agofor null models, respect the mins/maxs set by QC for culling
divverent [Mon, 29 Dec 2008 09:32:47 +0000 (09:32 +0000)]
for null models, respect the mins/maxs set by QC for culling

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

11 years agoadd DP_NULL_MODEL extension
divverent [Mon, 29 Dec 2008 09:29:55 +0000 (09:29 +0000)]
add DP_NULL_MODEL extension

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

11 years agoonly load the null model ONCE
divverent [Mon, 29 Dec 2008 09:28:22 +0000 (09:28 +0000)]
only load the null model ONCE

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

11 years agomodels: add a special built-in model name "null" that does not draw and has a zero...
divverent [Mon, 29 Dec 2008 09:20:51 +0000 (09:20 +0000)]
models: add a special built-in model name "null" that does not draw and has a zero bbox

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

11 years agoopen client sockets before video starts, so that the Windows Firewall
havoc [Mon, 29 Dec 2008 00:20:33 +0000 (00:20 +0000)]
open client sockets before video starts, so that the Windows Firewall
prompt will occur before video starts (it tends to screw up graphics
contexts otherwise)

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

11 years agobring back the static tokenize string buffer, because PRVM_SetTempString might mess...
divverent [Sun, 28 Dec 2008 19:20:49 +0000 (19:20 +0000)]
bring back the static tokenize string buffer, because PRVM_SetTempString might mess up the PRVM_G_STRING returned char*

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

11 years agofix whitespace handling:
divverent [Sun, 28 Dec 2008 18:47:42 +0000 (18:47 +0000)]
fix whitespace handling:
treat ONLY the following characters as whitespace:
NUL, TAB, LF, CR, SPC
Alternatively, there is commented out macro code in quakedef.h to accept any chars in 0..32 as whitespace.
Previously: 0..32 and 128..255 (due to signed char)

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

11 years agonew tokenizer tokenize_console that matches the console tokenizing
divverent [Sat, 27 Dec 2008 14:35:13 +0000 (14:35 +0000)]
new tokenizer tokenize_console that matches the console tokenizing
new builtins argv_start_index and argv_end_index
support negative indexes to argv* as indexes from the end of the argument list (similar to perl)
--> extension: DP_QC_TOKENIZE_CONSOLE

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

11 years agofix interpretation of text brightness/contrast cvars when a color multiplier is set
divverent [Fri, 26 Dec 2008 16:55:09 +0000 (16:55 +0000)]
fix interpretation of text brightness/contrast cvars when a color multiplier is set

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

11 years agoremove a redundant check fixing a gcc warning
divverent [Thu, 25 Dec 2008 22:16:19 +0000 (22:16 +0000)]
remove a redundant check fixing a gcc warning

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

11 years agoterrencehill's color codes patch. Please test thoroughly! Syntax: ^xF00 = red
divverent [Thu, 25 Dec 2008 18:03:49 +0000 (18:03 +0000)]
terrencehill's color codes patch. Please test thoroughly! Syntax: ^xF00 = red

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

11 years agoRemove disabling of stdin for the text console. Helps with interfacing scripts with...
divverent [Thu, 25 Dec 2008 14:40:08 +0000 (14:40 +0000)]
Remove disabling of stdin for the text console. Helps with interfacing scripts with the DarkPlaces client.

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

11 years agofixed a bug with "time" command in effectinfo.txt to use float parsing
havoc [Thu, 18 Dec 2008 05:18:21 +0000 (05:18 +0000)]
fixed a bug with "time" command in effectinfo.txt to use float parsing
instead of int parsing

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

11 years agoforgot to commit this file in the DP_EF_NOSELFSHADOW extension patch
havoc [Thu, 18 Dec 2008 04:35:42 +0000 (04:35 +0000)]
forgot to commit this file in the DP_EF_NOSELFSHADOW extension patch

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