]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
20 years agonow loads md3 tags
havoc [Tue, 22 Jul 2003 20:02:16 +0000 (20:02 +0000)]
now loads md3 tags

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

20 years agofixed TE_BLOOD2 (by making it go away, it was not used by anyone, now an empty slot...
havoc [Tue, 22 Jul 2003 19:23:37 +0000 (19:23 +0000)]
fixed TE_BLOOD2 (by making it go away, it was not used by anyone, now an empty slot named TE_UNUSED1)

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

20 years agocollision code cleanups (model->brush.TraceBox is now used for everything except...
havoc [Tue, 22 Jul 2003 18:50:38 +0000 (18:50 +0000)]
collision code cleanups (model->brush.TraceBox is now used for everything except of course bbox collisions which use Collision_ClipTrace_Box)

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

20 years agoget rid of bobbing when dead
havoc [Tue, 22 Jul 2003 18:45:55 +0000 (18:45 +0000)]
get rid of bobbing when dead

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

20 years agoadded VectorLerp
havoc [Tue, 22 Jul 2003 18:44:34 +0000 (18:44 +0000)]
added VectorLerp

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

20 years agoadded Q2 and Q3 contents flags
havoc [Tue, 22 Jul 2003 18:42:43 +0000 (18:42 +0000)]
added Q2 and Q3 contents flags

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

20 years agoviewmodels should not emit dlights (they spawn around 0 0 0), thanks to Tomaz for...
havoc [Tue, 22 Jul 2003 18:12:51 +0000 (18:12 +0000)]
viewmodels should not emit dlights (they spawn around 0 0 0), thanks to Tomaz for reporting this

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

20 years agogl_flashblend 1 now disables model dlighting like it was supposed to (thanks to Tomaz...
havoc [Tue, 22 Jul 2003 18:08:08 +0000 (18:08 +0000)]
gl_flashblend 1 now disables model dlighting like it was supposed to (thanks to Tomaz for reporting this)

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

20 years agofix major editing mistake in Mod_LoadSkinFrame (it was using basepixels_width/height...
havoc [Tue, 22 Jul 2003 17:22:21 +0000 (17:22 +0000)]
fix major editing mistake in Mod_LoadSkinFrame (it was using basepixels_width/height for nmappixels), thanks to Tomaz for finding this bug

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

20 years agoadd a couple Mem_CheckSentinelsGlobal calls to loadimagepixels when developer_memoryd...
havoc [Tue, 22 Jul 2003 16:35:40 +0000 (16:35 +0000)]
add a couple Mem_CheckSentinelsGlobal calls to loadimagepixels when developer_memorydebug is on (I really can't imagine these ever being needed, but might as well check)

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

20 years agouse proper string for conn->address when accepting a new client (otherwise it could...
havoc [Tue, 22 Jul 2003 16:31:39 +0000 (16:31 +0000)]
use proper string for conn->address when accepting a new client (otherwise it could easily be so bogus as to trash the netconn structure)
thanks very much to Tomaz for tracking down this major bug

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

20 years agoexpose the developer_memory and developer_memorydebug cvars for use in other modules
havoc [Tue, 22 Jul 2003 16:28:27 +0000 (16:28 +0000)]
expose the developer_memory and developer_memorydebug cvars for use in other modules

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

20 years agotwo more dpzoo items
havoc [Tue, 22 Jul 2003 00:46:50 +0000 (00:46 +0000)]
two more dpzoo items

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

20 years agothanks to Tomaz for pestering me about the fact his last project files didn't get...
havoc [Tue, 22 Jul 2003 00:41:57 +0000 (00:41 +0000)]
thanks to Tomaz for pestering me about the fact his last project files didn't get committed somehow (I KNOW I did commit it!  but it didn't stick somehow)

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

20 years agomore changes
havoc [Mon, 21 Jul 2003 22:36:38 +0000 (22:36 +0000)]
more changes

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

20 years agosome more battlemech related todo items
havoc [Mon, 21 Jul 2003 22:24:03 +0000 (22:24 +0000)]
some more battlemech related todo items

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

20 years agoadded a battlemech bug report
havoc [Mon, 21 Jul 2003 21:26:10 +0000 (21:26 +0000)]
added a battlemech bug report

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

20 years ago*** empty log message ***
havoc [Mon, 21 Jul 2003 20:48:44 +0000 (20:48 +0000)]
*** empty log message ***

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

20 years agofix an error in a last minute change (was using maxcontentlength in Write, which...
havoc [Mon, 21 Jul 2003 04:15:18 +0000 (04:15 +0000)]
fix an error in a last minute change (was using maxcontentlength in Write, which takes contentlength)

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

20 years agoskip over NULL sockets in cl_sockets and sv_sockets lists
havoc [Mon, 21 Jul 2003 04:04:31 +0000 (04:04 +0000)]
skip over NULL sockets in cl_sockets and sv_sockets lists

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

20 years agopatch up some major cracks in the armor of the functions (they now don't like being...
havoc [Mon, 21 Jul 2003 04:03:12 +0000 (04:03 +0000)]
patch up some major cracks in the armor of the functions (they now don't like being passed NULL for anything)

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

20 years agomarked gl_texturemode bug as done (apparently I fixed it at some point long ago and...
havoc [Sun, 20 Jul 2003 23:21:40 +0000 (23:21 +0000)]
marked gl_texturemode bug as done (apparently I fixed it at some point long ago and forgot about fixing it), thanks to Vic for noticing this

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

20 years agoadded SV_PointContents
havoc [Sat, 19 Jul 2003 17:53:04 +0000 (17:53 +0000)]
added SV_PointContents
moved PointContents and FindNonSolidLocation function pointers into brush from brushq1
added TraceBox function pointer to brush (but no implementations of it yet)

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

20 years ago*** empty log message ***
havoc [Sat, 19 Jul 2003 17:51:39 +0000 (17:51 +0000)]
*** empty log message ***

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

20 years agothanks to Tomaz for updating the project files
havoc [Fri, 18 Jul 2003 21:20:03 +0000 (21:20 +0000)]
thanks to Tomaz for updating the project files

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

20 years ago*** empty log message ***
havoc [Fri, 18 Jul 2003 19:42:08 +0000 (19:42 +0000)]
*** empty log message ***

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

20 years agofinally I decided to commit my todo list, for whoever wants to contribute to the...
havoc [Fri, 18 Jul 2003 18:40:01 +0000 (18:40 +0000)]
finally I decided to commit my todo list, for whoever wants to contribute to the effort of finishing items on it
NOTE: I sort this periodically, so if any items are out of order they will be sorted later

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

20 years agonow loads q3 bsp (but can't render it or collide with it, so don't try it)
havoc [Fri, 18 Jul 2003 17:24:44 +0000 (17:24 +0000)]
now loads q3 bsp (but can't render it or collide with it, so don't try it)

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

20 years agomoved all type-specific model fields to respective structures (alias, sprite, brush)
havoc [Thu, 17 Jul 2003 14:57:05 +0000 (14:57 +0000)]
moved all type-specific model fields to respective structures (alias, sprite, brush)
renamed model_t brush to brushq1, and created brush, brushq2, brushq3, currently brush only has entities, all else is type specific
wrote the beginnings of a q3 bsp loader (and of course the headers)
added functions CL_PointContents and CL_FindNonSolidLocation to simplify queries of world model (and make it more maintainable when q3bsp support is finished)
added r_shadow_glossintensity cvar (default 1) for glossmap textures
added r_shadow_gloss2intensity cvar (default 0.25) for forced gloss

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

20 years agoturn down optimizations to -O2 because some versions of gcc are buggy on higher settings
havoc [Tue, 15 Jul 2003 09:09:24 +0000 (09:09 +0000)]
turn down optimizations to -O2 because some versions of gcc are buggy on higher settings

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

20 years agoincrease number of digits for memlist reports
havoc [Tue, 15 Jul 2003 09:07:27 +0000 (09:07 +0000)]
increase number of digits for memlist reports

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

20 years agojpeg screenshot support in cl_avidemo recording
havoc [Tue, 15 Jul 2003 09:06:38 +0000 (09:06 +0000)]
jpeg screenshot support in cl_avidemo recording

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

20 years agoadded r_lightning.c to move the lightning beam rendering code out of cl_main.c
havoc [Mon, 14 Jul 2003 15:46:58 +0000 (15:46 +0000)]
added r_lightning.c to move the lightning beam rendering code out of cl_main.c
shrunk entity_t struct a bit (by removing some stuff from persistent which had similar/identical values in render)
restructured/refactored some of entity relinking (now all relinking happens in cl_main.c where it belongs, moved viewmodel stuff out of view code)
restructured how viewmodels are handled
streamlined/cleanedup/refactored V_CalcRefdef (and merged in V_UpdateBlends and V_AddIdle and V_CalcBob)

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

20 years agonow reports resamplesfx calls that don't involve resampling (of course only if develo...
havoc [Mon, 14 Jul 2003 15:38:23 +0000 (15:38 +0000)]
now reports resamplesfx calls that don't involve resampling (of course only if developer is on)
now reports if memory allocation failed for a sound during loading

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

20 years agoFix the event mask so that the gamma is reset when DP loses the focus or
rain [Mon, 14 Jul 2003 08:23:51 +0000 (08:23 +0000)]
Fix the event mask so that the gamma is reset when DP loses the focus or
the pointer leaves the window.

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

20 years agonow defaults to 20% brightness conback because I got the first of many reports of...
havoc [Mon, 14 Jul 2003 08:21:52 +0000 (08:21 +0000)]
now defaults to 20% brightness conback because I got the first of many reports of 'broken console'

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

20 years agoadded scr_conbrightness cvar
havoc [Mon, 14 Jul 2003 07:48:16 +0000 (07:48 +0000)]
added scr_conbrightness cvar
added scr_conspeed, scr_conalpha, and scr_conbrightness cvars to options menu
moved definitions and externs of scr_conspeed, scr_conalpha, and scr_conbrightness cvars to cl_screen.c/screen.h

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

20 years agofix loading of skins that end in ".tga" or similar (now strips image extensions off...
havoc [Mon, 14 Jul 2003 07:46:44 +0000 (07:46 +0000)]
fix loading of skins that end in ".tga" or similar (now strips image extensions off the shader name before loading the textures)

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

20 years agoadded some (untested) terrain code for whomever cares
havoc [Sun, 13 Jul 2003 17:54:42 +0000 (17:54 +0000)]
added some (untested) terrain code for whomever cares

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

20 years agocompare coop.value instead of coop.integer
havoc [Sun, 13 Jul 2003 17:53:50 +0000 (17:53 +0000)]
compare coop.value instead of coop.integer
(no difference in any mod I know of, but...)

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

20 years agoadded a very important part of GAME_GOODVSBAD2 support (it was not in the gamelist...
havoc [Sun, 13 Jul 2003 17:49:10 +0000 (17:49 +0000)]
added a very important part of GAME_GOODVSBAD2 support (it was not in the gamelist array and thus its levels were not listed)

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

20 years agoGL_EXT_texture_filter_anisotropic support (thanks zinx!)
havoc [Sun, 13 Jul 2003 10:22:32 +0000 (10:22 +0000)]
GL_EXT_texture_filter_anisotropic support (thanks zinx!)

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

20 years agoslight simplification of fog layer in alias skins
havoc [Sun, 13 Jul 2003 04:20:50 +0000 (04:20 +0000)]
slight simplification of fog layer in alias skins

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

20 years agofixed a severe bug in texcoord2f[] reading in Mod_BuildTextureVectorsAndNormals
havoc [Sun, 13 Jul 2003 04:09:47 +0000 (04:09 +0000)]
fixed a severe bug in texcoord2f[] reading in Mod_BuildTextureVectorsAndNormals

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

20 years agofix a bunch of things that should have been checking if the model (usually cl.worldmo...
havoc [Sat, 12 Jul 2003 16:50:07 +0000 (16:50 +0000)]
fix a bunch of things that should have been checking if the model (usually cl.worldmodel) was not NULL before calling its functions

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

20 years agonow sends nops to server as unreliable, to avoid trashing the reliable packet system...
havoc [Sat, 12 Jul 2003 16:49:09 +0000 (16:49 +0000)]
now sends nops to server as unreliable, to avoid trashing the reliable packet system, this fixed connecting through NAT (!)

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

20 years agoNetConn_Write should print packets even if LHNET_Write returns 0
havoc [Sat, 12 Jul 2003 15:05:33 +0000 (15:05 +0000)]
NetConn_Write should print packets even if LHNET_Write returns 0

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

20 years agoadded GL_HALFLIFE_MAP_CVAR extension to list (the cvar is ancient)
havoc [Sat, 12 Jul 2003 14:59:53 +0000 (14:59 +0000)]
added GL_HALFLIFE_MAP_CVAR extension to list (the cvar is ancient)

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

20 years agoadded .ent file loading to client
havoc [Sat, 12 Jul 2003 14:57:20 +0000 (14:57 +0000)]
added .ent file loading to client

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

20 years agoadded DP_GFX_EXTERNALTEXTURES extension to list
havoc [Sat, 12 Jul 2003 10:01:17 +0000 (10:01 +0000)]
added DP_GFX_EXTERNALTEXTURES extension to list

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

20 years agogot rid of frags per hour and time connected in scoreboard (both full size and mini...
havoc [Sat, 12 Jul 2003 03:09:32 +0000 (03:09 +0000)]
got rid of frags per hour and time connected in scoreboard (both full size and mini) because both depended on scoreboard_t->entertime (which has been removed as it was not accurate)

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

20 years agoall outputs of Mod_BuildTextureVectorsAndNormals are now optional
havoc [Sat, 12 Jul 2003 03:07:49 +0000 (03:07 +0000)]
all outputs of Mod_BuildTextureVectorsAndNormals are now optional
slightly optimized Mod_BuildTextureVectorsAndNormals

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

20 years agoadded cvars r_lerpsprites, r_lerpmodels, and r_waterscroll (and to menu as well)
havoc [Fri, 11 Jul 2003 07:45:10 +0000 (07:45 +0000)]
added cvars r_lerpsprites, r_lerpmodels, and r_waterscroll (and to menu as well)

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

20 years agoadded a note about another kind of terrain strip and documented code for generating...
havoc [Fri, 11 Jul 2003 07:44:17 +0000 (07:44 +0000)]
added a note about another kind of terrain strip and documented code for generating the strips

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

20 years agoerr I guess BuildGammaTable8 was used!
havoc [Thu, 10 Jul 2003 04:33:57 +0000 (04:33 +0000)]
err I guess BuildGammaTable8 was used!

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

20 years ago#if 0'd out a few unused functions
havoc [Thu, 10 Jul 2003 04:30:53 +0000 (04:30 +0000)]
#if 0'd out a few unused functions

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

20 years agoserver no longer responds to any netquake control packets (must use netchan-style...
havoc [Thu, 10 Jul 2003 04:21:51 +0000 (04:21 +0000)]
server no longer responds to any netquake control packets (must use netchan-style commands to connect)
connection process now uses getchallenge-connect approach to prevent join floods (who knows maybe I fixed NAT by doing this too, somehow)
improved some of the command packet handling

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

20 years agoadded decals to effects options menu
havoc [Thu, 10 Jul 2003 04:19:22 +0000 (04:19 +0000)]
added decals to effects options menu

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

20 years agoadded a tip to runaway loop error (suggesting use of the profile command)
havoc [Thu, 10 Jul 2003 04:15:39 +0000 (04:15 +0000)]
added a tip to runaway loop error (suggesting use of the profile command)
made all possible exit paths of the execution update profile counts properly before exiting

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

20 years agoadded 'readable' version of a particular line of code in shadow volume building
havoc [Thu, 10 Jul 2003 04:12:34 +0000 (04:12 +0000)]
added 'readable' version of a particular line of code in shadow volume building

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

20 years agocheck svc_setview against MAX_EDICTS
havoc [Tue, 8 Jul 2003 10:06:53 +0000 (10:06 +0000)]
check svc_setview against MAX_EDICTS

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

20 years agofixed a buffer overflow in SV_BroadcastPrintf
havoc [Tue, 8 Jul 2003 10:04:59 +0000 (10:04 +0000)]
fixed a buffer overflow in SV_BroadcastPrintf

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

20 years agomore of the fixes to clients joining and properly setting up edicts (forgot to commit...
havoc [Tue, 8 Jul 2003 10:03:46 +0000 (10:03 +0000)]
more of the fixes to clients joining and properly setting up edicts (forgot to commit this with sv_main.c and pr_edict.c)

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

20 years agofixed a lot of problems with filling out client edicts properly (or rather, not filli...
havoc [Tue, 8 Jul 2003 10:00:47 +0000 (10:00 +0000)]
fixed a lot of problems with filling out client edicts properly (or rather, not filling them out properly) which mostly appeared when doing changelevel or restart
fixed nameless player joins/exits (finally!)
code cleanups
other little things stomped
took another stab at fixing bogus entities being linked into areagrid (presumably caused by SV_IncreaseEdicts), hopefully fixing it this time (as if that wasn't the hope with all the previous attempts)

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

20 years agosome enhancements to timeout handling inspired by ProQuake fixes - net_connecttimeout...
havoc [Tue, 8 Jul 2003 09:54:27 +0000 (09:54 +0000)]
some enhancements to timeout handling inspired by ProQuake fixes - net_connecttimeout cvar (a short timeout until first packet in connection), net_messagerejointimeout cvar (only kicks off old client matching peeraddress if the client has reached this message timeout)

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

20 years agoredesigned much of PF_VarString to clean it up (shorter, faster, etc)
havoc [Tue, 8 Jul 2003 09:51:12 +0000 (09:51 +0000)]
redesigned much of PF_VarString to clean it up (shorter, faster, etc)

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

20 years agofixed model shadows going through walls (by making everything use a constant project...
havoc [Tue, 8 Jul 2003 09:50:21 +0000 (09:50 +0000)]
fixed model shadows going through walls (by making everything use a constant project distance - clearly there are other solutions to the problem of a model using too low a project distance, but this works...)
some code shuffling (mostly to match up with a previous version I was comparing against)

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

20 years agorenamed GAME_GOODVSBAD2 executable to gvb2
havoc [Sun, 6 Jul 2003 07:50:07 +0000 (07:50 +0000)]
renamed GAME_GOODVSBAD2 executable to gvb2

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

20 years agoreverted RunParticleEffect appearance in non-GOODVSBAD2 mode because they were far...
havoc [Sun, 6 Jul 2003 07:49:39 +0000 (07:49 +0000)]
reverted RunParticleEffect appearance in non-GOODVSBAD2 mode because they were far too different looking

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

20 years agoallow traceline to take unusual values for nomonsters parameter again (like original...
havoc [Sun, 6 Jul 2003 07:48:57 +0000 (07:48 +0000)]
allow traceline to take unusual values for nomonsters parameter again (like original quake traceline)

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

20 years agobecause gethostbyname("0.0.0.0") fails in windows, the fallback was being called...
havoc [Fri, 4 Jul 2003 01:36:14 +0000 (01:36 +0000)]
because gethostbyname("0.0.0.0") fails in windows, the fallback was being called and it was broken, replaced it with a working one based on sscanf

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

20 years agofix htons warnings in MSVC (thanks to Tomaz for reporting this, apparently MSVC warns...
havoc [Thu, 3 Jul 2003 23:56:12 +0000 (23:56 +0000)]
fix htons warnings in MSVC (thanks to Tomaz for reporting this, apparently MSVC warns about passing int to functions taking unsigned short)

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

20 years agofixed numerous bugs with explosion hull shape (now looks consistently correct for...
havoc [Thu, 3 Jul 2003 23:40:07 +0000 (23:40 +0000)]
fixed numerous bugs with explosion hull shape (now looks consistently correct for the first time ever)

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

20 years agoTomaz updated the darkplaces project file (thanks!)
havoc [Thu, 3 Jul 2003 21:23:09 +0000 (21:23 +0000)]
Tomaz updated the darkplaces project file (thanks!)

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

20 years agoambients should be forced to loop as well
havoc [Thu, 3 Jul 2003 07:01:34 +0000 (07:01 +0000)]
ambients should be forced to loop as well

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

20 years agosounds now follow their owner (so riding a lift doesn't leave the sound at the start...
havoc [Thu, 3 Jul 2003 06:59:54 +0000 (06:59 +0000)]
sounds now follow their owner (so riding a lift doesn't leave the sound at the start position, for example)
static sounds now automatically loop even if they have no cue list

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

20 years agogot rid of sv_predict because it caused too many problems with mods trying to have...
havoc [Thu, 3 Jul 2003 00:45:48 +0000 (00:45 +0000)]
got rid of sv_predict because it caused too many problems with mods trying to have multiple entities attached to eachother

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

20 years agoadded snd_staticvolume to snd_null.c
havoc [Wed, 2 Jul 2003 05:58:28 +0000 (05:58 +0000)]
added snd_staticvolume to snd_null.c
fixed prototype of SND_Spatialize in sound.h

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

20 years agoadded support for GAME_GOODVSBAD2
havoc [Wed, 2 Jul 2003 05:48:36 +0000 (05:48 +0000)]
added support for GAME_GOODVSBAD2
moved Hostname option from Player Setup to server setup menu, and renamed it "Server name"
added snd_staticvolume cvar to control volume of static sounds

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

20 years agoadded GAME_GOODVSBAD2 and GAME_TEU
havoc [Wed, 2 Jul 2003 05:44:34 +0000 (05:44 +0000)]
added GAME_GOODVSBAD2 and GAME_TEU

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

20 years agoredesigned menuplyr handling again - now allocates memory for it instead of using...
havoc [Wed, 2 Jul 2003 03:50:33 +0000 (03:50 +0000)]
redesigned menuplyr handling again - now allocates memory for it instead of using a static buffer
merged together some menuplyr code

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

20 years agochanged brush model API - now uses function pointers for some of the brush model...
havoc [Wed, 2 Jul 2003 02:26:26 +0000 (02:26 +0000)]
changed brush model API - now uses function pointers for some of the brush model functions (intent to transition over to this completely)

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

20 years agoredesigned how the renderer handles much of it's state (R_Mesh_State turned into...
havoc [Tue, 1 Jul 2003 18:43:42 +0000 (18:43 +0000)]
redesigned how the renderer handles much of it's state (R_Mesh_State turned into R_Mesh_State_Textures - no longer handles blendfunc and depthmask and depthtest and vertex pointers and so on)
batching is gone
VAR support is gone (but may make a return someday)
dynamic shadow volumes are now more optimized (removal of unused verts)
added a glossary of terminology to the start of r_shadow.c
added gl_mesh_testarrayelement and gl_mesh_testmanualfeeding cvars for testing/debugging purposes in the backend (incase vertex array state is a mess)
added gl_paranoid cvar (enables CHECKGLERROR and verifies geometry before rendering it)
added gl_printcheckerror cvar (prints location of every CHECKGLERROR statement as it executes, for tracking code flow)

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

20 years agoextremely minor optimization to linking edicts into area grid
havoc [Tue, 1 Jul 2003 18:32:11 +0000 (18:32 +0000)]
extremely minor optimization to linking edicts into area grid

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

20 years agoDisable singleplayer menu in Nexuiz (just like Transfusion does)
havoc [Tue, 1 Jul 2003 02:59:36 +0000 (02:59 +0000)]
Disable singleplayer menu in Nexuiz (just like Transfusion does)

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

20 years agoreverted SV_Physics_Step to exactly match quake (shorter though)
havoc [Sat, 28 Jun 2003 23:09:08 +0000 (23:09 +0000)]
reverted SV_Physics_Step to exactly match quake (shorter though)
removed a clear velocity statement in SV_Physics_Toss
some whitespace cleanup

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

20 years agofix timedemos (it was not starting the timer because it was misjudging what the next...
havoc [Fri, 27 Jun 2003 20:25:54 +0000 (20:25 +0000)]
fix timedemos (it was not starting the timer because it was misjudging what the next frame number is)

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

20 years agoa prototype for the long dead function S_Alloc removed (thanks to Vic for mentioning...
havoc [Thu, 26 Jun 2003 16:51:35 +0000 (16:51 +0000)]
a prototype for the long dead function S_Alloc removed (thanks to Vic for mentioning this)

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

20 years agofix a bug in non-monster interpolation code (it was checking RENDER_STEP and doing...
havoc [Thu, 26 Jun 2003 16:21:20 +0000 (16:21 +0000)]
fix a bug in non-monster interpolation code (it was checking RENDER_STEP and doing a really bad job of it too, thanks to Vic for reporting this bug)

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

20 years agoReceivedMessage now sets lastMessageTime when a valid message or ack is received...
havoc [Tue, 24 Jun 2003 15:10:58 +0000 (15:10 +0000)]
ReceivedMessage now sets lastMessageTime when a valid message or ack is received, this fixes the timeout problems (yes, all of them)

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

20 years agoinitialize the various server properties when parsing an infoResponse incase some...
havoc [Sun, 22 Jun 2003 10:31:36 +0000 (10:31 +0000)]
initialize the various server properties when parsing an infoResponse incase some are not set

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

20 years agoForgot to include lhnet in the previous commit and tried to abort the commit but...
havoc [Sun, 22 Jun 2003 10:07:16 +0000 (10:07 +0000)]
Forgot to include lhnet in the previous commit and tried to abort the commit but apparently it was nearly done (which messed up netconn.[ch] such that I could not add or delete netconn.[ch], so I deleted that from cvs and added it again)

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

20 years agoThis is the network rewrite I've been working on for over a week; multiplayer should...
havoc [Sun, 22 Jun 2003 09:58:55 +0000 (09:58 +0000)]
This is the network rewrite I've been working on for over a week; multiplayer should work through NAT routers now.
A few other commits (a new clientcolors extension for example) have snuck their way into this commit because they were waiting while the cvs was down.

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

20 years agoreport invalid edicts when attempting to link them
havoc [Sun, 22 Jun 2003 09:55:02 +0000 (09:55 +0000)]
report invalid edicts when attempting to link them

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

20 years agoadded developer_memorydebug cvar (does CheckSentinelsGlobal on all Mem_Alloc calls)
havoc [Sat, 21 Jun 2003 11:05:32 +0000 (11:05 +0000)]
added developer_memorydebug cvar (does CheckSentinelsGlobal on all Mem_Alloc calls)

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

20 years agoSbar_UpdateScoreboard was totally unused in quake, it's history (as are the arrays...
havoc [Mon, 9 Jun 2003 04:19:09 +0000 (04:19 +0000)]
Sbar_UpdateScoreboard was totally unused in quake, it's history (as are the arrays it used)

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

20 years agofix a couple EDICT_NUM errors that often happened when loading savegames with more...
havoc [Sun, 8 Jun 2003 05:47:20 +0000 (05:47 +0000)]
fix a couple EDICT_NUM errors that often happened when loading savegames with more than 256 entities

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

20 years agocleaned up Host_Error a bit
havoc [Sun, 8 Jun 2003 05:43:44 +0000 (05:43 +0000)]
cleaned up Host_Error a bit

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

20 years agofix SOLID_BSP with non-BSP model error that can occur after a Host_Error (fixed by...
havoc [Sun, 8 Jun 2003 05:42:58 +0000 (05:42 +0000)]
fix SOLID_BSP with non-BSP model error that can occur after a Host_Error (fixed by using Mod_CheckLoaded)

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

20 years agoKRIMZON_SV_PARSECLIENTCOMMAND extension (untested currently!)
havoc [Sat, 7 Jun 2003 19:21:07 +0000 (19:21 +0000)]
KRIMZON_SV_PARSECLIENTCOMMAND extension (untested currently!)

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