divverent/darkplaces.git
12 years agosv_autodemo_perclient - record client-like demos on the server (same format, lagged...
divverent [Sun, 9 Sep 2007 08:54:14 +0000 (08:54 +0000)]
sv_autodemo_perclient - record client-like demos on the server (same format, lagged (no support of cl_movement), so basically, just like spectating)

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

12 years agoFor now, ground snd_restart and snd_unloadallsounds if the client is still connected...
divverent [Sun, 9 Sep 2007 08:15:29 +0000 (08:15 +0000)]
For now, ground snd_restart and snd_unloadallsounds if the client is still connected, because DP keeps references to the sfx_t * that are being freed in the precache list. A real fix however would be ditching snd_unloadallsounds completely, and making a snd_reload command that unloads the sounds that are not being used at the moment, and reloads the sounds that are referenced.

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

12 years agoAdded optional float global sb_showscores to CSQC that represents the engine's +shows...
dresk [Sat, 8 Sep 2007 02:40:20 +0000 (02:40 +0000)]
Added optional float global sb_showscores to CSQC that represents the engine's +showscores state.  To support this in your CSQC, simply add this :
float sb_showscores;

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

12 years agoAdded QC function drawcolorcodedstring (#326 CSQC, #467 MQC) which is similar to...
dresk [Wed, 5 Sep 2007 22:15:04 +0000 (22:15 +0000)]
Added QC function drawcolorcodedstring (#326 CSQC, #467 MQC) which is similar to drawstring, instead it does not take in an RGB vector and instead colors the string based on the engine's coloring rules.

Useful for drawing colorized player names, centerprints, etc.

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

12 years agomade r_view.showdebug affect more r_show* features
havoc [Tue, 4 Sep 2007 20:27:36 +0000 (20:27 +0000)]
made r_view.showdebug affect more r_show* features

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

12 years agoremove unused variable
havoc [Tue, 4 Sep 2007 20:27:12 +0000 (20:27 +0000)]
remove unused variable

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

12 years agoadded r_view.showdebug flag, which is used to disable rendering of
havoc [Tue, 4 Sep 2007 20:20:02 +0000 (20:20 +0000)]
added r_view.showdebug flag, which is used to disable rendering of
r_shownormals and r_showtris and such features when rendering with HDR

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

12 years agoremove a weird loop that was attempting to count the length of the
havoc [Tue, 4 Sep 2007 20:18:27 +0000 (20:18 +0000)]
remove a weird loop that was attempting to count the length of the
strings table in the progs

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

12 years agoWIN32: changed stricmp and strnicmp to have an underscore prefix
havoc [Mon, 3 Sep 2007 10:48:10 +0000 (10:48 +0000)]
WIN32: changed stricmp and strnicmp to have an underscore prefix

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

12 years agoadded #ifndef MK_XBUTTON3
havoc [Mon, 3 Sep 2007 10:46:11 +0000 (10:46 +0000)]
added #ifndef MK_XBUTTON3

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

12 years agofix an array declaration that lacked extern
havoc [Mon, 3 Sep 2007 10:44:13 +0000 (10:44 +0000)]
fix an array declaration that lacked extern

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

12 years agoReplayGain support for OggVorbis files (mostly useful for fake CD tracks)
divverent [Sun, 2 Sep 2007 14:24:44 +0000 (14:24 +0000)]
ReplayGain support for OggVorbis files (mostly useful for fake CD tracks)

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

12 years agodoubled cl_maxidlefps, this cures sound stuttering when the window is
havoc [Sun, 2 Sep 2007 13:57:58 +0000 (13:57 +0000)]
doubled cl_maxidlefps, this cures sound stuttering when the window is
inactive

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

12 years agofix a bug in displaying ammo numbers, was a stupid typo
havoc [Sat, 1 Sep 2007 12:23:14 +0000 (12:23 +0000)]
fix a bug in displaying ammo numbers, was a stupid typo

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

12 years agoOGG_FreeSfx and WAV_FreeSfx no longer reference sfx_t
havoc [Thu, 30 Aug 2007 13:26:58 +0000 (13:26 +0000)]
OGG_FreeSfx and WAV_FreeSfx no longer reference sfx_t
OGG_FetchEnd no longer uses a pointer pointer

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

12 years agoeliminated channel_t reference in OGG_FetchEnd
havoc [Thu, 30 Aug 2007 12:55:17 +0000 (12:55 +0000)]
eliminated channel_t reference in OGG_FetchEnd

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

12 years agoeliminated references to channel_t and sfx_t in OGG_FetchSound and
havoc [Thu, 30 Aug 2007 12:49:49 +0000 (12:49 +0000)]
eliminated references to channel_t and sfx_t in OGG_FetchSound and
WAV_FetchSound, reworked ogg fetcher_data struct a bit for this

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

12 years agoturn off r_glsl if compilation of the lowest level fallback fails
havoc [Thu, 30 Aug 2007 03:55:44 +0000 (03:55 +0000)]
turn off r_glsl if compilation of the lowest level fallback fails

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

12 years agosave 24bit tga if alpha channel is entirely 255
havoc [Thu, 30 Aug 2007 03:55:21 +0000 (03:55 +0000)]
save 24bit tga if alpha channel is entirely 255

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

12 years agomake snd_null.c work again (added snd_mutewhenidle)
havoc [Wed, 29 Aug 2007 09:28:26 +0000 (09:28 +0000)]
make snd_null.c work again (added snd_mutewhenidle)

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

12 years agofix intermission display on recorded singleplayer demos, it was checking
havoc [Wed, 29 Aug 2007 05:35:08 +0000 (05:35 +0000)]
fix intermission display on recorded singleplayer demos, it was checking
cl.islocalgame which is false on demo playback and thinking it should
draw multiplayer scoreboard instead of the intermission stats

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

12 years agoimplemented q3 shader keyword polygonoffset
havoc [Mon, 27 Aug 2007 21:52:06 +0000 (21:52 +0000)]
implemented q3 shader keyword polygonoffset

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

12 years agoimplemented snd_mutewhenidle cvar, defaults to 1, to allow people to
havoc [Mon, 27 Aug 2007 11:12:19 +0000 (11:12 +0000)]
implemented snd_mutewhenidle cvar, defaults to 1, to allow people to
reenable sound when not the active window if they wish (such as when
watching demos)

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

12 years agoadded a developer 1000 print for every key event received, attempting to
havoc [Mon, 27 Aug 2007 11:10:41 +0000 (11:10 +0000)]
added a developer 1000 print for every key event received, attempting to
figure out why while watching the demo loop you can press the 1 key and
then escape and escape does nothing, pressing other keys reenables
escape again

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

12 years agoadded cl_maxidlefps cvar to control the fps limiting when not the active
havoc [Mon, 27 Aug 2007 10:50:40 +0000 (10:50 +0000)]
added cl_maxidlefps cvar to control the fps limiting when not the active
window

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

12 years agocleaned up qw-related todo items and added some newly discovered qw issues
havoc [Mon, 27 Aug 2007 06:53:26 +0000 (06:53 +0000)]
cleaned up qw-related todo items and added some newly discovered qw issues

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

12 years agoAdded pointsound QC function to CL and SV VMs (extension DP_SV_POINTSOUND, #483)...
dresk [Sun, 26 Aug 2007 19:02:29 +0000 (19:02 +0000)]
Added pointsound QC function to CL and SV VMs (extension DP_SV_POINTSOUND, #483).  This function is very similar to sound, though instead of providing an entity, an origin is provided, and the channel parameter is omitted (since no entity is being tracked).

This function requires no modification to the protocol layer (since origin was always sent with sound calls, along with an entity).

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

12 years agonew sprite types SPR_LABEL and SPR_LABEL_SCALE
divverent [Sun, 26 Aug 2007 12:23:25 +0000 (12:23 +0000)]
new sprite types SPR_LABEL and SPR_LABEL_SCALE

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

12 years agochanged reporting of compressed RGB textures to use 0.5 bytes per pixel
havoc [Fri, 24 Aug 2007 07:47:54 +0000 (07:47 +0000)]
changed reporting of compressed RGB textures to use 0.5 bytes per pixel
when estimating the uploaded size

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

12 years agono longer compresses embedded textures (in q1 and hl formats) because
havoc [Fri, 24 Aug 2007 02:33:01 +0000 (02:33 +0000)]
no longer compresses embedded textures (in q1 and hl formats) because
they tend to use little video memory to begin with

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

12 years agoadded gl_texturecompression to the video options menu
havoc [Fri, 24 Aug 2007 02:31:35 +0000 (02:31 +0000)]
added gl_texturecompression to the video options menu

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

12 years agoimproved r_texturestats output to count compressed textures as only 1
havoc [Thu, 23 Aug 2007 08:27:38 +0000 (08:27 +0000)]
improved r_texturestats output to count compressed textures as only 1
byte per pixel rather than their input bytes per pixel amount

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

12 years agoimplemented support for GL_ARB_texture_compression - this is controlled
havoc [Thu, 23 Aug 2007 07:44:46 +0000 (07:44 +0000)]
implemented support for GL_ARB_texture_compression - this is controlled
by the gl_texturecompression cvar, and which kinds of texture are
affected can be controlled by the gl_texturecompression_* cvars

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

12 years agoadd to cvar expansion: new variant $3- for all arguments starting from the 3rd; note...
divverent [Wed, 22 Aug 2007 15:40:45 +0000 (15:40 +0000)]
add to cvar expansion: new variant $3- for all arguments starting from the 3rd; note: $1- is equivalent to $*.
Fix bug in cvar value quoting that didn't quote $ (typo).

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

12 years agoimproved COM_ParseToken functions to continue parsing after the token
havoc [Sat, 18 Aug 2007 17:50:23 +0000 (17:50 +0000)]
improved COM_ParseToken functions to continue parsing after the token
buffer fills up (a better behavior than aborting parsing)

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

12 years agogit-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7527 d7cf8633-e32d-0410...
havoc [Sat, 18 Aug 2007 17:46:07 +0000 (17:46 +0000)]
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7527 d7cf8633-e32d-0410-b094-e92efae38249

12 years agoAdded SSQC Function "SV_OnEntityNoSpawnFunction" which is called, if available, whene...
dresk [Thu, 16 Aug 2007 06:35:30 +0000 (06:35 +0000)]
Added SSQC Function "SV_OnEntityNoSpawnFunction" which is called, if available, whenever an entity on the server is parsed but has no spawn function.  Previously Darkplaces would report this to the console under developer mode and immediately remove the entity.  The SSQC may now specify the behavior when such an event occurs (it may also simply call remove(self) to mimic the engine's behavior.)

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

12 years agoAdded CSQC globals dmg_take, dmg_save and dmg_origin. These globals correspond to...
dresk [Mon, 13 Aug 2007 18:04:50 +0000 (18:04 +0000)]
Added CSQC globals dmg_take, dmg_save and dmg_origin.  These globals correspond to the SSQC-sent messages that provide the data from the QC layer.  dmg_origin is the origin of the damage taken, derived from the dmg_inflictor entity in the QC.  All values are reset after every rendered frame (to mimic the server behavior).

These globals are optional, and do not interfere with the CRC of the CSQC definitions.

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

12 years agofix bug in csqc sound builtin where it multiplied volume by 255 (the
havoc [Sun, 12 Aug 2007 07:26:49 +0000 (07:26 +0000)]
fix bug in csqc sound builtin where it multiplied volume by 255 (the
sound system already does that)

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

12 years agoadded cl_gameplayfix_soundsmovewithentities cvar so that this feature
havoc [Sun, 12 Aug 2007 06:31:08 +0000 (06:31 +0000)]
added cl_gameplayfix_soundsmovewithentities cvar so that this feature
can be disabled if desired

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

12 years agoadded a FIXME comment about r_glsl 1 not working properly with
havoc [Sat, 11 Aug 2007 10:22:39 +0000 (10:22 +0000)]
added a FIXME comment about r_glsl 1 not working properly with
overbright lightstyle strings

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

12 years agofix brightness of fullbright entities in r_glsl 1 mode by using a 128
havoc [Sat, 11 Aug 2007 10:07:25 +0000 (10:07 +0000)]
fix brightness of fullbright entities in r_glsl 1 mode by using a 128
grey texture instead of white as the fake lightmap for the batch

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

12 years agoAdded support for assigning coop and deathmatch global float values to optional CSQC...
dresk [Fri, 10 Aug 2007 18:09:01 +0000 (18:09 +0000)]
Added support for assigning coop and deathmatch global float values to optional CSQC float globals (just like SSQC works with the two floats).

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

12 years agoallow shirt/pants/scoreboard colors to be pulled from an extra palette file (r_colorm...
divverent [Fri, 10 Aug 2007 10:34:06 +0000 (10:34 +0000)]
allow shirt/pants/scoreboard colors to be pulled from an extra palette file (r_colormap_palette); reload the palettes on r_restart

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

12 years agoallow view warping when underwater with gl_polyblend 0
havoc [Fri, 10 Aug 2007 05:46:58 +0000 (05:46 +0000)]
allow view warping when underwater with gl_polyblend 0

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

12 years agoAdded "pl" to the list of available keys to the CSQC function getplayerkey. "pl...
dresk [Fri, 10 Aug 2007 05:40:24 +0000 (05:40 +0000)]
Added "pl" to the list of available keys to the CSQC function getplayerkey.  "pl" returns the player's packetloss, as reported by the engine.

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

12 years agodisplay 4 digit ammo in inventory bar in quake hud
havoc [Thu, 9 Aug 2007 13:15:13 +0000 (13:15 +0000)]
display 4 digit ammo in inventory bar in quake hud

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

12 years agofix a clientside bug with CL_ValidateState altering entity states and
havoc [Thu, 9 Aug 2007 05:16:37 +0000 (05:16 +0000)]
fix a clientside bug with CL_ValidateState altering entity states and
causing them to remain altered in the future on delta updates in DP5/6/7
protocols (for example if skin or frame was set to a value that is not
valid on the current model, and then the model changes without the skin
or frame changing, it would be stuck on skin 0 or frame 0 until they
change to something else)

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

12 years agodon't crash if r_listmaptextures or r_replacemaptexture is used with no
havoc [Thu, 9 Aug 2007 05:14:40 +0000 (05:14 +0000)]
don't crash if r_listmaptextures or r_replacemaptexture is used with no
world model on the client

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

12 years agoadded /LARGEADDRESSAWARE in two more MSVS projects
havoc [Wed, 8 Aug 2007 04:18:09 +0000 (04:18 +0000)]
added /LARGEADDRESSAWARE in two more MSVS projects

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

12 years agoadded large address aware flags in Dev-C++ and MSVS6 projects
havoc [Wed, 8 Aug 2007 04:16:08 +0000 (04:16 +0000)]
added large address aware flags in Dev-C++ and MSVS6 projects

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

12 years agoadded --large-address-aware flag in windows builds
havoc [Wed, 8 Aug 2007 04:13:17 +0000 (04:13 +0000)]
added --large-address-aware flag in windows builds

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

12 years agofix a typo that caused incorrect prioritization of lost entity updates
havoc [Fri, 3 Aug 2007 23:46:28 +0000 (23:46 +0000)]
fix a typo that caused incorrect prioritization of lost entity updates

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

12 years agofix an error in the last patch
havoc [Thu, 2 Aug 2007 00:10:45 +0000 (00:10 +0000)]
fix an error in the last patch

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

12 years agorevert tolerances patch in RecursiveHullCheck, tolerances probably
havoc [Thu, 2 Aug 2007 00:08:20 +0000 (00:08 +0000)]
revert tolerances patch in RecursiveHullCheck, tolerances probably
should be there but this wasn't working properly, so it is reverted

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

12 years agofix and simplify strpad so that it actually works
divverent [Sat, 28 Jul 2007 18:52:26 +0000 (18:52 +0000)]
fix and simplify strpad so that it actually works

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

12 years agomake str2chr return 0 when used on an index outside the string (before, it didn't...
divverent [Sat, 28 Jul 2007 15:50:49 +0000 (15:50 +0000)]
make str2chr return 0 when used on an index outside the string (before, it didn't set the return value and would return something random)

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

12 years agoKrimZon's FTE_STRINGS port, please test!
divverent [Sat, 28 Jul 2007 14:23:14 +0000 (14:23 +0000)]
KrimZon's FTE_STRINGS port, please test!

// float(string haystack, string needle) strstr = #222;
float(string haystack, string needle, float startpos) strstrofs = #222;
// str2chr was already there
// chr2str was already there
string(float ccase, float calpha, float cnum, string s, ...) strconv = #224;
string(float chars, string s, ...) strpad = #225;
string(string info, string key, string value, ...) infoadd = #226;
string(string info, string key) infoget = #227;
float(string s1, string s2) strcmp = #228;
float(string s1, string s2, float len) strncmp = #228;
float(string s1, string s2) strcasecmp = #229;
float(string s1, string s2, float len) strncasecmp = #230;

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

12 years agoReverted addition of float global intermission to clprogdefs.h (which required a...
dresk [Fri, 27 Jul 2007 22:53:09 +0000 (22:53 +0000)]
Reverted addition of float global intermission to clprogdefs.h (which required a CRC update and recompilation of all CSQC mods).  Revert changes to CSQC Defs file if intermission had been inserted into it.

CSQC updating of intermission still supported if float global intermission exists.

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

12 years agoAdded the global float "intermission" to CSQC defs (in clprogdefs.h). Intermission...
dresk [Tue, 24 Jul 2007 06:11:10 +0000 (06:11 +0000)]
Added the global float "intermission" to CSQC defs (in clprogdefs.h).  Intermission was added after the global float servercommandframe, and MUST be added in all CSQC definitions files at this location.  This float is updated whenever the client intermission is updated.

This new global float is part of Spike's CSQC definition, as it exists in his globals as well (albeit in a different order from DP's).

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

12 years agoAdded the map name (ie. "The Grisly Grotto") to the world.message field string in...
dresk [Tue, 24 Jul 2007 03:50:38 +0000 (03:50 +0000)]
Added the map name (ie. "The Grisly Grotto") to the world.message field string in CSQC (you will have to define .string message somewhere in your QC code to access it)

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

12 years agohush a warning in Fantasy Quake (SOLID_BSP on a sprite - makes no sense,
havoc [Tue, 24 Jul 2007 01:04:55 +0000 (01:04 +0000)]
hush a warning in Fantasy Quake (SOLID_BSP on a sprite - makes no sense,
but continuous spam about it annoys the player)

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

12 years agofix problem with guardian not waking up in dissolution of eternity
havoc [Thu, 19 Jul 2007 20:49:11 +0000 (20:49 +0000)]
fix problem with guardian not waking up in dissolution of eternity
mission pack

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

12 years agochanged SCR_BeginLoadingPlaque to not call S_StopAllSounds, this should
havoc [Tue, 17 Jul 2007 06:09:46 +0000 (06:09 +0000)]
changed SCR_BeginLoadingPlaque to not call S_StopAllSounds, this should
fix cd loop/play commands in quake.rc

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

12 years agodon't draw score info in viewsize 120
havoc [Mon, 16 Jul 2007 02:31:05 +0000 (02:31 +0000)]
don't draw score info in viewsize 120

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

12 years agomake -dinput support BUTTON4 and the wheel
divverent [Sun, 15 Jul 2007 14:55:43 +0000 (14:55 +0000)]
make -dinput support BUTTON4 and the wheel

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

12 years agofix typo in r_glsl_dumpshader message
divverent [Sun, 15 Jul 2007 09:32:39 +0000 (09:32 +0000)]
fix typo in r_glsl_dumpshader message

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

12 years agoadd Cmd_QuoteString, and make the config writing code use that to quote strings writt...
divverent [Sat, 14 Jul 2007 07:26:30 +0000 (07:26 +0000)]
add Cmd_QuoteString, and make the config writing code use that to quote strings written to the config file (so binds containing backslashes and quotes are saved correctly)

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

12 years agocommand parsing: make "bind" and "in_bind" have the same parsing exception as "alias...
divverent [Sat, 14 Jul 2007 07:06:15 +0000 (07:06 +0000)]
command parsing: make "bind" and "in_bind" have the same parsing exception as "alias": no cvar expansion takes place when executing these commands, unless the command names are quoted or "hidden" in some other way

This fixes binds using cvars when written to the config file.

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

12 years agomodified Mod_Q1BSP_LoadFaces to use smaller lightmapsize on maps that
havoc [Fri, 13 Jul 2007 08:11:50 +0000 (08:11 +0000)]
modified Mod_Q1BSP_LoadFaces to use smaller lightmapsize on maps that
don't have a lot of lightmap data (mainly ammo boxes and such), and also
increased the maximum lightmapsize to 1024 which improves performance on
very large maps like masque.bsp

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

12 years agoadded some tolerances in Mod_Q1BSP_RecursiveHullCheck so that it is
havoc [Fri, 13 Jul 2007 08:09:48 +0000 (08:09 +0000)]
added some tolerances in Mod_Q1BSP_RecursiveHullCheck so that it is
likely to give sane results if an endpoint is exactly on a plane
(possibly negating the need for the nudge off the impact plane, but that
remains in the code)

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

12 years agofix bug with large time skips in demo playback being slowly interpolated
havoc [Wed, 11 Jul 2007 11:01:21 +0000 (11:01 +0000)]
fix bug with large time skips in demo playback being slowly interpolated
rather than simply skipped as in Quake, this fixes Nehahra movie
playback (where scene cuts are associated with large time deltas), as
well as fixing the view angle interpolation on the first frame of all
other demos

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

12 years agomake rcon command display a bit nicer for multi-command rcons
divverent [Tue, 10 Jul 2007 10:29:39 +0000 (10:29 +0000)]
make rcon command display a bit nicer for multi-command rcons

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

12 years agoallow multiple rcon commands in the same packet, separated by NUL
divverent [Tue, 10 Jul 2007 10:04:42 +0000 (10:04 +0000)]
allow multiple rcon commands in the same packet, separated by NUL

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

12 years agooops... forgot to safeguard against recursive character adding
divverent [Tue, 10 Jul 2007 06:39:28 +0000 (06:39 +0000)]
oops... forgot to safeguard against recursive character adding

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

12 years agoUpdated cl_modelindexlist command with additional model information, including model...
dresk [Mon, 9 Jul 2007 05:07:07 +0000 (05:07 +0000)]
Updated cl_modelindexlist command with additional model information, including model type (Q1BSP, MDL, MD2, etc) and triangle count.

Removed Hungarian Notation in CL_ModelIndexList_f and CL_SoundIndexList_f functions.

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

12 years agoallow multiplayer savegames
havoc [Mon, 9 Jul 2007 01:28:47 +0000 (01:28 +0000)]
allow multiplayer savegames

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

12 years agonever let client timeout in singleplayer
havoc [Mon, 9 Jul 2007 01:28:30 +0000 (01:28 +0000)]
never let client timeout in singleplayer

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

12 years agolog_dest_udp now limits the packet size to 1400, not 1500, for lower-MTU setups like...
divverent [Mon, 9 Jul 2007 00:38:37 +0000 (00:38 +0000)]
log_dest_udp now limits the packet size to 1400, not 1500, for lower-MTU setups like PPPoE

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

12 years agoRemoved inline from function Con_Rcon_AddChar due to MSVC8 (Visual Studio 2005) not...
dresk [Mon, 9 Jul 2007 00:02:55 +0000 (00:02 +0000)]
Removed inline from function Con_Rcon_AddChar due to MSVC8 (Visual Studio 2005) not supporting the C99 standard (which supports inline).  Potential future compiler check for feature.

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

12 years agoAdded command cl_soundindexlist which lists the sound index and the corresponding...
dresk [Sun, 8 Jul 2007 23:54:14 +0000 (23:54 +0000)]
Added command cl_soundindexlist which lists the sound index and the corresponding filenames of the sounds.

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

12 years agoAdded optional wildcard support for prvm_edict, prvm_edicts and prvm_globals commads...
dresk [Sun, 8 Jul 2007 23:04:59 +0000 (23:04 +0000)]
Added optional wildcard support for prvm_edict, prvm_edicts and prvm_globals commads.  In prvm_edict/s, wildcard is for field names; in prvm_globals, wildcard is for generic names.

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

12 years agofix little bug that made \001 destroy the first output character in log_dest_udp
divverent [Sun, 8 Jul 2007 23:00:26 +0000 (23:00 +0000)]
fix little bug that made \001 destroy the first output character in log_dest_udp

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

12 years agonew cvar log_dest_udp to send all console data to one or more specified addresses...
divverent [Sun, 8 Jul 2007 13:47:12 +0000 (13:47 +0000)]
new cvar log_dest_udp to send all console data to one or more specified addresses, separated by spaces, in form of QW rcon prints. Should be useful to let external programs communicate with a DP server (like IRC gateways, console web interfaces, stuff like that)

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

12 years agogit-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7470 d7cf8633-e32d-0410...
havoc [Sun, 8 Jul 2007 03:16:38 +0000 (03:16 +0000)]
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7470 d7cf8633-e32d-0410-b094-e92efae38249

12 years agofixed bug in gl_lightmaps code that made it not work properly on map
havoc [Sun, 8 Jul 2007 03:14:10 +0000 (03:14 +0000)]
fixed bug in gl_lightmaps code that made it not work properly on map
surfaces
improved gl_lightmaps to be almost completely usable

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

12 years agochanged parsing/cvar expanding rules to allow better handling of cvars with evil...
divverent [Sat, 7 Jul 2007 22:19:22 +0000 (22:19 +0000)]
changed parsing/cvar expanding rules to allow better handling of cvars with evil characters in their value, and to allow for easy concatenation of cvar values:
- \\ inside quoted strings now becomes \ (which is honored by semicolon splitting too)
- only one round of expansion when processing an alias (expanding cvars and parameters at the same time); this is implemented by duplicating every resulting dollar sign when expanding an alias
- lines starting with alias are exempt from cvar expansion (to be compatible with older versions that rely on alias lines with double quoted arguments to not have cvar expansion, which got changed in a recent commit); this can be overridden by quoting the word "alias"
- add ${cvar} syntax so one can expand a cvar and immediately follow with some letters
- add ${$cvar} syntax to reintroduce indirection similar to what could previously be done because aliases were expanded in two rounds
- make $cvar expansion insert the cvar in a way that isn't harmful when inside double quotes (that is, backslash double quotes and backslashes); this then allows copying cvars using: set copy "$original"

A detailed description of the rules is in cmd.c, Cmd_PreprocessString in a big comment block.

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

12 years agofix $cvar expansion to work in quotes
havoc [Wed, 4 Jul 2007 22:26:11 +0000 (22:26 +0000)]
fix $cvar expansion to work in quotes

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

12 years agocorrected comments for DP_FS_SEARCH functions to say DP_QC_FS_SEARCH
havoc [Wed, 4 Jul 2007 22:00:27 +0000 (22:00 +0000)]
corrected comments for DP_FS_SEARCH functions to say DP_QC_FS_SEARCH

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

12 years agofix brushforbox_index integer overflow found by Green - thanks for reporting. And...
divverent [Tue, 3 Jul 2007 21:28:39 +0000 (21:28 +0000)]
fix brushforbox_index integer overflow found by Green - thanks for reporting. And C's modulo operation sucks.

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

12 years agoadded sv_gameplayfix_delayprojectiles cvar, to allow the delayed
havoc [Tue, 3 Jul 2007 00:53:48 +0000 (00:53 +0000)]
added sv_gameplayfix_delayprojectiles cvar, to allow the delayed
projectiles behavior to be disabled if desired (since it does have a
significant impact on gameplay)

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

12 years agofix the jump-slide bug in the sv_gameplayfix_qwplayerphysics option
havoc [Tue, 3 Jul 2007 00:49:38 +0000 (00:49 +0000)]
fix the jump-slide bug in the sv_gameplayfix_qwplayerphysics option
(I to fix this because some people like the feature, but others don't)

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

12 years agosend less stats in old protocols, a lot of them were being duplicated
havoc [Tue, 3 Jul 2007 00:29:14 +0000 (00:29 +0000)]
send less stats in old protocols, a lot of them were being duplicated
for no reason

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

12 years agocommented out STAT_FRAGS (never used in quake either)
havoc [Tue, 3 Jul 2007 00:28:38 +0000 (00:28 +0000)]
commented out STAT_FRAGS (never used in quake either)

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

12 years agoand now I see that the added frags counter requires shifting the flag status icons...
divverent [Fri, 29 Jun 2007 11:46:38 +0000 (11:46 +0000)]
and now I see that the added frags counter requires shifting the flag status icons up... so the chat still is unobstructed

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

12 years agoadd cvar sbar_miniscoreboard_size to control the size of the mini DM overlay in items...
divverent [Fri, 29 Jun 2007 11:40:33 +0000 (11:40 +0000)]
add cvar sbar_miniscoreboard_size to control the size of the mini DM overlay in items (or -1 makes it get a default size depending on the current HUD); shift around the frags counter a bit to work well with 4 teams in sbar_hudselector 1 and 3 teams in sbar_hudselector 0 in Nexuiz (yes, then 4 teams display is knowingly broken, but it looks like we can use sbar_hudselector 1 in the next release)

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

12 years agooops, missing \n
divverent [Fri, 29 Jun 2007 08:26:39 +0000 (08:26 +0000)]
oops, missing \n

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

12 years agofix shader name in "permutation%s failed for shader %s, some features may not work...
divverent [Fri, 29 Jun 2007 07:46:15 +0000 (07:46 +0000)]
fix shader name in "permutation%s failed for shader %s, some features may not work properly!" message (previously was hardcoded to glsl/default.glsl);
new command r_glsl_dumpshader that dumps the engine builtin default.glsl file to glsl/default.glsl for editing and trying out stuff

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

12 years agoFixed bug where .contentstransition QC field function was not assigning the self...
dresk [Wed, 27 Jun 2007 07:40:57 +0000 (07:40 +0000)]
Fixed bug where .contentstransition QC field function was not assigning the self entity to the entity experiencing the contents transition.

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

12 years agooops, I didn't see this warning
divverent [Tue, 26 Jun 2007 20:27:40 +0000 (20:27 +0000)]
oops, I didn't see this warning

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