14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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
improved gl_lightmaps to be almost completely usable

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 years agofix buffer overrun in vorbis decoder
divverent [Tue, 26 Jun 2007 20:25:58 +0000 (20:25 +0000)]
fix buffer overrun in vorbis decoder

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

14 years agosb_colon support for Nexuiz
divverent [Tue, 26 Jun 2007 13:57:33 +0000 (13:57 +0000)]
sb_colon support for Nexuiz

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

14 years agoin teamplay, frags counter now shows other teams instead of distribution/place in...
divverent [Tue, 26 Jun 2007 08:36:10 +0000 (08:36 +0000)]
in teamplay, frags counter now shows other teams instead of distribution/place in team colors

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

14 years agotake the time used by the stuff before the server code into account when measuring...
divverent [Sun, 24 Jun 2007 15:25:10 +0000 (15:25 +0000)]
take the time used by the stuff before the server code into account when measuring the timing offset for server frames

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

14 years agoMeasure some timing values for output in status; also, if developer is 1, complain...
divverent [Sun, 24 Jun 2007 14:52:17 +0000 (14:52 +0000)]
Measure some timing values for output in status; also, if developer is 1, complain to the console if the server can't keep up with the game speed.

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

14 years agoenhanced all cvar reading builtins to support multiple strings for the
havoc [Sun, 24 Jun 2007 07:19:01 +0000 (07:19 +0000)]
enhanced all cvar reading builtins to support multiple strings for the
cvar name
enhanced cvar_set to take multiple strings for the value

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

14 years agoslight simplification/optimization of an if statement (no change in
havoc [Sun, 24 Jun 2007 07:15:53 +0000 (07:15 +0000)]
slight simplification/optimization of an if statement (no change in

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

14 years agosupport modelflags field on entity without a model
havoc [Wed, 20 Jun 2007 05:50:46 +0000 (05:50 +0000)]
support modelflags field on entity without a model

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

14 years agofix uninitialized variable when CSQC does not have ConsoleCommand
havoc [Wed, 20 Jun 2007 05:40:55 +0000 (05:40 +0000)]
fix uninitialized variable when CSQC does not have ConsoleCommand

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

14 years agofix problem in CL_VM_ConsoleCommand
havoc [Sun, 17 Jun 2007 08:49:37 +0000 (08:49 +0000)]
fix problem in CL_VM_ConsoleCommand

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

14 years agofix strncmp to check for 3 parameters not 1
havoc [Sun, 17 Jun 2007 08:48:08 +0000 (08:48 +0000)]
fix strncmp to check for 3 parameters not 1

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

14 years agosome whitespace changes
havoc [Sun, 17 Jun 2007 07:37:11 +0000 (07:37 +0000)]
some whitespace changes

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

14 years agoadded view_angles field in csqc, no longer sets pmove_org or pmove_vel
havoc [Sun, 17 Jun 2007 07:32:52 +0000 (07:32 +0000)]
added view_angles field in csqc, no longer sets pmove_org or pmove_vel

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

14 years agopatch from Spike which implements colormap support on csqc entities
havoc [Sun, 17 Jun 2007 07:22:10 +0000 (07:22 +0000)]
patch from Spike which implements colormap support on csqc entities

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

14 years agopatch from Spike which makes csqc actually get loaded
havoc [Sun, 17 Jun 2007 07:20:45 +0000 (07:20 +0000)]
patch from Spike which makes csqc actually get loaded

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

14 years agopatch from Spike which makes getstati accept 3 parameters to extract a
havoc [Sun, 17 Jun 2007 07:19:59 +0000 (07:19 +0000)]
patch from Spike which makes getstati accept 3 parameters to extract a
shifted bit range from a stat

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

14 years agochanged all references to entity_render_t->frame to frame2 to eliminate
havoc [Sun, 17 Jun 2007 07:16:31 +0000 (07:16 +0000)]
changed all references to entity_render_t->frame to frame2 to eliminate
the unnecessary field

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

14 years agofix a bug with bounding box measurement when
havoc [Sat, 16 Jun 2007 23:45:13 +0000 (23:45 +0000)]
fix a bug with bounding box measurement when
sv_gameplayfix_findradiusdistancetobox is 0

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

14 years agoimplemented sv_gameplayfix_multiplethinksperframe
havoc [Sat, 16 Jun 2007 22:22:06 +0000 (22:22 +0000)]
implemented sv_gameplayfix_multiplethinksperframe

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

14 years agodon't overflow 1024 byte buffer on quake protocol, this often happens
havoc [Sat, 16 Jun 2007 02:45:43 +0000 (02:45 +0000)]
don't overflow 1024 byte buffer on quake protocol, this often happens
when bubbles rise from a dying player in e1m4 deathmatch

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

14 years agoset ortho_x and ortho_y, forgot this before
havoc [Fri, 15 Jun 2007 21:17:57 +0000 (21:17 +0000)]
set ortho_x and ortho_y, forgot this before

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

14 years agochanged the meaning of VF_PERSPECTIVE false after discussion with Spike,
havoc [Fri, 15 Jun 2007 08:54:47 +0000 (08:54 +0000)]
changed the meaning of VF_PERSPECTIVE false after discussion with Spike,
VF_FOV now determines the dimensions in all directions (in other words,
the view is from -VF_FOVX to +VF_FOVX horizontally, and -VF_FOVY to
+VF_FOVY vertically, in quake units)

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

14 years agoanother attempt at fixing bugs with downloads caused by the workaround
havoc [Fri, 15 Jun 2007 08:09:01 +0000 (08:09 +0000)]
another attempt at fixing bugs with downloads caused by the workaround
that prevents old clients from getting disconnected on map change

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

14 years agouse an entity limit based on the protocol
havoc [Fri, 15 Jun 2007 07:58:20 +0000 (07:58 +0000)]
use an entity limit based on the protocol

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

14 years agoa refinement of the previous patch to only affect submodels, not all bsp
havoc [Fri, 15 Jun 2007 02:35:13 +0000 (02:35 +0000)]
a refinement of the previous patch to only affect submodels, not all bsp

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

14 years agoadded r_polygonoffset_submodel_offset support in submodel shadow
havoc [Fri, 15 Jun 2007 02:33:49 +0000 (02:33 +0000)]
added r_polygonoffset_submodel_offset support in submodel shadow
rendering, fixing a bug that kept dlights from affecting submodels

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

14 years agofixed serverside bug with active weapon stat in old protocols
havoc [Thu, 14 Jun 2007 07:16:12 +0000 (07:16 +0000)]
fixed serverside bug with active weapon stat in old protocols

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

14 years agomoved name validation code to server side
havoc [Thu, 14 Jun 2007 07:02:09 +0000 (07:02 +0000)]
moved name validation code to server side

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

14 years agoadded support for VF_PERSPECTIVE = false in frustum culling
havoc [Thu, 14 Jun 2007 06:18:50 +0000 (06:18 +0000)]
added support for VF_PERSPECTIVE = false in frustum culling

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

14 years agofix sbar/crosshair state in csqc
havoc [Thu, 14 Jun 2007 06:17:33 +0000 (06:17 +0000)]
fix sbar/crosshair state in csqc

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

14 years agofix some bugs in the last commit (perspective was off)
havoc [Thu, 14 Jun 2007 05:37:59 +0000 (05:37 +0000)]
fix some bugs in the last commit (perspective was off)

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

14 years agoimplemented csqc VF_PERSPECTIVE, still needs more work but it's a start
havoc [Thu, 14 Jun 2007 05:27:56 +0000 (05:27 +0000)]
implemented csqc VF_PERSPECTIVE, still needs more work but it's a start

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

14 years agorestore some csqc variables in VM_R_ClearScene
havoc [Thu, 14 Jun 2007 04:42:00 +0000 (04:42 +0000)]
restore some csqc variables in VM_R_ClearScene

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

14 years agoadded a CSQC code download print
havoc [Thu, 14 Jun 2007 04:13:09 +0000 (04:13 +0000)]
added a CSQC code download print

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

14 years agoprint a message and call CL_BeginDownloads if a download is corrupt
havoc [Thu, 14 Jun 2007 04:06:16 +0000 (04:06 +0000)]
print a message and call CL_BeginDownloads if a download is corrupt

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

14 years agoreworked sendsignon logic so that unlimited sends are allowed once
havoc [Thu, 14 Jun 2007 03:58:38 +0000 (03:58 +0000)]
reworked sendsignon logic so that unlimited sends are allowed once
prespawn is sent by the client

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

14 years agomake sure cl_downloadbegin will be sent
havoc [Thu, 14 Jun 2007 03:41:40 +0000 (03:41 +0000)]
make sure cl_downloadbegin will be sent

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

14 years agofix a bug in server support for PROTOCOL_NEHAHRAMOVIE
havoc [Thu, 14 Jun 2007 03:40:06 +0000 (03:40 +0000)]
fix a bug in server support for PROTOCOL_NEHAHRAMOVIE

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

14 years agowhen spectating in nexuiz, use the current viewentity for scoreboard
havoc [Thu, 14 Jun 2007 00:37:15 +0000 (00:37 +0000)]
when spectating in nexuiz, use the current viewentity for scoreboard
information rather than the real player entity
(renamed cl.playerentity to cl.realplayerentity and made playerentity
update whenever viewentity is set to a valid client entity)

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

14 years agocentered quake hud in deathmatch, this makes the new score block visible
havoc [Thu, 14 Jun 2007 00:23:54 +0000 (00:23 +0000)]
centered quake hud in deathmatch, this makes the new score block visible
removed use of the color cyan on the score block text, because the quake
numbers are brown and it makes them very dark

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

14 years agoadded a score-distribution/place/score block left of the hud
havoc [Wed, 13 Jun 2007 23:29:13 +0000 (23:29 +0000)]
added a score-distribution/place/score block left of the hud
added a time remaining clock left of the hud (which shows time in level
instead if no timelimit is active or if the server does not send it)

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

14 years agoremoved the ^7 after player names in various engine messages and made
havoc [Wed, 13 Jun 2007 08:42:51 +0000 (08:42 +0000)]
removed the ^7 after player names in various engine messages and made
the player name change code append the ^7 if the name contains color
codes and the last one is not ^7, this gets rid of spurious ^7 tags seen
by non-DP clients

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

14 years agobrought back the client->sendsignon flag from original quake code, this
havoc [Wed, 13 Jun 2007 06:59:45 +0000 (06:59 +0000)]
brought back the client->sendsignon flag from original quake code, this
fixes the occasional error message on old clients when a level change
occurs and chat messages or scoreboard updates or other reliable
messages are delivered to the client when it is not expecting them
(during model/sound loading when it is supposed to just be exchanging
keepalive messages)

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

14 years agofix a warning's format string
havoc [Wed, 13 Jun 2007 05:41:31 +0000 (05:41 +0000)]
fix a warning's format string

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

14 years agotweaked some warnings on q1bsp texture loading to follow a consistent
havoc [Mon, 11 Jun 2007 17:38:39 +0000 (17:38 +0000)]
tweaked some warnings on q1bsp texture loading to follow a consistent
formatting style and use developer prints for most of them

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

14 years agoadded more developer prints when loading shaders
havoc [Mon, 11 Jun 2007 17:19:10 +0000 (17:19 +0000)]
added more developer prints when loading shaders
fixed shader loading to refuse empty texture names, this fixes support
for cmt4.bsp which has some unnamed textures

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

14 years agomerged several identical pieces of worldmodel setup code into
havoc [Mon, 11 Jun 2007 16:19:07 +0000 (16:19 +0000)]
merged several identical pieces of worldmodel setup code into
a new function called CL_SetupWorldModel
CL_VM_Init no longer resets anything, CL_ClearState now sets up the
cl.csqc_vidvars defaults, this fixes the "no world model" bug

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

14 years agoadded back rate limiting on old protocols, however sv_maxrate no longer
havoc [Mon, 11 Jun 2007 15:45:02 +0000 (15:45 +0000)]
added back rate limiting on old protocols, however sv_maxrate no longer
applies on old protocols, and quake clients and other old clients will
simply default to unlimited rate, so this allows a client to request a
lower rate but by default does not impose any limiting

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

14 years agoenable libcurl downloads by default
havoc [Mon, 11 Jun 2007 15:41:07 +0000 (15:41 +0000)]
enable libcurl downloads by default

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