divverent/darkplaces.git
17 years agonow supports skyboxes in q3bsp (note: must use the "sky" key in worldspawn to set...
havoc [Sun, 21 Sep 2003 03:34:58 +0000 (03:34 +0000)]
now supports skyboxes in q3bsp (note: must use the "sky" key in worldspawn to set the skybox basename like in q2, and it identifies sky shaders by names beginning with "textures/skies/"), and added a little error checking to Mod_Q1BSP_LoadLeafs, and added a couple todo items

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

17 years agoadded GAME_ZYMOTIC
havoc [Sat, 20 Sep 2003 09:16:01 +0000 (09:16 +0000)]
added GAME_ZYMOTIC

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

17 years agofinally managed to fix the r_shadow_portallight bug (had to reverse portal handling...
havoc [Sat, 20 Sep 2003 07:34:52 +0000 (07:34 +0000)]
finally managed to fix the r_shadow_portallight bug (had to reverse portal handling in many old broken cases), also changed the Portal_Visibility call to take a box instead of a sphere for culling

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

17 years agoTomaz's awesome new GeForce3 water effect, thanks!
havoc [Fri, 19 Sep 2003 20:18:30 +0000 (20:18 +0000)]
Tomaz's awesome new GeForce3 water effect, thanks!

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

17 years agorecoded options menus, and replaced scr_2dresolution with vid_conwidth and vid_conhei...
havoc [Fri, 19 Sep 2003 19:53:57 +0000 (19:53 +0000)]
recoded options menus, and replaced scr_2dresolution with vid_conwidth and vid_conheight cvars (and updated menu accordingly)

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

17 years agomigrated light bounding box generation from r_shadow code to Portal_Visibility code...
havoc [Fri, 19 Sep 2003 19:50:51 +0000 (19:50 +0000)]
migrated light bounding box generation from r_shadow code to Portal_Visibility code when using r_shadow_portallight 1, I hoped this would fix bugs but it did not, still it is an optimization...

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

17 years agoflip the X in normalmaps generated from heightmaps (according to FrikaC it was broken)
havoc [Fri, 19 Sep 2003 19:48:42 +0000 (19:48 +0000)]
flip the X in normalmaps generated from heightmaps (according to FrikaC it was broken)

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

17 years agoadded some SV_CheckVelocity calls to MOVETYPE_WALK code
havoc [Fri, 19 Sep 2003 19:44:00 +0000 (19:44 +0000)]
added some SV_CheckVelocity calls to MOVETYPE_WALK code

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

17 years agofinished a lot of little todo items, mostly regarding server list and networking...
havoc [Fri, 19 Sep 2003 01:52:41 +0000 (01:52 +0000)]
finished a lot of little todo items, mostly regarding server list and networking init bugs, and fixed skybox rendering

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

17 years agoafter an argument with Black it was decided that GAME_NEXUIZ will be weird (in my...
havoc [Thu, 18 Sep 2003 19:29:39 +0000 (19:29 +0000)]
after an argument with Black it was decided that GAME_NEXUIZ will be weird (in my opinion) and use a bit number instead of a bitfield for STAT_ACTIVEWEAPON

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

17 years agothe new partial-update entity compression protocol now works for the first time ever
havoc [Wed, 17 Sep 2003 17:51:31 +0000 (17:51 +0000)]
the new partial-update entity compression protocol now works for the first time ever

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

17 years agoforgot to include this file in the previous commit (no longer opens gfx.wad until...
havoc [Wed, 17 Sep 2003 17:49:51 +0000 (17:49 +0000)]
forgot to include this file in the previous commit (no longer opens gfx.wad until a lump is requested)

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

17 years agono longer opens gfx.wad until a lump is requested (and gracefully fails if not found)
havoc [Wed, 17 Sep 2003 17:48:58 +0000 (17:48 +0000)]
no longer opens gfx.wad until a lump is requested (and gracefully fails if not found)

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

17 years agofixed empty texture lump handling in q1bsp loading
havoc [Mon, 15 Sep 2003 02:21:50 +0000 (02:21 +0000)]
fixed empty texture lump handling in q1bsp loading

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

17 years agomade a commit debugging message only happen with developer_networkentities
havoc [Mon, 15 Sep 2003 02:21:13 +0000 (02:21 +0000)]
made a commit debugging message only happen with developer_networkentities

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

17 years agomove developer_networkentities extern to protocol.h
havoc [Sun, 14 Sep 2003 21:34:00 +0000 (21:34 +0000)]
move developer_networkentities extern to protocol.h

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

17 years agomore Nexuiz hud stuff from BlackHC, minor style edits to fit in with surrounding...
havoc [Sun, 14 Sep 2003 03:52:21 +0000 (03:52 +0000)]
more Nexuiz hud stuff from BlackHC, minor style edits to fit in with surrounding code better

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

17 years agoadded an item about corona shaders
havoc [Sun, 14 Sep 2003 03:40:32 +0000 (03:40 +0000)]
added an item about corona shaders

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

17 years agofixed log2i to use parentheses around n
havoc [Sat, 13 Sep 2003 20:58:33 +0000 (20:58 +0000)]
fixed log2i to use parentheses around n
changed bit2i to use log2i((n) << 1)

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

17 years agoadded bit2i and log2i (these return the base 2 exponent of an integer, perhaps bit2i...
havoc [Sat, 13 Sep 2003 20:41:35 +0000 (20:41 +0000)]
added bit2i and log2i (these return the base 2 exponent of an integer, perhaps bit2i should be replaced by log2i() - 1 though)

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

17 years agofixed an R_InitSky warning regarding transpix being uninitialized, added transpixunio...
havoc [Sat, 13 Sep 2003 20:39:35 +0000 (20:39 +0000)]
fixed an R_InitSky warning regarding transpix being uninitialized, added transpixunion to clean up the aliasing mess (thanks to Black for pointing this out)

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

17 years agomore developer_networkentities messages
havoc [Sat, 13 Sep 2003 20:37:14 +0000 (20:37 +0000)]
more developer_networkentities messages

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

17 years agorenamed PROTOCOL_VERSION stuff to PROTOCOL_QUAKE, PROTOCOL_DARKPLACES1, and so on
havoc [Sat, 13 Sep 2003 04:50:36 +0000 (04:50 +0000)]
renamed PROTOCOL_VERSION stuff to PROTOCOL_QUAKE, PROTOCOL_DARKPLACES1, and so on
mostly fixed network entity bugs

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

17 years ago*** empty log message ***
havoc [Sat, 13 Sep 2003 04:49:32 +0000 (04:49 +0000)]
*** empty log message ***

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

17 years agochanged teu game dir to "baseteu" at request of teu team
havoc [Fri, 12 Sep 2003 23:57:58 +0000 (23:57 +0000)]
changed teu game dir to "baseteu" at request of teu team

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

17 years agoaitur fixed some important bugs in the error checks of the md2 model loader, thanks!
havoc [Fri, 12 Sep 2003 12:47:02 +0000 (12:47 +0000)]
aitur fixed some important bugs in the error checks of the md2 model loader, thanks!

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

17 years ago*** empty log message ***
havoc [Mon, 8 Sep 2003 22:03:15 +0000 (22:03 +0000)]
*** empty log message ***

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

17 years ago*** empty log message ***
havoc [Mon, 8 Sep 2003 22:00:37 +0000 (22:00 +0000)]
*** empty log message ***

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

17 years agoa couple bugfixes in Nehahra demos menu regarding end of menu wrapping (thanks to...
havoc [Thu, 4 Sep 2003 13:34:15 +0000 (13:34 +0000)]
a couple bugfixes in Nehahra demos menu regarding end of menu wrapping (thanks to Vic for pointing out these bugs)

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

17 years agofix some glitches in the original commit
havoc [Thu, 4 Sep 2003 13:30:07 +0000 (13:30 +0000)]
fix some glitches in the original commit
clean up blank lines

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

17 years agopatch from Andreas Kirsh to add Nexuiz hud
havoc [Thu, 4 Sep 2003 12:30:46 +0000 (12:30 +0000)]
patch from Andreas Kirsh to add Nexuiz hud

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

17 years agothe Connect failed error is now just a print
havoc [Thu, 4 Sep 2003 09:30:48 +0000 (09:30 +0000)]
the Connect failed error is now just a print

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

17 years agofix a nasty crash with multiplayer servers (thanks to Willis for finding this bug)
havoc [Thu, 4 Sep 2003 09:25:06 +0000 (09:25 +0000)]
fix a nasty crash with multiplayer servers (thanks to Willis for finding this bug)

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

17 years agofixed a couple stupid bugs
havoc [Sun, 31 Aug 2003 06:35:49 +0000 (06:35 +0000)]
fixed a couple stupid bugs

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

17 years ago*** empty log message ***
havoc [Sun, 31 Aug 2003 05:25:23 +0000 (05:25 +0000)]
*** empty log message ***

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

17 years agonow uses string buffers more sanely and supports multiple strcat buffers (now uses...
havoc [Sun, 31 Aug 2003 05:20:33 +0000 (05:20 +0000)]
now uses string buffers more sanely and supports multiple strcat buffers (now uses PR_GetTempString), modified PF_VarString to read into a string buffer (FrikaC noticed strcat was being overwritten by print, inconsistent with his implementation of FRIK_FILE)

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

17 years agofix a crash related to MAX_EDICTS in "pr_fields" command (thanks to SeienAbunae for...
havoc [Sun, 31 Aug 2003 05:17:06 +0000 (05:17 +0000)]
fix a crash related to MAX_EDICTS in "pr_fields" command (thanks to SeienAbunae for reporting this)

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

17 years agoreverted the massive svs.connectedclients change, now back to svs.clients and svs...
havoc [Sat, 30 Aug 2003 01:54:31 +0000 (01:54 +0000)]
reverted the massive svs.connectedclients change, now back to svs.clients and svs.maxclients like quake
this fixes mods detecting singleplayer as multiplayer
this fixes frikbot frags updates on the scoreboard
added most of the capability necessary for botclient extension

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

17 years ago*** empty log message ***
havoc [Fri, 29 Aug 2003 03:49:00 +0000 (03:49 +0000)]
*** empty log message ***

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

17 years agonow prints "Connection refused" if LHNET_Read gets an ECONNREFUSED from inet4 or...
havoc [Fri, 29 Aug 2003 03:46:52 +0000 (03:46 +0000)]
now prints "Connection refused" if LHNET_Read gets an ECONNREFUSED from inet4 or inet6 (thanks to Andreas Kirsh for this)

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

17 years agov_hwgamma is now saved to config (Andreas Kirsh suggested this and I agree)
havoc [Thu, 28 Aug 2003 14:07:47 +0000 (14:07 +0000)]
v_hwgamma is now saved to config (Andreas Kirsh suggested this and I agree)
gl_combine is now saved to config (due to popular demand, although this really should become a separate overbright cvar instead)

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

17 years agothanks to Andreas Kirsh for a discussion about using WS_EX_TOPMOST flag on the fullsc...
havoc [Thu, 28 Aug 2003 13:52:47 +0000 (13:52 +0000)]
thanks to Andreas Kirsh for a discussion about using WS_EX_TOPMOST flag on the fullscreen window (hopefully this will keep dialogs from cutting holes in the frame like some people have reported)

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

17 years agofixed Prydon Gate behavior regarding the start map (which immediately changes level)
havoc [Thu, 28 Aug 2003 08:08:07 +0000 (08:08 +0000)]
fixed Prydon Gate behavior regarding the start map (which immediately changes level)

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

17 years agoexperimental (not terribly useful) support for r_shadow_realtime_dlight 1 mode (_worl...
havoc [Thu, 28 Aug 2003 06:32:13 +0000 (06:32 +0000)]
experimental (not terribly useful) support for r_shadow_realtime_dlight 1 mode (_world mode put on hold for a while)

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

17 years agoremoved used of PolygonOffset because it caused (extremely minor) visual glitches...
havoc [Wed, 27 Aug 2003 13:21:30 +0000 (13:21 +0000)]
removed used of PolygonOffset because it caused (extremely minor) visual glitches on the map, and isn't really much help even when using r_drawcollisionbrushes

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

17 years agofixed a crash with clusterindex -1 in GetPVS and FatPVS
havoc [Wed, 27 Aug 2003 13:10:41 +0000 (13:10 +0000)]
fixed a crash with clusterindex -1 in GetPVS and FatPVS

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

17 years agoq3bsp curve collisions (technically it can collide against any triangle mesh)
havoc [Wed, 27 Aug 2003 12:22:00 +0000 (12:22 +0000)]
q3bsp curve collisions (technically it can collide against any triangle mesh)
fixed some severe bugs in the q3bsp traceline code
optimized q3bsp tracebrush code - now uses a bbox for the trace, and reduces it to fit each node it encounters, this caused *IMMENSE* speedups!
optimized q3bsp curve collisions to use bbox culling of triangles (to avoid the cost of generating collision brushes most of the time)

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

17 years agoRemoved useless function M_PrintWhite, since M_Print prints in white already. Added...
molivier [Mon, 25 Aug 2003 06:35:47 +0000 (06:35 +0000)]
Removed useless function M_PrintWhite, since M_Print prints in white already. Added M_PrintRed. Added support for sections for the key binding list (for clarity when using a lot of commands), and made it adjust its position depending on the number of commands. Updated Transfusion key binding list.

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

17 years agocurves are now precomputed at load time, and all surfaces are treated as Q3FACETYPE_M...
havoc [Mon, 25 Aug 2003 00:11:52 +0000 (00:11 +0000)]
curves are now precomputed at load time, and all surfaces are treated as Q3FACETYPE_MESH (or skipped if they have no triangles)

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

17 years agothe quadratic spline patches in quake3 maps now work (in english: curves!)
havoc [Sun, 24 Aug 2003 23:00:26 +0000 (23:00 +0000)]
the quadratic spline patches in quake3 maps now work (in english: curves!)

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

17 years agono more uses of %g in printf as it tends to lose precision too often (this caused...
havoc [Sun, 24 Aug 2003 04:00:52 +0000 (04:00 +0000)]
no more uses of %g in printf as it tends to lose precision too often (this caused problems with ftos in QuakeC truncating numbers to 6 digits, a problem afflicting Prydon Gate especially)
still tries to print numbers briefly if possible (by checking if their value is an int)

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

17 years ago*** empty log message ***
havoc [Sat, 23 Aug 2003 10:30:40 +0000 (10:30 +0000)]
*** empty log message ***

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

17 years agofix severe bug that made chase_up continually increase up to 118 (thanks to yummyluv...
havoc [Sat, 23 Aug 2003 10:19:26 +0000 (10:19 +0000)]
fix severe bug that made chase_up continually increase up to 118 (thanks to yummyluv for pointing this out, and Electro for making me realize why it happened)

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

17 years agonegate the dnormal instead of negating the dotproduct result
havoc [Sat, 23 Aug 2003 08:32:29 +0000 (08:32 +0000)]
negate the dnormal instead of negating the dotproduct result

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

17 years agodiffusenormal lighting was backwards (thanks to Electro for pointing this out)
havoc [Sat, 23 Aug 2003 08:30:23 +0000 (08:30 +0000)]
diffusenormal lighting was backwards (thanks to Electro for pointing this out)

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

17 years agodon't call PlayerPreThink/PlayerPostThink on unspawned clients
havoc [Sat, 23 Aug 2003 08:23:54 +0000 (08:23 +0000)]
don't call PlayerPreThink/PlayerPostThink on unspawned clients

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

17 years agofix a (very bad!) bug with -port cvar setting
havoc [Sat, 23 Aug 2003 07:09:13 +0000 (07:09 +0000)]
fix a (very bad!) bug with -port cvar setting

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

17 years agoadded error messages when opening sockets (reports both success and failure)
havoc [Sat, 23 Aug 2003 07:05:55 +0000 (07:05 +0000)]
added error messages when opening sockets (reports both success and failure)
added support for legacy -ip and -port options

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

17 years agoin the server setup menu, default to 8 players instead of MAX_SCOREBOARD
havoc [Sat, 23 Aug 2003 06:20:30 +0000 (06:20 +0000)]
in the server setup menu, default to 8 players instead of MAX_SCOREBOARD

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

17 years agofixed a couple warnings
havoc [Sat, 23 Aug 2003 05:13:31 +0000 (05:13 +0000)]
fixed a couple warnings

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

17 years agoq3bsp is working, but no curves yet, and no realtime lighting support
havoc [Sat, 23 Aug 2003 02:17:04 +0000 (02:17 +0000)]
q3bsp is working, but no curves yet, and no realtime lighting support

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

17 years agofix handling of .alpha, .renderamt, .scale, and .glow_color defaulting when 0 (it...
havoc [Fri, 22 Aug 2003 23:44:31 +0000 (23:44 +0000)]
fix handling of .alpha, .renderamt, .scale, and .glow_color defaulting when 0 (it has to compare the float value, not the byte version of it)

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

17 years agoSomeone forgot to increment the number of items in the options menu. Added the "use...
molivier [Tue, 19 Aug 2003 08:27:24 +0000 (08:27 +0000)]
Someone forgot to increment the number of items in the options menu. Added the "use" button to Transfusion key binding list

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

17 years agoadjusted up camera height for chase_stevie in GoodVsBad2 as requested by yummyluv
havoc [Tue, 19 Aug 2003 04:03:51 +0000 (04:03 +0000)]
adjusted up camera height for chase_stevie in GoodVsBad2 as requested by yummyluv

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

17 years agoforgot to commit these
havoc [Tue, 19 Aug 2003 00:43:35 +0000 (00:43 +0000)]
forgot to commit these

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

17 years agomore q3bsp work (and no it still doesn't work right)
havoc [Tue, 19 Aug 2003 00:25:08 +0000 (00:25 +0000)]
more q3bsp work (and no it still doesn't work right)
converted over most of the engine to use new SUPERCONTENTS_ values (bit flags), and the q1bsp and q3bsp loaders convert to these, conversion to q1 contents and back is supported as well
other stuff...  I've forgotten what

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

17 years ago*** empty log message ***
havoc [Mon, 18 Aug 2003 19:31:41 +0000 (19:31 +0000)]
*** empty log message ***

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

17 years agosv_light.c is gone, updated project to remove it
havoc [Thu, 14 Aug 2003 19:29:42 +0000 (19:29 +0000)]
sv_light.c is gone, updated project to remove it

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

17 years agoq3bsp is still not working yet, but getting closer
havoc [Thu, 14 Aug 2003 03:48:13 +0000 (03:48 +0000)]
q3bsp is still not working yet, but getting closer

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

17 years agono time to explain, more changes on the path to q3bsp support
havoc [Wed, 13 Aug 2003 23:08:58 +0000 (23:08 +0000)]
no time to explain, more changes on the path to q3bsp support

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

17 years agomore hackish cleanups of PVS stuff, now decompresses the PVS data at load and this...
havoc [Wed, 13 Aug 2003 02:17:16 +0000 (02:17 +0000)]
more hackish cleanups of PVS stuff, now decompresses the PVS data at load and this got rid of the last of the calls to LeafPVS (now checks the pvs in the leaf directly)

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

17 years ago*** empty log message ***
havoc [Wed, 13 Aug 2003 02:16:04 +0000 (02:16 +0000)]
*** empty log message ***

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

17 years agoI hope this fixes a md3 tag bug, but don't know
havoc [Wed, 13 Aug 2003 02:08:11 +0000 (02:08 +0000)]
I hope this fixes a md3 tag bug, but don't know

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

17 years agomoved SV_FatPVS to model code
havoc [Mon, 11 Aug 2003 12:20:51 +0000 (12:20 +0000)]
moved SV_FatPVS to model code

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

17 years agomoved RecursiveLightPoint code to model_brush.c (model->brush.LightPoint), removing...
havoc [Sun, 10 Aug 2003 20:03:05 +0000 (20:03 +0000)]
moved RecursiveLightPoint code to model_brush.c (model->brush.LightPoint), removing it from r_light.c and sv_light.c (now no longer needed)
made LightPoint able to return quake3 lightgrid data (diffuse color and direction in addition to ambient)

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

17 years ago*** empty log message ***
havoc [Sun, 10 Aug 2003 19:58:45 +0000 (19:58 +0000)]
*** empty log message ***

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

17 years agoQ3BSP collisions implemented (although not for patches, which aren't supported anyway...
havoc [Sun, 10 Aug 2003 13:50:00 +0000 (13:50 +0000)]
Q3BSP collisions implemented (although not for patches, which aren't supported anyway, yet, and this is definitely not tested yet)

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

17 years agopatch supplied by Toddd
havoc [Sat, 9 Aug 2003 17:57:02 +0000 (17:57 +0000)]
patch supplied by Toddd
changed GAME_BATTLEMECH quit messages
now knows about deathmatch and rambo modes in GAME_BATTLEMECH

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

17 years agochange GAME_BATTLEMECH gamedir to "base" (patch supplied by Toddd)
havoc [Sat, 9 Aug 2003 17:54:27 +0000 (17:54 +0000)]
change GAME_BATTLEMECH gamedir to "base" (patch supplied by Toddd)

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

17 years agoredesigned blood effects (now looks like droplets until they hit a surface)
havoc [Sat, 9 Aug 2003 17:01:04 +0000 (17:01 +0000)]
redesigned blood effects (now looks like droplets until they hit a surface)
added decals for bullet impacts, explosions, plasma, etc
added cl_particles_quality cvar (cranks up the number of particles, reducing their alpha, making softer effects)
removed cl_particles_blood_size and cl_particles_smoke_size cvars

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

17 years agofixed loadgame bug with edict references to later edicts (d was pointing at the old...
havoc [Sat, 9 Aug 2003 16:56:06 +0000 (16:56 +0000)]
fixed loadgame bug with edict references to later edicts (d was pointing at the old address, redesigned how it works to fix this)

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

17 years ago*** empty log message ***
havoc [Fri, 8 Aug 2003 22:23:49 +0000 (22:23 +0000)]
*** empty log message ***

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

17 years agofixed compile errors
havoc [Fri, 8 Aug 2003 22:22:30 +0000 (22:22 +0000)]
fixed compile errors

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

17 years agosample implementation of QC replacement physics (already available on website, but...
havoc [Fri, 8 Aug 2003 22:19:01 +0000 (22:19 +0000)]
sample implementation of QC replacement physics (already available on website, but it might as well become a maintainable thing in cvs)

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

17 years agoreverted noclip movement to quake behavior (commented out the free movement call...
havoc [Fri, 8 Aug 2003 22:06:08 +0000 (22:06 +0000)]
reverted noclip movement to quake behavior (commented out the free movement call) to fix Cannon Fodder Quake ( qexpo.com/booths.php?id=5 )
ported sv_user.qc to C (C -> QC -> C again) because it greatly reduces the amount of code and makes it a bit more maintainable

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

17 years agomultiplayer-only games (Transfusion and so on) now start playing demos as usual,...
havoc [Thu, 7 Aug 2003 11:01:38 +0000 (11:01 +0000)]
multiplayer-only games (Transfusion and so on) now start playing demos as usual, rather than starting a server at startup (unless dedicated or -listen is used)

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

17 years agofix a warning
havoc [Thu, 7 Aug 2003 10:56:24 +0000 (10:56 +0000)]
fix a warning

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

17 years agosimulated packet loss (cl_fakepacketloss_receive, cl_fakepacketloss_send, sv_fakepack...
havoc [Thu, 7 Aug 2003 10:44:20 +0000 (10:44 +0000)]
simulated packet loss (cl_fakepacketloss_receive, cl_fakepacketloss_send, sv_fakepacketloss_receive, sv_fakepacketloss_send) and ping (cl_fakelocalping_min, cl_fakelocalping_max) for network testing (or to handicap oneself in a local game)

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

17 years ago*** empty log message ***
havoc [Thu, 7 Aug 2003 10:41:28 +0000 (10:41 +0000)]
*** empty log message ***

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

17 years agosigh, one more thing I forgot to commit :(
havoc [Thu, 7 Aug 2003 10:38:26 +0000 (10:38 +0000)]
sigh, one more thing I forgot to commit :(

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

17 years agoworking code is better than broken code
havoc [Wed, 6 Aug 2003 16:33:26 +0000 (16:33 +0000)]
working code is better than broken code
code that compiles is good too...
(fix bugs/unfinished code in the DPPROTOCOL_VERSION4 commit)

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

17 years agoupgraded network protocol to DPPROTOCOL_VERSION4 - this means partial entity updates...
havoc [Wed, 6 Aug 2003 13:16:48 +0000 (13:16 +0000)]
upgraded network protocol to DPPROTOCOL_VERSION4 - this means partial entity updates are now supported (limited bandwidth entity updates), although the "rate" cvar stuff has not been implemented yet...  it also means entirely dynamic resizing of arrays in the server's entity database per client, so memory usage goes *WAY* down (used to be 256mb for 64 players, no matter what map/mod, now entirely adaptive as the game goes)
svs.clients gone, replaced with svs.connectedclients (similar idea except this is an array of pointers, and they are NULL for any unconnected client slots), this means entirely dynamic memory usage depending on number of clients (at least in the server; the client still needs fixing), this also means "maxplayers" is now a cvar (sv_maxplayers internally), not a command
some fixes/cleanups/tweaks (like proper setup of default maxplayers and deathmatch cvar in multiplayer-only games incase someone starts a map from console right away without using the menus)

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

17 years ago*** empty log message ***
havoc [Wed, 6 Aug 2003 13:11:33 +0000 (13:11 +0000)]
*** empty log message ***

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

17 years agooptimized polygon collision code a bit (optimized node side comparison)
havoc [Wed, 6 Aug 2003 10:22:10 +0000 (10:22 +0000)]
optimized polygon collision code a bit (optimized node side comparison)

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

17 years agoadded MOVE_WORLDONLY movement type
havoc [Sun, 3 Aug 2003 13:20:27 +0000 (13:20 +0000)]
added MOVE_WORLDONLY movement type
now does vis traces using MOVE_WORLDONLY to get a significant speed boost (back to the way it was before) and hopefully prevent any problems with transparent solid bmodels blocking visibility of
entities

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

17 years ago*** empty log message ***
havoc [Sun, 3 Aug 2003 13:05:22 +0000 (13:05 +0000)]
*** empty log message ***

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

17 years agofix skin loading on mdl (and probably md2) models by not setting numskins unless...
havoc [Sun, 3 Aug 2003 13:04:04 +0000 (13:04 +0000)]
fix skin loading on mdl (and probably md2) models by not setting numskins unless skin file override is happening

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

17 years agocorrected a few LittleLongs to LittleFloat in md3 loading (EEP those were bad)
havoc [Thu, 31 Jul 2003 00:26:34 +0000 (00:26 +0000)]
corrected a few LittleLongs to LittleFloat in md3 loading (EEP those were bad)
.skin loading is now able to parse the quake3 format, and uses "common/nodraw" or "textures/common/nodraw" for the invisible parts, this also meant supporting replacement tag names in the .skin files...  so that's implemented as well (quite difficult)
COM_ParseToken upgraded to be able to parse .skin files (now identifies more single character tokens, and can return newlines if desired - this required patching lots of code to pass false to it)
added beginnings of support for DPPROTOCOL_VERSION4 in client (I.E. does nothing right now because the server speaks DPPROTOCOL_VERSION3)

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

17 years ago*** empty log message ***
havoc [Thu, 31 Jul 2003 00:25:40 +0000 (00:25 +0000)]
*** empty log message ***

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

17 years agosimplified dlight fading code
havoc [Thu, 31 Jul 2003 00:16:05 +0000 (00:16 +0000)]
simplified dlight fading code

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