xonotic/darkplaces.git
10 years agoadded indirection cube map for shadowmapping and revised filtering modes
eihrul [Wed, 30 Sep 2009 06:00:37 +0000 (06:00 +0000)]
added indirection cube map for shadowmapping and revised filtering modes

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

10 years agofix two bugs related to textype_t pointed out by Lee Salzman, both
havoc [Mon, 28 Sep 2009 23:06:34 +0000 (23:06 +0000)]
fix two bugs related to textype_t pointed out by Lee Salzman, both
affecting shadowmap setup

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

10 years agofix stencil clear
havoc [Mon, 28 Sep 2009 22:20:32 +0000 (22:20 +0000)]
fix stencil clear

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

10 years agofix allocation of 2D shadowmap textures when the first light LOD is
havoc [Mon, 28 Sep 2009 22:09:19 +0000 (22:09 +0000)]
fix allocation of 2D shadowmap textures when the first light LOD is
below maxsize

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

10 years agowhen fixing vertex indexes, reject the map instead of segfaulting if vertex index...
divverent [Mon, 28 Sep 2009 14:47:36 +0000 (14:47 +0000)]
when fixing vertex indexes, reject the map instead of segfaulting if vertex index 0 is invalid too

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

10 years agofix screenshot hw gamma check
divverent [Sun, 27 Sep 2009 20:23:44 +0000 (20:23 +0000)]
fix screenshot hw gamma check

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

10 years agofix inverse logic in "important" local
divverent [Sun, 27 Sep 2009 19:08:23 +0000 (19:08 +0000)]
fix inverse logic in "important" local

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

10 years agochange cl.time check back
havoc [Sun, 27 Sep 2009 18:09:38 +0000 (18:09 +0000)]
change cl.time check back

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

10 years agofix outgoing netgraph anomalies (caused by cl_maxfps > cl_netfps)
havoc [Sun, 27 Sep 2009 17:59:14 +0000 (17:59 +0000)]
fix outgoing netgraph anomalies (caused by cl_maxfps > cl_netfps)
made msecdelta checks a bit more sane

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

10 years agochange MAX_CLIP_PLANES from 32 to 5 (back to old value)
havoc [Sun, 27 Sep 2009 05:15:30 +0000 (05:15 +0000)]
change MAX_CLIP_PLANES from 32 to 5 (back to old value)

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

10 years agofix several bugs with viewport code (r_shadows works again, r_water
havoc [Sat, 26 Sep 2009 18:40:01 +0000 (18:40 +0000)]
fix several bugs with viewport code (r_shadows works again, r_water
works again)
fixed a bug where r_hdr might cause multiple reallocations of textures
every frame in r_water code

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

10 years agorename r_shadows_drawafterrtlightning to r_shadows_drawafterrtlighting
havoc [Sat, 26 Sep 2009 18:30:05 +0000 (18:30 +0000)]
rename r_shadows_drawafterrtlightning to r_shadows_drawafterrtlighting

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

10 years agonetwork CSQC and network entities separately (should prevent bugs when an entity...
divverent [Sat, 26 Sep 2009 18:15:41 +0000 (18:15 +0000)]
network CSQC and network entities separately (should prevent bugs when an entity suddenly gets SendEntity assigned, which can happen during entity reuse)

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

10 years agorenamed prvm_startupreuseedicttime to prvm_reuseedicts_startuptime
havoc [Sat, 26 Sep 2009 17:21:19 +0000 (17:21 +0000)]
renamed prvm_startupreuseedicttime to prvm_reuseedicts_startuptime
added cvar prvm_reuseedicts_neverinsameframe

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

10 years agoadded prvm_startupreuseedicttime cvar
havoc [Sat, 26 Sep 2009 17:15:25 +0000 (17:15 +0000)]
added prvm_startupreuseedicttime cvar

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

10 years agofix typo in cube side freeing
divverent [Sat, 26 Sep 2009 11:51:44 +0000 (11:51 +0000)]
fix typo in cube side freeing

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

10 years agoinitilaize the lightscissor array before drawing r_shadows
divverent [Fri, 25 Sep 2009 22:42:58 +0000 (22:42 +0000)]
initilaize the lightscissor array before drawing r_shadows

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

10 years agofix more bugs in the reflection hack
divverent [Fri, 25 Sep 2009 21:35:45 +0000 (21:35 +0000)]
fix more bugs in the reflection hack

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

10 years agofix a compile error FruitieX gets
divverent [Fri, 25 Sep 2009 21:21:50 +0000 (21:21 +0000)]
fix a compile error FruitieX gets

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

10 years agoimprove the fix to work for reflection-only and refraction-only too
divverent [Fri, 25 Sep 2009 21:11:15 +0000 (21:11 +0000)]
improve the fix to work for reflection-only and refraction-only too

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

10 years agochange the hack to work separately for reflection and refraction; MAY help a little
divverent [Fri, 25 Sep 2009 21:00:01 +0000 (21:00 +0000)]
change the hack to work separately for reflection and refraction; MAY help a little

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

10 years agoadd an ugly hack to reflections/refractions to "behave" when otherwise black edges...
divverent [Fri, 25 Sep 2009 20:58:44 +0000 (20:58 +0000)]
add an ugly hack to reflections/refractions to "behave" when otherwise black edges would appear

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

10 years agoadd a COMMANDLINEOPTION block for -sndseqin
divverent [Fri, 25 Sep 2009 13:04:49 +0000 (13:04 +0000)]
add a COMMANDLINEOPTION block for -sndseqin

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

10 years agosnd_alsa: MIDI input support! MIDI events get mapped to MIDINOTE<n> events (n = 0...
divverent [Fri, 25 Sep 2009 12:59:45 +0000 (12:59 +0000)]
snd_alsa: MIDI input support! MIDI events get mapped to MIDINOTE<n> events (n = 0 to 127)

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

10 years agoadd misisng include
divverent [Thu, 24 Sep 2009 05:40:19 +0000 (05:40 +0000)]
add misisng include

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

10 years agoprevent information leakage from trace_ globals to prvm_global client to prevent...
divverent [Wed, 23 Sep 2009 20:55:24 +0000 (20:55 +0000)]
prevent information leakage from trace_ globals to prvm_global client to prevent very simple console in/out parsing based triggerbots

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

10 years agonew commands: prvm_edictget, prvm_globalget - read values from edicts/globals into...
divverent [Wed, 23 Sep 2009 20:16:22 +0000 (20:16 +0000)]
new commands: prvm_edictget, prvm_globalget - read values from edicts/globals into cvars

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

10 years agoclear trace globals after CSQC execution, to prevent possible triggerbots working...
divverent [Wed, 23 Sep 2009 20:15:53 +0000 (20:15 +0000)]
clear trace globals after CSQC execution, to prevent possible triggerbots working by parsing DP console output of "prvm_global client trace_networkentity" and issuing +attack/-attack based on result

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

10 years agounbreak v_flipped :(
divverent [Wed, 23 Sep 2009 10:21:38 +0000 (10:21 +0000)]
unbreak v_flipped :(

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

10 years agoreduce code a bit more
havoc [Wed, 23 Sep 2009 08:59:37 +0000 (08:59 +0000)]
reduce code a bit more

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

10 years agoreduced shadowmaps from 32bit to 24bit depth format
havoc [Wed, 23 Sep 2009 08:58:24 +0000 (08:58 +0000)]
reduced shadowmaps from 32bit to 24bit depth format
some tweaks to shadowmap texture handling to reduce code

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

10 years agomake shader permutatiosn eat less memory again. 864MB was justt oo much.
divverent [Wed, 23 Sep 2009 08:06:14 +0000 (08:06 +0000)]
make shader permutatiosn eat less memory again. 864MB was justt oo much.

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

10 years agoonly skip input if time is actually increasing (should fix pause)
divverent [Wed, 23 Sep 2009 06:57:31 +0000 (06:57 +0000)]
only skip input if time is actually increasing (should fix pause)

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

10 years agofix default values for the r_shadow_shadowmapping_lod cvars
havoc [Tue, 22 Sep 2009 21:27:00 +0000 (21:27 +0000)]
fix default values for the r_shadow_shadowmapping_lod cvars

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

10 years agodisable an annoying debug print
havoc [Tue, 22 Sep 2009 21:16:27 +0000 (21:16 +0000)]
disable an annoying debug print

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

10 years agochanged r_shadow_shadowmapping values (now 1 = 2d, 2 = rect, 3 = cube)
havoc [Tue, 22 Sep 2009 20:20:53 +0000 (20:20 +0000)]
changed r_shadow_shadowmapping values (now 1 = 2d, 2 = rect, 3 = cube)
disabled some debugging code for shadowmaps which produced large files

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

10 years agoimplemented omnidirectional shadowmapping using depth textures (2D, Rect
havoc [Tue, 22 Sep 2009 20:18:12 +0000 (20:18 +0000)]
implemented omnidirectional shadowmapping using depth textures (2D, Rect
and Cube texture types supported)
overhauled viewport handling (now has r_refdef.view.viewport),
R_Viewport functions replace GL_SetupView_ functions, R_SetViewport
makes a viewport current

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

10 years agoadded float GL/D3D array conversions
havoc [Tue, 22 Sep 2009 20:16:13 +0000 (20:16 +0000)]
added float GL/D3D array conversions

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

10 years agofixed shadow culling bug caused by bad frustumcorner generation math
havoc [Sun, 20 Sep 2009 12:00:43 +0000 (12:00 +0000)]
fixed shadow culling bug caused by bad frustumcorner generation math

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

10 years agofix framerate limiting - when cl_maxfps is 0, run client frames even if
havoc [Fri, 18 Sep 2009 11:20:31 +0000 (11:20 +0000)]
fix framerate limiting - when cl_maxfps is 0, run client frames even if
cl_timer has not advanced, this allows framerates above 1000, and
makes framerates very consistent (rather than chaotic) in the 200-1000
range as well

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

10 years agoenable host_sleep 1 by default
havoc [Fri, 18 Sep 2009 09:25:42 +0000 (09:25 +0000)]
enable host_sleep 1 by default

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

10 years agofix red-coloring logic again
divverent [Fri, 18 Sep 2009 09:21:51 +0000 (09:21 +0000)]
fix red-coloring logic again

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

10 years agoshowfps 2: always show mspf
divverent [Fri, 18 Sep 2009 09:19:57 +0000 (09:19 +0000)]
showfps 2: always show mspf

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

10 years agouse different showfps math
havoc [Fri, 18 Sep 2009 09:15:20 +0000 (09:15 +0000)]
use different showfps math

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

10 years agosv_gameplayfix_q2airaccelerate: use Quake2/3/Nexuiz-style air acceleration (clamped...
divverent [Fri, 18 Sep 2009 07:24:41 +0000 (07:24 +0000)]
sv_gameplayfix_q2airaccelerate: use Quake2/3/Nexuiz-style air acceleration (clamped by maxairspeed, not by maxspeed as in Q1/Q2)
This is also supported by cl_movement
Mods that now experience prediction errors must set sv_gameplayfix_q2airaccelerate to 1 in their default configuration

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

10 years agorewrote netgraph code
havoc [Thu, 17 Sep 2009 16:42:55 +0000 (16:42 +0000)]
rewrote netgraph code
netgraph now uses line graph (doesn't look very good though)
netgraph now shows last 4 seconds (rather than 100 packets)
netgraph now shows rate estimate

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

10 years agostop predicting movement when no server packets have been received for
havoc [Thu, 17 Sep 2009 12:20:45 +0000 (12:20 +0000)]
stop predicting movement when no server packets have been received for
300ms (by default), this prevents major performance issues with
prediction of long queues

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

10 years agoreduce CL_MAX_USERCMDS to 128 (from 256)
havoc [Thu, 17 Sep 2009 12:11:49 +0000 (12:11 +0000)]
reduce CL_MAX_USERCMDS to 128 (from 256)

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

10 years agofix callprofile by making some CSQC builtins that call the renderer (or QC) exempt...
divverent [Thu, 17 Sep 2009 10:14:17 +0000 (10:14 +0000)]
fix callprofile by making some CSQC builtins that call the renderer (or QC) exempt from prvm_callprofile

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

10 years agomake profile output more verbous (including time of child functions)
divverent [Thu, 17 Sep 2009 09:43:47 +0000 (09:43 +0000)]
make profile output more verbous (including time of child functions)
add new command prvm_childprofile to instead sort by the total time (including children)

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

10 years agofix more C++ warnings/errors in MSVC
havoc [Thu, 17 Sep 2009 05:31:05 +0000 (05:31 +0000)]
fix more C++ warnings/errors in MSVC

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

10 years agofix TH's status patch to again send the same data as before
divverent [Wed, 16 Sep 2009 13:31:06 +0000 (13:31 +0000)]
fix TH's status patch to again send the same data as before

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

10 years agofix descriptions of cmdlist and cvarlist
divverent [Wed, 16 Sep 2009 10:19:34 +0000 (10:19 +0000)]
fix descriptions of cmdlist and cvarlist

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

10 years agoimproved r_shadows mode, new cvars for better use with overhead camera mods:
vortex [Tue, 15 Sep 2009 19:18:26 +0000 (19:18 +0000)]
improved r_shadows mode, new cvars for better use with overhead camera mods:
- r_shadows_darken : how much shadowed areas will be darkened (was constant 0.5)
- r_shadows_throwdirection : override shadow direction for r_shadows 2 (was constant 0 0 -1)
- r_shadows_drawafterrtlightning : this change fake shadows to draw AFTER realtime lightning is drawn, may be useful for simulating faster sunlight on large outdoor maps with only one noshadow rtlight. The price is less realistic appearance of dynamic light shadows.
- r_shadows_castfrombmodels : allow to cast fake shadows from bmodels

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

10 years agofix errors and warnings in MSVC when compiling as C++
havoc [Tue, 15 Sep 2009 13:09:09 +0000 (13:09 +0000)]
fix errors and warnings in MSVC when compiling as C++

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

10 years agouse correct type to fix a warning :P
divverent [Tue, 15 Sep 2009 12:26:04 +0000 (12:26 +0000)]
use correct type to fix a warning :P

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

10 years agofixed compile errors and warnings using Dev-C++ in "Compile as C++" mode
havoc [Tue, 15 Sep 2009 10:08:02 +0000 (10:08 +0000)]
fixed compile errors and warnings using Dev-C++ in "Compile as C++" mode

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

10 years agoalso check ticrate movevar
divverent [Tue, 15 Sep 2009 05:57:37 +0000 (05:57 +0000)]
also check ticrate movevar

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

10 years ago[04:31:11] <@LordHavoc> div0: 9179 (if (msecdelta <= 0) return;) wrecked connect...
divverent [Tue, 15 Sep 2009 05:28:30 +0000 (05:28 +0000)]
[04:31:11] <@LordHavoc> div0: 9179 (if (msecdelta <= 0) return;) wrecked connect time
[04:31:23] <@LordHavoc> div0: not enough packets coming in for the message exchange to work
[04:32:07] <@LordHavoc> div0: maybe if (msecdelta <= 0 && cl.movevars_ticrate > 0 && cls.signon == SIGNONS)
[04:32:34] <@LordHavoc> div0: maybe also && !cl.paused

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

10 years agoPatch by FruitieX -- fixes speed
samual [Mon, 14 Sep 2009 18:38:59 +0000 (18:38 +0000)]
Patch by FruitieX -- fixes speed

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

10 years agoif sideways friction is negative, make it never decrease total velocity (might be...
divverent [Mon, 14 Sep 2009 14:56:46 +0000 (14:56 +0000)]
if sideways friction is negative, make it never decrease total velocity (might be bad)

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

10 years agouse winsock2 to fix linker errors
havoc [Mon, 14 Sep 2009 11:39:17 +0000 (11:39 +0000)]
use winsock2 to fix linker errors

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

10 years agobetter view blend math for death fade
divverent [Mon, 14 Sep 2009 06:43:06 +0000 (06:43 +0000)]
better view blend math for death fade

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

10 years agotightly sync time if cl_nolerp is on
havoc [Mon, 14 Sep 2009 05:22:44 +0000 (05:22 +0000)]
tightly sync time if cl_nolerp is on

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

10 years agoadded cvar sv_gameplayfix_noairborncorpse_allowsuspendeditems
havoc [Sun, 13 Sep 2009 23:52:48 +0000 (23:52 +0000)]
added cvar sv_gameplayfix_noairborncorpse_allowsuspendeditems

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

10 years agoremove r_motionblur_debug, and replace with showblur which has been added to sbar.c
samual [Sun, 13 Sep 2009 15:23:25 +0000 (15:23 +0000)]
remove r_motionblur_debug, and replace with showblur which has been added to sbar.c

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

10 years agofix broken VM_CL_lightstyle (CSQC): it was using MSG_ReadString instead of value...
vortex [Sun, 13 Sep 2009 14:50:20 +0000 (14:50 +0000)]
fix broken VM_CL_lightstyle (CSQC): it was using MSG_ReadString instead of value parm

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

10 years agocl_deathfade: new effect which makes the screen fade to dark red when you die......
samual [Sun, 13 Sep 2009 06:24:07 +0000 (06:24 +0000)]
cl_deathfade: new effect which makes the screen fade to dark red when you die... disabled by default

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

10 years agoadded detection of GL_EXT_framebuffer_object extension
havoc [Sun, 13 Sep 2009 04:16:46 +0000 (04:16 +0000)]
added detection of GL_EXT_framebuffer_object extension

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

10 years agoimplemented sv_gameplayfix_delayprojectiles -1 (force move on first
havoc [Sun, 13 Sep 2009 02:21:04 +0000 (02:21 +0000)]
implemented sv_gameplayfix_delayprojectiles -1 (force move on first
frame, even if spawned in earlier entity slot)

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

10 years agopunctuation
havoc [Sat, 12 Sep 2009 09:21:14 +0000 (09:21 +0000)]
punctuation

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

10 years agotry not to crash on num_bones 0 in Mod_BuildBaseBonePoses
havoc [Sat, 12 Sep 2009 07:51:31 +0000 (07:51 +0000)]
try not to crash on num_bones 0 in Mod_BuildBaseBonePoses

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

10 years agodo not allow cl_netfps to be below the server framerate (as indicated by
havoc [Fri, 11 Sep 2009 14:38:34 +0000 (14:38 +0000)]
do not allow cl_netfps to be below the server framerate (as indicated by
sys_ticrate) if possible, to avoid jerky player movement

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

10 years agodoubled entity limit in animcache, we should never hit this
havoc [Fri, 11 Sep 2009 12:34:07 +0000 (12:34 +0000)]
doubled entity limit in animcache, we should never hit this

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

10 years agoremove maxnetfps stuff (never worked anyway), instead reject <0.5ms moves
divverent [Fri, 11 Sep 2009 11:52:32 +0000 (11:52 +0000)]
remove maxnetfps stuff (never worked anyway), instead reject <0.5ms moves

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

10 years agodo not send zero-length moves at >1000fps
divverent [Fri, 11 Sep 2009 11:52:01 +0000 (11:52 +0000)]
do not send zero-length moves at >1000fps

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

10 years agoinput: limit cl_netrepeatinput to 3
divverent [Fri, 11 Sep 2009 11:25:15 +0000 (11:25 +0000)]
input: limit cl_netrepeatinput to 3

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

10 years agonow generates animcaches for visible entities again like the original
havoc [Fri, 11 Sep 2009 10:05:22 +0000 (10:05 +0000)]
now generates animcaches for visible entities again like the original
code, this gives a slight speed gain in Nexuiz

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

10 years agorefactored and reformatted animcache code, now generates caches on
havoc [Fri, 11 Sep 2009 09:45:33 +0000 (09:45 +0000)]
refactored and reformatted animcache code, now generates caches on
demand (not ideal but never loses speed anymore)

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

10 years agoModel_*_AnimateVertices functions no longer write to NULL vertex3f
havoc [Fri, 11 Sep 2009 09:42:12 +0000 (09:42 +0000)]
Model_*_AnimateVertices functions no longer write to NULL vertex3f

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

10 years agoplay silence during timedemos
havoc [Fri, 11 Sep 2009 09:39:55 +0000 (09:39 +0000)]
play silence during timedemos

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

10 years agoreworked unreliable message queue to ALWAYS dequeue the first entry,
havoc [Fri, 11 Sep 2009 07:59:59 +0000 (07:59 +0000)]
reworked unreliable message queue to ALWAYS dequeue the first entry,
even if it does not fit (and throw it away if so)

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

10 years agouse -developer automatically in debug builds
havoc [Wed, 9 Sep 2009 19:05:10 +0000 (19:05 +0000)]
use -developer automatically in debug builds

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

10 years agofix C++ compilation errors
havoc [Tue, 8 Sep 2009 21:18:17 +0000 (21:18 +0000)]
fix C++ compilation errors

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

10 years agoOops!
echon [Tue, 8 Sep 2009 16:01:25 +0000 (16:01 +0000)]
Oops!

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

10 years agoNULL out RSurf_ActiveModelEntity rsurface fields that aren't wanted with an animcache...
echon [Tue, 8 Sep 2009 15:59:10 +0000 (15:59 +0000)]
NULL out RSurf_ActiveModelEntity rsurface fields that aren't wanted with an animcached entity.

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

10 years agoAdded an unreal-esque feature: snd_spatialization_occlusion, which when enabled uses...
echon [Sun, 6 Sep 2009 17:31:47 +0000 (17:31 +0000)]
Added an unreal-esque feature: snd_spatialization_occlusion, which when enabled uses a quick TraceLineOfSight to determine if a sound isn't "visibile" (blocked by world), and halves the volume.

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

10 years agoCompile as C code, not C++ (vcproj setting)
echon [Sun, 6 Sep 2009 17:04:31 +0000 (17:04 +0000)]
Compile as C code, not C++ (vcproj setting)
Include dinput8 libs if SUPPORTDIRECTX is defined
Default to defining SUPPORTDIRECTX on windows builds, otherwise you get crackly sound

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

10 years agoDon't generate tangent vectors when GLSL is off, small improvement to anim caching..
echon [Sun, 6 Sep 2009 16:20:53 +0000 (16:20 +0000)]
Don't generate tangent vectors when GLSL is off, small improvement to anim caching..

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

10 years agofixed two warnings
divverent [Sun, 6 Sep 2009 09:47:42 +0000 (09:47 +0000)]
fixed two warnings

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

10 years agoAdded animation caching, which speeds up re-renders of all animated meshes
echon [Sun, 6 Sep 2009 07:45:28 +0000 (07:45 +0000)]
Added animation caching, which speeds up re-renders of all animated meshes

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

10 years agoAdded a Profile build option, which is simply release with symbols
echon [Sun, 6 Sep 2009 07:13:55 +0000 (07:13 +0000)]
Added a Profile build option, which is simply release with symbols

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

10 years agoUpdate for 2k8 sp1... apparently they changed a comment in the solution file. Importa...
echon [Sun, 6 Sep 2009 05:28:45 +0000 (05:28 +0000)]
Update for 2k8 sp1... apparently they changed a comment in the solution file. Important stuff right here.

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

10 years agoIgnore *.suo and *.user visual studio local files
echon [Sun, 6 Sep 2009 05:24:59 +0000 (05:24 +0000)]
Ignore *.suo and *.user visual studio local files

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

10 years agoanother oops, sorry, forgot to commit this from at home
divverent [Thu, 3 Sep 2009 07:48:28 +0000 (07:48 +0000)]
another oops, sorry, forgot to commit this from at home

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

10 years agostuff I forgot to commit
divverent [Thu, 3 Sep 2009 07:42:22 +0000 (07:42 +0000)]
stuff I forgot to commit

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

10 years agoQuake menu: show DP's weird resolution set in windowed mode, and really detected...
divverent [Thu, 3 Sep 2009 05:47:07 +0000 (05:47 +0000)]
Quake menu: show DP's weird resolution set in windowed mode, and really detected modes in fullscreen.
menu QC: getresolution() now has an optional second arg "forfullscreen", that if 0 queries the "hardcoded" resolution list and if 1 (or left out) queries the system-provided list.

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

10 years agoas requested by LH, #if 0 out cycleweapon
divverent [Thu, 3 Sep 2009 05:25:55 +0000 (05:25 +0000)]
as requested by LH, #if 0 out cycleweapon

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

10 years agodo not crash when zlib is missing, but instead do not use deflate/inflate
divverent [Wed, 2 Sep 2009 13:08:52 +0000 (13:08 +0000)]
do not crash when zlib is missing, but instead do not use deflate/inflate

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

10 years agochange two more MAX_QPATH to MAX_OSPATH
divverent [Mon, 31 Aug 2009 07:06:53 +0000 (07:06 +0000)]
change two more MAX_QPATH to MAX_OSPATH

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