]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
16 years agorestore some csqc variables in VM_R_ClearScene
havoc [Thu, 14 Jun 2007 04:42:00 +0000 (04:42 +0000)]
restore some csqc variables in VM_R_ClearScene

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

16 years agoincrease default sv_maxrate from 10KB/s to 1MB/s, this makes
havoc [Mon, 11 Jun 2007 15:25:16 +0000 (15:25 +0000)]
increase default sv_maxrate from 10KB/s to 1MB/s, this makes
unconfigured servers far more useful, especially for LAN games
increase default rate from 10KB/s to 20KB/s, this makes downloads go
faster and anyone who can handle 10KB/s is usually on broadband that can
handle 20KB/s (dialup and ISDN users will want to lower it)

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

16 years agomove CL_VM_Init extern up a bit
havoc [Mon, 11 Jun 2007 05:40:52 +0000 (05:40 +0000)]
move CL_VM_Init extern up a bit

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

16 years agodon't use sv_maxrate when hosting old protocols
havoc [Mon, 11 Jun 2007 05:38:20 +0000 (05:38 +0000)]
don't use sv_maxrate when hosting old protocols

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

16 years agodefault new clients' rate to unlimited, DP clients will send an
havoc [Mon, 11 Jun 2007 05:37:12 +0000 (05:37 +0000)]
default new clients' rate to unlimited, DP clients will send an
appropriate value long before any ingame messages are sent, and the
sv_maxrate still applies

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

16 years agofix sound spatialization and S_StartSound to deal with the 32768+entnum
havoc [Mon, 11 Jun 2007 03:32:08 +0000 (03:32 +0000)]
fix sound spatialization and S_StartSound to deal with the 32768+entnum
sound call in csqc

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

16 years agofix a runaway loop if parsing fails on csqc entities
havoc [Mon, 11 Jun 2007 01:28:37 +0000 (01:28 +0000)]
fix a runaway loop if parsing fails on csqc entities

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

16 years agoload csprogs.dat after it is downloaded
havoc [Sun, 10 Jun 2007 23:49:43 +0000 (23:49 +0000)]
load csprogs.dat after it is downloaded

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

16 years agouse world-> rather than sv.world. in World_LinkEdict_AreaGrid
havoc [Sun, 10 Jun 2007 03:31:46 +0000 (03:31 +0000)]
use world-> rather than sv.world. in World_LinkEdict_AreaGrid

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

16 years agofix .frame2 csqc field
havoc [Sun, 10 Jun 2007 02:39:38 +0000 (02:39 +0000)]
fix .frame2 csqc field

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

16 years agoincreased shader limit from 4096 to 16384, still need to change it to a
havoc [Sun, 10 Jun 2007 02:19:16 +0000 (02:19 +0000)]
increased shader limit from 4096 to 16384, still need to change it to a
memexpandablearray_t sometime

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

16 years agobottom align mini DM overlay when not fully utilized
divverent [Mon, 4 Jun 2007 21:42:10 +0000 (21:42 +0000)]
bottom align mini DM overlay when not fully utilized

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

16 years agono team separator in mini DM overlay... prevent showing just two players (instead...
divverent [Mon, 4 Jun 2007 07:11:34 +0000 (07:11 +0000)]
no team separator in mini DM overlay... prevent showing just two players (instead, draw a separator and show just one) for hud selector 0

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

16 years agoHUD: mini overlay now supports teamplay (in team games, it shows all teams and the...
divverent [Sun, 3 Jun 2007 16:08:30 +0000 (16:08 +0000)]
HUD: mini overlay now supports teamplay (in team games, it shows all teams and the ones near your score in your team)

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

16 years agomade deformvertexes autosprite2 work properly
havoc [Sun, 3 Jun 2007 13:23:47 +0000 (13:23 +0000)]
made deformvertexes autosprite2 work properly

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

16 years agocorrect two warnings to say the correct function name (LHNET_Write
havoc [Sat, 2 Jun 2007 01:54:49 +0000 (01:54 +0000)]
correct two warnings to say the correct function name (LHNET_Write
warnings were saying LHNET_Read)

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

16 years agoadded sbar_hudselector cvar which can choose a new hud in nexuiz if set
havoc [Fri, 1 Jun 2007 08:02:21 +0000 (08:02 +0000)]
added sbar_hudselector cvar which can choose a new hud in nexuiz if set
to 1

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

16 years agoadded DP_EF_NOGUNBOB extension
havoc [Fri, 1 Jun 2007 01:33:34 +0000 (01:33 +0000)]
added DP_EF_NOGUNBOB extension

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

16 years agomake gl_vbo saved as it slows down some chipsets
divverent [Wed, 30 May 2007 11:37:25 +0000 (11:37 +0000)]
make gl_vbo saved as it slows down some chipsets

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

16 years agoOS X: make unknown char/keycode just a DPrint, reportedly some mouse drivers work...
divverent [Wed, 30 May 2007 08:52:15 +0000 (08:52 +0000)]
OS X: make unknown char/keycode just a DPrint, reportedly some mouse drivers work fine apart from that they also send weird key codes

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

16 years agoignore r_glsl_contrastboost in range 0..1 (it breaks overbright pixels in that range...
divverent [Mon, 28 May 2007 23:40:25 +0000 (23:40 +0000)]
ignore r_glsl_contrastboost in range 0..1 (it breaks overbright pixels in that range), that is, the cvar now only does anything when > 1 (brighten up image) or < 0 (threshold effect)

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

16 years agocontrast boost: change 1 to myhvec3(1, 1, 1) to make ATI driver happy (doesn't change...
divverent [Mon, 28 May 2007 21:46:15 +0000 (21:46 +0000)]
contrast boost: change 1 to myhvec3(1, 1, 1) to make ATI driver happy (doesn't change fps on nvidia)

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

16 years agomake degrading shaders actually WORK
divverent [Mon, 28 May 2007 21:01:55 +0000 (21:01 +0000)]
make degrading shaders actually WORK

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

16 years agoglsl doesn't allow dividing by zero (result is undefined, although sane on nvidia...
divverent [Mon, 28 May 2007 13:35:07 +0000 (13:35 +0000)]
glsl doesn't allow dividing by zero (result is undefined, although sane on nvidia), so...
-"      color.rgb = SceneBrightness / (ContrastBoostCoeff + 1 / color.rgb);\n"
+"      color.rgb = color.rgb * SceneBrightness / (ContrastBoostCoeff * color.rgb + 1);\n"
also gains some fps apparently (7600GT here)
Weirdly, *= seems to be by 3fps slower than using = and *

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

16 years agonew cvar r_glsl_contrastboost to do something similar to gamma in the GLSL shader...
divverent [Mon, 28 May 2007 12:29:48 +0000 (12:29 +0000)]
new cvar r_glsl_contrastboost to do something similar to gamma in the GLSL shader... costs some fps when enabled, but works everywhere, and doesn't grey out as much as gamma (see http://hector.rbi.informatik.uni-frankfurt.de/nex/img/r_ambient4r_hdr_scenebrightness2r_glsl_contrastboost2.jpg vs http://hector.rbi.informatik.uni-frankfurt.de/nex/img/v_gamma2.jpg)

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

16 years agothat was missing in 7372 (TAB should also hide the centerprinting of finale)
divverent [Sun, 27 May 2007 09:22:07 +0000 (09:22 +0000)]
that was missing in 7372 (TAB should also hide the centerprinting of finale)

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

16 years agoadded polygonoffset as a texture property, used on submodels (such as
havoc [Sun, 27 May 2007 06:46:44 +0000 (06:46 +0000)]
added polygonoffset as a texture property, used on submodels (such as
doors in q1bsp maps) to prevent zfighting if they exactly overlap a
wall, consistent with software quake (which intentionally removed the
portions of the door overlapping a wall)

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

16 years agodefault sv_gameplayfix_blowupfallenzombies to 0 in -hipnotic mode as it
havoc [Sun, 27 May 2007 06:42:10 +0000 (06:42 +0000)]
default sv_gameplayfix_blowupfallenzombies to 0 in -hipnotic mode as it
messes up the friendly monsters

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

16 years agofixed recently introduced bug that made lightmapintensity affect dlights
havoc [Sun, 27 May 2007 05:57:48 +0000 (05:57 +0000)]
fixed recently introduced bug that made lightmapintensity affect dlights
and rtlights

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

16 years agomake showscores work while finale is up in all game modes
havoc [Sat, 26 May 2007 22:15:27 +0000 (22:15 +0000)]
make showscores work while finale is up in all game modes
(this should not have been implemented as a nexuiz specific feature)
made monsters and secrets display check the STAT_TOTAL values to decide
whether to draw, rather than a nexuiz check

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

16 years agochange noise4f to a function that does not crash
divverent [Sat, 26 May 2007 11:42:33 +0000 (11:42 +0000)]
change noise4f to a function that does not crash

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

16 years agointermission: store the current time to completed_time only on the first svc_intermis...
divverent [Sat, 26 May 2007 10:19:37 +0000 (10:19 +0000)]
intermission: store the current time to completed_time only on the first svc_intermission-like command (Nexuiz switches to svc_intermission for final scoreboard display and to svc_finale for the voting screen);
intermission: in GAME_NEXUIZ, display standard scoreboard instead of intermission overlay, and allow showscores (TAB) to override svc_finale overlay
scoreboard: in intermission, show the time when the game ended, not the current time

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

16 years agoreorganized rgbgen/alphagen/tcgen fields into their own structs to clean
havoc [Fri, 25 May 2007 20:32:05 +0000 (20:32 +0000)]
reorganized rgbgen/alphagen/tcgen fields into their own structs to clean
up the code somewhat

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

16 years agoimplemented deformvertexes (previously autosprite/autosprite2 had been
havoc [Fri, 25 May 2007 08:03:48 +0000 (08:03 +0000)]
implemented deformvertexes (previously autosprite/autosprite2 had been
supported as a special case, but now all deformvertexes modes work)

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

16 years agoadded a 4D noise function for use by shaders
havoc [Fri, 25 May 2007 07:57:11 +0000 (07:57 +0000)]
added a 4D noise function for use by shaders

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

16 years agoask for generated normals when usign Q3TCGEN_ENVIRONMENT
divverent [Fri, 25 May 2007 06:40:21 +0000 (06:40 +0000)]
ask for generated normals when usign Q3TCGEN_ENVIRONMENT

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

16 years agoadded parsing of rgbgen wave and alphagen wave
havoc [Thu, 24 May 2007 20:12:21 +0000 (20:12 +0000)]
added parsing of rgbgen wave and alphagen wave

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

16 years agosupport multiple tcmod commands on a single layer
havoc [Thu, 24 May 2007 07:35:30 +0000 (07:35 +0000)]
support multiple tcmod commands on a single layer

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

16 years agoimplemented tcgen
havoc [Thu, 24 May 2007 06:43:28 +0000 (06:43 +0000)]
implemented tcgen

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

16 years agoimplemented tcmod (all forms)
havoc [Thu, 24 May 2007 05:55:41 +0000 (05:55 +0000)]
implemented tcmod (all forms)

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

16 years agoadded loading of rgbgen/alphagen/tcgen/tcmod
havoc [Thu, 24 May 2007 03:37:44 +0000 (03:37 +0000)]
added loading of rgbgen/alphagen/tcgen/tcmod

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

16 years agoremove unused rsurface.modelneighbor3i
havoc [Thu, 24 May 2007 01:49:26 +0000 (01:49 +0000)]
remove unused rsurface.modelneighbor3i

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

16 years agoeliminated rsurface.model, so there is now no dependence on having an
havoc [Thu, 24 May 2007 01:36:13 +0000 (01:36 +0000)]
eliminated rsurface.model, so there is now no dependence on having an
actual model in the material renderer
(except transparent surface queuing still needing an entity)
this cleanup means that the material renderer could be called from other
places without an entity (effects such as particles and lightning beams)

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

16 years agomoved rsurface_ variables into rsurface struct as a minor cleanup
havoc [Wed, 23 May 2007 22:41:52 +0000 (22:41 +0000)]
moved rsurface_ variables into rsurface struct as a minor cleanup

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

16 years agoadded DP_QC_CVAR_DEFSTRING extension
havoc [Wed, 23 May 2007 22:36:08 +0000 (22:36 +0000)]
added DP_QC_CVAR_DEFSTRING extension
corrected function descriptions of DP_QC_STRING_CASE_FUNCTIONS extension
to indicate that they are in that extension, previously they broke the
formatting convention by saying what they were for instead of the
extension they belong to

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

16 years agoforgot to commit this change
havoc [Wed, 23 May 2007 22:24:53 +0000 (22:24 +0000)]
forgot to commit this change

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

16 years agochanged DP_SV_MODELFLAGS_AS_EFFECTS extension, now using any of the MF_
havoc [Wed, 23 May 2007 22:07:18 +0000 (22:07 +0000)]
changed DP_SV_MODELFLAGS_AS_EFFECTS extension, now using any of the MF_
flags will override the model's flags
added EF_NOMODELFLAGS effect to disable model flags without replacing
them with anything new

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

16 years agoremoved rsurface_entity field, and copied all fields that were accessed
havoc [Wed, 23 May 2007 20:51:31 +0000 (20:51 +0000)]
removed rsurface_entity field, and copied all fields that were accessed
through it into rsurface_* fields

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

16 years agoremove stupid int casts of pitch/yaw in beam code, yet another instance
havoc [Wed, 23 May 2007 17:15:21 +0000 (17:15 +0000)]
remove stupid int casts of pitch/yaw in beam code, yet another instance
of this legacy from quake that I hadn't killed yet

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

16 years agochanged server to not send pingplreport in response to "ping" command,
havoc [Wed, 23 May 2007 17:05:10 +0000 (17:05 +0000)]
changed server to not send pingplreport in response to "ping" command,
because it confuses non-DP clients and older DP clients (resulting in
the message "unknown command pingplreport" flooding the console)
changed client to send "pings" command to DP7 protocol servers so that
it gets only the pingplreport output, avoiding any potential misparsing
of ping reports and reducing bandwidth a little.

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

16 years agohide ping reports in demos
havoc [Wed, 23 May 2007 17:03:07 +0000 (17:03 +0000)]
hide ping reports in demos

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

16 years agoreplace funky !!a ^ !!b XOR usage by a new boolxor(a, b) macro that does that interna...
divverent [Wed, 23 May 2007 16:26:59 +0000 (16:26 +0000)]
replace funky !!a ^ !!b XOR usage by a new boolxor(a, b) macro that does that internally - should be more readable

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

16 years agoin v_flipped mode, invert the sense of snd_swapstereo
divverent [Wed, 23 May 2007 11:31:54 +0000 (11:31 +0000)]
in v_flipped mode, invert the sense of snd_swapstereo

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

16 years agoadded support for "rgbgen lightingdiffuse" as a type of lighting
havoc [Wed, 23 May 2007 03:51:42 +0000 (03:51 +0000)]
added support for "rgbgen lightingdiffuse" as a type of lighting

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

16 years agodamn, committed the old version of my patch... this now is the REAL v_flipped
divverent [Wed, 23 May 2007 00:23:30 +0000 (00:23 +0000)]
damn, committed the old version of my patch... this now is the REAL v_flipped

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

16 years agocvar: v_flipped flips all 3D view except sprites and flips input to compensate,
divverent [Wed, 23 May 2007 00:11:40 +0000 (00:11 +0000)]
cvar: v_flipped flips all 3D view except sprites and flips input to compensate,
basically a poor man's left handed mode

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

16 years agocall FS_ClearSearchPath in FS_Shutdown
havoc [Tue, 22 May 2007 20:17:21 +0000 (20:17 +0000)]
call FS_ClearSearchPath in FS_Shutdown

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

16 years agoclose packs when clearing search path
havoc [Tue, 22 May 2007 20:15:24 +0000 (20:15 +0000)]
close packs when clearing search path

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

16 years agorenamed snd_reload to snd_unloadallsounds to clarify its purpose
havoc [Tue, 22 May 2007 20:07:56 +0000 (20:07 +0000)]
renamed snd_reload to snd_unloadallsounds to clarify its purpose

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

16 years agoenable svc_pointparticles1 protocol, because the pointparticles
havoc [Tue, 22 May 2007 18:46:56 +0000 (18:46 +0000)]
enable svc_pointparticles1 protocol, because the pointparticles
extension is so new that compatibility with month-old clients that never
officially supported the DP_SV_POINTPARTICLES feature is not a concern

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

16 years agofixed bug in autosprite setup code that made it malfunction badly on any
havoc [Tue, 22 May 2007 10:08:34 +0000 (10:08 +0000)]
fixed bug in autosprite setup code that made it malfunction badly on any
non-world entity
rewrote autosprite code to make it a bit cleaner
rewrote autosprite2 code to make it work properly

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

16 years agoWin32: ioctl SIO_UDP_CONNRESET <- FALSE
divverent [Tue, 22 May 2007 08:07:34 +0000 (08:07 +0000)]
Win32: ioctl SIO_UDP_CONNRESET <- FALSE

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

16 years agoReject clc_stringcmd with \r and \n in them; when developer is set, hex dump these...
divverent [Tue, 22 May 2007 07:39:05 +0000 (07:39 +0000)]
Reject clc_stringcmd with \r and \n in them; when developer is set, hex dump these commands.
Exception: \r and \n are allowed at the end of a clc_stringcmd, but get cut off before processing (DP builds from before yesterday did that with sentcvar commands).

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

16 years agoq3 shaders are now supported on all model and map formats
havoc [Tue, 22 May 2007 05:50:19 +0000 (05:50 +0000)]
q3 shaders are now supported on all model and map formats

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

16 years agofix typo
havoc [Tue, 22 May 2007 02:37:06 +0000 (02:37 +0000)]
fix typo

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

16 years agoadded DP_SV_POINTPARTICLES extension string (the functions already
havoc [Mon, 21 May 2007 23:08:37 +0000 (23:08 +0000)]
added DP_SV_POINTPARTICLES extension string (the functions already
existed)

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

16 years agoadded svc_pointparticles1 for next protocol bump (uses 15 bytes instead
havoc [Mon, 21 May 2007 22:13:46 +0000 (22:13 +0000)]
added svc_pointparticles1 for next protocol bump (uses 15 bytes instead
of 29 bytes for the potentially common case of zero velocity and a count
of 1)

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

16 years agomake ASCII 10 and ASCII 13 terminate messagemode too (fixes Ctrl-J, Ctrl-M, Num-Enter)
divverent [Mon, 21 May 2007 21:14:34 +0000 (21:14 +0000)]
make ASCII 10 and ASCII 13 terminate messagemode too (fixes Ctrl-J, Ctrl-M, Num-Enter)

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

16 years agosentcvar: don't append a \n, it's a clc_stringcmd, these are not separated by \n!
divverent [Mon, 21 May 2007 21:08:24 +0000 (21:08 +0000)]
sentcvar: don't append a \n, it's a clc_stringcmd, these are not separated by \n!

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

16 years agoremoved r_shadow_realtime_world_dlightshadows cvar, now the
havoc [Sun, 20 May 2007 22:42:39 +0000 (22:42 +0000)]
removed r_shadow_realtime_world_dlightshadows cvar, now the
r_shadow_realtime_dlight_shadows setting applies even in rtworld mode

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

16 years agorenamed r_shadow_shadow_polygon* cvars to r_shadow_polygon*
havoc [Sun, 20 May 2007 22:32:51 +0000 (22:32 +0000)]
renamed r_shadow_shadow_polygon* cvars to r_shadow_polygon*

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

16 years agovalidate r_shadow_frontsidecasting each frame and correct it to a valid
havoc [Sun, 20 May 2007 22:28:18 +0000 (22:28 +0000)]
validate r_shadow_frontsidecasting each frame and correct it to a valid
value if invalid

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

16 years agomade the effect of the r_shadow_shadow_polygonoffset cvar reverse when
havoc [Sun, 20 May 2007 22:26:48 +0000 (22:26 +0000)]
made the effect of the r_shadow_shadow_polygonoffset cvar reverse when
r_shadow_frontsidecasting is off, so that only one setting needs
changing to toggle between the two modes

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

16 years agosend input for every client frame in singleplayer
havoc [Sun, 20 May 2007 16:16:02 +0000 (16:16 +0000)]
send input for every client frame in singleplayer

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

16 years agoDP_PRELOAD_DEPENDENCIES=yes makefile option: when set, link against the libraries...
divverent [Sun, 20 May 2007 16:02:27 +0000 (16:02 +0000)]
DP_PRELOAD_DEPENDENCIES=yes makefile option: when set, link against the libraries needed using -l dynamically so they won't get loaded at runtime using dlopen

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

16 years agonew option -capturedemo to capture a demo to an AVI file;
divverent [Sun, 20 May 2007 14:59:03 +0000 (14:59 +0000)]
new option -capturedemo to capture a demo to an AVI file;
new cvars cl_capturevideo_width, cl_capturevideo_height to scale down video capture
when capturing >1GB, don't write an index chunk (in that case, an ix00/ix01 chunk has to be written, but that's not yet implemented)
when capturing, write a "dmlh" header to store the total number of frames, and store the partial number of frames in the "avih" header, as specified by OpenDML
when capturing, store the aspect ratio in a "vprp" header chunk (OpenDML)
make Host_Quit_f do nothing when already quitting (fixes "quit" issue while playing back a demo); note that Host_Quit_f is only used by the console and by -benchmark/-demo/-capturedemo

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

16 years agodon't send svc_statubyte or any stat index over 32 to old clients
havoc [Sat, 19 May 2007 19:24:19 +0000 (19:24 +0000)]
don't send svc_statubyte or any stat index over 32 to old clients

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

16 years agodon't send empty unreliable packets
havoc [Sat, 19 May 2007 19:23:34 +0000 (19:23 +0000)]
don't send empty unreliable packets

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

16 years agofix bug that caused server to send incorrect format of .velocity in
havoc [Sat, 19 May 2007 18:42:03 +0000 (18:42 +0000)]
fix bug that caused server to send incorrect format of .velocity in
svc_clientdata when using "QUAKEDP" protocol

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

16 years agoreworked newmouseparms[] code
havoc [Sat, 19 May 2007 12:01:02 +0000 (12:01 +0000)]
reworked newmouseparms[] code
removed -noforcemspd and -noforcemaccel options as they didn't make
sense when comparing to the MSDN documentation (-noforcemparms remains)
fixed any possible bugs with restoring originalmouseparms[]
added comments explaining the meaning of newmouseparms[] components

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

16 years agokill mouse accel using IOHIDSetAccelerationWithKey(mouseDev, CFSTR(kIOHIDMouseAcceler...
divverent [Sat, 19 May 2007 09:19:52 +0000 (09:19 +0000)]
kill mouse accel using IOHIDSetAccelerationWithKey(mouseDev, CFSTR(kIOHIDMouseAccelerationType), -1.0) instead, this is what System Preferences uses (otherwise, mouse accel doesn't get restored right on exit)

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

16 years agomore of these
divverent [Fri, 18 May 2007 21:11:39 +0000 (21:11 +0000)]
more of these

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

16 years agofoo *var;
divverent [Fri, 18 May 2007 21:08:47 +0000 (21:08 +0000)]
foo *var;
sizeof(var) is the size of the POINTER
sizeof(*var) is the size of the TYPE
Now it should work...

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

16 years agoonly memcpy the suggested format if the failure is not permanent! Otherwise, it can...
divverent [Fri, 18 May 2007 21:05:19 +0000 (21:05 +0000)]
only memcpy the suggested format if the failure is not permanent! Otherwise, it can lead to endless loops

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