]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
17 years agodisabled loading of csprogs.dat if developer is less than 100
havoc [Wed, 7 Jun 2006 04:52:25 +0000 (04:52 +0000)]
disabled loading of csprogs.dat if developer is less than 100

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

17 years agoadded DP_GFX_EXTERNALTEXTURES_PERMAP extension
havoc [Wed, 7 Jun 2006 04:11:45 +0000 (04:11 +0000)]
added DP_GFX_EXTERNALTEXTURES_PERMAP extension

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

17 years agocommented out S_StartSound <whatever> not precached message because it happens consta...
havoc [Tue, 6 Jun 2006 11:12:52 +0000 (11:12 +0000)]
commented out S_StartSound <whatever> not precached message because it happens constantly if the file could not be found

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

17 years agoAttempt to fix speaker layout for 5.1 and 7.1 sound, on Windows and Mac OS X; the...
molivier [Tue, 6 Jun 2006 06:21:47 +0000 (06:21 +0000)]
Attempt to fix speaker layout for 5.1 and 7.1 sound, on Windows and Mac OS X; the sound engine now builds its speaker layout based on the OS and the snd_swapstereo cvar. Plus a minor fix for the OSS sound module (was incorrectly reporting "audio can't keep up")

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

17 years agoUse our usual defines for detecting the OS type
molivier [Tue, 6 Jun 2006 06:14:34 +0000 (06:14 +0000)]
Use our usual defines for detecting the OS type

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

17 years agoFixed the "nosound" cvar. Thanks to Willis for having reported this bug
molivier [Sun, 4 Jun 2006 22:58:52 +0000 (22:58 +0000)]
Fixed the "nosound" cvar. Thanks to Willis for having reported this bug

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

17 years ago- the Linux sound modules (ALSA and OSS) are now write-based, instead of
molivier [Sun, 4 Jun 2006 10:57:24 +0000 (10:57 +0000)]
- the Linux sound modules (ALSA and OSS) are now write-based, instead of
mmap-based. It should fix the problems with inboard sound cards
- added 3 cvars controlling the sound output format: snd_speed,
snd_channels, and snd_width (default values: 48000, 2, and 2
respectively). They're saved in the config file.
- the checks for command line options and environment variables
modifying the sound output format are now common to all modules. The
command line options supported are: -sndmono, -sndstereo, -sndquad,
-sndspeed, and -sndbits. The environment variables supported are:
QUAKE_SOUND_CHANNELS, QUAKE_SOUND_SPEED, and QUAKE_SOUND_SAMPLEBITS.
- added a (still dumb) function to figure out a better sound format when
the initialization of the sound card failed
- sound modules can now suggest a sound format if the initialization of
the sound card failed
- you can now do a "snd_restart" while having modified snd_width and/or
snd_channel. Doing a snd_restart with a modified snd_speed isn't yet
supported, it will fall back to the previous speed
- The WGL video module was blocking the sound output when the
application window lost the focus. Now, this code is shared and the AGL,
GLX and SDL video modules implement such a mecanism
- A lot of minor fixes, changes, factorizations and rewrites all over
the sound engine code and its modules
- added CeilPowerOf2() in the math library
- fixed BSDmakefile for NetBSD

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

17 years agocl_bobmodel is now a saved cvar
havoc [Sun, 4 Jun 2006 07:29:19 +0000 (07:29 +0000)]
cl_bobmodel is now a saved cvar

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

17 years agoremoved TE_VORESPIKE, no idea how it came into existence and it was never used
havoc [Thu, 1 Jun 2006 06:59:30 +0000 (06:59 +0000)]
removed TE_VORESPIKE, no idea how it came into existence and it was never used

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

17 years agodon't allow runaway loops caused by Con_Print during notify/console drawing
havoc [Tue, 30 May 2006 20:53:57 +0000 (20:53 +0000)]
don't allow runaway loops caused by Con_Print during notify/console drawing

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

17 years agofixed several crashes in video capture code when files fail to open
havoc [Tue, 30 May 2006 10:42:21 +0000 (10:42 +0000)]
fixed several crashes in video capture code when files fail to open
eliminated cl_capturevideo_sound cvar (now always on)
made sound capture non-realtime, by syncing sound mixer to capture frame while capture is active, this sounds horrible while recording but produces perfectly synced sound output to the .wav file
now numbers dpvideo files when saving, each one a higher number than the previous (the next number to use is saved to config), this allows capturing many short video clips without stopping to process the files
what this means: cl_capturevideo is now much more useful than before.

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

17 years agofix unintended use of alpha test on 2d graphics (hud/menu/etc)
havoc [Tue, 30 May 2006 10:37:19 +0000 (10:37 +0000)]
fix unintended use of alpha test on 2d graphics (hud/menu/etc)

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

17 years agoUpdated Dev-C++ project files
molivier [Mon, 29 May 2006 11:59:46 +0000 (11:59 +0000)]
Updated Dev-C++ project files

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

17 years agochanged color control menu correction value to 0.5 (medium grey on linear color monitors)
havoc [Mon, 29 May 2006 05:54:07 +0000 (05:54 +0000)]
changed color control menu correction value to 0.5 (medium grey on linear color monitors)

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

17 years agofixed repeated gamma ramp setting attempts in case of failure (again)
havoc [Mon, 29 May 2006 05:51:24 +0000 (05:51 +0000)]
fixed repeated gamma ramp setting attempts in case of failure (again)

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

17 years agofix bug that caused constant gamma ramp setting in windows in cases of failure
havoc [Sun, 28 May 2006 21:19:45 +0000 (21:19 +0000)]
fix bug that caused constant gamma ramp setting in windows in cases of failure

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

17 years agodisable canjump check until it's fixed
havoc [Sun, 28 May 2006 20:43:18 +0000 (20:43 +0000)]
disable canjump check until it's fixed

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

17 years agofurther tweaks to prediction
havoc [Sun, 28 May 2006 19:38:41 +0000 (19:38 +0000)]
further tweaks to prediction

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

17 years agofix a bug where dedicated servers might not respond to typing in the server console...
havoc [Sun, 28 May 2006 19:36:23 +0000 (19:36 +0000)]
fix a bug where dedicated servers might not respond to typing in the server console if no map is currently running (which is rare)

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

17 years agoadded a few more GLSL shader program setting calls in R_RenderScene just to prevent...
havoc [Sun, 28 May 2006 07:27:18 +0000 (07:27 +0000)]
added a few more GLSL shader program setting calls in R_RenderScene just to prevent problems if a model/map rendering call leaves a GLSL program active

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

17 years agoadded sv_clmovement_* cvars to disable movement prediction of players, or disable...
havoc [Sun, 28 May 2006 01:26:06 +0000 (01:26 +0000)]
added sv_clmovement_* cvars to disable movement prediction of players, or disable it only when their ping is below a certain value (by default 100ms)

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

17 years agono longer sets model->loaded if the model file was not found, since the old Mod_Check...
havoc [Sun, 28 May 2006 00:23:59 +0000 (00:23 +0000)]
no longer sets model->loaded if the model file was not found, since the old Mod_CheckLoaded code is long gone

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

17 years agoremove an unused variable
havoc [Sat, 27 May 2006 20:12:03 +0000 (20:12 +0000)]
remove an unused variable

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

17 years agocentering of notify lines in nexuiz now ignores color codes
havoc [Sat, 27 May 2006 20:07:34 +0000 (20:07 +0000)]
centering of notify lines in nexuiz now ignores color codes

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

17 years agocenterprint no longer counts color codes when centering lines
havoc [Sat, 27 May 2006 19:58:53 +0000 (19:58 +0000)]
centerprint no longer counts color codes when centering lines

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

17 years agodon't hexdump png images while reading them (why did it do this??)
havoc [Fri, 26 May 2006 03:09:02 +0000 (03:09 +0000)]
don't hexdump png images while reading them (why did it do this??)

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

17 years agofix bug that was preventing rcon_address from working
havoc [Fri, 26 May 2006 01:04:39 +0000 (01:04 +0000)]
fix bug that was preventing rcon_address from working

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

17 years agoimplemented sv_gameplayfix_qwplayerphysics
havoc [Fri, 26 May 2006 01:00:09 +0000 (01:00 +0000)]
implemented sv_gameplayfix_qwplayerphysics

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

17 years agofix a typo
havoc [Thu, 25 May 2006 23:46:11 +0000 (23:46 +0000)]
fix a typo

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

17 years agotry not to kick players for supposed speed cheating when float time degrades too...
havoc [Thu, 25 May 2006 23:28:03 +0000 (23:28 +0000)]
try not to kick players for supposed speed cheating when float time degrades too much

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

17 years agofixed sv_waterfriction code so it is now used
havoc [Thu, 25 May 2006 23:27:24 +0000 (23:27 +0000)]
fixed sv_waterfriction code so it is now used

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

17 years agoadded sv_waterfriction, sv_airaccelerate, sv_wateraccelerate cvars (and corresponding...
havoc [Thu, 25 May 2006 23:22:06 +0000 (23:22 +0000)]
added sv_waterfriction, sv_airaccelerate, sv_wateraccelerate cvars (and corresponding cl_movement_ cvars), now physics are about as configurable as quakeworld

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

17 years agopatch from div0 that allows loading new pak/pk3 archives while running
havoc [Thu, 25 May 2006 07:48:33 +0000 (07:48 +0000)]
patch from div0 that allows loading new pak/pk3 archives while running

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

17 years agopatch from div0 that makes togglemenu support a parameter (either 1 or 0) to not...
havoc [Thu, 25 May 2006 07:41:38 +0000 (07:41 +0000)]
patch from div0 that makes togglemenu support a parameter (either 1 or 0) to not toggle but instead set the menu on or off

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

17 years agochanged matchpattern to take a const char *
havoc [Thu, 25 May 2006 07:39:44 +0000 (07:39 +0000)]
changed matchpattern to take a const char *

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

17 years agoreplaced cl_beams_relative cvar with cl_beams_quakepositionhack and cl_beams_instanta...
havoc [Thu, 25 May 2006 04:12:05 +0000 (04:12 +0000)]
replaced cl_beams_relative cvar with cl_beams_quakepositionhack and cl_beams_instantaimhack and rewrote the relevant code, it now works like quake (except with instant aiming in the case of the instantaimhack) and applies only to your player

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

17 years agochanged qc profiling to use doubles instead of ints for profile counters, so it can...
havoc [Thu, 25 May 2006 03:57:50 +0000 (03:57 +0000)]
changed qc profiling to use doubles instead of ints for profile counters, so it can now count beyond 4 billion

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

17 years agoincreased runaway jump count limit to 1000000000
havoc [Thu, 25 May 2006 03:54:31 +0000 (03:54 +0000)]
increased runaway jump count limit to 1000000000

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

17 years agocalculate bounding box properly for psk models, and a cleanup of bounding box generat...
havoc [Thu, 25 May 2006 03:49:59 +0000 (03:49 +0000)]
calculate bounding box properly for psk models, and a cleanup of bounding box generation code for mdl/md2/md3 models

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

17 years agofixed crashes when changing a few settings while playing a demo
havoc [Thu, 25 May 2006 03:46:21 +0000 (03:46 +0000)]
fixed crashes when changing a few settings while playing a demo
fixed repeated jumping bug in cl_movement code
fixed crashes that would occur if playing a QW demo (not yet supported)

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

17 years agofix crash when entering "color" command while playing a demo
havoc [Thu, 25 May 2006 03:43:58 +0000 (03:43 +0000)]
fix crash when entering "color" command while playing a demo
fixed values printed by bottomcolor/topcolor commands (so bottomcolor no longer reports the whole color like color does, instead just the pants color)

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

17 years agofix playback of demos after playing on a quakeworld server
havoc [Thu, 25 May 2006 03:41:51 +0000 (03:41 +0000)]
fix playback of demos after playing on a quakeworld server

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

17 years agodisplay qw spectators as spectators on the scoreboard
havoc [Thu, 25 May 2006 03:41:01 +0000 (03:41 +0000)]
display qw spectators as spectators on the scoreboard
fix a crash if holding showscores while playing a demo

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

17 years agoremove some r_render checks, and added an r_render check to vid_sdl.c VID_Finish
havoc [Tue, 23 May 2006 22:54:30 +0000 (22:54 +0000)]
remove some r_render checks, and added an r_render check to vid_sdl.c VID_Finish

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

17 years ago471
havoc [Wed, 17 May 2006 08:18:06 +0000 (08:18 +0000)]
471

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

17 years agopatch from Dresk that adds a doom3-like "toggle" console command
havoc [Mon, 15 May 2006 02:40:36 +0000 (02:40 +0000)]
patch from Dresk that adds a doom3-like "toggle" console command

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

17 years agoreorganized a lot of renderer variables into r_refdef, and split some things out...
havoc [Fri, 12 May 2006 08:11:46 +0000 (08:11 +0000)]
reorganized a lot of renderer variables into r_refdef, and split some things out of r_refdef into r_view and r_viewcache, this reorganization brings DP closer to being able to render to textures

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

17 years agoundo something not meant to be committed yet
havoc [Fri, 12 May 2006 07:33:09 +0000 (07:33 +0000)]
undo something not meant to be committed yet

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

17 years agofix two implicit conversions
havoc [Fri, 12 May 2006 07:06:22 +0000 (07:06 +0000)]
fix two implicit conversions

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

17 years agofix s->waterlevel = 0 and such
havoc [Fri, 12 May 2006 07:05:32 +0000 (07:05 +0000)]
fix s->waterlevel = 0 and such

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

17 years agoremoved the clearing of the root bone in .psa animations, to fix bugs (sorry, this...
havoc [Thu, 11 May 2006 09:20:29 +0000 (09:20 +0000)]
removed the clearing of the root bone in .psa animations, to fix bugs (sorry, this was experimental and apparently broken)

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

17 years agofix a warning
havoc [Thu, 11 May 2006 09:03:10 +0000 (09:03 +0000)]
fix a warning

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

17 years agoredesigned skeletal model loading and rendering to use matrix-palette animation ...
havoc [Wed, 10 May 2006 11:52:21 +0000 (11:52 +0000)]
redesigned skeletal model loading and rendering to use matrix-palette animation (still in software, but that may change at some point), this improved nexuiz -benchmark demos/demo1 framerates by 11.3%

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

17 years agoadded Vector4Set macro
havoc [Wed, 10 May 2006 11:16:44 +0000 (11:16 +0000)]
added Vector4Set macro

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

17 years agosome clean up of packet parsing
havoc [Wed, 10 May 2006 10:14:26 +0000 (10:14 +0000)]
some clean up of packet parsing
merged most of the server info parsing code between the two cases (DP server and QW server), and reimplemented server info parsing for NQ servers
enabled ping/ack packet processing

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

17 years agosetinfo *ip on every network connection (currently only meaningful to QW reconnect...
havoc [Wed, 10 May 2006 08:26:44 +0000 (08:26 +0000)]
setinfo *ip on every network connection (currently only meaningful to QW reconnect command, but potentially useful), and removed some unneeded setinfo's since the cvars/commands now work properly

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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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