12 years agosome const fixes and type fixes found by gcc -combine
divverent [Sun, 1 Jun 2008 13:14:54 +0000 (13:14 +0000)]
some const fixes and type fixes found by gcc -combine

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

12 years agotiny DP extension: when a global named "require_spawnfunc_prefix" exists, ONLY spawn...
divverent [Sun, 1 Jun 2008 13:14:09 +0000 (13:14 +0000)]
tiny DP extension: when a global named "require_spawnfunc_prefix" exists, ONLY spawn using functions whose name starts with spawnfunc_. Helps keeping QC code clean, but should not break anything (Google found no existing code with a variable require_spawnfunc_prefix)

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

12 years agofix typo in r_textcontrast description
divverent [Wed, 28 May 2008 08:49:25 +0000 (08:49 +0000)]
fix typo in r_textcontrast description

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

12 years agofix fog for scaled models (affects Nexuiz flags)
divverent [Sat, 24 May 2008 17:49:59 +0000 (17:49 +0000)]
fix fog for scaled models (affects Nexuiz flags)

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

12 years agogit-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8311 d7cf8633-e32d-0410...
havoc [Fri, 23 May 2008 00:10:16 +0000 (00:10 +0000)]
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8311 d7cf8633-e32d-0410-b094-e92efae38249

12 years agosimplified failed cubemap handling
havoc [Thu, 22 May 2008 23:14:23 +0000 (23:14 +0000)]
simplified failed cubemap handling

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

12 years agodon't try to free r_texture_whitecube just because it's stored in one of
havoc [Thu, 22 May 2008 23:10:55 +0000 (23:10 +0000)]
don't try to free r_texture_whitecube just because it's stored in one of
the cubemap references

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

12 years agodon't try to send a svc_pointparticles or svc_trailparticles message if
havoc [Sun, 18 May 2008 09:28:11 +0000 (09:28 +0000)]
don't try to send a svc_pointparticles or svc_trailparticles message if
the effectnum is negative (such as the -1 returned by particleeffectnum
when it fails to find a match)

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

12 years agofix problem with glx mouse not grabbing in nexuiz menu
havoc [Sun, 18 May 2008 02:12:14 +0000 (02:12 +0000)]
fix problem with glx mouse not grabbing in nexuiz menu
fix glx mouse warp problem, now produces an extra xmotion event sent to
itself to indicate the warp happened before any real motions come in

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

12 years agoaudit of fullscreengrab in VID_SetMouse, getting rid of unnecessary
havoc [Sun, 18 May 2008 02:11:14 +0000 (02:11 +0000)]
audit of fullscreengrab in VID_SetMouse, getting rid of unnecessary

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

12 years agofix return value of VM_strftime builtin, it was returning a string
havoc [Sun, 18 May 2008 01:36:14 +0000 (01:36 +0000)]
fix return value of VM_strftime builtin, it was returning a string
offset as a float, it must return it as an int for QC to work

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

12 years agorenamed VID_GrabMouse to VID_SetMouse as it now takes 3 parameters
havoc [Sat, 10 May 2008 12:47:28 +0000 (12:47 +0000)]
renamed VID_GrabMouse to VID_SetMouse as it now takes 3 parameters
(fullscreengrab, relative, hidecursor), this required reworking all the
implementations and the calls, but gives the correct behavior in all

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

12 years agofixed bug where vid_dgamouse cvar broke support for absolute mouse
havoc [Sat, 10 May 2008 07:50:09 +0000 (07:50 +0000)]
fixed bug where vid_dgamouse cvar broke support for absolute mouse

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

12 years agowarp mouse pointer every time it moves off-center instead of just when
havoc [Sat, 10 May 2008 07:22:15 +0000 (07:22 +0000)]
warp mouse pointer every time it moves off-center instead of just when
it's halfway away from center, this hides the glitching that has been
reported, but the cause is still not understood

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

12 years agofixed drifting mouse pointer problems in menu
havoc [Thu, 8 May 2008 17:59:11 +0000 (17:59 +0000)]
fixed drifting mouse pointer problems in menu

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

12 years agodon't ungrab mouse in loading screens in fullscreen
havoc [Thu, 8 May 2008 17:58:03 +0000 (17:58 +0000)]
don't ungrab mouse in loading screens in fullscreen

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

12 years agofix nexuiz menu mouse input by resetting in_mouse_x/y variables in a
havoc [Thu, 8 May 2008 17:29:51 +0000 (17:29 +0000)]
fix nexuiz menu mouse input by resetting in_mouse_x/y variables in a
better place

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

12 years agosplit VM_getmousepos into client and menu versions because they need to
havoc [Thu, 8 May 2008 17:22:08 +0000 (17:22 +0000)]
split VM_getmousepos into client and menu versions because they need to
check different variables to decide whether to return window coordinates
or delta mouse motions

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

12 years agofixed several bugs with mouse grabbing
havoc [Thu, 8 May 2008 17:05:39 +0000 (17:05 +0000)]
fixed several bugs with mouse grabbing

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

12 years agoignore all potentially disruptive events when in fullscreen
havoc [Thu, 8 May 2008 16:34:05 +0000 (16:34 +0000)]
ignore all potentially disruptive events when in fullscreen

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

12 years agodefault in_client_mouse to true again to fix Nexuiz menu
havoc [Thu, 8 May 2008 16:20:25 +0000 (16:20 +0000)]
default in_client_mouse to true again to fix Nexuiz menu
added a comment in getmousepos about the fact it doesn't know how to
handle in_client_mouse

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

12 years agomenu.dat needs to use mouse grab by default
havoc [Thu, 8 May 2008 16:00:33 +0000 (16:00 +0000)]
menu.dat needs to use mouse grab by default

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

12 years agoimplemented support for turning off mousegrab in csqc (feature existed
havoc [Thu, 8 May 2008 09:10:10 +0000 (09:10 +0000)]
implemented support for turning off mousegrab in csqc (feature existed
but was buggy in Windows build and not implemented in others)
cleaned up menu mousegrab handling, among other mousegrab state issues

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

12 years agorenamed IN_Activate to VID_GrabMouse and made it a public function in
havoc [Thu, 8 May 2008 00:05:43 +0000 (00:05 +0000)]
renamed IN_Activate to VID_GrabMouse and made it a public function in
the VID API, this removed some shared logic from each VID_Finish
implementation, and allows disabling the mouse grab at the beginning of
a loading screen

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

12 years agoadded some checks for the possibility of a map having no portals
havoc [Wed, 7 May 2008 23:48:11 +0000 (23:48 +0000)]
added some checks for the possibility of a map having no portals

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

12 years agocentralized GL_VENDOR/GL_RENDERER/etc printing code
havoc [Wed, 7 May 2008 23:45:21 +0000 (23:45 +0000)]
centralized GL_VENDOR/GL_RENDERER/etc printing code

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

12 years agobugfix for svc_particle colors
havoc [Wed, 7 May 2008 23:38:15 +0000 (23:38 +0000)]
bugfix for svc_particle colors
changed stainmap colors

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

12 years agochanged default gl_vbo from 1 to 3 to try to avoid stalls on certain ATI
havoc [Wed, 7 May 2008 07:25:00 +0000 (07:25 +0000)]
changed default gl_vbo from 1 to 3 to try to avoid stalls on certain ATI
cards, does not seem to have any significant effect on NVIDIA
performance either way (1 is faster on Radeon HD though, if it works)

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

12 years agofix bug with rtlights on vertex texture blend surfaces (such as in
havoc [Sun, 4 May 2008 22:55:54 +0000 (22:55 +0000)]
fix bug with rtlights on vertex texture blend surfaces (such as in
pom.bsp) that was causing them to white out

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

12 years agofixes to "defer": Crash on Windows (non-ANSI C printf string), and order of execution...
divverent [Sun, 4 May 2008 15:32:45 +0000 (15:32 +0000)]
fixes to "defer": Crash on Windows (non-ANSI C printf string), and order of execution of defers at the same time

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

12 years agoremoved gl_workaround_mac_texmatrix cvar because it seems the entire
havoc [Sun, 4 May 2008 08:13:42 +0000 (08:13 +0000)]
removed gl_workaround_mac_texmatrix cvar because it seems the entire
problem was solved by moving glActiveTexture calls above glMatrixMode
calls - this may still be an Apple bug, but not an important one

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

12 years agoanother attempt at identifying mac texmatrix bug
havoc [Sun, 4 May 2008 06:43:20 +0000 (06:43 +0000)]
another attempt at identifying mac texmatrix bug

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

12 years agochanged gl_workaround_mac_texmatrix to additionally call
havoc [Sun, 4 May 2008 06:04:20 +0000 (06:04 +0000)]
changed gl_workaround_mac_texmatrix to additionally call
GL_ActiveTexture everywhere it calls GL_ClientActiveTexture

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

12 years agochanged behavior of gl_workaround_mac_texmatrix, reverting to previous
havoc [Sun, 4 May 2008 05:32:28 +0000 (05:32 +0000)]
changed behavior of gl_workaround_mac_texmatrix, reverting to previous
behavior (returning the texmatrix bugs), now the cvar causes a more
general change in behavior where all GL_ActiveTexture calls will also
call GL_ClientActiveTexture, this should make the bug easily toggleable
for debugging purposes

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

12 years agofurther attempt at workaround for Mac texmatrix bug,
havoc [Sat, 3 May 2008 11:05:32 +0000 (11:05 +0000)]
further attempt at workaround for Mac texmatrix bug,
gl_workaround_mac_texmatrix now has values in the range 0 to 7 with
different behaviors to try
eliminated GL_ClientActiveTexture function, now client active texture
always matches server active texture (in hopes of fixing Mac bug)

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

12 years agosanitize nicknames that start with a 0x01 or 0x02 (chat beep) by adding an extra...
divverent [Fri, 2 May 2008 11:09:57 +0000 (11:09 +0000)]
sanitize nicknames that start with a 0x01 or 0x02 (chat beep) by adding an extra ^7 at the beginning

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

12 years agore-add the multiplication by waterlevel for cls.protocol == PROTOCOL_QUAKEWORLD
divverent [Thu, 1 May 2008 07:47:10 +0000 (07:47 +0000)]
re-add the multiplication by waterlevel for cls.protocol == PROTOCOL_QUAKEWORLD

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

12 years agoremove weird multiplication of water friction by 1 (wet feet), 2 (swimming), 3 (subme...
divverent [Wed, 30 Apr 2008 20:53:49 +0000 (20:53 +0000)]
remove weird multiplication of water friction by 1 (wet feet), 2 (swimming), 3 (submerged), as sv_user.c (which Quake uses) does not do that and it DOES break prediction

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

12 years agoExtend rcon_restricted_commands to contain more complex patterns:
divverent [Sat, 26 Apr 2008 09:49:21 +0000 (09:49 +0000)]
Extend rcon_restricted_commands to contain more complex patterns:

- Wildcards are supported. A * matches EXACTLY one arg. ? never matches
  whitespace. * wildcards match AT LEAST one character.
- Multi-word patterns are supported - they then match EXACTLY the command.
- Single-word non-wildcard patterns still match if the first word of the command matches.

Currently, there is no way to enforce that a command is used ONLY without any args.
Also, wildcard expressions currently NEVER match a command with quotes, as quotes
could subvert the argument restrictions.


  foo * bar * *
  - matches: foo XXX bar XXX XXX
  - does not match: foo bar XXX XXX, foo XXX bar XXX XXX XXX, foo XXX bar XXX

  - matches: foo, foo XXX, foo XXX XXX
  - does not match: foobar

  foo bar
  - matches: foo bar
  - does not match: foo bar baz

  - matches: foo42bar, foo1bar
  - does not match: foobar, foo bar

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

12 years agoadded gl_vbo 3 mode (which does not use EBO when firsttriangle is
havoc [Wed, 23 Apr 2008 04:19:35 +0000 (04:19 +0000)]
added gl_vbo 3 mode (which does not use EBO when firsttriangle is
non-zero), just for performance testing

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

12 years agodownload system:
divverent [Tue, 22 Apr 2008 11:07:19 +0000 (11:07 +0000)]
download system:
- Nexuiz: only download csprogs using it for now; always put downloads in dlcache/
- other games: make CSQC always go into dlcache/

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

12 years agofix label sprites if r_waterstate.renderingscene
divverent [Tue, 22 Apr 2008 10:43:19 +0000 (10:43 +0000)]
fix label sprites if r_waterstate.renderingscene

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

12 years agooops, exteriormodeltoclient is NOT a kind of attachment
divverent [Tue, 22 Apr 2008 08:25:29 +0000 (08:25 +0000)]
oops, exteriormodeltoclient is NOT a kind of attachment

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

12 years agofix CSQC crash bug with r_showbboxes; try to hide bogus boxes near 0,0,0 for attached...
divverent [Tue, 22 Apr 2008 08:24:19 +0000 (08:24 +0000)]
fix CSQC crash bug with r_showbboxes; try to hide bogus boxes near 0,0,0 for attached entities (but there are still some, like, on basement... odd)

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

12 years agoglobally rename model_t to dp_model_t for OpenSolaris. Sorry, guys who now have svn...
divverent [Mon, 21 Apr 2008 19:16:59 +0000 (19:16 +0000)]
globally rename model_t to dp_model_t for OpenSolaris. Sorry, guys who now have svn conflicts, but otherwise it just won't compile on OpenSolaris...

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

12 years agothis should fix some Solaris/NetBSD/OpenBSD compile problems, model_t still remaining
divverent [Mon, 21 Apr 2008 11:46:49 +0000 (11:46 +0000)]
this should fix some Solaris/NetBSD/OpenBSD compile problems, model_t still remaining

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

12 years agochanged cl_stainmaps to be a loadtime cvar which decides whether to
havoc [Fri, 18 Apr 2008 10:11:43 +0000 (10:11 +0000)]
changed cl_stainmaps to be a loadtime cvar which decides whether to
allocate stainmaps at all, this saves some memory if it's 0 (which is
the default)
changed stainmap allocation to lump all allocations into one big one,
this saves 1.5MB of memory system overhead (tracking about 28000
allocations for stainmaps in cavetest2.bsp has a lot of overhead) and
probably a good deal more malloc overhead on top of that

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

12 years agochanged meaning of r_useportalculling 1 to only use it with r_novis 1
havoc [Fri, 18 Apr 2008 09:55:37 +0000 (09:55 +0000)]
changed meaning of r_useportalculling 1 to only use it with r_novis 1
cases (it would be good to use it when no vis data is loaded also, but
that's not currently handled)

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

12 years agoload SHGetFolderPath from shfolder.dll dynamically to remove the dependency (should...
divverent [Wed, 16 Apr 2008 07:17:02 +0000 (07:17 +0000)]
load SHGetFolderPath from shfolder.dll dynamically to remove the dependency (should make DP work on Win95 again)

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

12 years agofix "wrong ping times" issue once and for all (I don't see another fix that wouldn...
divverent [Sun, 13 Apr 2008 14:17:10 +0000 (14:17 +0000)]
fix "wrong ping times" issue once and for all (I don't see another fix that wouldn't at the same time re-enable a speedhack)

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

12 years agoadded gl_workaround_mac_texmatrix cvar to allow some testing to be done
havoc [Sat, 12 Apr 2008 09:22:04 +0000 (09:22 +0000)]
added gl_workaround_mac_texmatrix cvar to allow some testing to be done
on the osx GLSL texmatrix bug
modified R_Mesh_Draw to make gl_mesh_prefer_short_elements 0 apply to
element buffers as well as arrays, if both forms of element buffer are
provided (this is only a behavior improvement, no effect currently)

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

12 years agoadded 1360x768 resolution (used by some TVs), slightly narrower than
havoc [Fri, 11 Apr 2008 19:30:19 +0000 (19:30 +0000)]
added 1360x768 resolution (used by some TVs), slightly narrower than
1366x768 resolution which was already supported

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

12 years agoimplemented uint16 element array support, and use of it for all the
havoc [Thu, 10 Apr 2008 07:03:36 +0000 (07:03 +0000)]
implemented uint16 element array support, and use of it for all the
engine-generated geometry (particles, skybox, text, etc), as well as for
any map or model that fits the 65536 vertex limit (this can be disabled
for performance testing using the cvar gl_mesh_prefer_short_elements),
this hopefully improves performance on Radeon 9500-X300 cards and
GeForce1/2 cards which don't support uint32 elements

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

12 years agoremoved unused R_Mesh_Draw_ShowTris
havoc [Thu, 10 Apr 2008 04:26:21 +0000 (04:26 +0000)]
removed unused R_Mesh_Draw_ShowTris

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

12 years agopatch from esteel which moves icons to the right of numbers on the
havoc [Thu, 10 Apr 2008 03:48:29 +0000 (03:48 +0000)]
patch from esteel which moves icons to the right of numbers on the
nexuiz alternate hud to give a better impression of what the numbers
refer to

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

12 years agoreload effectinfo.txt on each level
havoc [Wed, 9 Apr 2008 17:13:24 +0000 (17:13 +0000)]
reload effectinfo.txt on each level

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

12 years agoremoved silly red dot on blood effects again
havoc [Wed, 9 Apr 2008 17:13:06 +0000 (17:13 +0000)]
removed silly red dot on blood effects again

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

12 years agofix loading of q1bsp submodel bounding boxes, especially empty submodels
havoc [Tue, 8 Apr 2008 16:22:03 +0000 (16:22 +0000)]
fix loading of q1bsp submodel bounding boxes, especially empty submodels
this fixes the disappearing doors bug in slave.bsp caused by empty
submodels having a bounding box as large as the entire map

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

12 years agopatch from esteel which swaps the address and player number in the
havoc [Tue, 8 Apr 2008 06:18:33 +0000 (06:18 +0000)]
patch from esteel which swaps the address and player number in the
naming of sv_autodemo_perclient demos, so that player number comes first

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

12 years agoadded con_completion_playdemo/timedemo/exec cvars, this enables
havoc [Mon, 7 Apr 2008 19:16:13 +0000 (19:16 +0000)]
added con_completion_playdemo/timedemo/exec cvars, this enables
completion of playdemo, timedemo, and exec commands

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

12 years agofix div0's GL_BuildOrtho which break compilation on Windows
havoc [Sun, 6 Apr 2008 17:48:33 +0000 (17:48 +0000)]
fix div0's GL_BuildOrtho which break compilation on Windows
(near and far are keywords, not variable names)

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

12 years agoeliminate two calls to qglGetDoublev that possibly slow down rendering by doing a...
divverent [Thu, 3 Apr 2008 22:00:13 +0000 (22:00 +0000)]
eliminate two calls to qglGetDoublev that possibly slow down rendering by doing a round trip to the GPU to request the matrices. However, on the tested system, this change does absolutely nothing (233fps vs 233fps), and Xnest, forcing indirect rendering and a ssh -Y localhost did not change that. On an actual network connection however, this new way is SURE faster, as it avoids a round trip over the network.

Infinite far clip already used this method, as there is no GL helper for using the infinite far clip matrix.

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

havoc [Tue, 1 Apr 2008 13:26:41 +0000 (13:26 +0000)]

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

12 years agodisabled QHOST by default (can be enabled with an edit to sys_win.c and
havoc [Tue, 1 Apr 2008 13:09:21 +0000 (13:09 +0000)]
disabled QHOST by default (can be enabled with an edit to sys_win.c and
the re-addition of conproc.c), I don't think anyone ever uses it

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

12 years agofixed Sys_Error popups in -dedicated console setup code so that they
havoc [Tue, 1 Apr 2008 11:41:33 +0000 (11:41 +0000)]
fixed Sys_Error popups in -dedicated console setup code so that they
actually do appear (by forcing cls.state to ca_disconnected)

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

12 years agocomment out a line to make the darkplaces.exe -dedicated console show
havoc [Tue, 1 Apr 2008 09:06:47 +0000 (09:06 +0000)]
comment out a line to make the darkplaces.exe -dedicated console show
up, apparently the initial houtput is never 0 or invalid on Windows XP,
which causes it to never open a console - but then error out because the
hinput is invalid

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

12 years agoclean up a couple warnings
havoc [Tue, 1 Apr 2008 09:01:43 +0000 (09:01 +0000)]
clean up a couple warnings

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

12 years agopatch from Blub\0 which adds back the wrapping behavior on pitch when
havoc [Sun, 30 Mar 2008 10:17:16 +0000 (10:17 +0000)]
patch from Blub\0 which adds back the wrapping behavior on pitch when
in_pitch_min/max are set to very large values (this basically lets you
aim up or down so much that you wrap to the other direction)

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

12 years agoswap VF_SIZE_X and VF_SIZE_Y definitions to what they should be (this
havoc [Sun, 30 Mar 2008 00:46:57 +0000 (00:46 +0000)]
swap VF_SIZE_X and VF_SIZE_Y definitions to what they should be (this
has no effect on behavior, they were simply misnamed internally)

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

12 years agoimplemented r_refdef.view.isoverlay state, this corresponds to the
havoc [Tue, 25 Mar 2008 02:32:43 +0000 (02:32 +0000)]
implemented r_refdef.view.isoverlay state, this corresponds to the
state of R_SetView VF_CLEARSCREEN and disables clearing and bloom when
rendering overlays

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

12 years agoin csqc set self to the client entity before calling most functions
havoc [Tue, 25 Mar 2008 00:32:26 +0000 (00:32 +0000)]
in csqc set self to the client entity before calling most functions

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

12 years agoPatch from Qantourisc adding support for his 3D sound library
havoc [Mon, 24 Mar 2008 20:47:24 +0000 (20:47 +0000)]
Patch from Qantourisc adding support for his 3D sound library

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

12 years agomade cl_particles_quake mode more authentic
havoc [Mon, 24 Mar 2008 05:24:52 +0000 (05:24 +0000)]
made cl_particles_quake mode more authentic

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

12 years agoimplemented better \ parsing, matching stock Quake better
havoc [Mon, 24 Mar 2008 00:13:43 +0000 (00:13 +0000)]
implemented better \ parsing, matching stock Quake better

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

12 years agoadded lingering blood and gunshot/spike particles to make it clear where
havoc [Sun, 23 Mar 2008 22:06:40 +0000 (22:06 +0000)]
added lingering blood and gunshot/spike particles to make it clear where
shots hit

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

12 years agofix stupid bug in \n and \r parsing
havoc [Sun, 23 Mar 2008 21:32:15 +0000 (21:32 +0000)]
fix stupid bug in \n and \r parsing

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

12 years agouse \n parsing on globals in savegames
havoc [Sun, 23 Mar 2008 21:21:44 +0000 (21:21 +0000)]
use \n parsing on globals in savegames

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

12 years agoadded r_drawfog cvar at esteel's request
havoc [Sun, 23 Mar 2008 21:20:30 +0000 (21:20 +0000)]
added r_drawfog cvar at esteel's request

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

12 years agoreenable the \r parsing for consistency sake
havoc [Sun, 23 Mar 2008 20:21:03 +0000 (20:21 +0000)]
reenable the \r parsing for consistency sake

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

12 years agodon't parse \ characters when reading sav files or map entities, let the
havoc [Sun, 23 Mar 2008 04:27:20 +0000 (04:27 +0000)]
don't parse \ characters when reading sav files or map entities, let the
ParseEpair function take care of \n and nothing else (and not if it's a
wad key)
this should fix compatibility with the quake map solstart.bsp which has
a \ character at the end of the wad value, also affecting a couple other
maps but not as badly

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

12 years agoAdded server QC function "movetypesteplandevent". This function, if assigned to...
dresk [Sun, 23 Mar 2008 03:20:49 +0000 (03:20 +0000)]
Added server QC function "movetypesteplandevent".  This function, if assigned to a MOVETYPE_STEP (ie. monster) entity in QC, is called when the entity experiences a "land event" wherein normally the sound sv_sound_land is played.  If this function is assigned, the standard server sound is suppressed, allowing for full configuration by the QC.

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

12 years agopatch from Blub that adds the command "defer" which executes a command
havoc [Thu, 20 Mar 2008 20:02:03 +0000 (20:02 +0000)]
patch from Blub that adds the command "defer" which executes a command
after a specified number of seconds, without interrupting normal play

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

12 years agopatch from Blub adding cprint (centerprint) console command, similar to
havoc [Thu, 20 Mar 2008 19:57:23 +0000 (19:57 +0000)]
patch from Blub adding cprint (centerprint) console command, similar to

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

12 years agohow did boxready survive? oh well
havoc [Thu, 20 Mar 2008 19:31:33 +0000 (19:31 +0000)]
how did boxready survive?  oh well

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

12 years agodamn, I accidentally committed this with the last fix... now that it HAS happened...
divverent [Thu, 20 Mar 2008 10:42:12 +0000 (10:42 +0000)]
damn, I accidentally committed this with the last fix... now that it HAS happened, at least if(... == GAME_NEXUIZ) it

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

12 years agofix obvious bugs in r8214
divverent [Wed, 19 Mar 2008 14:10:21 +0000 (14:10 +0000)]
fix obvious bugs in r8214

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

12 years agochanged use of infinite farclip to depend on 32bpp modes instead of on
havoc [Wed, 19 Mar 2008 02:24:09 +0000 (02:24 +0000)]
changed use of infinite farclip to depend on 32bpp modes instead of on
whether shadows are enabled
added r_useinfinitefarclip cvar to allow disabling this otherwise forced
feature if it causes problems for anyone (was on for most users already)
optimized farclip math a little bit (use model->radius * 2 instead of
VectorDistance from corner to corner)

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

12 years agoenlarge q3bsp bounding box to include all geometry, this is necessary
havoc [Wed, 19 Mar 2008 02:16:57 +0000 (02:16 +0000)]
enlarge q3bsp bounding box to include all geometry, this is necessary
because q3map2 sometimes lies (to alter the lightgrid box)

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

12 years agoIt seems that 2.4 BSDmakefile is missing some SDL defines, and thus is
divverent [Tue, 18 Mar 2008 13:06:34 +0000 (13:06 +0000)]
It seems that 2.4 BSDmakefile is missing some SDL defines, and thus is
broken (tested under FreeBSD). Also, last lines about dependencies are
probably gmake-leftovers and are not needed on BSD (in fact, they've been
causing errors since some older version). Please consider attached patch.
Thanks. -- danfe (FreeBSD port maintainer)

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

12 years agofix cmd again (fix by Blub and me)
divverent [Sun, 16 Mar 2008 17:31:32 +0000 (17:31 +0000)]
fix cmd again (fix by Blub and me)

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

12 years agofix segfault with long aliases
divverent [Sat, 15 Mar 2008 22:17:33 +0000 (22:17 +0000)]
fix segfault with long aliases

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

12 years agodisable pitch drift when csqc wants mouse moves
havoc [Wed, 12 Mar 2008 05:17:02 +0000 (05:17 +0000)]
disable pitch drift when csqc wants mouse moves

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

12 years agoadded 3 optional parameters to the csqc R_AddDynamicLight builtin
havoc [Wed, 12 Mar 2008 00:05:31 +0000 (00:05 +0000)]
added 3 optional parameters to the csqc R_AddDynamicLight builtin
(style, cubemapname, pflags) and made it read v_forward, v_right, and
v_up to orient the light (useful mainly with cubemaps), these can also
(at least in DarkPlaces) be used as an alternative to radius (pass in
radius = 1 if they are pre-scaled)

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

12 years agoreplaced cl.movement_queue with direct use of cl.movecmd array, this
havoc [Mon, 10 Mar 2008 02:06:32 +0000 (02:06 +0000)]
replaced cl.movement_queue with direct use of cl.movecmd array, this
saves a little memory but mostly it simplifies some logic
reworked much of the prediction system
now extrapolates latest movement gathered instead of interpolating
between the last two moves sent, this reduces visual latency by 50-99ms
and deals better (but not perfectly) with mismatched framerates like
cl_maxfps 30 and cl_netfps 20

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

12 years agogo back to block counting, looks like we now know what's broken with waveOut
divverent [Sun, 9 Mar 2008 19:26:39 +0000 (19:26 +0000)]
go back to block counting, looks like we now know what's broken with waveOut

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

12 years agolower cl_netfps default from 72 to 20
havoc [Sun, 9 Mar 2008 18:23:33 +0000 (18:23 +0000)]
lower cl_netfps default from 72 to 20

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

12 years agofixed jerky cl_movement with cl_netfps below current fps, by making
havoc [Sun, 9 Mar 2008 17:20:10 +0000 (17:20 +0000)]
fixed jerky cl_movement with cl_netfps below current fps, by making
packet interval operate in realtime rather than cl.time

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

12 years agoadded cl_netimmediatebuttons cvar which causes additional input packets
havoc [Sun, 9 Mar 2008 01:09:35 +0000 (01:09 +0000)]
added cl_netimmediatebuttons cvar which causes additional input packets
(beyond cl_netfps) when buttons or impulse change, giving better timing
accuracy when it counts (pressing fire)

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

12 years agoslight improvement to sound latency math (moved it after new sound data
havoc [Sun, 9 Mar 2008 01:08:42 +0000 (01:08 +0000)]
slight improvement to sound latency math (moved it after new sound data
is added)

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

12 years agoadded showsound cvar which displays number of sounds actively being
havoc [Sat, 8 Mar 2008 22:41:35 +0000 (22:41 +0000)]
added showsound cvar which displays number of sounds actively being
mixed, and total sound sources, and latency

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