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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 years agoadded DP_EF_NOSELFSHADOW extension
havoc [Thu, 18 Dec 2008 04:34:35 +0000 (04:34 +0000)]
added DP_EF_NOSELFSHADOW extension

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

15 years agofix crash
divverent [Wed, 17 Dec 2008 20:47:14 +0000 (20:47 +0000)]
fix crash

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

15 years agofix warnings
divverent [Wed, 17 Dec 2008 14:14:27 +0000 (14:14 +0000)]
fix warnings

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

15 years agomore space for client numbers
divverent [Wed, 17 Dec 2008 07:16:16 +0000 (07:16 +0000)]
more space for client numbers

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

15 years agonew command by terrencehill: "status 1" and "status 2" as alternate, more readable...
divverent [Wed, 17 Dec 2008 07:10:27 +0000 (07:10 +0000)]
new command by terrencehill: "status 1" and "status 2" as alternate, more readable status displays. "status" unchanged.

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

15 years agocurl: longer URLs
divverent [Tue, 16 Dec 2008 14:23:46 +0000 (14:23 +0000)]
curl: longer URLs

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

15 years agowhen loading a game, free "text" later
divverent [Tue, 16 Dec 2008 13:30:47 +0000 (13:30 +0000)]
when loading a game, free "text" later

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

15 years agosave game loading: abort when a token is NULL (might happen if the last line ends...
divverent [Tue, 16 Dec 2008 12:54:38 +0000 (12:54 +0000)]
save game loading: abort when a token is NULL (might happen if the last line ends without newline)

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

15 years ago- add debug prints for saving/loading games for prvm_entityparsing
divverent [Tue, 16 Dec 2008 07:01:36 +0000 (07:01 +0000)]
- add debug prints for saving/loading games for prvm_entityparsing
- make PRVM_UglyValueString escape " to \" (note that loading does not match that, as parsebackslash is off in the call to COM_ParseToken_Simple - why?)

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

15 years ago1. also play sounds outside cdtracks/ as CD tracks
divverent [Mon, 15 Dec 2008 09:31:55 +0000 (09:31 +0000)]
1. also play sounds outside cdtracks/ as CD tracks
2. "cdaudio 4": play a random CD track for named tracks

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

15 years agoadd new cvar "cdaudio" to select priorities of CD and fake tracks;
divverent [Mon, 15 Dec 2008 09:15:32 +0000 (09:15 +0000)]
add new cvar "cdaudio" to select priorities of CD and fake tracks;
turn off "Playing fake CD track" messages if only fake tracks could be used anyway

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

15 years agoFix alpha transparent textures (used by HLBSP maps) in HL/Q1 BSP maps
divverent [Sun, 14 Dec 2008 21:57:52 +0000 (21:57 +0000)]
Fix alpha transparent textures (used by HLBSP maps) in HL/Q1 BSP maps

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

15 years agofix color averaging of palette images from quake
divverent [Tue, 9 Dec 2008 20:52:00 +0000 (20:52 +0000)]
fix color averaging of palette images from quake

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

15 years agomake color averaging use 64bit integers, instead of 32bit ones, as they wrap on 512x5...
divverent [Tue, 9 Dec 2008 11:39:06 +0000 (11:39 +0000)]
make color averaging use 64bit integers, instead of 32bit ones, as they wrap on 512x512 images

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

15 years agono idea why, but ambient needed halving in showsurfaces 3
divverent [Mon, 8 Dec 2008 06:43:07 +0000 (06:43 +0000)]
no idea why, but ambient needed halving in showsurfaces 3

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

15 years agor_showsurfaces 3 (needs a better cvar name, by the way): support r_fullbright correctly
divverent [Mon, 8 Dec 2008 06:33:36 +0000 (06:33 +0000)]
r_showsurfaces 3 (needs a better cvar name, by the way): support r_fullbright correctly

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

15 years agofix color averaging
divverent [Sun, 7 Dec 2008 19:37:24 +0000 (19:37 +0000)]
fix color averaging

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

15 years agofix overbrightness :(
divverent [Sun, 7 Dec 2008 18:32:33 +0000 (18:32 +0000)]
fix overbrightness :(

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

15 years agono, this way of colormapping looks best after all... sorry
divverent [Sun, 7 Dec 2008 18:28:33 +0000 (18:28 +0000)]
no, this way of colormapping looks best after all... sorry

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

15 years agobetter handling of color tints by colormap
divverent [Sun, 7 Dec 2008 18:23:15 +0000 (18:23 +0000)]
better handling of color tints by colormap

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

15 years agofactor out the pixel averaging code
divverent [Sun, 7 Dec 2008 18:09:09 +0000 (18:09 +0000)]
factor out the pixel averaging code

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

15 years agofix showsurfaces 3 bugs on augenkrebs
divverent [Sun, 7 Dec 2008 11:51:23 +0000 (11:51 +0000)]
fix showsurfaces 3 bugs on augenkrebs

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

15 years agofix rendering of fullbright stuff in showsurfaces 3
divverent [Sun, 7 Dec 2008 11:32:52 +0000 (11:32 +0000)]
fix rendering of fullbright stuff in showsurfaces 3

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

15 years agonow support fog in the eeepc path
divverent [Sun, 7 Dec 2008 11:17:28 +0000 (11:17 +0000)]
now support fog in the eeepc path

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

15 years agoshowsurfaces 3: allow depth sorting
divverent [Sun, 7 Dec 2008 10:48:48 +0000 (10:48 +0000)]
showsurfaces 3: allow depth sorting

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

15 years agoshowsurfaces 3: refactor it a bit; disable r_water in this mode
divverent [Sun, 7 Dec 2008 08:06:38 +0000 (08:06 +0000)]
showsurfaces 3: refactor it a bit; disable r_water in this mode

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

15 years agoundo the last fix, and instead make a new fix that does not make dark stuff bright.
divverent [Sat, 6 Dec 2008 21:08:15 +0000 (21:08 +0000)]
undo the last fix, and instead make a new fix that does not make dark stuff bright.

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

15 years agofix typo
divverent [Sat, 6 Dec 2008 20:59:33 +0000 (20:59 +0000)]
fix typo

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

15 years agofix a NULL
divverent [Sat, 6 Dec 2008 20:54:56 +0000 (20:54 +0000)]
fix a NULL

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

15 years agobrighten up the averaged texture value by factor 2 to make it look right
divverent [Sat, 6 Dec 2008 20:17:40 +0000 (20:17 +0000)]
brighten up the averaged texture value by factor 2 to make it look right

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

15 years agosupport r_ambient in "eeepc mode"
divverent [Sat, 6 Dec 2008 20:12:41 +0000 (20:12 +0000)]
support r_ambient in "eeepc mode"

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

15 years agor_showsurfaces 3 "eeepc mode": support blend funcs
divverent [Sat, 6 Dec 2008 20:06:53 +0000 (20:06 +0000)]
r_showsurfaces 3 "eeepc mode": support blend funcs

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

15 years agoimproved r_showsurfaces 3. Should be PLAYABLE!!!1 now.
divverent [Sat, 6 Dec 2008 13:58:48 +0000 (13:58 +0000)]
improved r_showsurfaces 3. Should be PLAYABLE!!!1 now.

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

15 years agoexperimental new mode "r_showsurfaces 3": shows faces in average texture color
divverent [Sat, 6 Dec 2008 13:02:02 +0000 (13:02 +0000)]
experimental new mode "r_showsurfaces 3": shows faces in average texture color

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

15 years agoQ3BSP: only generate the shadow mesh if on a client. Skip that part on the dedicated...
divverent [Wed, 3 Dec 2008 13:12:31 +0000 (13:12 +0000)]
Q3BSP: only generate the shadow mesh if on a client. Skip that part on the dedicated server. Reduces load time of redstarrepublic4.bsp from 21.6s to 12.3s on a dedicated server.

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

15 years agofix a signedness warning
havoc [Wed, 3 Dec 2008 00:38:24 +0000 (00:38 +0000)]
fix a signedness warning

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

15 years agofix for a crash in certain q1bsp maps with very large polygons when
havoc [Wed, 3 Dec 2008 00:34:17 +0000 (00:34 +0000)]
fix for a crash in certain q1bsp maps with very large polygons when
cl_stainmaps is on, thanks to Andreas Dehmel for this fix

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

15 years agomove texture compression disabling and picmip into LookupQ3Shader, based on the defau...
divverent [Fri, 28 Nov 2008 16:48:36 +0000 (16:48 +0000)]
move texture compression disabling and picmip into LookupQ3Shader, based on the default flags that are used for shaderless textures. Reason: playermodels by leileilol used Q3 shaders, which made them exempt from picmip if r_picmipworld is used.

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

15 years agoeffectinfo: add "stretchfactor"
divverent [Fri, 28 Nov 2008 15:15:53 +0000 (15:15 +0000)]
effectinfo: add "stretchfactor"

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

15 years agoUGLY HACK: intercept curl commands when playing back demos to immediately load all...
divverent [Thu, 27 Nov 2008 16:30:44 +0000 (16:30 +0000)]
UGLY HACK: intercept curl commands when playing back demos to immediately load all required pk3 files

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

15 years agoadded some flag clearing in csqc render entity setup to make sure that
havoc [Thu, 20 Nov 2008 08:09:29 +0000 (08:09 +0000)]
added some flag clearing in csqc render entity setup to make sure that
the shadow/light/noselfshadow flags are set correctly

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

15 years agograb mouse when in controls menu, so that mouse clicks can be captured
havoc [Tue, 11 Nov 2008 20:40:57 +0000 (20:40 +0000)]
grab mouse when in controls menu, so that mouse clicks can be captured

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

15 years agor_shadows 2: cast shadows always DOWN, ignore level lighting
divverent [Mon, 10 Nov 2008 14:02:19 +0000 (14:02 +0000)]
r_shadows 2: cast shadows always DOWN, ignore level lighting

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

15 years agor_shadows: use the parent entity's light direction for shadowing attached entities...
divverent [Mon, 10 Nov 2008 13:58:11 +0000 (13:58 +0000)]
r_shadows: use the parent entity's light direction for shadowing attached entities. Prevents tearing apart the weapon from its holder.

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

15 years agoglx: support vid_stick_mouse (to always warp to the center, as opposed to only warp...
divverent [Mon, 10 Nov 2008 11:18:36 +0000 (11:18 +0000)]
glx: support vid_stick_mouse (to always warp to the center, as opposed to only warp if half the screen size is crossed)

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