divverent/darkplaces.git
12 years agofixed stair smoothing code so it no longer jitters when riding lifts
havoc [Mon, 19 Feb 2007 09:08:16 +0000 (09:08 +0000)]
fixed stair smoothing code so it no longer jitters when riding lifts
added support for cl_stairsmoothspeed 0 as a means of disabling stair smoothing

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

12 years agochanged FL_ONGROUND handling for pushers (lifts for example) so you now ride down...
havoc [Mon, 19 Feb 2007 07:48:09 +0000 (07:48 +0000)]
changed FL_ONGROUND handling for pushers (lifts for example) so you now ride down lifts, rather than repeatedly falling and hitting the lift
cleaned up FL_ONGROUND handling for items riding pushers, so they now only lose their FL_ONGROUND status if the move is blocked

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

12 years agochanged how CL_PrintEntities_f prints the model name, this seems to fix the garbage...
havoc [Mon, 19 Feb 2007 06:21:30 +0000 (06:21 +0000)]
changed how CL_PrintEntities_f prints the model name, this seems to fix the garbage characters bug

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

12 years agofix broken SOLID_CORPSE collisions
havoc [Mon, 19 Feb 2007 05:53:32 +0000 (05:53 +0000)]
fix broken SOLID_CORPSE collisions

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

12 years agofix two 'wrong number of parameters' errors
havoc [Mon, 19 Feb 2007 05:53:11 +0000 (05:53 +0000)]
fix two 'wrong number of parameters' errors

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

12 years agofix an uninitialized variable
havoc [Mon, 19 Feb 2007 01:52:37 +0000 (01:52 +0000)]
fix an uninitialized variable

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

12 years agofixed parmcount check on VM_SV_AddStat from 2 parameters to 3
havoc [Mon, 19 Feb 2007 01:46:44 +0000 (01:46 +0000)]
fixed parmcount check on VM_SV_AddStat from 2 parameters to 3

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

12 years agothis patch may break things and needs testing
havoc [Mon, 19 Feb 2007 01:33:38 +0000 (01:33 +0000)]
this patch may break things and needs testing
major cleanup of csqc and ssqc builtin tables
minimized differences between csqc and ssqc builtin tables (everything that can be implemented in both is implemented in both)
added VM_SAFEPARMCOUNTRANGE to allow a function to have, for example, 2-4 parameters (where as VM_SAFEPARMCOUNT requires it to be an exact match)
added VM_SAFEPARMCOUNT or VM_SAFEPARMCOUNTRANGE to ALL builtins, this may break buggy qc (and it's possible that one or more of these checks are wrong)
replaced CL_TraceBox with CL_Move, this is a proper csqc-entity aware version akin to SV_Move, it has a ton of parameters due to support for network entity collisions as well (ideally this needs cleanup somehow but I have no idea how, as non-csqc network entities do not share the prvm_edict_t system and do not have entity numbers in the csqc world)

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

12 years agofix shading seams along uv seams on compiled frame zero of mdl/md2/md3 models
havoc [Mon, 19 Feb 2007 01:24:44 +0000 (01:24 +0000)]
fix shading seams along uv seams on compiled frame zero of mdl/md2/md3 models

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

12 years agofixed support of progs.dat files with important global and field names removed, such...
havoc [Mon, 19 Feb 2007 01:15:58 +0000 (01:15 +0000)]
fixed support of progs.dat files with important global and field names removed, such as omicron bot reporting that OP_STATE is not supported because it removed the field names

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

12 years agoremoved vm_cl_extensions (now uses vm_sv_extensions)
havoc [Mon, 19 Feb 2007 00:10:39 +0000 (00:10 +0000)]
removed vm_cl_extensions (now uses vm_sv_extensions)
cleaned up fieldoffsets/globaloffsets/funcoffsets fetching code (including removal of some duplicates) and sorted the contents of the structs to match the new order of the code

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

12 years agofixed an evil ent->fields.vp access that was not using PRVM_EDICTFIELDVALUE
havoc [Sun, 18 Feb 2007 23:39:54 +0000 (23:39 +0000)]
fixed an evil ent->fields.vp access that was not using PRVM_EDICTFIELDVALUE

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

12 years agoadded an error message stating if an image file was loaded but decoding failed
havoc [Sun, 18 Feb 2007 23:10:19 +0000 (23:10 +0000)]
added an error message stating if an image file was loaded but decoding failed

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

12 years agoadded svc_trailparticles and svc_pointparticles, these are written by the trailpartic...
havoc [Sun, 18 Feb 2007 12:57:43 +0000 (12:57 +0000)]
added svc_trailparticles and svc_pointparticles, these are written by the trailparticles and pointparticles server builtins (matching the csqc ones), these can utilize any effect defined in effectinfo.txt without using csqc

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

12 years agorenamed CL_Move to CL_Input to avoid confusion with the CL_Move that will be added...
havoc [Sun, 18 Feb 2007 12:49:24 +0000 (12:49 +0000)]
renamed CL_Move to CL_Input to avoid confusion with the CL_Move that will be added (similar to SV_Move)

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

12 years agoadded generic collision functions Collision_ClipToGenericEntity, Collision_ClipToWorl...
havoc [Sun, 18 Feb 2007 12:47:17 +0000 (12:47 +0000)]
added generic collision functions Collision_ClipToGenericEntity, Collision_ClipToWorld, and Collision_CombineTraces to allow reduction of similar code in csqc and ssqc

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

12 years agochanged fieldoffsets and globaloffsets to be integer array indices instead of byte...
havoc [Sun, 18 Feb 2007 12:45:26 +0000 (12:45 +0000)]
changed fieldoffsets and globaloffsets to be integer array indices instead of byte offsets, this basically means d->ofs is no longer multiplied by 4 in PRVM_ED_FindFieldOffset and PRVM_ED_FindGlobalOffset

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

12 years agoa cosmetic change as suggested by div0:
havoc [Sun, 18 Feb 2007 12:41:11 +0000 (12:41 +0000)]
a cosmetic change as suggested by div0:
renamed PRVM_GETEDICTFIELDVALUE to PRVM_EDICTFIELDVALUE
renamed PRVM_GETGLOBALFIELDVALUE to PRVM_GLOBALFIELDVALUE

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

12 years agoallow non-integer framerates for q3 shader animmap commands
havoc [Sun, 18 Feb 2007 12:35:52 +0000 (12:35 +0000)]
allow non-integer framerates for q3 shader animmap commands

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

12 years agofixed a bug with png loading on x86_64 platforms caused by libpng retardedness (it...
havoc [Sun, 18 Feb 2007 11:53:09 +0000 (11:53 +0000)]
fixed a bug with png loading on x86_64 platforms caused by libpng retardedness (it defines png_uint_32 as unsigned long, which is 64bit on such architectures, AND to make it worse this can be modified in pngconf.h on a per platform basis, so we detect the problem on big endian 64bit architectures and fix it there too)

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

12 years agoHopefully this fixes a bug introduced with the latest cleanup by LH.
black [Sat, 17 Feb 2007 11:27:09 +0000 (11:27 +0000)]
Hopefully this fixes a bug introduced with the latest cleanup by LH.
Changed the menu code to always show the old quake menu if forceqmenu is set
(even if it lacks the gfx files).

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

12 years agoreduced r_shadow_glossintensity from 2 to 1 by default
havoc [Fri, 16 Feb 2007 22:25:44 +0000 (22:25 +0000)]
reduced r_shadow_glossintensity from 2 to 1 by default

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

12 years agothe record command now disconnects you if starting a new map, this fixes a crash...
havoc [Fri, 16 Feb 2007 02:26:48 +0000 (02:26 +0000)]
the record command now disconnects you if starting a new map, this fixes a crash if doing "playdemo demo1;record test;stop"

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

12 years agochanged SCR_DrawConsole call in csqc mode to match non-csqc mode (now draws after...
havoc [Thu, 15 Feb 2007 21:41:07 +0000 (21:41 +0000)]
changed SCR_DrawConsole call in csqc mode to match non-csqc mode (now draws after sbar)

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

12 years agofix an uninitialized variable warnign
havoc [Thu, 15 Feb 2007 07:55:14 +0000 (07:55 +0000)]
fix an uninitialized variable warnign

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

12 years agocleaned up client qc, menu qc, and server qc VM initialization a bit so they have...
havoc [Thu, 15 Feb 2007 00:13:49 +0000 (00:13 +0000)]
cleaned up client qc, menu qc, and server qc VM initialization a bit so they have shared field/global/function lookup code,
changed world.c to not be server specific, moved server-specific functions to sv_phys.c

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

12 years agoadded gl_lockarrays_minimumvertices cvar for testing
havoc [Thu, 15 Feb 2007 00:11:29 +0000 (00:11 +0000)]
added gl_lockarrays_minimumvertices cvar for testing

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

12 years agoremoved unused world_cs.c code
havoc [Thu, 15 Feb 2007 00:07:21 +0000 (00:07 +0000)]
removed unused world_cs.c code

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

12 years agoadded a check for level changes which blocks prediction for 100ms at the beginning...
havoc [Wed, 14 Feb 2007 21:22:16 +0000 (21:22 +0000)]
added a check for level changes which blocks prediction for 100ms at the beginning of the new level, and clears ping time and other information
refactored input parsing to buffer moves in sv_readmoves array, this means that it can now always trust the last move in the packet, never ignored like earlier ones (which are clearly repeats of earlier input)

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

12 years agosome initial changes to support terrain texture blending someday
havoc [Wed, 14 Feb 2007 21:09:55 +0000 (21:09 +0000)]
some initial changes to support terrain texture blending someday

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

12 years agoadded bounding of info->particleaccumulator so that bogus values won't cause a very...
havoc [Wed, 14 Feb 2007 06:54:24 +0000 (06:54 +0000)]
added bounding of info->particleaccumulator so that bogus values won't cause a very long loop

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

12 years agofix bug that caused trails to not appear at the right place
havoc [Wed, 14 Feb 2007 06:53:36 +0000 (06:53 +0000)]
fix bug that caused trails to not appear at the right place

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

12 years agoadded cl_nettimesyncmode cvar to choose the method of synchronizing cl.time, it defau...
havoc [Mon, 12 Feb 2007 23:38:01 +0000 (23:38 +0000)]
added cl_nettimesyncmode cvar to choose the method of synchronizing cl.time, it defaults to resetting the cl.time to the previous packet's time, but only when it is out of bounds (meaning it increases it if it is falling behind, and snaps it back to the previous packet time if it exceeds this packet's time, which eliminates accumulated error)

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

12 years agosendcvar now quotes the resulting sentcvar value
havoc [Mon, 12 Feb 2007 23:24:09 +0000 (23:24 +0000)]
sendcvar now quotes the resulting sentcvar value

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

12 years agoremoved cl.timenonlerp (reverted to using cl.time)
havoc [Mon, 12 Feb 2007 20:36:11 +0000 (20:36 +0000)]
removed cl.timenonlerp (reverted to using cl.time)

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

12 years agochanged particleaccumulator check to use >= 1 instead of > 0, hopefully this will...
havoc [Mon, 12 Feb 2007 19:27:57 +0000 (19:27 +0000)]
changed particleaccumulator check to use >= 1 instead of > 0, hopefully this will fix an infinite loop I encountered in testing

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

12 years agofixed problems with network entity viewmodels not following csqc_origin (as set by...
havoc [Mon, 12 Feb 2007 16:44:09 +0000 (16:44 +0000)]
fixed problems with network entity viewmodels not following csqc_origin (as set by csqc)

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

12 years agominor cleaning
havoc [Mon, 12 Feb 2007 16:43:15 +0000 (16:43 +0000)]
minor cleaning

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

12 years agodisabled saveconfig when doing -benchmark
havoc [Mon, 12 Feb 2007 16:42:46 +0000 (16:42 +0000)]
disabled saveconfig when doing -benchmark

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

12 years agodownloads of .cfg and dlcache/ files are now forbidden by default (cvar controlled)
havoc [Sun, 11 Feb 2007 23:08:29 +0000 (23:08 +0000)]
downloads of .cfg and dlcache/ files are now forbidden by default (cvar controlled)

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

12 years agoreworked Image_HeightmapToNormalmap to use a somewhat blurrier but more consistent...
havoc [Sun, 11 Feb 2007 22:43:43 +0000 (22:43 +0000)]
reworked Image_HeightmapToNormalmap to use a somewhat blurrier but more consistent algorithm

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

12 years agomodified Mod_LoadSkinFrame to set base = r_texture_notexture on failure, this reduced...
havoc [Sun, 11 Feb 2007 17:44:59 +0000 (17:44 +0000)]
modified Mod_LoadSkinFrame to set base = r_texture_notexture on failure, this reduced fallback code elsewhere
reworked Mod_BuildAliasSkinsFromSkinFiles, it no longer tries fallbacks if a skin texture fails to load
fixed a crash on missing meshes in a skin file (which are intentionally nodraw, just like in Quake3)

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

12 years agodisabled cl.stairoffset adjustments when airborn
havoc [Sun, 11 Feb 2007 15:52:17 +0000 (15:52 +0000)]
disabled cl.stairoffset adjustments when airborn

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

12 years agosome optimizations of CL_UpdateNetworkEntity to lower cpu overhead of the client
havoc [Sun, 11 Feb 2007 15:27:18 +0000 (15:27 +0000)]
some optimizations of CL_UpdateNetworkEntity to lower cpu overhead of the client

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

12 years agofix gamedir error when connecting to quakeworld servers
havoc [Sun, 11 Feb 2007 02:12:16 +0000 (02:12 +0000)]
fix gamedir error when connecting to quakeworld servers

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

12 years agoadded an extern for r_bloom_brighten to fix menu.c compilation
havoc [Sun, 11 Feb 2007 01:59:02 +0000 (01:59 +0000)]
added an extern for r_bloom_brighten to fix menu.c compilation

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

12 years agofixed r_bloom_brighten to use the correct range
havoc [Sat, 10 Feb 2007 22:44:46 +0000 (22:44 +0000)]
fixed r_bloom_brighten to use the correct range

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

12 years agoadded r_bloom_brighten modification in graphics options menu, this was already displa...
havoc [Sat, 10 Feb 2007 22:43:41 +0000 (22:43 +0000)]
added r_bloom_brighten modification in graphics options menu, this was already displayed but wasn't working, messing up all options after it
updated graphics options item count from 19 to 20

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

12 years agofix graphics options menu editing of bloom/scene brightness settings (they were swapped)
havoc [Sat, 10 Feb 2007 22:01:19 +0000 (22:01 +0000)]
fix graphics options menu editing of bloom/scene brightness settings (they were swapped)

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

12 years agofix stupid bug in last patch that made entities not update
havoc [Sat, 10 Feb 2007 21:17:06 +0000 (21:17 +0000)]
fix stupid bug in last patch that made entities not update
reworked priorities some more

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

12 years agofixed bug from lingering code that was resetting entity priority every frame
havoc [Sat, 10 Feb 2007 20:31:19 +0000 (20:31 +0000)]
fixed bug from lingering code that was resetting entity priority every frame
more tweaks to entity priority code

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

12 years agofix a stupid bug in transparent water detection for q1bsp, it now works
havoc [Sat, 10 Feb 2007 20:06:49 +0000 (20:06 +0000)]
fix a stupid bug in transparent water detection for q1bsp, it now works

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

12 years agochanged entity priority code again, it should have less 'starvation' issues now ...
havoc [Fri, 9 Feb 2007 21:17:37 +0000 (21:17 +0000)]
changed entity priority code again, it should have less 'starvation' issues now (high priority entities causing others to be missed)

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

12 years agoreenabled exact portal culling of surface triangles, because it was not bugged after all
havoc [Fri, 9 Feb 2007 04:36:48 +0000 (04:36 +0000)]
reenabled exact portal culling of surface triangles, because it was not bugged after all

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

12 years agosome minor state change optimizations on GL20 path, it now does even less per batch
havoc [Fri, 9 Feb 2007 04:24:27 +0000 (04:24 +0000)]
some minor state change optimizations on GL20 path, it now does even less per batch

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

12 years agomade r_shadow_frontsidecasting cvar disable the portal culling features when it is...
havoc [Fri, 9 Feb 2007 03:26:24 +0000 (03:26 +0000)]
made r_shadow_frontsidecasting cvar disable the portal culling features when it is casting from back sides (which portal culling can't work with)

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

12 years agoadded back portal culling to rtlights because svbsp code is not working as well as...
havoc [Fri, 9 Feb 2007 03:22:34 +0000 (03:22 +0000)]
added back portal culling to rtlights because svbsp code is not working as well as it's supposed to

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

12 years agofix Q3BSP map loader's sky surface detection so that it doesn't assume all submodels...
havoc [Fri, 9 Feb 2007 01:19:05 +0000 (01:19 +0000)]
fix Q3BSP map loader's sky surface detection so that it doesn't assume all submodels have sky if the base model does, this improves rendering performance a bit (by not scanning for sky in submodels that claim to have it but don't)

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

12 years agoremoved CL_UpdateEntities call in CSQC rendering code
havoc [Thu, 8 Feb 2007 15:57:21 +0000 (15:57 +0000)]
removed CL_UpdateEntities call in CSQC rendering code
changed r_refdef.lights from dlight_t * to rtlight_t (no longer a pointer)
modified CL_UpdateLights to setup the r_refdef.lights[] entry instead of merely pointing to the rtlight_t in the dlight_t struct
changed csqc dlight handling to comply with the spec (R_ClearScene resets r_refdef.numlights, then VM_R_AddEntities adds all engine-based entities and lights)
moved single-frame dlight spawning for rocket glow and such from CL_UpdateNetworkEntity to CL_LinkNetworkEntity (which is called by VM_R_AddEntities)
replaced all single-frame uses of CL_AllocDLight with R_RTLight_Update(&r_refdef.lights[r_refdef.numlights++], ...) calls, this includes lights such as muzzleflash, rocket glow, .glow_size lights, tenebrae dlights, etc
renamed CL_AllocDlight to CL_AllocLightFlash
renamed CL_DecayLights to CL_DecayLightFlashes
renamed CL_UpdateLights to CL_RelinkLightFlashes
renamed CL_ParticleEffect to CL_ParticleTrail and added spawndlight/spawnparticles boolean parameters, then added a CL_ParticleEffect which calls this with true for both
removed cubemapnum field from dlight_t

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

12 years agoadded DP_QC_STRFTIME extension to menu vm (somehow I missed this when committing...
havoc [Thu, 8 Feb 2007 15:56:40 +0000 (15:56 +0000)]
added DP_QC_STRFTIME extension to menu vm (somehow I missed this when committing earlier)

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

12 years agoreworked entity priority handling in DP6/7 protocols to better utilize limited bandwi...
havoc [Thu, 8 Feb 2007 15:56:10 +0000 (15:56 +0000)]
reworked entity priority handling in DP6/7 protocols to better utilize limited bandwidth and just be cleaner code in general

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

12 years agodisabled use of certain prediction code when the server has blocked prediction
havoc [Thu, 8 Feb 2007 15:37:08 +0000 (15:37 +0000)]
disabled use of certain prediction code when the server has blocked prediction

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

12 years agolowered minimum maxpacketsize from 100 bytes to 50 bytes (this means rate 1000 will...
havoc [Thu, 8 Feb 2007 15:13:27 +0000 (15:13 +0000)]
lowered minimum maxpacketsize from 100 bytes to 50 bytes (this means rate 1000 will be honored at the default sys_ticrate 0.05)

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

12 years agoadded DP_QC_STRFTIME extension
havoc [Thu, 8 Feb 2007 10:15:36 +0000 (10:15 +0000)]
added DP_QC_STRFTIME extension

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

12 years agoadded a check for move->sequence that is more than 16 packets old to avoid having...
havoc [Wed, 7 Feb 2007 18:39:41 +0000 (18:39 +0000)]
added a check for move->sequence that is more than 16 packets old to avoid having frozen players after a level change

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

12 years agosome slight cleanup of CL_LerpPoint, and now does a bound() on cl.time as well as...
havoc [Tue, 6 Feb 2007 08:43:08 +0000 (08:43 +0000)]
some slight cleanup of CL_LerpPoint, and now does a bound() on cl.time as well as cl.timenonlerp whenever cl.mtime[] is updated

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

12 years agotolerate clients living up to one frame in the future, just to be more flexible with...
havoc [Tue, 6 Feb 2007 08:36:14 +0000 (08:36 +0000)]
tolerate clients living up to one frame in the future, just to be more flexible with client prediction

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

12 years agono longer sends moves if time is not moving forward, except when paused (this fixes...
havoc [Tue, 6 Feb 2007 08:18:50 +0000 (08:18 +0000)]
no longer sends moves if time is not moving forward, except when paused (this fixes some bugs causing cl_movement 0 to lose impulse/buttons)
no longer repeats old moves if cl_movement is off (because they would serve no purpose)
eliminated cl.movemessages (now uses cl.movesequence for the same purpose)

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

12 years agofix very stupid typo in input merging when cl_movement is 0
havoc [Tue, 6 Feb 2007 05:38:08 +0000 (05:38 +0000)]
fix very stupid typo in input merging when cl_movement is 0

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

12 years agodisabled debug print I forgot about
havoc [Mon, 5 Feb 2007 17:53:30 +0000 (17:53 +0000)]
disabled debug print I forgot about

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

12 years agoredesigned input networking code (still same protocol) and did a lot of cleaning...
havoc [Mon, 5 Feb 2007 17:45:59 +0000 (17:45 +0000)]
redesigned input networking code (still same protocol) and did a lot of cleaning, now predicts movement even if server packets are lost
added cl_netinputpacketlosstolerance cvar (default 4, qw used 2, can be up to 16) to repeat old input messages in each packet so that they can only be lost by heavy packet loss
changed sv_clmovement_waitforinput default to 16 to match this capability
reworked a lot of timing code related to input networking
fixed some bugs when frametime is 0 in player physics

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

12 years agothanks to morfar for updating the Dev-C++ project file
havoc [Mon, 5 Feb 2007 15:47:55 +0000 (15:47 +0000)]
thanks to morfar for updating the Dev-C++ project file

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

12 years agochanged default sv_clmovement_minping from 100 to 0
havoc [Mon, 5 Feb 2007 13:32:09 +0000 (13:32 +0000)]
changed default sv_clmovement_minping from 100 to 0

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

12 years agofixed double-jump bug in prediction when jumping up sides of crates or on stairs
havoc [Mon, 5 Feb 2007 09:04:01 +0000 (09:04 +0000)]
fixed double-jump bug in prediction when jumping up sides of crates or on stairs

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

12 years agofix q1bsp detection of stuck entities (needed some more parentheses)
havoc [Mon, 5 Feb 2007 08:55:12 +0000 (08:55 +0000)]
fix q1bsp detection of stuck entities (needed some more parentheses)

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

12 years agoremoved an unneeded extern prototype
havoc [Mon, 5 Feb 2007 08:41:34 +0000 (08:41 +0000)]
removed an unneeded extern prototype

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

12 years agoremoved an unneeded cl.movement_replay = true; line
havoc [Mon, 5 Feb 2007 08:39:49 +0000 (08:39 +0000)]
removed an unneeded cl.movement_replay = true; line

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

12 years agofix a couple printf format string warnings that only occur with COLLISIONPARANOID on
havoc [Sun, 4 Feb 2007 12:55:09 +0000 (12:55 +0000)]
fix a couple printf format string warnings that only occur with COLLISIONPARANOID on

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

12 years agorefactored end code in Collision_Trace*BrushFloat functions to fix a severe logic...
havoc [Sun, 4 Feb 2007 12:54:09 +0000 (12:54 +0000)]
refactored end code in Collision_Trace*BrushFloat functions to fix a severe logic bug that caused players to get stuck inside eachother in nexuiz

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

12 years agominor optimization of surface scanning
havoc [Sun, 4 Feb 2007 11:27:42 +0000 (11:27 +0000)]
minor optimization of surface scanning
minor optimization of leaf recursion
added a leafstack overflow check to visibility flooding

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

12 years agoadded r_showsurfaces 2 mode which shorts triangle draw order (to analyze whether...
havoc [Sun, 4 Feb 2007 08:32:57 +0000 (08:32 +0000)]
added r_showsurfaces 2 mode which shorts triangle draw order (to analyze whether models are optimized for vertex cache)

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

12 years agorevised sv_clmovement_waitforinput default from 2 to 5 frames to have more tolerance...
havoc [Sat, 3 Feb 2007 13:01:36 +0000 (13:01 +0000)]
revised sv_clmovement_waitforinput default from 2 to 5 frames to have more tolerance for inconsistent packet timing

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

12 years agoadded DP_SV_PRINT extension
havoc [Sat, 3 Feb 2007 12:10:03 +0000 (12:10 +0000)]
added DP_SV_PRINT extension

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

12 years agomade CL_SetInfo check for more forbidden characters (key now refuses any form of...
havoc [Sat, 3 Feb 2007 12:08:54 +0000 (12:08 +0000)]
made CL_SetInfo check for more forbidden characters (key now refuses any form of whitespace, value now refuses \r and \n) and refactored the checking code to make it a bit cleaner

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

12 years agomoved DP_QC_UNLIMITEDTEMPSTRINGS in extensions list to its proper place
havoc [Sat, 3 Feb 2007 12:07:59 +0000 (12:07 +0000)]
moved DP_QC_UNLIMITEDTEMPSTRINGS in extensions list to its proper place

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

12 years agoadded r_shadow_frontsidecasting cvar (default 1), this allows switching to back-side...
havoc [Sat, 3 Feb 2007 08:49:02 +0000 (08:49 +0000)]
added r_shadow_frontsidecasting cvar (default 1), this allows switching to back-side casting instead, however this has proven buggy so it is not to be used yet

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

12 years agooptimized trimesh collision culling (this mostly affects patches)
havoc [Sat, 3 Feb 2007 08:40:38 +0000 (08:40 +0000)]
optimized trimesh collision culling (this mostly affects patches)

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

12 years agofix really stupid typo in previous patch that caused a memory smash
havoc [Sat, 3 Feb 2007 06:33:07 +0000 (06:33 +0000)]
fix really stupid typo in previous patch that caused a memory smash

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

12 years agofix bug in Collision_SnapCopyPoints that made it only snap the first vertex
havoc [Sat, 3 Feb 2007 05:19:55 +0000 (05:19 +0000)]
fix bug in Collision_SnapCopyPoints that made it only snap the first vertex

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

12 years agoremoved single-quoted string support in console parser because it breaks the maplist...
havoc [Sat, 3 Feb 2007 04:03:01 +0000 (04:03 +0000)]
removed single-quoted string support in console parser because it breaks the maplist in nexuiz

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

12 years agofixed two bugs that caused a constant state of "player stuck" (one was that it always...
havoc [Sat, 3 Feb 2007 03:36:26 +0000 (03:36 +0000)]
fixed two bugs that caused a constant state of "player stuck" (one was that it always thought this was a q1bsp/hlbsp map, and the other was that the q1bsp/hlbsp corner checking was checking the wrong locations)

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

12 years agofixed bug in AVI RIFF chunk 1GB size limiting code (it was not accounting for the...
havoc [Sat, 3 Feb 2007 03:08:57 +0000 (03:08 +0000)]
fixed bug in AVI RIFF chunk 1GB size limiting code (it was not accounting for the index buffer size which will be written afterward) which was causing the chunk to often exceed 1GB

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

12 years agomoved interpolation of viewangles when playing back demos or spectating someone to...
havoc [Fri, 2 Feb 2007 14:39:13 +0000 (14:39 +0000)]
moved interpolation of viewangles when playing back demos or spectating someone to a better place, this should work better with csqc

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

12 years agoUpdated the workspaces to include svbsp.c and svbsp.h
tomaz [Mon, 29 Jan 2007 21:32:09 +0000 (21:32 +0000)]
Updated the workspaces to include svbsp.c and svbsp.h

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

12 years ago497
havoc [Mon, 29 Jan 2007 10:33:33 +0000 (10:33 +0000)]
497

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

12 years agoreverted r_bloom_colorsubtract and r_shadow_brighten defaults to 0.125 and 2
havoc [Mon, 29 Jan 2007 10:31:14 +0000 (10:31 +0000)]
reverted r_bloom_colorsubtract and r_shadow_brighten defaults to 0.125 and 2

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

12 years agochanged default r_shadow_gloss2intensity from 0.5 to 0.125, now looks more like teneb...
havoc [Mon, 29 Jan 2007 10:20:05 +0000 (10:20 +0000)]
changed default r_shadow_gloss2intensity from 0.5 to 0.125, now looks more like tenebrae again (except a little better)

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

12 years agofix very stupid bug in svbsp calls that made only the first triangle of an occluding...
havoc [Mon, 29 Jan 2007 09:52:31 +0000 (09:52 +0000)]
fix very stupid bug in svbsp calls that made only the first triangle of an occluding surface polygon be inserted into the svbsp, and some other cleanup/corrections

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

12 years agosome minor optimizations, comment corrections, and changed debug polygon colors
havoc [Mon, 29 Jan 2007 09:51:20 +0000 (09:51 +0000)]
some minor optimizations, comment corrections, and changed debug polygon colors

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

12 years agofix stupid bug in insertion of occluder triangles in the svbsp code (it was stopping...
havoc [Mon, 29 Jan 2007 07:51:07 +0000 (07:51 +0000)]
fix stupid bug in insertion of occluder triangles in the svbsp code (it was stopping after adding the first one)

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