xonotic/darkplaces.git
11 years agoadd DRAWFLAG_SCREEN (which basically is like invert-modulate-invert, equivalent to...
divverent [Sat, 11 Oct 2008 15:06:28 +0000 (15:06 +0000)]
add DRAWFLAG_SCREEN (which basically is like invert-modulate-invert, equivalent to GIMP's "screen" layer operation, no idea how photoshop calls it)
Just like modulate always darkens, screen always brightens.

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

11 years agofix map loading causing faces to not be rendered
divverent [Thu, 9 Oct 2008 11:47:54 +0000 (11:47 +0000)]
fix map loading causing faces to not be rendered

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

11 years agofix warnings in my last change
divverent [Mon, 6 Oct 2008 17:26:35 +0000 (17:26 +0000)]
fix warnings in my last change

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

11 years agoadd entity size profiling (currently spams the console with sizes of entity updates...
divverent [Mon, 6 Oct 2008 16:09:34 +0000 (16:09 +0000)]
add entity size profiling (currently spams the console with sizes of entity updates if developer_networkentities is >= 2, may later change it to collect statistics based on classname)

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

11 years agoresend csqc entities COMPLETELY if they became inactive and later active again
divverent [Mon, 6 Oct 2008 06:43:35 +0000 (06:43 +0000)]
resend csqc entities COMPLETELY if they became inactive and later active again

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

11 years agofix engine crash when a polygon was left over and had a texture reference when switch...
divverent [Sun, 5 Oct 2008 20:08:16 +0000 (20:08 +0000)]
fix engine crash when a polygon was left over and had a texture reference when switching maps

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

11 years agodisabled GL_ARB_texture_non_power_of_two on Mac OS X because all the
havoc [Sat, 4 Oct 2008 17:42:22 +0000 (17:42 +0000)]
disabled GL_ARB_texture_non_power_of_two on Mac OS X because all the
drivers claim to support it, but it's often unaccelerated or crashes

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

11 years agoimplemented Quake-compatible savegame saving (writes 64 or more styles)
havoc [Sat, 4 Oct 2008 17:38:02 +0000 (17:38 +0000)]
implemented Quake-compatible savegame saving (writes 64 or more styles)
enhanced savegame format with a large comment block at the end
containing the true lightstyle data (not padded with m lines), and model
and sound precaches, this should fix the famous Quake bug of reloading a
savegame with a different version of a mod, or a mod that randomly
precaches different monsters or similar

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

11 years agouse skinframes for R_BeginPolygon; helps with csqc 3D polygon rendering (e.g. mipmapp...
divverent [Sat, 4 Oct 2008 14:01:05 +0000 (14:01 +0000)]
use skinframes for R_BeginPolygon; helps with csqc 3D polygon rendering (e.g. mipmapping becomes possible, and no longer conflicts in the GL_CLAMP state between different kinds to draw stuff)

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

11 years agoadded width and height parameters to CSQC_UpdateView (a feature from
havoc [Thu, 2 Oct 2008 09:48:23 +0000 (09:48 +0000)]
added width and height parameters to CSQC_UpdateView (a feature from
EXT_CSQC_1 in FTEQW)

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

11 years agofix setview VF_VIEWPORT and variants to use screen coords rather than
havoc [Thu, 2 Oct 2008 09:43:52 +0000 (09:43 +0000)]
fix setview VF_VIEWPORT and variants to use screen coords rather than
draw coords, this matches FTEQW

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

11 years agofix cs_project and cs_unproject builtins, they were completely ignoring
havoc [Thu, 2 Oct 2008 09:14:53 +0000 (09:14 +0000)]
fix cs_project and cs_unproject builtins, they were completely ignoring
the view rectangle and not centered

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

11 years agoundo q3map2's directional light attenuation before deluxemapping. Now deluxemapping...
divverent [Tue, 30 Sep 2008 14:05:01 +0000 (14:05 +0000)]
undo q3map2's directional light attenuation before deluxemapping. Now deluxemapping and non-deluxemapping have the same perceived brightness. May reduce fps in deluxemapping mode.

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

11 years agofix a tiny leak
divverent [Sat, 27 Sep 2008 10:06:54 +0000 (10:06 +0000)]
fix a tiny leak

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

11 years agoprefer INTERNAL lightmaps
divverent [Sat, 27 Sep 2008 09:17:19 +0000 (09:17 +0000)]
prefer INTERNAL lightmaps

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

11 years agonew menu QC builtin string netaddress_resolve(string ip, float port). Not sure if...
divverent [Mon, 22 Sep 2008 05:50:55 +0000 (05:50 +0000)]
new menu QC builtin string netaddress_resolve(string ip, float port). Not sure if the others QCs should get it too.

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

11 years agoseta net_slist_favorites
divverent [Sun, 21 Sep 2008 10:54:57 +0000 (10:54 +0000)]
seta net_slist_favorites

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

11 years agoremove some unneeded code
havoc [Sat, 20 Sep 2008 12:10:26 +0000 (12:10 +0000)]
remove some unneeded code

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

11 years agopatch from esteel making the findkeysforcommand builtin available in
havoc [Tue, 16 Sep 2008 13:36:21 +0000 (13:36 +0000)]
patch from esteel making the findkeysforcommand builtin available in
csqc (formerly only available in menu qc)

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

11 years agofix lightmap loading from TGAs; fix display of QC-initiated downloads
divverent [Sat, 13 Sep 2008 09:15:36 +0000 (09:15 +0000)]
fix lightmap loading from TGAs; fix display of QC-initiated downloads

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

11 years agoexperimental (not yet tested) support for q3map2 -lightmapsize written external highe...
divverent [Sat, 13 Sep 2008 06:50:30 +0000 (06:50 +0000)]
experimental (not yet tested) support for q3map2 -lightmapsize written external higher-resolution lightmaps

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

11 years agocurl: reject file:// URLs
divverent [Fri, 12 Sep 2008 08:18:19 +0000 (08:18 +0000)]
curl: reject file:// URLs

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

11 years agoadd extension DP_QC_URI_GET (downloads HTTP/whatever URLs to QC strings using a callback)
divverent [Fri, 12 Sep 2008 08:14:24 +0000 (08:14 +0000)]
add extension DP_QC_URI_GET (downloads HTTP/whatever URLs to QC strings using a callback)

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

11 years agonew tcmod: "tcmod page <width> <height> <time>", as poor man's animmap alternative...
divverent [Fri, 12 Sep 2008 07:24:19 +0000 (07:24 +0000)]
new tcmod: "tcmod page <width> <height> <time>", as poor man's animmap alternative (stores all frames in ONE image in a <width>x<height> grid, and switches to the next frame every <time> seconds)

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

11 years agoadded curl function: Curl_Begin_ToMemory; will later use this to load stuff into...
divverent [Fri, 12 Sep 2008 06:57:29 +0000 (06:57 +0000)]
added curl function: Curl_Begin_ToMemory; will later use this to load stuff into memory with HTTP

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

11 years agosupport Q3BSP version 47 loading (format now written by q3map2 :( )
divverent [Thu, 11 Sep 2008 06:32:22 +0000 (06:32 +0000)]
support Q3BSP version 47 loading (format now written by q3map2 :( )

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

11 years agoadd r_shadow_glossexact to toggle between old and new gloss code; the difference...
divverent [Thu, 11 Sep 2008 06:15:38 +0000 (06:15 +0000)]
add r_shadow_glossexact to toggle between old and new gloss code; the difference in glossexponent is compensated for.
To get the look like before this commit, multiply r_shadow_glossexponent by 4 and keep r_shadow_glossexact on 1.

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

11 years agoSolaris compile fixes
divverent [Wed, 10 Sep 2008 09:57:24 +0000 (09:57 +0000)]
Solaris compile fixes

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

11 years agoadd a missing normalize, fixing gloss issues
divverent [Wed, 10 Sep 2008 07:42:36 +0000 (07:42 +0000)]
add a missing normalize, fixing gloss issues

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

11 years agoadd a half-baked "commandmode" (currently it has, like messagemode, no history, no...
divverent [Wed, 10 Sep 2008 06:50:53 +0000 (06:50 +0000)]
add a half-baked "commandmode" (currently it has, like messagemode, no history, no line editing)

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

11 years agobound by 0.1 again (this bounding had its reason) AND by sv_clmovement_waitforinput...
divverent [Wed, 10 Sep 2008 06:09:36 +0000 (06:09 +0000)]
bound by 0.1 again (this bounding had its reason) AND by sv_clmovement_waitforinput * sys_ticrate

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

11 years agofix speedhack issue with low cl_netfps / packet loss on servers with sv_clmovement_wa...
divverent [Wed, 10 Sep 2008 06:04:19 +0000 (06:04 +0000)]
fix speedhack issue with low cl_netfps / packet loss on servers with sv_clmovement_waitforinput * sys_ticrate < 0.1

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

11 years agosv_status_privacy", "0", "do not show IP addresses in 'status' replies to clients
divverent [Sat, 6 Sep 2008 20:57:32 +0000 (20:57 +0000)]
sv_status_privacy", "0", "do not show IP addresses in 'status' replies to clients

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

11 years agofix the mathlib corner case vectoangles2('0 0 -1', '...')
divverent [Thu, 4 Sep 2008 09:28:23 +0000 (09:28 +0000)]
fix the mathlib corner case vectoangles2('0 0 -1', '...')

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

11 years ago482
havoc [Thu, 4 Sep 2008 06:12:34 +0000 (06:12 +0000)]
482

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

11 years agofix id1 demos to not show deathmatch overlay (they incorrectly contain
havoc [Thu, 4 Sep 2008 06:06:07 +0000 (06:06 +0000)]
fix id1 demos to not show deathmatch overlay (they incorrectly contain
gametype deathmatch)

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

11 years agofix crashes on Win64 builds caused by stack overflow in R_DrawRTLight
havoc [Thu, 4 Sep 2008 05:56:33 +0000 (05:56 +0000)]
fix crashes on Win64 builds caused by stack overflow in R_DrawRTLight
(reported by Willis)

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

11 years agosplit FS_Open into FS_OpenRealFile and FS_OpenVirtualFile (read-only),
havoc [Thu, 4 Sep 2008 05:51:51 +0000 (05:51 +0000)]
split FS_Open into FS_OpenRealFile and FS_OpenVirtualFile (read-only),
this allows the savegame menu to only display savegames from the current
save directory (not other directories in the virtual filesystem)
added b (binary) flag to a few FS_OpenRealFile calls, and removed from a
few others (so that logs and QuakeC-written files use OS line endings)

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

11 years agouse ?= operator for CPUOPTIMIZATIONS
havoc [Thu, 4 Sep 2008 05:46:40 +0000 (05:46 +0000)]
use ?= operator for CPUOPTIMIZATIONS
added an experimental CPUOPTIMIZATIONS comment as a suggestion

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

11 years agomakefile: show usage note when someone is using the bin-release or the darkplaces...
divverent [Tue, 2 Sep 2008 09:10:32 +0000 (09:10 +0000)]
makefile: show usage note when someone is using the bin-release or the darkplaces-glx targets directly (to override this, pass LEVEL=1 or LEVEL=2 as make arguments)

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

11 years agoFixed threaded mode in the CoreAudio sound module
molivier [Thu, 28 Aug 2008 10:30:38 +0000 (10:30 +0000)]
Fixed threaded mode in the CoreAudio sound module

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

11 years agoFixed a typo that caused snd_coreaudio.c to be compiled at link time, without the...
molivier [Thu, 28 Aug 2008 10:12:48 +0000 (10:12 +0000)]
Fixed a typo that caused snd_coreaudio.c to be compiled at link time, without the usual compilation flags and warnings

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

11 years agochanged default values for gl_texturecompression_2d and normalmaps and
havoc [Thu, 28 Aug 2008 09:50:37 +0000 (09:50 +0000)]
changed default values for gl_texturecompression_2d and normalmaps and
q3bsp lightmaps to 0 (off), bringing the defaults in line with Nexuiz

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

11 years agoreworked specular lighting to use real reflection math instead of the
havoc [Thu, 28 Aug 2008 09:38:27 +0000 (09:38 +0000)]
reworked specular lighting to use real reflection math instead of the
averaged-directions approximation that was used before
no longer normalizes deluxemap samples, this may help with some "bright
edge near shadow" interpolation issues

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

11 years agoreworked mdl .skin file loading a bit to fix problems with not loading
havoc [Tue, 26 Aug 2008 18:24:36 +0000 (18:24 +0000)]
reworked mdl .skin file loading a bit to fix problems with not loading
.mdl_1.skin onward

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

11 years agofix support for time command in effectinfo.txt - it was not being passed
havoc [Mon, 25 Aug 2008 15:07:15 +0000 (15:07 +0000)]
fix support for time command in effectinfo.txt - it was not being passed
on to the CL_NewParticle calls

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

11 years agorcon: use multiple reply packets to fit any size (where "any" means "as big as the...
divverent [Sun, 24 Aug 2008 19:50:08 +0000 (19:50 +0000)]
rcon: use multiple reply packets to fit any size (where "any" means "as big as the OS's socket buffer, about 32k on Linux)

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

11 years agono, my PC can't take 1024 bytes buffer size in SDL (clicks in background). Increased...
divverent [Sun, 24 Aug 2008 19:15:27 +0000 (19:15 +0000)]
no, my PC can't take 1024 bytes buffer size in SDL (clicks in background). Increased to 2048.

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

11 years agofix NOCLAMP
divverent [Sun, 24 Aug 2008 15:21:42 +0000 (15:21 +0000)]
fix NOCLAMP

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

11 years agonew flag CACHEPICFLAG_NOCLAMP; use it for R_PolygonBegin polygons
divverent [Sun, 24 Aug 2008 15:03:26 +0000 (15:03 +0000)]
new flag CACHEPICFLAG_NOCLAMP; use it for R_PolygonBegin polygons

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

11 years agoadd missing R_Mesh_ResetTextureState call (to fix CSQC polygon rendering)
divverent [Sun, 24 Aug 2008 14:57:06 +0000 (14:57 +0000)]
add missing R_Mesh_ResetTextureState call (to fix CSQC polygon rendering)

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

11 years agoSDL: reduce the sound buffer size (too much lag otherwise)
divverent [Sun, 24 Aug 2008 10:58:46 +0000 (10:58 +0000)]
SDL: reduce the sound buffer size (too much lag otherwise)

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

11 years agofix Sajt's errors (in Visual Studio, I assume) in a better way - by changing the...
divverent [Sun, 24 Aug 2008 10:44:50 +0000 (10:44 +0000)]
fix Sajt's errors (in Visual Studio, I assume) in a better way - by changing the variable types, not casting. Also, only record one instance of the same csprogs into the demo.

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

11 years agoalso consider vid_mouse cvar when key_dest is key_menu
divverent [Sun, 24 Aug 2008 10:19:23 +0000 (10:19 +0000)]
also consider vid_mouse cvar when key_dest is key_menu

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

11 years agoremove redundant repeat ignoring
divverent [Sun, 24 Aug 2008 10:09:15 +0000 (10:09 +0000)]
remove redundant repeat ignoring

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

11 years agohandle F key binds correctly (up event shall not go to CSQC)
divverent [Sun, 24 Aug 2008 10:07:57 +0000 (10:07 +0000)]
handle F key binds correctly (up event shall not go to CSQC)

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

11 years agofix some errors and warnings
sajt [Sun, 24 Aug 2008 04:08:43 +0000 (04:08 +0000)]
fix some errors and warnings

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

11 years agojpeg: handle errors properly (with longjmp)
divverent [Sat, 23 Aug 2008 07:30:19 +0000 (07:30 +0000)]
jpeg: handle errors properly (with longjmp)

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

11 years agoforgot to update this for dpshadow/dpnoshadow
havoc [Fri, 22 Aug 2008 22:46:31 +0000 (22:46 +0000)]
forgot to update this for dpshadow/dpnoshadow

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

11 years agoadded shader keywords dpshadow and dpnoshadow (no parameters), these
havoc [Fri, 22 Aug 2008 21:48:45 +0000 (21:48 +0000)]
added shader keywords dpshadow and dpnoshadow (no parameters), these
modify the shadowing properties of a mesh, regardless of its other
properties

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

11 years agodefault cl_maxfps to 0 rather than 1000000
havoc [Fri, 22 Aug 2008 21:47:39 +0000 (21:47 +0000)]
default cl_maxfps to 0 rather than 1000000

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

11 years agoallow cl_maxfps and cl_maxidlefps to be 0, meaning unlimited (like in
havoc [Fri, 22 Aug 2008 11:26:53 +0000 (11:26 +0000)]
allow cl_maxfps and cl_maxidlefps to be 0, meaning unlimited (like in
many QW clients)

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

11 years agoredesigned csqc shared entity .Version handling, now internally uses a
havoc [Wed, 20 Aug 2008 18:33:42 +0000 (18:33 +0000)]
redesigned csqc shared entity .Version handling, now internally uses a
flags value instead, while keeping compatibility with .Version (simply
sets flags to 1), each frame the flags value is merged into the
per-client entity flags and cleared, the flags value is exposed to qc as
.float SendFlags, and is a complete alternative to .Version, allowing
multiple updatable properties on an entity to be independently tracked

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

11 years agoimplemented an lhnetaddresstype_t enum instead of using #define's
havoc [Tue, 19 Aug 2008 13:29:33 +0000 (13:29 +0000)]
implemented an lhnetaddresstype_t enum instead of using #define's

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

11 years agoredesigned lhnetaddress_t struct to be a generic container for sockaddr,
havoc [Tue, 19 Aug 2008 13:16:27 +0000 (13:16 +0000)]
redesigned lhnetaddress_t struct to be a generic container for sockaddr,
this fixes runtime errors on FreeBSD where sockaddr_in does not match
the one that lhnet used to use
changed lhnetaddress_t struct to have a native port value rather than
having to poke at the sockaddr variants all the time to access port
values (now only a few places set/get the actual encoded port value)

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

11 years agoallow disabling scoreboard ranking display left of sbar
havoc [Tue, 19 Aug 2008 13:11:59 +0000 (13:11 +0000)]
allow disabling scoreboard ranking display left of sbar
allow disabling game time display left of sbar

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

11 years agoonly apply qw skins to progs/player.mdl
havoc [Tue, 19 Aug 2008 10:46:00 +0000 (10:46 +0000)]
only apply qw skins to progs/player.mdl

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

11 years agoremove two unnecessary externs
havoc [Tue, 19 Aug 2008 08:37:28 +0000 (08:37 +0000)]
remove two unnecessary externs

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

11 years agofix NaN velocity that always occurred when standing still because
havoc [Tue, 19 Aug 2008 08:10:46 +0000 (08:10 +0000)]
fix NaN velocity that always occurred when standing still because
VectorLength was being used in a divide without checking if it was
already 0

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

11 years agofix crashes when recursing portals on maps with some bogus leafs (where
havoc [Mon, 18 Aug 2008 17:50:21 +0000 (17:50 +0000)]
fix crashes when recursing portals on maps with some bogus leafs (where
infinite recursion loops can occur, alternating between two leafs), such
as cmc.bsp for prozactf coop

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

11 years agofix three double semicolon typos
havoc [Mon, 18 Aug 2008 05:34:53 +0000 (05:34 +0000)]
fix three double semicolon typos

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

11 years agoregister disconnect command even on dedicated server
havoc [Fri, 15 Aug 2008 04:40:21 +0000 (04:40 +0000)]
register disconnect command even on dedicated server

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

11 years agoGAME_NEXUIZ: fix world model not getting initialized when it could not be found ...
divverent [Wed, 13 Aug 2008 10:54:03 +0000 (10:54 +0000)]
GAME_NEXUIZ: fix world model not getting initialized when it could not be found (e.g. 404)

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

11 years agoalso send MSG_ALL to people who are past ClientConnect, but not spawned yet (makes...
divverent [Wed, 13 Aug 2008 09:59:36 +0000 (09:59 +0000)]
also send MSG_ALL to people who are past ClientConnect, but not spawned yet (makes the invariant "he can receive MSG_ALL or he's not past ClientConnect yet" work, which CSQC may rely on).

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

11 years agopartially fix ClientConnect handling
divverent [Wed, 13 Aug 2008 09:45:58 +0000 (09:45 +0000)]
partially fix ClientConnect handling
(fixes the slot between SpawnServer and ClientConnect (content download, signon) where a client that drops could have ClientDisconnect getting called without ClientConnect ever happening in that progs)

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

11 years agoOnly send the reliable (broadcast) datagram to SPAWNED clients - should fix client...
divverent [Wed, 13 Aug 2008 08:29:34 +0000 (08:29 +0000)]
Only send the reliable (broadcast) datagram to SPAWNED clients - should fix client disconnects for CSQC temp entities sent to MSG_ALL. Hope this won't break anything else. Running my servers with this soon.

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

11 years agodamn, THIS fix wasn't need - the demo reading fix already did that
divverent [Mon, 11 Aug 2008 18:42:22 +0000 (18:42 +0000)]
damn, THIS fix wasn't need - the demo reading fix already did that

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

11 years agoquick hack to fix missing PK3s when loading demos with curl downloads (works for...
divverent [Mon, 11 Aug 2008 18:23:19 +0000 (18:23 +0000)]
quick hack to fix missing PK3s when loading demos with curl downloads (works for client side recorded demos ONLY)

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

11 years agodemo recording: stuff csprogs.dat files into .dem files so demos can always be played...
divverent [Mon, 11 Aug 2008 18:12:51 +0000 (18:12 +0000)]
demo recording: stuff csprogs.dat files into .dem files so demos can always be played back

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

11 years agoported some features over from darkwar matrixlib.[ch]
havoc [Mon, 11 Aug 2008 01:54:26 +0000 (01:54 +0000)]
ported some features over from darkwar matrixlib.[ch]

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

11 years agofix double free in qcstatus
divverent [Sat, 9 Aug 2008 06:38:22 +0000 (06:38 +0000)]
fix double free in qcstatus

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

11 years agodrawcolorcodedstring takes the flags in arg 4, not 5
divverent [Fri, 8 Aug 2008 17:14:24 +0000 (17:14 +0000)]
drawcolorcodedstring takes the flags in arg 4, not 5

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

11 years agomake menu QC aware of player list; add extension DP_SV_QCSTATUS to allow QC to overri...
divverent [Fri, 8 Aug 2008 08:13:13 +0000 (08:13 +0000)]
make menu QC aware of player list; add extension DP_SV_QCSTATUS to allow QC to override fields in status responses (e.g. to display teams, or more than one score per player, or team scores)

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

11 years agoEven more snd channel cvars. I know this sucks, but having just one control for all...
divverent [Wed, 6 Aug 2008 10:51:45 +0000 (10:51 +0000)]
Even more snd channel cvars. I know this sucks, but having just one control for all auto-allocate channels DOES suck. Need to separate out world's autoallocate and item auto-allocate channels.

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

11 years agoindependent volume control for the 8 entity channels
divverent [Wed, 6 Aug 2008 06:32:58 +0000 (06:32 +0000)]
independent volume control for the 8 entity channels

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

11 years agoadd TEXF_ALPHA when loading a normalmap
divverent [Tue, 5 Aug 2008 06:27:03 +0000 (06:27 +0000)]
add TEXF_ALPHA when loading a normalmap

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

11 years agoleaktest: also exclude csqc networked entities
divverent [Sun, 3 Aug 2008 12:34:03 +0000 (12:34 +0000)]
leaktest: also exclude csqc networked entities

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

11 years agofix ESC in disconnected state. FINALLY!
divverent [Sat, 2 Aug 2008 10:02:19 +0000 (10:02 +0000)]
fix ESC in disconnected state. FINALLY!

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

11 years agoreintroduce the KEY_ESCAPE switch, but this time make sure it actually behaves right
divverent [Sat, 2 Aug 2008 09:44:10 +0000 (09:44 +0000)]
reintroduce the KEY_ESCAPE switch, but this time make sure it actually behaves right

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

11 years agospecial entity culling rules for players: 0.2 delay, 8 traces. Probably can be upped...
divverent [Fri, 1 Aug 2008 09:32:08 +0000 (09:32 +0000)]
special entity culling rules for players: 0.2 delay, 8 traces. Probably can be upped even more.

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

11 years agoremove TEXF_ALPHA flag for any map textures, because Q3 mappers seem to suck and...
divverent [Wed, 30 Jul 2008 14:13:12 +0000 (14:13 +0000)]
remove TEXF_ALPHA flag for any map textures, because Q3 mappers seem to suck and use textures with actual alpha channel as nontransparent ones without even writing a shader that says so

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

11 years agofix font parsing so adding more properties in the future will make them ignored,...
divverent [Tue, 29 Jul 2008 09:48:43 +0000 (09:48 +0000)]
fix font parsing so adding more properties in the future will make them ignored, not do stupid things

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

11 years agoadd a new "scale" property in font files. Specifying, e.g., "scale 1.2" in a font...
divverent [Tue, 29 Jul 2008 09:42:13 +0000 (09:42 +0000)]
add a new "scale" property in font files. Specifying, e.g., "scale 1.2" in a font means that it gets rendered at 1.2 the usual size (by using 10% more space to the top and to the bottom). This may cause overlap between characters of adjacent lines, so use this with care (e.g. to support a font with large over- or underlengths).

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

11 years agocl_readpicture_force: force the low quality jpeg image to be used even if the image...
divverent [Tue, 29 Jul 2008 06:08:43 +0000 (06:08 +0000)]
cl_readpicture_force: force the low quality jpeg image to be used even if the image exists on the file system (for testing)

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

11 years agofix ${* q}
divverent [Thu, 24 Jul 2008 07:01:54 +0000 (07:01 +0000)]
fix ${* q}

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

11 years agodon't warn about CSQC_Ent_Remove on an already-removed entity (it could
havoc [Thu, 24 Jul 2008 01:37:38 +0000 (01:37 +0000)]
don't warn about CSQC_Ent_Remove on an already-removed entity (it could
be a repeated update)

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

11 years agofixed rate limiting of csqc entities (they were overflowing easily)
havoc [Thu, 24 Jul 2008 01:27:30 +0000 (01:27 +0000)]
fixed rate limiting of csqc entities (they were overflowing easily)

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

11 years agooptimize many loops over expandable arrays by not repeatedly calling Mem_ExpandableAr...
divverent [Wed, 23 Jul 2008 11:25:52 +0000 (11:25 +0000)]
optimize many loops over expandable arrays by not repeatedly calling Mem_ExpandableArray_IndexRange (patch by Blub)

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

11 years agoturn rev8420 "enable transparency on tga skins on mdl/md2/md3 when shader is not...
divverent [Wed, 23 Jul 2008 09:39:37 +0000 (09:39 +0000)]
turn rev8420 "enable transparency on tga skins on mdl/md2/md3 when shader is not found" into what it actually WANTED to be (only enable the transparency if the TGA actually is transparent)

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

11 years agoadd apparently not yet working optimization flags to Mem_ExpandableArray function...
divverent [Wed, 23 Jul 2008 07:08:59 +0000 (07:08 +0000)]
add apparently not yet working optimization flags to Mem_ExpandableArray function (can't see what difference it causes in asm output)

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