xonotic/darkplaces.git
13 years agoimproved setinfo handling so that quakeworld works much better now (name/topcolor...
havoc [Wed, 10 May 2006 08:24:54 +0000 (08:24 +0000)]
improved setinfo handling so that quakeworld works much better now (name/topcolor/bottomcolor/skin/team/noaim are handled properly now), this means TeamFortress won't kick clients for not responding to team/skin cvars, and is fully playable

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

13 years agoremoved all 3 uses of the brown-text message prefix in the server
havoc [Wed, 10 May 2006 08:02:45 +0000 (08:02 +0000)]
removed all 3 uses of the brown-text message prefix in the server

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

13 years agoadded a comment
havoc [Wed, 10 May 2006 07:59:45 +0000 (07:59 +0000)]
added a comment

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

13 years agocleanup of chat prefix character handling, this fixes a bug that was removing quake...
havoc [Wed, 10 May 2006 06:02:04 +0000 (06:02 +0000)]
cleanup of chat prefix character handling, this fixes a bug that was removing quake's brown characters at the beginning of a line

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

13 years agosignificantly reworked the cl_movement code, now predicts quakeworld almost completel...
havoc [Tue, 9 May 2006 15:26:00 +0000 (15:26 +0000)]
significantly reworked the cl_movement code, now predicts quakeworld almost completely correctly (only some issues with the different nature of stair stepping, and other differences compared to the FlyMove function on the servers which affect sliding in grooves)

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

13 years agodon't shuffle servers around when pings come in later and are identical to the existi...
havoc [Tue, 9 May 2006 15:22:46 +0000 (15:22 +0000)]
don't shuffle servers around when pings come in later and are identical to the existing ones (I.E. made the sort be a stable sort)
fixed a bug that caused qwmaster query packets to be bigger than necessary (was writing 7 bytes, should have been 3 bytes)

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

13 years agodo q1bsp lighting checks starting with + 0.125 unit Z offset to improve chances of...
havoc [Tue, 9 May 2006 15:18:50 +0000 (15:18 +0000)]
do q1bsp lighting checks starting with + 0.125 unit Z offset to improve chances of finding a lighting value rather than returning black when a model origin is almost stuck in the floor

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

13 years agosplit R_DrawTextureSurfaceList code into several functions and added separate multite...
havoc [Mon, 8 May 2006 23:39:56 +0000 (23:39 +0000)]
split R_DrawTextureSurfaceList code into several functions and added separate multitexture-combine/singletexture paths

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

13 years agofix NUL termination issue on the test string by not actually printing the packet
havoc [Mon, 8 May 2006 10:35:32 +0000 (10:35 +0000)]
fix NUL termination issue on the test string by not actually printing the packet

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

13 years agofixes to the test program
havoc [Mon, 8 May 2006 10:33:02 +0000 (10:33 +0000)]
fixes to the test program

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

13 years agolhnet fixes - now calls WSAStartup during LHNET_Init and WSAShutdown during LHNET_Shu...
havoc [Mon, 8 May 2006 10:22:10 +0000 (10:22 +0000)]
lhnet fixes - now calls WSAStartup during LHNET_Init and WSAShutdown during LHNET_Shutdown, so gethostbyname will work on windows without any sockets open (as long as LHNET_Init has been called of course), fixed a few things that were breaking compilation with -DSTANDALONETEST and added a new simpler and more useful standalone test program which is now used by default (edit the #if if you want the old one instead)

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

13 years agofix really stupid bug in qw download code which was saving the same file repeatedly...
havoc [Mon, 8 May 2006 05:21:14 +0000 (05:21 +0000)]
fix really stupid bug in qw download code which was saving the same file repeatedly (it wasn't resetting the buffer position on each new download)

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

13 years agofix bug with gl_combine 0 transparent water rendering in q1bsp (alpha was not being...
havoc [Mon, 1 May 2006 12:30:03 +0000 (12:30 +0000)]
fix bug with gl_combine 0 transparent water rendering in q1bsp (alpha was not being stored, leaving garbage (typically 0) in the vertex alpha, making the water disappear)

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

13 years agofix a type (description as part of value on r_textshadow)
havoc [Mon, 1 May 2006 12:14:02 +0000 (12:14 +0000)]
fix a type (description as part of value on r_textshadow)

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

13 years agooptimized rtlighting passes by using RSurf_DrawBatch_Simple, this took a lot of code...
havoc [Mon, 1 May 2006 12:05:34 +0000 (12:05 +0000)]
optimized rtlighting passes by using RSurf_DrawBatch_Simple, this took a lot of code restructuring but the resulting code is definitely a lot faster
fixed bugs in RSurf_DrawBatch_Lightmap related changes

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

13 years agorestructured RSurf_DrawLightmap to become RSurf_DrawBatch_Lightmap which processes...
havoc [Mon, 1 May 2006 09:00:22 +0000 (09:00 +0000)]
restructured RSurf_DrawLightmap to become RSurf_DrawBatch_Lightmap which processes all arrays and sets things up perfectly, then renders all the surfaces with a call to R_DrawBatch_Simple
added dynamic surface-merging to R_DrawBatch_Simple, depending on the new r_batchmode cvar it either renders surfaces individually (as before), consecutively (consecutively numbered surfaces are rendered with one call for their combined triangle elements range), or by memcpy merging elements into one array (this has rather chaotic vertex ranges so gl_lockarrays is disabled in this code because it is a consistent speed loss in this case)
this optimization increased fps by 4.7% in timedemo bigass1, and offers bigger gains in very high poly q1bsp and q3bsp maps

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

13 years agochanged svc_setangle to cause interpolated turning when spectating (two or more conse...
havoc [Sun, 30 Apr 2006 03:42:04 +0000 (03:42 +0000)]
changed svc_setangle to cause interpolated turning when spectating (two or more consecutive frames with a svc_setangle message), and instant entity updates when teleporting (just one svc_setangle) so you no longer fly through the level when teleporting
changed cl_beams_relative to only apply to the local player (unless set to a value of 2 or higher)

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

13 years agotreat AltGr key as ALT for bind purposes
havoc [Fri, 28 Apr 2006 01:21:54 +0000 (01:21 +0000)]
treat AltGr key as ALT for bind purposes

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

13 years agoAdd _DrawQ_ProcessDrawFlag to clean-up the glblend setup code.
black [Thu, 27 Apr 2006 20:23:42 +0000 (20:23 +0000)]
Add _DrawQ_ProcessDrawFlag to clean-up the glblend setup code.
Add CL_Video_KeyEvent and support for it to Key_Event, now the the fullscreen video
is closed automatically when you hit enter, space or escape and the video system catches all
input (no more accidentially nagivating around in the menu).
(Please test this and report bugs to black@icculus.org if you find any)

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

13 years agofixed fullbright support in glsl path
havoc [Thu, 27 Apr 2006 02:54:45 +0000 (02:54 +0000)]
fixed fullbright support in glsl path

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

13 years agoRemoved myself from all the todo items. I no longer mind if none of these are ever...
sajt [Thu, 27 Apr 2006 00:58:09 +0000 (00:58 +0000)]
Removed myself from all the todo items. I no longer mind if none of these are ever implemented/fixed, and I check the cvs often enough that I'll see if they ever are. Feel free to remove any of these altogether, e.g. mirrors, hub save, skyrooms...

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

13 years ago*** empty log message ***
sajt [Thu, 27 Apr 2006 00:49:46 +0000 (00:49 +0000)]
*** empty log message ***

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

13 years agoadded proper liquidfriction support
havoc [Wed, 26 Apr 2006 14:34:29 +0000 (14:34 +0000)]
added proper liquidfriction support

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

13 years agooptimized handling of decals, which increased timedemo bigass1.dem from 185fps to...
havoc [Wed, 26 Apr 2006 14:22:55 +0000 (14:22 +0000)]
optimized handling of decals, which increased timedemo bigass1.dem from 185fps to 191fps, also partially implemented airfriction and liquidfriction

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

13 years agoa simple optimization to particle allocation, increased bigass1.dem performance from...
havoc [Wed, 26 Apr 2006 13:12:43 +0000 (13:12 +0000)]
a simple optimization to particle allocation, increased bigass1.dem performance from 184fps to 185fps

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

13 years agonow does batching of transparent surfaces, such as particles, this raised performance...
havoc [Wed, 26 Apr 2006 12:57:21 +0000 (12:57 +0000)]
now does batching of transparent surfaces, such as particles, this raised performance in bigass1.dem from 143fps to 184fps (it uses a lot of particles)

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

13 years agoadded a lot more CHECKGLERROR macro calls, to identify precisely where any error...
havoc [Wed, 26 Apr 2006 10:20:45 +0000 (10:20 +0000)]
added a lot more CHECKGLERROR macro calls, to identify precisely where any error occurs

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

13 years agochanged back to 1 second intervals on fps math
havoc [Wed, 26 Apr 2006 09:09:19 +0000 (09:09 +0000)]
changed back to 1 second intervals on fps math

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

13 years agochanged the Cvar_Command: prints to developer.integer >= 100
havoc [Wed, 26 Apr 2006 09:08:55 +0000 (09:08 +0000)]
changed the Cvar_Command: prints to developer.integer >= 100

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

13 years agoreenabled support of find() with an empty string as the search value, this fixes...
havoc [Tue, 25 Apr 2006 13:21:24 +0000 (13:21 +0000)]
reenabled support of find() with an empty string as the search value, this fixes the Blood Mage monster movement
slight optimization to findflags and findchainflags

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

13 years agoadded prvm_printfunction command which prints an assembly dump of the specified qc...
havoc [Tue, 25 Apr 2006 13:20:05 +0000 (13:20 +0000)]
added prvm_printfunction command which prints an assembly dump of the specified qc function, with coloring and optionally statement profiling to show how many times each statement has been executed (prvm_statementprofiling must be on for this), also heavily modified statement printing to be more readable

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

13 years agosignificant optimizations to the progs interpreter, changed the runaway loop counter...
havoc [Tue, 25 Apr 2006 06:14:44 +0000 (06:14 +0000)]
significant optimizations to the progs interpreter, changed the runaway loop counter to only count jump instructions (if/ifnot/goto), and redesigned the profile counting to use pointer math on batches of instructions instead of counting each instruction individually
changed prvm_profile report to show callcount before statements and builtincost, changed the sorting order to use summed callcount+statements+builtincost (and this made it print call counts for builtin functions as well)

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

13 years agoreenabled the 'stick in place if stuck in a solid' code, but changed it to only apply...
havoc [Tue, 25 Apr 2006 00:34:02 +0000 (00:34 +0000)]
reenabled the 'stick in place if stuck in a solid' code, but changed it to only apply for bmodelstartsolid, this prevents monsters from falling out of the level even if they're stuck in a wall, for consistency with stock quake

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

13 years agochanged particle trail handling so that the TE_TEI_G3 effect can spawn particles...
havoc [Thu, 20 Apr 2006 23:55:54 +0000 (23:55 +0000)]
changed particle trail handling so that the TE_TEI_G3 effect can spawn particles along the beam just like trails can
cleaned up particle texture generation, no longer generates them if loading from disk, now also allows all 64 slots to be used (except the beam one) by generating generic texcoords for all of them

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

13 years agoadded keyup function for menu qc at Black's request
havoc [Thu, 20 Apr 2006 23:54:12 +0000 (23:54 +0000)]
added keyup function for menu qc at Black's request

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

13 years agoreplaced rainsplash animation with just a single particle which expands over time...
havoc [Thu, 20 Apr 2006 15:52:12 +0000 (15:52 +0000)]
replaced rainsplash animation with just a single particle which expands over time to free up significant space in the particlefont (also added sizeincrease parameter support to effectinfo.txt accordingly)

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

13 years agodon't complain about shaders with no layers
havoc [Thu, 20 Apr 2006 15:48:55 +0000 (15:48 +0000)]
don't complain about shaders with no layers

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

13 years agograb mouse when using menu while watching demos (important for nexuiz)
havoc [Thu, 20 Apr 2006 10:55:47 +0000 (10:55 +0000)]
grab mouse when using menu while watching demos (important for nexuiz)

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

13 years agofix some model lighting bugs in the GLSL surface renderer related to stale lightmaps...
havoc [Thu, 20 Apr 2006 10:55:00 +0000 (10:55 +0000)]
fix some model lighting bugs in the GLSL surface renderer related to stale lightmaps still being bound

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

13 years agoallow changelevel to stop demos (necessary for nexuiz menu)
havoc [Thu, 20 Apr 2006 09:17:21 +0000 (09:17 +0000)]
allow changelevel to stop demos (necessary for nexuiz menu)

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

13 years agofix missing newline on unknown opcode warning in progs loader
havoc [Thu, 20 Apr 2006 09:12:59 +0000 (09:12 +0000)]
fix missing newline on unknown opcode warning in progs loader

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

13 years agorenamed scr_screenshot_gamma to scr_screenshot_gammaboost and changed default to...
havoc [Thu, 20 Apr 2006 07:57:38 +0000 (07:57 +0000)]
renamed scr_screenshot_gamma to scr_screenshot_gammaboost and changed default to 1, this means all screenshots will be unmodified unless the user specifically changes the setting, rather than saving them very bright by default

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

13 years agooptimized LoadTGA to have fast paths for all formats, rather than one unified loading...
havoc [Thu, 20 Apr 2006 07:46:09 +0000 (07:46 +0000)]
optimized LoadTGA to have fast paths for all formats, rather than one unified loading loop that tried to support all formats, this saves 1.15 seconds of load time in nexuiz on my machine (before: 2.32 seconds spent in LoadTGA, after: 1.17 seconds)

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

13 years agosignificant surface renderer optimizations
havoc [Thu, 20 Apr 2006 03:43:20 +0000 (03:43 +0000)]
significant surface renderer optimizations

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

13 years agoadded GL_AlphaTest function to enable/disable GL_ALPHA_TEST
havoc [Thu, 20 Apr 2006 01:47:26 +0000 (01:47 +0000)]
added GL_AlphaTest function to enable/disable GL_ALPHA_TEST

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

13 years agoprecache scoreboard title, intermission pics, and finale pic
havoc [Wed, 19 Apr 2006 13:33:05 +0000 (13:33 +0000)]
precache scoreboard title, intermission pics, and finale pic

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

13 years agoremoved the flawed detection of modelspace deluxemaps (it was always concluding they...
havoc [Wed, 19 Apr 2006 07:04:05 +0000 (07:04 +0000)]
removed the flawed detection of modelspace deluxemaps (it was always concluding they were modelspace because of unused black pixels and such), now assumes q3bsp deluxemaps are always modelspace

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

13 years agoanother attempt to fix the warnings
havoc [Tue, 18 Apr 2006 11:24:19 +0000 (11:24 +0000)]
another attempt to fix the warnings

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

13 years agoattempting to fix a warning about setjmp clobbering variables
havoc [Tue, 18 Apr 2006 11:19:02 +0000 (11:19 +0000)]
attempting to fix a warning about setjmp clobbering variables

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

13 years agofix a bug in AUTOSPRITE2 code caused by overzealous optimization, thanks to Elric...
havoc [Tue, 18 Apr 2006 11:10:10 +0000 (11:10 +0000)]
fix a bug in AUTOSPRITE2 code caused by overzealous optimization, thanks to Elric for reporting this

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

13 years agoreworked most of q3bsp q3 shader loading, now supports more shader effects (the first...
havoc [Tue, 18 Apr 2006 10:44:11 +0000 (10:44 +0000)]
reworked most of q3bsp q3 shader loading, now supports more shader effects (the first layer's blendfunc is now used for rendering), still no multilayer stuff though, and still no tcgen environment so some surfaces now look worse because their first pass is an environment effect, but most others look better...
q3 fog shaders are usually invisible now (looks better than blinding white surfaces)
added support for more hacky q3 shaders (like sky shaders that don't have surfaceparm sky, and transparent shaders that don't have surfaceparm trans)
added support for alpha test in q3 shaders (improves some shaders)

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

13 years agoreset a bit more state each frame
havoc [Tue, 18 Apr 2006 10:37:43 +0000 (10:37 +0000)]
reset a bit more state each frame

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

13 years agoconback lives... again!
havoc [Tue, 18 Apr 2006 06:28:17 +0000 (06:28 +0000)]
conback lives...  again!

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

13 years agoremoved showfps mode 2 (which was weird), modified showfps 1 to use 0.1 second pollin...
havoc [Tue, 18 Apr 2006 06:19:10 +0000 (06:19 +0000)]
removed showfps mode 2 (which was weird), modified showfps 1 to use 0.1 second polling intervals so it updates much more often

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

13 years agoconback support is dead.
havoc [Tue, 18 Apr 2006 06:16:13 +0000 (06:16 +0000)]
conback support is dead.

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

13 years agoremoved scr_conspeed, now always instantaneous console opening/closing
havoc [Tue, 18 Apr 2006 06:03:37 +0000 (06:03 +0000)]
removed scr_conspeed, now always instantaneous console opening/closing

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

13 years agorewrote timing code, now a much better and very different sleeping method, no longer...
havoc [Tue, 18 Apr 2006 05:49:22 +0000 (05:49 +0000)]
rewrote timing code, now a much better and very different sleeping method, no longer wastes any cpu time
changed timing code to have independent sleeping for client and server frames in a listen server
changed console execution to occur in sync with server frames if a server is running, this fixes frikbot loading of .way files
eliminated several host_* variables, replaced host_realframetime with cl.realframetime (which is how long since the last client frame)
removed the clamping of sys_ticrate to >= 0.1, so now sys_ticrate 0 is allowed (run as fast as possible), as well as silly values like 0.001
removed serverprofile cvar as it was not easy to preserve it in the rewritten timing
merged Host_FilterTime, Host_ServerFrame, Host_Frame, _Host_Frame into Host_Main (which also calls Host_Init), this eliminates some duplicate code in all the sys_ modules

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

13 years agobatch by lightmap as well as texture, this cures problems with vertex lit surfaces...
havoc [Mon, 17 Apr 2006 01:58:32 +0000 (01:58 +0000)]
batch by lightmap as well as texture, this cures problems with vertex lit surfaces in deluxemapped q3bsp files (the vertex lit surfaces can't be deluxemapped)

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

13 years agono longer recalculated q3bsp surface normals, this makes q3map2 'phong shading' featu...
havoc [Sun, 16 Apr 2006 11:38:37 +0000 (11:38 +0000)]
no longer recalculated q3bsp surface normals, this makes q3map2 'phong shading' features work, no more seams on terrain and such

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

13 years agofix crash when loading .dpm models
havoc [Sun, 16 Apr 2006 11:37:07 +0000 (11:37 +0000)]
fix crash when loading .dpm models

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

13 years agochanged where vertex coloring is applied in the fragment shader, this fixes problems...
havoc [Sun, 16 Apr 2006 11:36:20 +0000 (11:36 +0000)]
changed where vertex coloring is applied in the fragment shader, this fixes problems with vertex colored surfaces (note: does not help deluxemapping mode, there is another bug affecting that)

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

13 years agomodified Mod_BuildTextureVectorsAndNormals to become Mod_BuildTextureVectorsFromNorma...
havoc [Sun, 16 Apr 2006 10:19:05 +0000 (10:19 +0000)]
modified Mod_BuildTextureVectorsAndNormals to become Mod_BuildTextureVectorsFromNormals, this is in preparation for properly honoring the surface normals in models and maps (doesn't do anything yet)

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

13 years agocommented out r_texture_fogintensity texture generation as it's not used anywhere
havoc [Sun, 16 Apr 2006 09:34:02 +0000 (09:34 +0000)]
commented out r_texture_fogintensity texture generation as it's not used anywhere

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

13 years agofix bug in glsl surface shader setup code which was breaking fog
havoc [Sun, 16 Apr 2006 09:30:21 +0000 (09:30 +0000)]
fix bug in glsl surface shader setup code which was breaking fog

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

13 years agoeliminated rmeshstate_t .pointer_vertex and .pointer_color (now must use R_Mesh_Verte...
havoc [Sun, 16 Apr 2006 09:21:17 +0000 (09:21 +0000)]
eliminated rmeshstate_t .pointer_vertex and .pointer_color (now must use R_Mesh_VertexPointer and R_Mesh_ColorPointer instead - in a lot of code these don't need to be called as often)
renamed R_Mesh_State to R_Mesh_TextureState
made an alternate variant of R_Mesh_TextureState called R_Mesh_ResetTextureState which acts like it was given an empty rmeshstate_t (but is faster than R_Mesh_TextureState)
moved R_Mesh_VertexPointer and R_Mesh_TexCoordPointer calls out of the inner loops of the GLSL surface path
other related cleanups

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

13 years agoredesigned some of the model animation code, should be a speed gain (no longer proces...
havoc [Sun, 16 Apr 2006 06:44:17 +0000 (06:44 +0000)]
redesigned some of the model animation code, should be a speed gain (no longer processes animation multiple times on models with multiple textures), and executes less code per surface (should speed up map rendering)

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

13 years agofixed zym loading bugs that made models lose surfaces
havoc [Sun, 16 Apr 2006 06:40:20 +0000 (06:40 +0000)]
fixed zym loading bugs that made models lose surfaces

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

13 years agoAGL fixes: fixed a crash when switching to and from fullscreen several times; explici...
molivier [Sun, 16 Apr 2006 06:28:28 +0000 (06:28 +0000)]
AGL fixes: fixed a crash when switching to and from fullscreen several times; explicitely release the display when closing the video module; fixed initial test in VID_Shutdown(); a bit of code cleaning

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

13 years agouse entity bbox for network culling if model was not found (this allows dedicated...
havoc [Sun, 16 Apr 2006 04:02:32 +0000 (04:02 +0000)]
use entity bbox for network culling if model was not found (this allows dedicated servers to run properly without models installed)

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

13 years agosome cleanup of Mod_Alias_GetMesh_Vertex3f
havoc [Sun, 16 Apr 2006 01:08:00 +0000 (01:08 +0000)]
some cleanup of Mod_Alias_GetMesh_Vertex3f
fixed md3 animation loading bug (this was causing all frames other than 0 to be corrupt)

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

13 years agoFixes and cleanups related to the recent AGL patches
molivier [Sat, 15 Apr 2006 11:33:29 +0000 (11:33 +0000)]
Fixes and cleanups related to the recent AGL patches

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

13 years agoadded darkplaces-agl to .cvsignore
havoc [Sat, 15 Apr 2006 08:24:35 +0000 (08:24 +0000)]
added darkplaces-agl to .cvsignore

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

13 years agofix more warnings
havoc [Sat, 15 Apr 2006 08:14:55 +0000 (08:14 +0000)]
fix more warnings

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

13 years agoadded -framework AGL to the Mac OSX client libs to make it compile
havoc [Sat, 15 Apr 2006 08:13:14 +0000 (08:13 +0000)]
added -framework AGL to the Mac OSX client libs to make it compile

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

13 years agofix some warnings
havoc [Sat, 15 Apr 2006 08:04:10 +0000 (08:04 +0000)]
fix some warnings

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

13 years agofix really stupid typo in SV_Move code, this cures the 'monsters walking through...
havoc [Sat, 15 Apr 2006 07:53:27 +0000 (07:53 +0000)]
fix really stupid typo in SV_Move code, this cures the 'monsters walking through walls' bug

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

13 years agofix clientside bmodel collisions (now can walk around on the start.bsp main room...
havoc [Sat, 15 Apr 2006 06:46:09 +0000 (06:46 +0000)]
fix clientside bmodel collisions (now can walk around on the start.bsp main room floor, lifts, be blocked by doors, etc)

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

13 years agoprints entity number of MOVETYPE_PUSH entities without models (this is mostly useful...
havoc [Sat, 15 Apr 2006 06:45:12 +0000 (06:45 +0000)]
prints entity number of MOVETYPE_PUSH entities without models (this is mostly useful to level designers who accidentally left a brushless door lying around)

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

13 years agoadditional debugging code
havoc [Sat, 15 Apr 2006 06:44:03 +0000 (06:44 +0000)]
additional debugging code

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

13 years agofixed stair step up bug in cl_movement code which caused prediction to go through...
havoc [Sat, 15 Apr 2006 06:41:22 +0000 (06:41 +0000)]
fixed stair step up bug in cl_movement code which caused prediction to go through walls in some cases

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

13 years agofixed really stupid typo in CL_TraceBox regarding bmodel entity collisions (doors...
havoc [Sat, 15 Apr 2006 06:38:09 +0000 (06:38 +0000)]
fixed really stupid typo in CL_TraceBox regarding bmodel entity collisions (doors and such) which was breaking their collisions
eliminated CL_PointQ1Contents

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

13 years agoaudit of checkstuck/unstickentity code and relates stuff, this seems to fix the falli...
havoc [Fri, 14 Apr 2006 03:46:39 +0000 (03:46 +0000)]
audit of checkstuck/unstickentity code and relates stuff, this seems to fix the falling out of level bug

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

13 years agobetter SUPERCONTENTS masks for a few TraceBox and PointContents calls
havoc [Fri, 14 Apr 2006 03:45:43 +0000 (03:45 +0000)]
better SUPERCONTENTS masks for a few TraceBox and PointContents calls
slight cleanups

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

13 years agomoved SVC_PARTICLE code to fallback code, this does allow effectinfo.txt to override...
havoc [Thu, 13 Apr 2006 16:48:09 +0000 (16:48 +0000)]
moved SVC_PARTICLE code to fallback code, this does allow effectinfo.txt to override SVC_PARTICLE but that isn't recommended

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

13 years agostop complaining about SVC_PARTICLE
havoc [Thu, 13 Apr 2006 16:41:23 +0000 (16:41 +0000)]
stop complaining about SVC_PARTICLE

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

13 years agotwo Mac OSX fixes from ds01 on alientrap forums - input fixed, and fullscren fixed
havoc [Thu, 13 Apr 2006 16:33:19 +0000 (16:33 +0000)]
two Mac OSX fixes from ds01 on alientrap forums - input fixed, and fullscren fixed

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

13 years agochanged cshifts[] to use floats instead of ints, this reduces framerate dependence...
havoc [Wed, 12 Apr 2006 22:41:27 +0000 (22:41 +0000)]
changed cshifts[] to use floats instead of ints, this reduces framerate dependence (where damage flashes faded faster at lower framerates)

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

13 years agoSys_Sleep more to save cpu time
havoc [Wed, 12 Apr 2006 22:40:32 +0000 (22:40 +0000)]
Sys_Sleep more to save cpu time

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

13 years agodon't hide console when entering a map, only do so for timedemo
havoc [Wed, 12 Apr 2006 22:40:14 +0000 (22:40 +0000)]
don't hide console when entering a map, only do so for timedemo

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

13 years agoMacOSX g++ setjmp fix from div0
havoc [Tue, 11 Apr 2006 21:47:51 +0000 (21:47 +0000)]
MacOSX g++ setjmp fix from div0

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

13 years agoThis works for me, works on Windows according to MSDN and should also work
black [Tue, 11 Apr 2006 11:31:04 +0000 (11:31 +0000)]
This works for me, works on Windows according to MSDN and should also work
everywhere else according to the C standard.

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

13 years agoreverted Black's change to the effectinfo.txt color command
havoc [Mon, 10 Apr 2006 22:03:40 +0000 (22:03 +0000)]
reverted Black's change to the effectinfo.txt color command

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

13 years agoAn attempt to fix the particle color bug (it coudlnt read hex values).
black [Mon, 10 Apr 2006 20:41:57 +0000 (20:41 +0000)]
An attempt to fix the particle color bug (it coudlnt read hex values).
Also extend it to make it support "R G B" color pairs.

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

13 years agodo apply mixahead math as int
havoc [Sun, 9 Apr 2006 01:11:39 +0000 (01:11 +0000)]
do apply mixahead math as int

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

13 years agofix cl.completed_time math after that last commit
havoc [Sat, 8 Apr 2006 20:02:56 +0000 (20:02 +0000)]
fix cl.completed_time math after that last commit

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

13 years agomade darkplaces able to compile as C++ again, and fixed all conversion warnings when...
havoc [Sat, 8 Apr 2006 18:56:35 +0000 (18:56 +0000)]
made darkplaces able to compile as C++ again, and fixed all conversion warnings when doing so
changed several malloc and free calls to Z_Malloc and Z_Free

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

13 years agodefault sv_gameplayfix_stepdown to 0 because it's generally undesirable
havoc [Sat, 8 Apr 2006 16:17:06 +0000 (16:17 +0000)]
default sv_gameplayfix_stepdown to 0 because it's generally undesirable

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

13 years ago466
havoc [Tue, 4 Apr 2006 19:08:45 +0000 (19:08 +0000)]
466

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

13 years agoincreased sv_maxrate limit to 150000 from 25000
havoc [Tue, 4 Apr 2006 14:01:23 +0000 (14:01 +0000)]
increased sv_maxrate limit to 150000 from 25000

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

13 years agoadded particle effect scripting using effectinfo.txt, this means configurable effects...
havoc [Tue, 4 Apr 2006 13:51:22 +0000 (13:51 +0000)]
added particle effect scripting using effectinfo.txt, this means configurable effects in any game that wishes to do so

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