xonotic/darkplaces.git
13 years agoadded BX_WAL_SUPPORT to extensions list and documented it (.wal texture support has...
havoc [Wed, 24 Jan 2007 18:40:26 +0000 (18:40 +0000)]
added BX_WAL_SUPPORT to extensions list and documented it (.wal texture support has been in for a long time before this)

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

13 years agosome cleanup of shader permutation handling
havoc [Wed, 24 Jan 2007 17:48:49 +0000 (17:48 +0000)]
some cleanup of shader permutation handling
expanded shader permutation system to allow multiple shader source files (not sure if this will ever be used) rather than just "glsl/default.glsl"
added code support for geometry shaders (not actually hooked up because there's no GL_ARB_geometry_shader extension yet)
added flagging of which shader objects are needed by a given permutation (to allow vertex-only shaders for shadow volume projection and such, also not implemented)

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

13 years agofix a few typos in comments
havoc [Wed, 24 Jan 2007 14:21:05 +0000 (14:21 +0000)]
fix a few typos in comments

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

13 years agoreplaced prvm_tempstringmemory cvar with automatic buffer growth (with a limit of...
havoc [Wed, 24 Jan 2007 14:19:39 +0000 (14:19 +0000)]
replaced prvm_tempstringmemory cvar with automatic buffer growth (with a limit of 256MB)

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

13 years agoredesigned tempstring system, now uses a fixed size buffer based on the prvm_tempstri...
havoc [Wed, 24 Jan 2007 04:15:45 +0000 (04:15 +0000)]
redesigned tempstring system, now uses a fixed size buffer based on the prvm_tempstringmemory cvar (this is probably safe to automatically resize in the future but is not currently resized)
audited PRVM_G_STRING use in the engine (eliminated many NULL checks in functions because it never returns NULL)
added DP_QC_UNLIMITEDTEMPSTRINGS extension to indicate this new tempstring system's wonderous features (not yet documented)

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

13 years agoadded r_hdr_range cvar (which just divides r_bloom_colorscale and multiplies r_bloom_...
havoc [Wed, 24 Jan 2007 03:56:16 +0000 (03:56 +0000)]
added r_hdr_range cvar (which just divides r_bloom_colorscale and multiplies r_bloom_brighten)
changed default r_bloom_brighten from 2 to 1 and r_bloom_colorsubtract from 0.125 to 0, this gives a more color-preserving bloom effect and actually seems brighter in many cases

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

13 years agoanother minor cleanup for static entities related to delayed model loading (no bugs...
havoc [Tue, 23 Jan 2007 19:36:14 +0000 (19:36 +0000)]
another minor cleanup for static entities related to delayed model loading (no bugs involved though)

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

13 years agofixed bug in CL_RelinkStaticEntities related to delayed model loading, now calls...
havoc [Tue, 23 Jan 2007 19:34:20 +0000 (19:34 +0000)]
fixed bug in CL_RelinkStaticEntities related to delayed model loading, now calls CL_UpdateRenderEntity so the culling box is correct

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

13 years agochanged Cmd_StuffCmds_f to combine the entire set of commandline arguments into one...
havoc [Tue, 23 Jan 2007 16:58:57 +0000 (16:58 +0000)]
changed Cmd_StuffCmds_f to combine the entire set of commandline arguments into one string before calling Cbuf_InsertText, this fixes the reverse order execution bug (where +deathmatch 7 +map dpdm2 would execute deathmatch 7 AFTER starting the map, which was useless until a restart command was issued)

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

13 years agofix bug in GL_CullFace which was causing it to often malfunction
havoc [Tue, 23 Jan 2007 16:51:26 +0000 (16:51 +0000)]
fix bug in GL_CullFace which was causing it to often malfunction

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

13 years ago504 (-7)
havoc [Tue, 23 Jan 2007 03:12:39 +0000 (03:12 +0000)]
504 (-7)

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

13 years agochanged the not-very-useful min/avg/max part of timedemo results to one-second min...
havoc [Tue, 23 Jan 2007 03:02:53 +0000 (03:02 +0000)]
changed the not-very-useful min/avg/max part of timedemo results to one-second min/avg/max

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

13 years agofixed bug in CSQC_AddRenderEdict (it was using the tempentity's modelindex rather...
havoc [Tue, 23 Jan 2007 01:40:36 +0000 (01:40 +0000)]
fixed bug in CSQC_AddRenderEdict (it was using the tempentity's modelindex rather than the vm entity, meaning that csqc entities never had a visible model)
reduced code by merging cl.csqc_model_precache lookups into CSQC_GetModelByIndex and CSQC_GetModelFromEntity functions

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

13 years agoeliminated cl.csqc_entities array and related fields
havoc [Tue, 23 Jan 2007 00:43:51 +0000 (00:43 +0000)]
eliminated cl.csqc_entities array and related fields

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

13 years agosignificant cleanup of CL_UpdateEntities, GL_UpdateNetworkEntity, CL_LinkNetworkEntit...
havoc [Tue, 23 Jan 2007 00:27:49 +0000 (00:27 +0000)]
significant cleanup of CL_UpdateEntities, GL_UpdateNetworkEntity, CL_LinkNetworkEntity, V_CalcRefdef handling, and CSQC issues related to these
eliminated linkframe from entity_t (this means CL_UpdateNetworkEntity may sometimes process an entity twice, and CL_LinkNetworkEntity is no longer recursive as it does not need to be)

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

13 years agofix a couple warnings (one of them more serious than the other)
havoc [Mon, 22 Jan 2007 23:16:00 +0000 (23:16 +0000)]
fix a couple warnings (one of them more serious than the other)

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

13 years agoadded support for single-quoted strings in COM_ParseTokenConsole
havoc [Mon, 22 Jan 2007 22:14:47 +0000 (22:14 +0000)]
added support for single-quoted strings in COM_ParseTokenConsole

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

13 years agoremoved \ escape character support from COM_ParseTokenConsole because it breaks ...
havoc [Mon, 22 Jan 2007 22:13:51 +0000 (22:13 +0000)]
removed \ escape character support from COM_ParseTokenConsole because it breaks \ bindings in configs and may have other issues

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

13 years agoimplemented csprogs.dat downloading with special dlcache/name.size.crc file naming...
havoc [Mon, 22 Jan 2007 22:01:27 +0000 (22:01 +0000)]
implemented csprogs.dat downloading with special dlcache/name.size.crc file naming, this is in need of testing
added csqc_progsize cvar to csqc signon process (still compatible with old servers)

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

13 years agotwo improvements to vid_restart in the SDL client: hardware gamma is now
havoc [Mon, 22 Jan 2007 19:31:49 +0000 (19:31 +0000)]
two improvements to vid_restart in the SDL client: hardware gamma is now
restored after vid_restart, and the brief fullscreen window (used to reset
the SDL GL attributes) is now only used during vid_restart, not the initial
client startup

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

13 years agoSTAT_TOTALSECRETS and STAT_TOTALMONSTERS are now networked so deathmatch 7 mode in...
havoc [Mon, 22 Jan 2007 18:34:13 +0000 (18:34 +0000)]
STAT_TOTALSECRETS and STAT_TOTALMONSTERS are now networked so deathmatch 7 mode in dpmod shows the total monsters now

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

13 years agomodified droptofloor to treat trace.startsolid as an acceptable situation, this preve...
havoc [Mon, 22 Jan 2007 18:20:05 +0000 (18:20 +0000)]
modified droptofloor to treat trace.startsolid as an acceptable situation, this prevents many items falling out of various user-made maps (including a critial item in level x2m4 of X-Men: Ravages of Apocalypse)
added sv_gameplayfix_droptofloorstartsolid cvar to control this behavior

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

13 years agoadded framecount and framerate checks to PF_effect
havoc [Mon, 22 Jan 2007 14:59:47 +0000 (14:59 +0000)]
added framecount and framerate checks to PF_effect

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

13 years agoadded \' and \\ support to parsers, and added such escape code support to ' quoted...
havoc [Mon, 22 Jan 2007 14:53:52 +0000 (14:53 +0000)]
added \' and \\ support to parsers, and added such escape code support to ' quoted strings and regular words

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

13 years agoimplemented \" and \n support in quoted string parsers (console and otherwise)
havoc [Mon, 22 Jan 2007 14:51:05 +0000 (14:51 +0000)]
implemented \" and \n support in quoted string parsers (console and otherwise)

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

13 years agomoved EF_MUZZLEFLASH checking to CL_MoveLerpEntityStates to make muzzleflashes reliab...
havoc [Mon, 22 Jan 2007 14:42:05 +0000 (14:42 +0000)]
moved EF_MUZZLEFLASH checking to CL_MoveLerpEntityStates to make muzzleflashes reliably work when the client is running slower than the server
made muzzleflash 1.5x as large and 4x as bright as before, and fade in 50ms instead of 100ms
changed dlight decay to scale color instead of radius

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

13 years agotweaked default TE_TELEPORT effect, it now spawns one large very bright particle...
havoc [Mon, 22 Jan 2007 13:37:39 +0000 (13:37 +0000)]
tweaked default TE_TELEPORT effect, it now spawns one large very bright particle in the middle and 1/8th as many small particles, this should improve multiplayer performance on slow graphics cards, also doubled the brightness of the dlight created, and made it last a bit longer

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

13 years agoimproved SV_TestEntityPosition in q1bsp/hlbsp by checking the 8 corner points of...
havoc [Mon, 22 Jan 2007 13:22:46 +0000 (13:22 +0000)]
improved SV_TestEntityPosition in q1bsp/hlbsp by checking the 8 corner points of the box, this fixes the misaligned double-doors bug in the Prydon Gate expansion "The Dark Age"
changed Stuck entity warning from developer 1 to developer 100 because it's annoying and not very helpful

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

13 years agoclient no longer tries to download missing files from server if it is hosting the...
havoc [Mon, 22 Jan 2007 13:20:29 +0000 (13:20 +0000)]
client no longer tries to download missing files from server if it is hosting the server

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

13 years agochanged FS_ChangeGamedir to FS_ChangeGameDirs and made it fail if any of the gamedirs...
havoc [Mon, 22 Jan 2007 12:06:42 +0000 (12:06 +0000)]
changed FS_ChangeGamedir to FS_ChangeGameDirs and made it fail if any of the gamedirs are missing (if the failmissing parameter is set) and detect various other failures
FS_Init now checks if game directories are found and does a Sys_Error if not
now does a Host_Error if a QW server specifies an invalid gamedir (missing gamedir is ok however, because QW downloads files)

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

13 years agochanged ping report name matching to allow scoreboard names to be longer than ping...
havoc [Mon, 22 Jan 2007 10:40:58 +0000 (10:40 +0000)]
changed ping report name matching to allow scoreboard names to be longer than ping report names (because recent versions of ClanRing CTF seem to append READY on the scoreboard but not the ping report)

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

13 years agoCL_Effect (called by svc_effect parsing) now sanity checks framerate and framecount
havoc [Mon, 22 Jan 2007 10:38:06 +0000 (10:38 +0000)]
CL_Effect (called by svc_effect parsing) now sanity checks framerate and framecount

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

13 years agoautodetect whether a map supports transparent water at load time
havoc [Sun, 21 Jan 2007 23:12:20 +0000 (23:12 +0000)]
autodetect whether a map supports transparent water at load time

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

13 years agoimplemented individual file downloads on darkplaces servers
havoc [Sun, 21 Jan 2007 20:27:36 +0000 (20:27 +0000)]
implemented individual file downloads on darkplaces servers
deferred loading of files until signon 2 (necessary for download system)
made loading of files operate in two passes, first for existing files and then again for files that need to be downloaded
added cl_joinbeforedownloadsfinish cvar to cause the game to begin after the map is loaded, before other downloads finish (not entirely sure this is a good idea, but it's cool)
added sv_allowdownloads cvar to allow enabling/disabling of downloads, and sv_allowdownloads_inarchive and sv_allowdownloads_archive cvars to allow server administrators to enable downloading files from archives or even whole archives if so desired (however the client does not currently request archives)

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

13 years agoreorganized view rendering setup code a bit to reduce potential for state bugs (more...
havoc [Sun, 21 Jan 2007 14:21:53 +0000 (14:21 +0000)]
reorganized view rendering setup code a bit to reduce potential for state bugs (more thorough and consistent state resets now)
added support for glStencilOpSeparate function in OpenGL 2.0 (or GL_ATI_separate_stencil extension prior to that), so ATI cards should get a speed boost now, this path is now also used on NVIDIA hardware, but support for GL_EXT_stencil_two_side extension has been retained to support several other vendors

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

13 years agoadded some comments in Mod_LoadModel
havoc [Sun, 21 Jan 2007 11:53:08 +0000 (11:53 +0000)]
added some comments in Mod_LoadModel

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

13 years agofixed negative time delta problem with sbar item flashing
havoc [Sun, 21 Jan 2007 11:52:29 +0000 (11:52 +0000)]
fixed negative time delta problem with sbar item flashing

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

13 years agoadded FS_FileSize and made FS_FileExtension public
havoc [Sun, 21 Jan 2007 11:51:27 +0000 (11:51 +0000)]
added FS_FileSize and made FS_FileExtension public

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

13 years agor_textshadow is now a saved cvar
havoc [Sun, 21 Jan 2007 11:39:19 +0000 (11:39 +0000)]
r_textshadow is now a saved cvar
the r_textshadow shadow color is now 1-red-green-blue (basically meaning it is black except for black text where it is white)

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

13 years agovery minor cleaning
havoc [Sat, 20 Jan 2007 22:52:03 +0000 (22:52 +0000)]
very minor cleaning

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

13 years agofix a crash in R_SkyStartFrame when there is no worldmodel
havoc [Sat, 20 Jan 2007 09:27:05 +0000 (09:27 +0000)]
fix a crash in R_SkyStartFrame when there is no worldmodel

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

13 years agoadded FS_CheckNastyPath prototype to fs.h so that it can be used elsewhere
havoc [Sat, 20 Jan 2007 09:16:17 +0000 (09:16 +0000)]
added FS_CheckNastyPath prototype to fs.h so that it can be used elsewhere

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

13 years agoS_PrecacheSound now clears the SFXFLAG_FILEMISSING flag so that loading will try...
havoc [Sat, 20 Jan 2007 09:14:02 +0000 (09:14 +0000)]
S_PrecacheSound now clears the SFXFLAG_FILEMISSING flag so that loading will try again on previously missing files whenever the level changes (particularly important if downloads or gamedir changes have occurred)

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

13 years agoincreased M_MAX_EDICTS to 32768
havoc [Thu, 18 Jan 2007 11:08:11 +0000 (11:08 +0000)]
increased M_MAX_EDICTS to 32768
note to Black: 640k ought to be enough for everybody using the nexuiz menu, right? ;)

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

13 years agochanged CL_MAX_EDICTS to match MAX_EDICTS
havoc [Thu, 18 Jan 2007 11:04:31 +0000 (11:04 +0000)]
changed CL_MAX_EDICTS to match MAX_EDICTS

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

13 years agoapplied div0's patch to the tell command adding player number support (as opposed...
havoc [Thu, 18 Jan 2007 10:58:03 +0000 (10:58 +0000)]
applied div0's patch to the tell command adding player number support (as opposed to the hard-to-type player names) as well as fixing a bug with quoted player names containing spaces accidentally sending part of the player name to the recipient (similar to the quake tell bug which sent the entire player name)

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

13 years agoadded collision_prefernudgedfraction cvar (defaults to 1), which should improve colli...
havoc [Thu, 18 Jan 2007 10:44:24 +0000 (10:44 +0000)]
added collision_prefernudgedfraction cvar (defaults to 1), which should improve collision stability in 'wedge corner' cases (such as creases in terrain)

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

13 years agorenamed r_bloomstate.vertex3f to r_screenvertex3f and made it constant
havoc [Thu, 18 Jan 2007 10:41:26 +0000 (10:41 +0000)]
renamed r_bloomstate.vertex3f to r_screenvertex3f and made it constant

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

13 years agofixed problems with cl.time stepping backwards causing a black fade-in and other...
havoc [Thu, 18 Jan 2007 10:39:02 +0000 (10:39 +0000)]
fixed problems with cl.time stepping backwards causing a black fade-in and other problems

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

13 years agosupport partial IP addresses in the ipv4 address parser, this fixes the 20+ second...
havoc [Thu, 18 Jan 2007 08:49:50 +0000 (08:49 +0000)]
support partial IP addresses in the ipv4 address parser, this fixes the 20+ second delay when parsing status messages on some modified quake servers that report only partial addresses (hiding the last octet)

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

13 years agoexpanded the Replacement Content section with some example filenames and other inform...
havoc [Thu, 18 Jan 2007 07:04:14 +0000 (07:04 +0000)]
expanded the Replacement Content section with some example filenames and other information

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

13 years agochanged extResponse handler to quote the address string when passing it to the menu qc
havoc [Sun, 14 Jan 2007 11:18:17 +0000 (11:18 +0000)]
changed extResponse handler to quote the address string when passing it to the menu qc

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

13 years agopatch from div0 that enables printf format warnings in gcc
havoc [Sun, 14 Jan 2007 10:19:20 +0000 (10:19 +0000)]
patch from div0 that enables printf format warnings in gcc
patch from div0 that fixes a lot of printf format warnings (some quite bad)

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

13 years agopatch from div0 that adds sv_random_seed for benchmarking servers with bots the same...
havoc [Sun, 14 Jan 2007 10:09:16 +0000 (10:09 +0000)]
patch from div0 that adds sv_random_seed for benchmarking servers with bots the same way repeatedly

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

13 years agopatch from div0 to add sv_adminnick cvar which overrides hostname as the name to...
havoc [Sun, 14 Jan 2007 10:05:49 +0000 (10:05 +0000)]
patch from div0 to add sv_adminnick cvar which overrides hostname as the name to use in chat from the dedicated server console (or via rcon say and such)

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

13 years agocast time of received moves to float to prevent negative ping estimates when timer...
havoc [Sun, 14 Jan 2007 10:03:13 +0000 (10:03 +0000)]
cast time of received moves to float to prevent negative ping estimates when timer is degraded severely

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

13 years agoadded DP_MENU_EXTRESPONSEPACKET to extensions list
havoc [Sun, 14 Jan 2007 09:59:26 +0000 (09:59 +0000)]
added DP_MENU_EXTRESPONSEPACKET to extensions list

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

13 years agopatch from div0 that adds a special "extResponse " type of packet that can be returne...
havoc [Sun, 14 Jan 2007 09:56:30 +0000 (09:56 +0000)]
patch from div0 that adds a special "extResponse " type of packet that can be returned to menu qc as a string (to query current version of Nexuiz or anything else of that nature, requires special servers that return such packets, the packets are sent using the "packet" command which already existed from qw support)

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

13 years agopatch from div0 to make DrawQ_ColoredString return the length of the printed text
havoc [Sun, 14 Jan 2007 09:53:31 +0000 (09:53 +0000)]
patch from div0 to make DrawQ_ColoredString return the length of the printed text

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

13 years agopatch from div0 to clamp ping reports to 1-9999 range in getinfo server queries
havoc [Sun, 14 Jan 2007 09:51:52 +0000 (09:51 +0000)]
patch from div0 to clamp ping reports to 1-9999 range in getinfo server queries

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

13 years agoadded -Wdeclaration-after-statement to warn about any use of C99 lazy variable declar...
havoc [Sun, 14 Jan 2007 09:50:42 +0000 (09:50 +0000)]
added -Wdeclaration-after-statement to warn about any use of C99 lazy variable declaration (which is not supported by MSVC)

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

13 years agochanged Cmd_AddCommand to only work for console commands, not client commands execute...
havoc [Fri, 12 Jan 2007 03:40:35 +0000 (03:40 +0000)]
changed Cmd_AddCommand to only work for console commands, not client commands executed on the server, Cmd_AddCommand_WithClientCommand has been added to allow separate command functions for console commands and client commands, this got rid of a lot of cmd_source == src_command checks
this refactoring fixes a security vulnerability in the clcommand builtin provided by KRIMZON_SV_PARSECLIENTCOMMAND, which was able to execute many commands on the server console, and that put the burden on the QC code to validate command safety, which was not intended
in short: this fixes a remote console command execution vulnerability that affected a few games/mods

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

13 years agogamedir is now checked by FS_CheckNastyPath
havoc [Fri, 12 Jan 2007 00:34:19 +0000 (00:34 +0000)]
gamedir is now checked by FS_CheckNastyPath
added special isgamedir flag to FS_CheckNastyPath to validate gamedir using more stringent checks than for normal filenames
added additional checks in FS_CheckNastyPath for things like . in path elements (still allowed in filename at end but no longer allowed in path elements at all)

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

13 years agoimplemented new bloom code (still not using GLSL, but the new bloom is much nicer...
havoc [Thu, 11 Jan 2007 04:48:25 +0000 (04:48 +0000)]
implemented new bloom code (still not using GLSL, but the new bloom is much nicer and more configurable)
added r_shadow_glossexponent cvar to control width of specular highlights
changed r_shadow_glossexponent default from 8 to 32 (looks more like metal or wet stone)

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

13 years agoimplemented detection of GL_EXT_blend_subtract
havoc [Thu, 11 Jan 2007 04:45:12 +0000 (04:45 +0000)]
implemented detection of GL_EXT_blend_subtract

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

13 years agotry harder to identify little endian cpus when BYTE_ORDER is undefined
havoc [Thu, 11 Jan 2007 04:43:48 +0000 (04:43 +0000)]
try harder to identify little endian cpus when BYTE_ORDER is undefined

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

13 years agocorrected comment on savings of the optimized skeletal cases
havoc [Thu, 4 Jan 2007 21:25:05 +0000 (21:25 +0000)]
corrected comment on savings of the optimized skeletal cases

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

13 years agoadded r_shadow_glossexponent cvar to control specular power (sharpness)
havoc [Sun, 31 Dec 2006 19:38:46 +0000 (19:38 +0000)]
added r_shadow_glossexponent cvar to control specular power (sharpness)
changed default r_shadow_glossintensity from 1 to 2, r_shadow_gloss2intensity from 0.25 to 0.5, r_shadow_glossexponent from 8 to 32 (gloss is now much more metallic looking)
moved some stencil operation reset code to after the GL_EXT_stencil_two_side extension is turned off (just to be safer)

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

13 years agofix bug that made some models not cast shadows from the correct location
havoc [Sat, 30 Dec 2006 20:28:06 +0000 (20:28 +0000)]
fix bug that made some models not cast shadows from the correct location

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

13 years agoadded r_shadows cvar which renders Quake3 cg_shadows 2 style stencil shadows from...
havoc [Sat, 30 Dec 2006 16:30:18 +0000 (16:30 +0000)]
added r_shadows cvar which renders Quake3 cg_shadows 2 style stencil shadows from models

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

13 years agoI don't know how this got committed
havoc [Sat, 30 Dec 2006 16:28:26 +0000 (16:28 +0000)]
I don't know how this got committed

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

13 years agofix default modellight_lightdir shading direction in q1bsp (this has no effect since...
havoc [Sat, 30 Dec 2006 16:07:18 +0000 (16:07 +0000)]
fix default modellight_lightdir shading direction in q1bsp (this has no effect since diffuse is black)

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

13 years agoadded a missing const modifier
havoc [Sat, 30 Dec 2006 15:55:42 +0000 (15:55 +0000)]
added a missing const modifier

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

13 years agofix stupid bug in CL_SetInfo when checking for pmodel/emodel as key (it was using...
havoc [Sat, 30 Dec 2006 09:30:33 +0000 (09:30 +0000)]
fix stupid bug in CL_SetInfo when checking for pmodel/emodel as key (it was using Cmd_Argv)

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

13 years agopatch from div0 that adds sv_public modes -2 (do not allow players to connect) and...
havoc [Thu, 28 Dec 2006 01:49:03 +0000 (01:49 +0000)]
patch from div0 that adds sv_public modes -2 (do not allow players to connect) and -1 (do not respond to queries)

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

13 years agomade brush loader trust q3map2 brushes completely, still falls out of terrain maps...
havoc [Sun, 24 Dec 2006 12:34:20 +0000 (12:34 +0000)]
made brush loader trust q3map2 brushes completely, still falls out of terrain maps using .ase models

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

13 years agochanged collision brush loader to not discard planes that don't produce a polygon...
havoc [Sun, 24 Dec 2006 09:38:01 +0000 (09:38 +0000)]
changed collision brush loader to not discard planes that don't produce a polygon, this fixes many terrain and ramp problems in q3bsp (q3map2 inserted planes to fix these edge cases but the engine was discarding them)
optimized brush collision code to have more early out cases

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

13 years agoset world mins/maxs/absmin/absmax at server startup
havoc [Sun, 24 Dec 2006 01:16:05 +0000 (01:16 +0000)]
set world mins/maxs/absmin/absmax at server startup

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

13 years agoInit gl_main before gl_draw to make DP start from anywhere without crashing. Addition...
black [Sat, 23 Dec 2006 16:04:52 +0000 (16:04 +0000)]
Init gl_main before gl_draw to make DP start from anywhere without crashing. Additionally it's more logical that way.
(If this breaks something, you can try to stone me or whoever who wrote the code in the first place ;))

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

13 years agoraised MAX_TEXTUREUNITS from 16 to 64
havoc [Fri, 22 Dec 2006 13:05:38 +0000 (13:05 +0000)]
raised MAX_TEXTUREUNITS from 16 to 64
fixed bug with backendimageunits/backendarrayunits not being limited to MAX_TEXTUREUNITS (caused memory corruption on NVIDIA GeForce 8 series which have 32 texture image units), backendunits was already limited properly

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

13 years agoremoved Q3TEXTUREFLAG_ALPHATEST uses in the code, fixing a bug that made alpha test...
havoc [Thu, 21 Dec 2006 09:12:21 +0000 (09:12 +0000)]
removed Q3TEXTUREFLAG_ALPHATEST uses in the code, fixing a bug that made alpha test surfaces not be alpha tested (now checks shader->layers[0].alphatest)

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

13 years agosupport for GL_ARB_texture_non_power_of_two extension (makes quake textures look...
havoc [Tue, 19 Dec 2006 06:47:27 +0000 (06:47 +0000)]
support for GL_ARB_texture_non_power_of_two extension (makes quake textures look a bit sharper on cards that support it and saves video memory)
known to be supported on NVIDIA Geforce 6 and above

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

13 years agoadded a missing extern
havoc [Mon, 18 Dec 2006 18:11:08 +0000 (18:11 +0000)]
added a missing extern

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

13 years agopatch from div0 to fix screenshot naming when -game is used
havoc [Mon, 18 Dec 2006 17:21:02 +0000 (17:21 +0000)]
patch from div0 to fix screenshot naming when -game is used

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

13 years agoimplemented QW gamedir switching and manual gamedir switching (via "gamedir" command...
havoc [Sun, 17 Dec 2006 18:25:46 +0000 (18:25 +0000)]
implemented QW gamedir switching and manual gamedir switching (via "gamedir" command in console, can also use +gamedir on commandline), this may have lingering bugs

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

13 years agoimproved Mod_Q3BSP_LightPoint function to use r_refdef.lightstylevalue[0] to scale...
havoc [Sun, 17 Dec 2006 18:20:24 +0000 (18:20 +0000)]
improved Mod_Q3BSP_LightPoint function to use r_refdef.lightstylevalue[0] to scale the color contribution, this means that dpmod darkmode works in q3bsp now

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

13 years agoadded snd_reload command to reload all sounds
havoc [Sun, 17 Dec 2006 18:14:02 +0000 (18:14 +0000)]
added snd_reload command to reload all sounds

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

13 years agoremoved unused packlist variable and pack->next field
havoc [Sun, 17 Dec 2006 18:11:01 +0000 (18:11 +0000)]
removed unused packlist variable and pack->next field

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

13 years agoadded Cvar_UnlockDefaults function (not console accessible)
havoc [Sat, 16 Dec 2006 21:42:33 +0000 (21:42 +0000)]
added Cvar_UnlockDefaults function (not console accessible)

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

13 years agoremoved an unused extern for fs_modified
havoc [Fri, 15 Dec 2006 19:43:12 +0000 (19:43 +0000)]
removed an unused extern for fs_modified

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

13 years agomodified "stuffcmds" command (which runs commandline arguments preceded by + characte...
havoc [Fri, 15 Dec 2006 19:42:10 +0000 (19:42 +0000)]
modified "stuffcmds" command (which runs commandline arguments preceded by + characters) to only do so once, this allows the quake.rc to be executed multiple times without executing commandline arguments multiple times

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

13 years agocorrected some svc_nop's to clc_nop's (same value but more correct)
havoc [Fri, 15 Dec 2006 19:32:10 +0000 (19:32 +0000)]
corrected some svc_nop's to clc_nop's (same value but more correct)

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

13 years agoremoved NET_MAXRATE (as it served no useful purpose), changed description of rate...
havoc [Fri, 15 Dec 2006 17:38:52 +0000 (17:38 +0000)]
removed NET_MAXRATE (as it served no useful purpose), changed description of rate to say bytespersecond instead of 500-25000 (which was wrong, the limit was 1000-150000)

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

13 years agoadd a newline at the end of each exec'd config file
havoc [Thu, 14 Dec 2006 12:12:02 +0000 (12:12 +0000)]
add a newline at the end of each exec'd config file

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

13 years agoupdated Dev-C++ project file from Spirit
havoc [Wed, 13 Dec 2006 11:18:35 +0000 (11:18 +0000)]
updated Dev-C++ project file from Spirit

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

13 years agodisplay loading plaque much sooner in startup process, and draw it to GL_FRONT buffer...
havoc [Tue, 12 Dec 2006 06:28:54 +0000 (06:28 +0000)]
display loading plaque much sooner in startup process, and draw it to GL_FRONT buffer rather than drawing it to the GL_BACK buffer and swapping, as if triple buffering is used the GL_BACK buffer might not be shown for some time, but the GL_FRONT buffer is instantaneous

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

13 years agomoved health counter in quake hud back to its original position, no longer overlappin...
havoc [Mon, 11 Dec 2006 16:39:13 +0000 (16:39 +0000)]
moved health counter in quake hud back to its original position, no longer overlapping hipnotic key icons (for some reason Black's patch to add the nexuiz hud in revision 1.27 also moved the quake health counter, I can't discern why...)

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

13 years agooptimized Mod_Alias_GetMesh_Vertices to eliminate memset calls and process arrays...
havoc [Mon, 11 Dec 2006 10:07:47 +0000 (10:07 +0000)]
optimized Mod_Alias_GetMesh_Vertices to eliminate memset calls and process arrays independently of eachother in the skeletal blending code, it also has an optimized case for one-bone vertices (the most common case)

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

13 years agochanged demo playback csqc mismatch error to a warning
havoc [Mon, 11 Dec 2006 10:06:01 +0000 (10:06 +0000)]
changed demo playback csqc mismatch error to a warning

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

13 years agofix crash when a client reconnects to the same client slot, thanks to div0 for report...
havoc [Sun, 10 Dec 2006 13:30:16 +0000 (13:30 +0000)]
fix crash when a client reconnects to the same client slot, thanks to div0 for reporting and investigating this bug

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