]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
16 years agoshorten the "watervisibility" title in r_speeds 2 mode because it is
havoc [Fri, 2 Nov 2007 14:23:09 +0000 (14:23 +0000)]
shorten the "watervisibility" title in r_speeds 2 mode because it is
messing up alignment of the remaining columns

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

16 years agomove SDLMain.m to the right place
divverent [Wed, 31 Oct 2007 09:01:25 +0000 (09:01 +0000)]
move SDLMain.m to the right place

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

16 years agoadd SDLMain stuff for OS X; make the Makefiles ready for OS X cross compilation ...
divverent [Wed, 31 Oct 2007 08:54:22 +0000 (08:54 +0000)]
add SDLMain stuff for OS X; make the Makefiles ready for OS X cross compilation (note: OS X doesn't use sdl-config)

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

16 years agomake STRIP a specifyable option in the Makefile
divverent [Wed, 31 Oct 2007 08:11:27 +0000 (08:11 +0000)]
make STRIP a specifyable option in the Makefile

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

16 years agosome reworking and cleanup of gravity handling in particles, this fixes
havoc [Tue, 30 Oct 2007 17:27:19 +0000 (17:27 +0000)]
some reworking and cleanup of gravity handling in particles, this fixes
a bug with blood rarely sticking to surfaces (due to delayedcollisions),
the same bug also affected gib trails but was less noticable

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

16 years agoadd menu QC drawsubpic() to draw just part of an image; revert change to DrawQ_SuperPic
divverent [Sat, 27 Oct 2007 12:40:28 +0000 (12:40 +0000)]
add menu QC drawsubpic() to draw just part of an image; revert change to DrawQ_SuperPic

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

16 years agonew menu QC builtin "stringwidth(string text, float handleColors)", does not do anyth...
divverent [Sat, 27 Oct 2007 10:59:44 +0000 (10:59 +0000)]
new menu QC builtin "stringwidth(string text, float handleColors)", does not do anything useful yet, but added for future expansion (variable width fonts); also add this to CSQC (see TODO in clvm_cmds.c)

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

16 years agofix the picture drawing fix
divverent [Fri, 26 Oct 2007 11:44:28 +0000 (11:44 +0000)]
fix the picture drawing fix

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

16 years agoChange DrawQ_Pic and _SuperPic to be texel correct to fix bad clamping behavior.
divverent [Wed, 24 Oct 2007 21:59:53 +0000 (21:59 +0000)]
Change DrawQ_Pic and _SuperPic to be texel correct to fix bad clamping behavior.

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

16 years agofix FS_Read when reading size 1 (it segfaulted sometimes then)
divverent [Tue, 23 Oct 2007 14:36:48 +0000 (14:36 +0000)]
fix FS_Read when reading size 1 (it segfaulted sometimes then)
fix FS_Getc to allow 8bit data (by using unsigned char instead, like fgetc)

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

16 years agoadded r_textbrightness to control color codes (so conchars can use black borders...
divverent [Sun, 21 Oct 2007 19:30:11 +0000 (19:30 +0000)]
added r_textbrightness to control color codes (so conchars can use black borders around text and color ^0 still stays readable)

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

16 years agofixed missing newline at end of some stufftext (breaking curl downloads a little)
divverent [Sun, 21 Oct 2007 13:48:50 +0000 (13:48 +0000)]
fixed missing newline at end of some stufftext (breaking curl downloads a little)

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

16 years agoreverted the cleanup of entity state building because it was sapping
havoc [Sun, 21 Oct 2007 11:21:47 +0000 (11:21 +0000)]
reverted the cleanup of entity state building because it was sapping
massive amounts of performance even with only 16 players, now it once
again builds them only once per frame and filters them per client

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

16 years agoprvm_callprofile: a flat profile, time based, including subcalls
divverent [Fri, 19 Oct 2007 10:51:33 +0000 (10:51 +0000)]
prvm_callprofile: a flat profile, time based, including subcalls

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

16 years agofixed a bug in multiplayer savegame loading that caused all players
havoc [Thu, 18 Oct 2007 07:09:15 +0000 (07:09 +0000)]
fixed a bug in multiplayer savegame loading that caused all players
after the first one to respawn immediately after loading
(sv.loadgame and sv.paused were being cleared by the first player)

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

16 years agodo contrastboost before reflection; move fog behind contrastboost (consistent with...
divverent [Wed, 17 Oct 2007 21:16:23 +0000 (21:16 +0000)]
do contrastboost before reflection; move fog behind contrastboost (consistent with skybox)

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

16 years agoWe always <push> <PUSH> and <pop> <POP> like this... NOT.
divverent [Wed, 17 Oct 2007 09:41:01 +0000 (09:41 +0000)]
We always <push> <PUSH> and <pop> <POP> like this... NOT.

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

16 years agoadded back Always Run option (I forgot that the default speed was bad in
havoc [Wed, 17 Oct 2007 08:35:40 +0000 (08:35 +0000)]
added back Always Run option (I forgot that the default speed was bad in
quake, oops!)

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

16 years agofixed cl.movement_origin being invalid on quake protocol (and others
havoc [Wed, 17 Oct 2007 08:34:26 +0000 (08:34 +0000)]
fixed cl.movement_origin being invalid on quake protocol (and others
before dp6), this fixes the loc messages in chat on quake servers

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

16 years agodisable water rendering without r_glsl because the fallback path has
havoc [Wed, 17 Oct 2007 05:50:31 +0000 (05:50 +0000)]
disable water rendering without r_glsl because the fallback path has
been removed

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

16 years agoremoved some code scraps from previous patch
havoc [Wed, 17 Oct 2007 05:46:08 +0000 (05:46 +0000)]
removed some code scraps from previous patch
removed SHADERPERMUTATION_WATER and REFRACTION (since those are now
SHADERMODE_ values)

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

16 years agoimplemented a fixed function fallback for water, but it is disabled
havoc [Wed, 17 Oct 2007 04:51:47 +0000 (04:51 +0000)]
implemented a fixed function fallback for water, but it is disabled
because of extreme distortion artifacts (it would need to use a cubemap
for perspective correction)
implemented two-pass rendering of water and refraction surfaces, this
enables blendfunc of the first layer to work properly, the old path is
still present but disabled

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

16 years agooops... buffer overflow after a 640GB video file... fixed :P
divverent [Tue, 16 Oct 2007 22:10:26 +0000 (22:10 +0000)]
oops... buffer overflow after a 640GB video file... fixed :P

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

16 years agooops
divverent [Tue, 16 Oct 2007 21:58:45 +0000 (21:58 +0000)]
oops

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

16 years agoWrite an OpenDML AVI index (indx... ix00, ix01... ixfsck... ixargh... ixhopethisworksnow)
divverent [Tue, 16 Oct 2007 21:52:44 +0000 (21:52 +0000)]
Write an OpenDML AVI index (indx... ix00, ix01... ixfsck... ixargh... ixhopethisworksnow)

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

16 years agoimplemented MATERIALFLAG_REFRACTION
havoc [Mon, 15 Oct 2007 12:07:28 +0000 (12:07 +0000)]
implemented MATERIALFLAG_REFRACTION
changed syntax of dp_refract, dp_reflect, added dp_water
moved SHADERPERMUTATION and friends to gl_rmain.c
eliminated SHADERPERMUTATION_MASK by separating out SHADERTYPE_USES
other cleanup

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

16 years agofix a bug that caused glow textures to be made when they were not
havoc [Mon, 15 Oct 2007 04:28:12 +0000 (04:28 +0000)]
fix a bug that caused glow textures to be made when they were not
needed, sapping rendering performance in q1bsp and q1 mdl rendering

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

16 years agorenamed r_glsl_water* to r_water* because I am adding a fallback path
havoc [Mon, 15 Oct 2007 04:10:38 +0000 (04:10 +0000)]
renamed r_glsl_water* to r_water* because I am adding a fallback path

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

16 years agoset pmove_org and pmove_vel again in csqc because it's useless without
havoc [Mon, 15 Oct 2007 00:08:46 +0000 (00:08 +0000)]
set pmove_org and pmove_vel again in csqc because it's useless without
them

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

16 years ago- fix SEGFAULT when a .shader file has more layers than allowed
divverent [Thu, 11 Oct 2007 22:08:05 +0000 (22:08 +0000)]
- fix SEGFAULT when a .shader file has more layers than allowed
- reduce number of layers from 8 to 2 to save memory (increase it later when additional layers are actually USED)
- parse ALL layers, even those behind the limit, to check for lightmap references and similar stuff
- when looking up a shader, only look through the actually DEFINED layers (not through all ALLOCATED ones), this means that the OS won't allocate pages more shaders than actually used
- increase maximum number of tcmods from 4 to 8 for Nexuiz

net: 1300MB -> 900MB vsize, and less RSS used too; so it won't swap any more on a 1GB system

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

16 years agomake more failed skin loads Prints
divverent [Thu, 11 Oct 2007 14:31:44 +0000 (14:31 +0000)]
make more failed skin loads Prints

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

16 years ago^1 is red, not ^4
divverent [Thu, 11 Oct 2007 14:10:45 +0000 (14:10 +0000)]
^1 is red, not ^4

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

16 years agoonly print the "missing texture for missing shader" message for developer or Q3BSP...
divverent [Thu, 11 Oct 2007 14:06:13 +0000 (14:06 +0000)]
only print the "missing texture for missing shader" message for developer or Q3BSP (as other formats contain their own textures, and don't NEED the actual texture file)

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

16 years agomake messages about not existing textures colored and regular prints (not dpritns...
divverent [Thu, 11 Oct 2007 13:23:33 +0000 (13:23 +0000)]
make messages about not existing textures colored and regular prints (not dpritns) as they are quite fatal to the appearance of a map

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

16 years agofinal speedhack fixes
divverent [Wed, 10 Oct 2007 16:31:37 +0000 (16:31 +0000)]
final speedhack fixes

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

16 years agofix typo in cl_netinputpacketspersecond_qw cvar name which caused
havoc [Wed, 10 Oct 2007 04:21:01 +0000 (04:21 +0000)]
fix typo in cl_netinputpacketspersecond_qw cvar name which caused
extreme slow motion on qw servers (1 packet per second or so)

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

16 years agoshut up compiler warning
sajt [Tue, 9 Oct 2007 22:19:31 +0000 (22:19 +0000)]
shut up compiler warning

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

16 years agoMCBSP kind of works now, i think
sajt [Tue, 9 Oct 2007 21:58:08 +0000 (21:58 +0000)]
MCBSP kind of works now, i think

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

16 years agoprevent speedhack 3.0: initialize the movetime, so a speedhack can't make use of...
divverent [Tue, 9 Oct 2007 21:41:47 +0000 (21:41 +0000)]
prevent speedhack 3.0: initialize the movetime, so a speedhack can't make use of the time before this client joined

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

16 years agolast patch by LH fixed speedhack 1.0: -20ms + 30ms = 10ms, but moves by 30ms
divverent [Tue, 9 Oct 2007 21:35:38 +0000 (21:35 +0000)]
last patch by LH fixed speedhack 1.0: -20ms + 30ms = 10ms, but moves by 30ms
this patch fixed speedhack 2.0: (cl_movement 0) -10ms + (cl_movement 1) 20ms = 20ms client physics
and now also fixes speedhack 2.0a: (cl_movement 0) -10ms + (cl_movement 1) 20ms = 10ms server physics and 10ms client physics

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

16 years agooops
sajt [Tue, 9 Oct 2007 21:12:24 +0000 (21:12 +0000)]
oops

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

16 years agoi'm sure there are plenty of bugs here for you guys to fix
sajt [Tue, 9 Oct 2007 19:50:26 +0000 (19:50 +0000)]
i'm sure there are plenty of bugs here for you guys to fix

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

16 years agoAdded DP_QC_STRREPLACE - adds strreplace and strireplace functions (behave like str_r...
sajt [Tue, 9 Oct 2007 19:48:13 +0000 (19:48 +0000)]
Added DP_QC_STRREPLACE - adds strreplace and strireplace functions (behave like str_replace and str_ireplace in PHP)

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

16 years agofix a warning in msvc6
sajt [Tue, 9 Oct 2007 19:44:32 +0000 (19:44 +0000)]
fix a warning in msvc6

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

16 years agoprevent backstepping of clc_move time from doing anything
havoc [Tue, 9 Oct 2007 06:23:26 +0000 (06:23 +0000)]
prevent backstepping of clc_move time from doing anything

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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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