]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
17 years agoChanged "fake cd track x playing..." console prints to console debug prints
dresk [Tue, 9 Oct 2007 06:04:45 +0000 (06:04 +0000)]
Changed "fake cd track x playing..." console prints to console debug prints

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

17 years agofix a warning (con_text is static, no need for an if check on it)
havoc [Tue, 9 Oct 2007 05:30:35 +0000 (05:30 +0000)]
fix a warning (con_text is static, no need for an if check on it)

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

17 years agofix typo
havoc [Tue, 9 Oct 2007 05:13:49 +0000 (05:13 +0000)]
fix typo

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

17 years agofix water plane center calculation (it was never cleared)
havoc [Tue, 9 Oct 2007 05:11:47 +0000 (05:11 +0000)]
fix water plane center calculation (it was never cleared)
fix water plane r_view corruption in error handling

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

17 years agofix reflections not working when just reflective stuff, but no water, is on the map
divverent [Sun, 7 Oct 2007 13:48:11 +0000 (13:48 +0000)]
fix reflections not working when just reflective stuff, but no water, is on the map

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

17 years agosorry... dp_refract parameters should work THAT way round
divverent [Sun, 7 Oct 2007 09:30:52 +0000 (09:30 +0000)]
sorry... dp_refract parameters should work THAT way round

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

17 years agochanged reflect/refract keywords to
divverent [Sun, 7 Oct 2007 09:04:05 +0000 (09:04 +0000)]
changed reflect/refract keywords to
  dp_reflect <r> <g> <b>
  dp_refract <reflectmin> <reflectmax> <distort> <r> <g> <b>
made dp_reflect work additively again (so perfect mirrors shall use a black texture)

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

17 years agomake bestweapon customizable using a new register_bestweapon command (DP_CON_BESTWEAP...
divverent [Sat, 6 Oct 2007 19:24:44 +0000 (19:24 +0000)]
make bestweapon customizable using a new register_bestweapon command (DP_CON_BESTWEAPON); add a new cycleweapon command that works similarily to bestweapon, but cycles among the weapons in the list

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

17 years agoCleaned up reflection and refraction a bit; added Q3 shader parameters dp_reflect...
divverent [Wed, 3 Oct 2007 15:21:48 +0000 (15:21 +0000)]
Cleaned up reflection and refraction a bit; added Q3 shader parameters dp_reflect and dp_refract for them; fixed simple reflection.

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

17 years agofix uninitialized variables
havoc [Mon, 1 Oct 2007 06:42:27 +0000 (06:42 +0000)]
fix uninitialized variables

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

17 years agoreworked R_Water_StartFrame to fix the bug that changes to
havoc [Mon, 1 Oct 2007 06:40:32 +0000 (06:40 +0000)]
reworked R_Water_StartFrame to fix the bug that changes to
r_glsl_water_resolutionmultiplier didn't take effect until r_glsl_water
was toggled

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

17 years agoimplemented support for more than 32768 clipnodes (again a case of
havoc [Mon, 1 Oct 2007 03:39:40 +0000 (03:39 +0000)]
implemented support for more than 32768 clipnodes (again a case of
arguire qbsp producing files that violate the q1bsp format), this fixes
large monsters falling out of levels in warpspasm

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

17 years agor_showtris/r_shownormals/r_showcollisionbrushes are no longer obscured
havoc [Mon, 1 Oct 2007 03:37:39 +0000 (03:37 +0000)]
r_showtris/r_shownormals/r_showcollisionbrushes are no longer obscured
by bmodels and things that are drawn later, they now get their own
rendering stage, and have been moved after transparencies, also changed
them to use alpha blend, where their value controls the opacity

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

17 years agoadded support for arguire's strange protocols that expand
havoc [Mon, 1 Oct 2007 03:12:19 +0000 (03:12 +0000)]
added support for arguire's strange protocols that expand
modelindex/soundindex to 16bit (sometimes), these protocols are
not recommended for mods as the more standard QUAKEDP protocol already
supported 16bit indices by use of additional svc_ codes and additional
entity update bits, however these protocols are used in the warpspasm
demos, so this makes them play

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

17 years agofix some errors
sajt [Sun, 30 Sep 2007 23:53:26 +0000 (23:53 +0000)]
fix some errors

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

17 years agoimplemented pvs support in water reflection rendering, greatly improving
havoc [Sun, 30 Sep 2007 14:50:52 +0000 (14:50 +0000)]
implemented pvs support in water reflection rendering, greatly improving
performance with r_glsl_water 1
implemented some checks to shut off r_glsl_water if texture creation
fails

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

17 years agofix a bug where map becomes invisible (just sky) when the nearclip plane
havoc [Sun, 30 Sep 2007 13:23:34 +0000 (13:23 +0000)]
fix a bug where map becomes invisible (just sky) when the nearclip plane
culls a portal, this bug was introduced by recent water shader rendering
features (using an extra clip plane for culling, accidentally activated
the view's nearclip plane as well, which culls portals accidentally)

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

17 years agouse $(WINDRES) variable for win32, don't hardcode the name
divverent [Sun, 30 Sep 2007 12:58:34 +0000 (12:58 +0000)]
use $(WINDRES) variable for win32, don't hardcode the name

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

17 years agochanged q1bsp loader to allow more than 32768 nodes, as long as the
havoc [Sat, 29 Sep 2007 17:47:48 +0000 (17:47 +0000)]
changed q1bsp loader to allow more than 32768 nodes, as long as the
total of nodes+leafs is <= 65536, it also attempts to fix corrupt BSP
trees by changing invalid references to instead use the solid leaf (so
you can't walk into a corrupt area), this was done to allow loading of
maps compiled with arguire's qbsp utility that can produce corrupt bsp
files

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

17 years ago"" binds are removed binds (fix behaviour in conjunction with bindmaps not skipping...
divverent [Wed, 26 Sep 2007 17:16:08 +0000 (17:16 +0000)]
"" binds are removed binds (fix behaviour in conjunction with bindmaps not skipping over "" binds - note that unbind also binds to "")

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

17 years agoimplemented chase_overhead cvar
havoc [Wed, 26 Sep 2007 05:21:04 +0000 (05:21 +0000)]
implemented chase_overhead cvar

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

17 years agochanged SND_MAX_SPEED to 96000 and added corresponding threshold entry
havoc [Wed, 26 Sep 2007 03:07:11 +0000 (03:07 +0000)]
changed SND_MAX_SPEED to 96000 and added corresponding threshold entry

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

17 years agoupdated darkplaces.dev from m0rfar
havoc [Tue, 25 Sep 2007 20:37:46 +0000 (20:37 +0000)]
updated darkplaces.dev from m0rfar

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

17 years agoattempt to fix unintentionally forced gloss problems
havoc [Tue, 25 Sep 2007 19:23:39 +0000 (19:23 +0000)]
attempt to fix unintentionally forced gloss problems

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

17 years agouse even bigger primes actually
havoc [Tue, 25 Sep 2007 18:54:00 +0000 (18:54 +0000)]
use even bigger primes actually

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

17 years agouse bigger prime numbers in calculating vertex hash indices to improve
havoc [Tue, 25 Sep 2007 18:52:03 +0000 (18:52 +0000)]
use bigger prime numbers in calculating vertex hash indices to improve
loading performance

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

17 years agopatch for nexuiz from m0rfar to colorize health/armor according to amount
havoc [Mon, 24 Sep 2007 18:52:39 +0000 (18:52 +0000)]
patch for nexuiz from m0rfar to colorize health/armor according to amount

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

17 years agochanged COM_ParseToken_Simple to have a parsebackslash option, usually
havoc [Mon, 24 Sep 2007 18:45:51 +0000 (18:45 +0000)]
changed COM_ParseToken_Simple to have a parsebackslash option, usually
false, this fixes the problem with broken wad names in hlbsp

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

17 years agofix a crash in levels without water
havoc [Mon, 24 Sep 2007 18:19:17 +0000 (18:19 +0000)]
fix a crash in levels without water

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

17 years agofix incorrect casts in the default.glsl shader
havoc [Mon, 24 Sep 2007 17:35:55 +0000 (17:35 +0000)]
fix incorrect casts in the default.glsl shader

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

17 years agoadded GL_CullFace(GL_NONE); in sky rendering in an attempt to fix
havoc [Mon, 24 Sep 2007 15:29:15 +0000 (15:29 +0000)]
added GL_CullFace(GL_NONE); in sky rendering in an attempt to fix
problems with refraction/reflection of skybox

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

17 years agocorrect a typo (-lws_32 should be -lws2_32)
havoc [Mon, 24 Sep 2007 12:33:09 +0000 (12:33 +0000)]
correct a typo (-lws_32 should be -lws2_32)

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

17 years agorevised water shader, less refraction, more focus on reflections
havoc [Mon, 24 Sep 2007 11:52:50 +0000 (11:52 +0000)]
revised water shader, less refraction, more focus on reflections
added MODE_LIGHTMAP shader permutation flag, this simplified the shader
some other cleanup (q3 vertex shaded surfaces should now properly
respond to r_ambient)
implemented internal support for reflection surfaces (as opposed to full
refraction+reflection water effects)

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

17 years agoreplace strcpy use with strlcpy in some commented out code in menu
havoc [Sun, 23 Sep 2007 10:12:09 +0000 (10:12 +0000)]
replace strcpy use with strlcpy in some commented out code in menu

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

17 years agodisable double/float conversion warnings in matrixlib on MSVS
havoc [Sun, 23 Sep 2007 10:09:08 +0000 (10:09 +0000)]
disable double/float conversion warnings in matrixlib on MSVS

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

17 years agochanged -lwsock32 to -lws2_32 in windows builds
havoc [Sun, 23 Sep 2007 10:06:36 +0000 (10:06 +0000)]
changed -lwsock32 to -lws2_32 in windows builds

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

17 years agoadded dinput.lib requirement in darkplaces.dsp
havoc [Sun, 23 Sep 2007 10:02:22 +0000 (10:02 +0000)]
added dinput.lib requirement in darkplaces.dsp
changed wsock32.lib requirement to ws2_32.lib
removed many libs from dsp files

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

17 years agomoved resource.h and darkplaces.rc from Source Files group to Resource
havoc [Sun, 23 Sep 2007 09:50:07 +0000 (09:50 +0000)]
moved resource.h and darkplaces.rc from Source Files group to Resource
Files group
added resource.h which was missing in some projects
renamed project configurations to be named darkplaces-sdl and
darkplaces-dedicated rather than merely sdl and dedicated

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

17 years agoadded sv_demo.[ch] to MSVS6 projects
havoc [Sun, 23 Sep 2007 09:36:27 +0000 (09:36 +0000)]
added sv_demo.[ch] to MSVS6 projects
added svbsp.h to MSVS6 projects

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

17 years agoimplemented r_glsl_water cvar (refraction and reflection rendering)
havoc [Sat, 22 Sep 2007 07:46:30 +0000 (07:46 +0000)]
implemented r_glsl_water cvar (refraction and reflection rendering)

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

17 years agoreduced default value of sv_clmovement_waitforinput from 16 to 4,
havoc [Thu, 20 Sep 2007 06:32:02 +0000 (06:32 +0000)]
reduced default value of sv_clmovement_waitforinput from 16 to 4,
limiting the potential of lag-burst cheats, and causing lagging players
to start moving again a bit sooner

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

17 years agochanged sv_demo.c to sv_demo.o in object file list
havoc [Wed, 19 Sep 2007 08:01:49 +0000 (08:01 +0000)]
changed sv_demo.c to sv_demo.o in object file list
moved sv_demo.o to its proper place in object file list

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

17 years agolimit r_bloom_colorexponent to 32
havoc [Wed, 19 Sep 2007 07:58:16 +0000 (07:58 +0000)]
limit r_bloom_colorexponent to 32

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

17 years agofix a typo in r_bloom_colorexponent which allowed it to get out of
havoc [Wed, 19 Sep 2007 07:56:26 +0000 (07:56 +0000)]
fix a typo in r_bloom_colorexponent which allowed it to get out of
bounds

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

17 years agoAdded optional CSQC function CSQC_Event_Sound with the following parameters : float...
dresk [Sun, 16 Sep 2007 23:20:50 +0000 (23:20 +0000)]
Added optional CSQC function CSQC_Event_Sound with the following parameters : float entitynum, float channel, string soundname, float volume, float attenuation, vector position .  This function, if provided, is called whenever a sound packet arrives from the server.  If the function returns true, the sound call is skipped in the engine, otherwise it is played as normal.  Function intention is to provide additional feedback on sound events (without touching the packet stream).

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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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