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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
havoc [Fri, 8 Dec 2006 15:18:19 +0000 (15:18 +0000)]
patch from div0 that fixes rate limiting code to make use of sv_maxrate (as it was supposed to)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6641
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 6 Dec 2006 13:12:57 +0000 (13:12 +0000)]
fixed bug where non-autosprite transparencies rendered in the same batch as autosprite transparencies were not rendered (fixes light cones disappearing in q3dm0, among other things), this occurred because the code that handles q3 shaders using "deformvertexes autosprite" changed the array pointers but never changed them back when rendering another q3 shader that does not use deformvertexes
minor cleanup of RSurf_ActiveEntity (now uses RSurf_CleanUp rather than duplicating code)
moved RSurf_CleanUp above RSurf_ActiveEntity
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6640
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 6 Dec 2006 13:08:44 +0000 (13:08 +0000)]
corrected a misspelling in a comment
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6639
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 6 Dec 2006 11:05:41 +0000 (11:05 +0000)]
improved warnings from drawstring/drawpic/drawfill functions (they now state the correct function name, and print the full warning message, previously they were truncated if it was only one problem)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6638
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 6 Dec 2006 11:04:46 +0000 (11:04 +0000)]
fix connect error when csqc is not present (oops!)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6637
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 6 Dec 2006 09:04:48 +0000 (09:04 +0000)]
fixed black models when csqc is active
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6636
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 6 Dec 2006 08:34:35 +0000 (08:34 +0000)]
fixed bug that caused csqc to only load after a map restart
rearranged entity linking when csqc is active to fix the lagging weapon model bug
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6635
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 6 Dec 2006 08:07:40 +0000 (08:07 +0000)]
fixed a bug with cl_movement prediction being applied during demo playback
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6634
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 5 Dec 2006 09:00:09 +0000 (09:00 +0000)]
fixed a bug with blank frames in sprites failing to produce a texture (fixes painkeep exploding shotgun shell sprites which became white rectangles on certain frames)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6633
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 1 Dec 2006 01:40:16 +0000 (01:40 +0000)]
added con_closeontoggleconsole cvar based on Dresk's patch, but reduced to a minimal set of changes to one file rather than two
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6629
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 30 Nov 2006 23:51:51 +0000 (23:51 +0000)]
funky interlacing-like rendering feature from div0 (scr_stipple cvar)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6628
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 25 Nov 2006 01:28:12 +0000 (01:28 +0000)]
patch from Dresk which adds DP_SV_ENTITYCONTENTSTRANSITION extension which calls a .contentstransition(oldcontents, newcontents) when the quake physics code detects a contents transition (empty to water for example)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6627
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 24 Nov 2006 22:55:08 +0000 (22:55 +0000)]
patch from Dresk for DP_QC_STRINGCOLORFUNCTIONS extension (strlennocol measures length of string with color chars removed (useful for centering text), strdecolorize returns a string with color codes stripped)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6626
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 24 Nov 2006 20:32:54 +0000 (20:32 +0000)]
added proper support for q3 shader animmap commands
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6625
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 23 Nov 2006 19:35:52 +0000 (19:35 +0000)]
cleaned up GL_DepthTest and GL_CULL_FACE state management (by adding GL_CullFace), may fix some problems with rtlighting on EF_NODEPTHTEST entities
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6624
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 23 Nov 2006 00:06:38 +0000 (00:06 +0000)]
added DP_ASINACOSATANATAN2TAN extension which adds common trig functions missing from standard QuakeC
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6622
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 17 Nov 2006 15:47:22 +0000 (15:47 +0000)]
added #define _FILE_OFFSET_BITS 64 to reduce problems with video recording on 32bit unix platforms (64bit Linux builds do not seem to have problems with this to begin with)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6621
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 15 Nov 2006 11:23:55 +0000 (11:23 +0000)]
made cl_viewmodel_scale apply to csqc and gettaginfo
fixed bug with concat order in stereo rendering (it was offseting along X in worldspace due to wrong concat order)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6620
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 15 Nov 2006 09:33:22 +0000 (09:33 +0000)]
fixed view location bugs in csqc; it was reading the player entity's render.origin field, which was broken... removed the origin and angles fields from entity_render_t and eliminated all references
renamed CL_BoundingBoxForEntity to CL_UpdateRenderEntity and made it update the entity_render_t inversematrix and scale according to the matrix, and also calls R_LerpAnimation, this reduced code elsewhere
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6619
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 12 Nov 2006 12:55:06 +0000 (12:55 +0000)]
patch from div0 to fix a segfault in curl support when canceling a file that isn't being downloaded
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6618
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 9 Nov 2006 10:16:16 +0000 (10:16 +0000)]
patch from div0 that removes connect flood ban when a player disconnects (this prevents people from getting connect-flood-banned for simply reconnecting after a pk3 autodownload in Nexuiz)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6617
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 6 Nov 2006 08:48:43 +0000 (08:48 +0000)]
found MATRIX4x4_OPENGLORIENTATION to be a speed loss using gcc 4.1.0 with x86_64 architecture, disabled it by default
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6616
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 6 Nov 2006 08:25:26 +0000 (08:25 +0000)]
implemented MATRIX4X4_OPENGLORIENTATION #define option, this is on by default and may improve performance compared to the D3D-style matrix orientation that was used before
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6615
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 6 Nov 2006 08:23:43 +0000 (08:23 +0000)]
changed md3 tag storage to be the original float[12] OpenGL-orientation format rather than a matrix4x4 which was wasting some space
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6614
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 6 Nov 2006 07:31:00 +0000 (07:31 +0000)]
more cleaning of matrix4x4_t struct access
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6613
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 6 Nov 2006 06:13:54 +0000 (06:13 +0000)]
cleaned up almost all direct indexing of matrix4x4_t structures to go through proper Matrix4x4 functions
removed some weird scaling code in gettaginfo QC builtin
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6612
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 23 Oct 2006 10:34:09 +0000 (10:34 +0000)]
implemented connect flood blocking (100% effective on connect floods with an interval of 5 seconds or less between connects from the same IP address, and limits connect floods slower than that to occupying 2 slots at once due to a 10 second timeout)
cleaned up connect packet handling code to be more readable and consistent
reenabled rejoin code (allowing players to resume the game if their client crashes crashes but comes back with the same port number - rather rare unless cl_port is used, but could help people who do use cl_port)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6609
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 23 Oct 2006 10:22:07 +0000 (10:22 +0000)]
got rid of cl.qw_spectator flag because it can be determined by cl.scores[cl.playerentity].qw_spectator instead
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6608
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 20 Oct 2006 15:57:17 +0000 (15:57 +0000)]
attempt to avoid some Mem_Free errors on NULL pointers if there are no surfaces in the map
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6607
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 20 Oct 2006 15:16:19 +0000 (15:16 +0000)]
don't crash in scoreboard code when connected to a qw server as a spectator
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6606
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 18 Oct 2006 09:08:50 +0000 (09:08 +0000)]
fix bug with autosprite shaders when deformvertexes is applied twice during render of the same batch (why? dunno, but it shouldn't break like this!)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6605
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 18 Oct 2006 03:52:49 +0000 (03:52 +0000)]
added vid_stereobuffer cvar based on patch from syschuck on the alientrap forums
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6604
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 18 Oct 2006 03:45:23 +0000 (03:45 +0000)]
some clean up of math used to generate trace start/end in prydon cursor code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6603
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 18 Oct 2006 03:34:34 +0000 (03:34 +0000)]
added cl_viewmodel_scale cvar which controls gun model size
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6602
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 3 Oct 2006 20:22:58 +0000 (20:22 +0000)]
added snd_soundradius cvar (default 1000 as before) to allow games (Nexuiz for instance) and people (mostly fans of dos quake's different sound radius) to adjust the sound radius
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6597
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 30 Sep 2006 20:52:54 +0000 (20:52 +0000)]
implemented condump command (I was told by [515] that he implemented this command but he never sent me the code in his patch and so I was incorrectly under the impression that it was in the engine)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6596
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 20 Sep 2006 06:37:04 +0000 (06:37 +0000)]
fixed a (hopefully rare) bug affecting shalrath missiles which caused multiple missiles to explode on successive frames due to the large bounding boxes of the MOVETYPE_FLYMISSILE explosions causing a touch event on the other flying missiles that were not yet near the player, which caused them to explode even though they were being touched by an explosion that was SOLID_NOT
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6595
d7cf8633-e32d-0410-b094-
e92efae38249