havoc [Fri, 23 Feb 2007 12:47:02 +0000 (12:47 +0000)]
remove unused variables
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6909
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 12:45:35 +0000 (12:45 +0000)]
fixed bug that caused the wrong texture to be used on rtlight lighting when two or more textures were involved in a single batch
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6908
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 12:05:14 +0000 (12:05 +0000)]
small cleanup of R_DrawSurfaces (separated r_showcollisionbrushes and r_showtris/r_shownormals code into functions)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6907
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 11:43:03 +0000 (11:43 +0000)]
split model_brushq3_t num_lightmaps field into num_originallightmaps (for lightmapindex checking) and num_mergedlightmaps (for loops), this fixes lightmap indexing errors on deluxemapped maps
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6906
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 10:46:00 +0000 (10:46 +0000)]
patch from div0 that makes curl downloads stay connected to the game server while downloading (like the direct downloads)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6905
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 09:36:47 +0000 (09:36 +0000)]
patch from div0 that adds clientside culling of entities by TraceLineOfSight (like sv_cullentities_trace does), and merges the client and server code for this culling, this also adds traces for predicted player movement on the server to reduce the "items popping up" problem when running into a new room
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6904
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 09:19:36 +0000 (09:19 +0000)]
memset arrays before writing skeletal vertices into them (as the code did long ago), this is an 8% improvement in Mod_Alias_GetMesh_Vertices in my benchmarking (7.58 seconds in profile before, 6.95 seconds after)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6903
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 09:02:48 +0000 (09:02 +0000)]
further optimizations to batching code, not much gain if any from these, but it may play nicer with cpu cache
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6902
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 05:12:05 +0000 (05:12 +0000)]
check __GNUC__ version before defining printf attribute, only define it on gcc 3 and later
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6901
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 15:22:37 +0000 (15:22 +0000)]
changed default mod_q3bsp_lightmapmergepower from 5 (4096x4096) to 4 (2048x2048), this means that the textures won't use more than 16MB each, which is a bit friendlier to 128MB cards than a 64MB texture (note: this is only the upper limit, if the map does not need this much lightmap space it already picks a smaller size)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6900
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 15:17:24 +0000 (15:17 +0000)]
fix dedicated server crashes caused by new lightmap merging
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6899
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 14:37:43 +0000 (14:37 +0000)]
fixed bug that made some models invisible in nexuiz (if they have skin != 0 and skin 0 was never rendered yet on this model, they were using skin 0, which was often uninitialized)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6898
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:55:01 +0000 (11:55 +0000)]
disabled collision_enternudge by default again, due to intermittent problems with getting stuck on ramps
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6897
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:45:12 +0000 (11:45 +0000)]
changed light attenuation equation in the default.glsl shader in the engine
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6896
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:30:29 +0000 (11:30 +0000)]
added r_shadow_lightradiusscale cvar (similar to r_shadow_lightintensityscale)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6895
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:29:38 +0000 (11:29 +0000)]
don't compute tangents or normals on non-deluxemapped world surfaces, or tangents on models if the shader does not use normalmapping
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6894
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:25:51 +0000 (11:25 +0000)]
really fixed deluxemapping this time
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6893
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:19:51 +0000 (11:19 +0000)]
fixed deluxemapping detection bug that made it never work
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6892
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 08:45:28 +0000 (08:45 +0000)]
now merges all q3bsp lightmap textures into one huge lightmap texture if possible, this doubled benchmark framerates for me
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6891
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 08:44:01 +0000 (08:44 +0000)]
added some debugging code to RSurf_DrawBatch_WithLightmapSwitching to print out how many surfaces are rendered in each batch and each subbatch by lightmap (this revealed that q3map2's surface sorting is horrible)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6890
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 04:42:10 +0000 (04:42 +0000)]
split RSurf_DrawBatch_Lightmap function into 4 main functions (previously there were only 3 modes, causing rendering problems) and 2 utility functions, this cleaned up the code somewhat
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6889
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 03:42:25 +0000 (03:42 +0000)]
fix a bug in transparent mesh rendering which often caused crashes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6888
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 01:13:31 +0000 (01:13 +0000)]
reorganized surface batching to batch visible surfaces first, and then pass them to a function that breaks the list down by texture, also reorganized batching code to use a forward-search approach rather than state machine approach, this got a small (2%) speed gain in benchmarks
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6887
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 00:39:49 +0000 (00:39 +0000)]
some cleanup of GL20 code (removed rsurface_glsl_texture and rsurface_glsl_uselightmaptexture caching, because with the change to not batching by lightmap texture there are no longer redundant batches)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6886
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 00:34:20 +0000 (00:34 +0000)]
merged some surface rendering setup code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6885
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 21 Feb 2007 11:56:29 +0000 (11:56 +0000)]
default gl_lockarrays to 0, I'm not aware of any cards that actually benefit from it
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6884
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 21 Feb 2007 11:55:37 +0000 (11:55 +0000)]
modified surface renderer batching to batch all lightmapped surfaces with the same texture together, rather than a separate batch for each lightmap texture, this means that the lightmap switching overhead is lower than before, no apparent improvement in benchmarks though
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6883
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 21 Feb 2007 04:38:56 +0000 (04:38 +0000)]
fixed bug that was causing seta commands to usually not save to config.cfg (due to the value being copied to their default when they are created, causing the default matching to prevent them from being saved before)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6882
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 21 Feb 2007 03:23:13 +0000 (03:23 +0000)]
changed collision nudging to behave like quake2/3, properly handling shallow impacts (not allowing them to go any deeper if they are within epsilon)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6881
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 12:34:38 +0000 (12:34 +0000)]
added model->brush.TraceLineOfSight function, this traces the rendering hull and treats leafs with no pvs as solid (meaning it traces the structural rendering hull in q3bsp, ignoring detail brushes and patches), this function is now used by sv_cullentities_trace for higher performance, and it does not stop at solid transparent surfaces such as the chainlink fences in the nexuiz map toxic.bsp
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6880
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 12:32:03 +0000 (12:32 +0000)]
fix some crashes related to particles when csqc is not active
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6879
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 08:07:48 +0000 (08:07 +0000)]
added mleaf_t->containscollisionsurfaces variable which indicates if the leafsurfaces array contains any q3 patches to collide against, checking this saves a substantial amount of time on collision detection in q3bsp (as few leafs actually contain patches, but many contain other kinds of surfaces)
added combinedsupercontents variable to mnode_t and mleaf_t, this was intended for collision culling but is not actually used (checks are implemented but commented out, because there was no measurable speed increase, and it could cause inconsistent results for startcontents when tracing objects larger than a point test - since point tests are always about contents there is no such culling performed in that case)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6878
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 08:04:28 +0000 (08:04 +0000)]
added scr_refresh cvar which is similar to r_render but disables the entire render code rather than merely disabling the glDraw calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6877
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 03:27:08 +0000 (03:27 +0000)]
changed reconnect command description
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6876
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 03:25:24 +0000 (03:25 +0000)]
made reconnect command reconnect to the last server you were on, even if it was an nq server (previously this only worked on qw servers)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6875
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 01:18:22 +0000 (01:18 +0000)]
changed Q3SURFACEPARM_ANTIPORTAL to be an unsigned constant
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6874
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 00:25:57 +0000 (00:25 +0000)]
added parsing of surfaceparm antiportal
added support of "noshader" (treated the same as nodraw, basically)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6873
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 19 Feb 2007 23:17:21 +0000 (23:17 +0000)]
moved cl.movesequence/cl.servermovesequence to cls. struct, this keeps the movesequence from level to level and fixes level change problems on old servers
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6872
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 19 Feb 2007 23:05:27 +0000 (23:05 +0000)]
reenabled network culling of bmodels (optional however), this should improve network performance in some nexuiz levels, and a few quake levels, it means that blood and decals do not interact with bmodels in other rooms however
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6871
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 19 Feb 2007 10:15:11 +0000 (10:15 +0000)]
reworked packet sending code a bit more, this is mostly just a cleanup, not a change in logic, except that cl_movement 0 now reports the correct ping time to the server, so local players get ping 0 as they used to
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6870
d7cf8633-e32d-0410-b094-
e92efae38249
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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