15 years agofix a bug that made rtlighting crash (thanks to Vic for reporting this)
havoc [Tue, 3 May 2005 18:30:12 +0000 (18:30 +0000)]
fix a bug that made rtlighting crash (thanks to Vic for reporting this)

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

15 years agoadded code for enabling GL_LINE_SMOOTH (antialiased lines) in r_showtris mode, but...
havoc [Tue, 3 May 2005 10:38:55 +0000 (10:38 +0000)]
added code for enabling GL_LINE_SMOOTH (antialiased lines) in r_showtris mode, but disabled because it wasn't a speed gain

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

15 years agodon't show extra time reports in r_speeds report when using r_showtris 1
havoc [Tue, 3 May 2005 10:36:20 +0000 (10:36 +0000)]
don't show extra time reports in r_speeds report when using r_showtris 1

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

15 years agoadded developer_texturelogging
havoc [Tue, 3 May 2005 05:06:41 +0000 (05:06 +0000)]
added developer_texturelogging
R_MarkEntities now updates r_refdef.worldentity visframe as well (for more internal consistency)

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

15 years agoa bit of cleanup
havoc [Sun, 1 May 2005 12:26:58 +0000 (12:26 +0000)]
a bit of cleanup

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

15 years agomoved r_shadow_ white and normal cubemaps to r_texture_
havoc [Sun, 1 May 2005 12:14:05 +0000 (12:14 +0000)]
moved r_shadow_ white and normal cubemaps to r_texture_

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

15 years agorelocated the CL_SendMove call to put it at the end of network parsing (and only...
havoc [Sat, 30 Apr 2005 07:14:37 +0000 (07:14 +0000)]
relocated the CL_SendMove call to put it at the end of network parsing (and only called if there was an svc_time message in this packet), this should greatly improve consistency of ping times and input sending (which was sometimes falling way behind with lag), no longer uses sys_ticrate to control input frequency
changed CL_TraceLine to CL_TraceBox and made it return a trace_t
worked on CL_ClientMovement function for clientside movement simulation (not working yet), this has many cl_movement* cvars associated with it which will be updated by the server at some point in the future
added (currently unused and not updated) cl_gravity and cl_slowmo cvars, which the server will be setting at some point in the future

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

15 years agomoved some Con_PrintToHistory code into Con_Print and reenabled talk.wav in GAME_NEXUIZ
havoc [Fri, 29 Apr 2005 02:40:37 +0000 (02:40 +0000)]
moved some Con_PrintToHistory code into Con_Print and reenabled talk.wav in GAME_NEXUIZ

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

15 years agoremoved an unused function I thought I removed in the previous commit
havoc [Sun, 24 Apr 2005 07:00:16 +0000 (07:00 +0000)]
removed an unused function I thought I removed in the previous commit

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

15 years agoslight cleanup of surface clipping code (got rid of a rather redundent function)
havoc [Sun, 24 Apr 2005 06:19:10 +0000 (06:19 +0000)]
slight cleanup of surface clipping code (got rid of a rather redundent function)
major bugfix to surface portal clipping, lights should hit all the right surfaces now

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

15 years agodon't apply dlights to opaque models (this was happening when flashblend is on)
havoc [Sun, 24 Apr 2005 05:24:30 +0000 (05:24 +0000)]
don't apply dlights to opaque models (this was happening when flashblend is on)
default dlight shadowing on

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

15 years agofixed CL_SendMove packet rate limiting to not have a heartattack when going from...
havoc [Sat, 23 Apr 2005 07:38:48 +0000 (07:38 +0000)]
fixed CL_SendMove packet rate limiting to not have a heartattack when going from singleplayer to multiplayer (this was causing the player to be stuck in place for a very long time)

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

15 years agoadded cl_capturevideo_sound (defaulted to 0) to allow enabling/disabling sound saving...
havoc [Thu, 21 Apr 2005 01:26:44 +0000 (01:26 +0000)]
added cl_capturevideo_sound (defaulted to 0) to allow enabling/disabling sound saving, with sound disabled you can save videos at a framerate your machine can't maintain (no sound sync to worry about)

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

15 years agoreimplemented rtlight portal culling (used for compiled rtlights, and can be used...
havoc [Wed, 20 Apr 2005 11:16:36 +0000 (11:16 +0000)]
reimplemented rtlight portal culling (used for compiled rtlights, and can be used for dlights but that is often a major speed loss)
added additional bounding box and triangle facing checks to rtlight compilation, triangles outside the box are no longer drawn

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

15 years agochanged rtlight compiled cluster list/pvs to leaf list/pvs to enable slightly more...
havoc [Wed, 20 Apr 2005 08:49:26 +0000 (08:49 +0000)]
changed rtlight compiled cluster list/pvs to leaf list/pvs to enable slightly more accurate culling

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

15 years agoenabled portals on q3bsp for a small (occasionally huge) fps increase
havoc [Wed, 20 Apr 2005 06:02:47 +0000 (06:02 +0000)]
enabled portals on q3bsp for a small (occasionally huge) fps increase

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

15 years agor_shadow_staticworldlights has mutated into r_shadow_realtime_world_compile, r_shadow...
havoc [Wed, 20 Apr 2005 05:33:29 +0000 (05:33 +0000)]
r_shadow_staticworldlights has mutated into r_shadow_realtime_world_compile, r_shadow_realtime_world_compilelight, r_shadow_realtime_world_compileshadow
added r_shadow_visiblelighting

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

15 years agofixed a stupid bug in SV_PushMove that made it ignore the first entity in the move box
havoc [Wed, 20 Apr 2005 01:12:46 +0000 (01:12 +0000)]
fixed a stupid bug in SV_PushMove that made it ignore the first entity in the move box
fixed a rotation check in SV_PushMove so that it would detect roll rotations without pitch/yaw

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

15 years agocleaned up transparency handling in q3 shaders, should fix many glitched jumppads...
havoc [Tue, 19 Apr 2005 08:00:18 +0000 (08:00 +0000)]
cleaned up transparency handling in q3 shaders, should fix many glitched jumppads and such

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

15 years agonow clears view to fog color if fog is enabled, this should cure fogging of sky in...
havoc [Mon, 18 Apr 2005 21:22:09 +0000 (21:22 +0000)]
now clears view to fog color if fog is enabled, this should cure fogging of sky in hlbsp

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

15 years agoclean up script init a bit, now starts nexuiz logo video and such only if there's...
havoc [Mon, 18 Apr 2005 21:21:00 +0000 (21:21 +0000)]
clean up script init a bit, now starts nexuiz logo video and such only if there's nothing to do

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

15 years agoreenabled hlbsp sky polygon rendering so that fogging works
havoc [Mon, 18 Apr 2005 20:50:57 +0000 (20:50 +0000)]
reenabled hlbsp sky polygon rendering so that fogging works

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

15 years agochanged crosshair_static default to 1
havoc [Mon, 18 Apr 2005 06:48:21 +0000 (06:48 +0000)]
changed crosshair_static default to 1

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

15 years agochanged in_pitch_min and in_pitch_max defaults to -90 and 90 respectively
havoc [Mon, 18 Apr 2005 06:47:40 +0000 (06:47 +0000)]
changed in_pitch_min and in_pitch_max defaults to -90 and 90 respectively

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

15 years agofixed the SU_ITEMS fix so that it doesn't trash the PROTOCOL_DARKPLACES6 parsing
havoc [Mon, 18 Apr 2005 02:21:48 +0000 (02:21 +0000)]
fixed the SU_ITEMS fix so that it doesn't trash the PROTOCOL_DARKPLACES6 parsing

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

15 years agofixed a bug in CL_ParseClientdata that was breaking on hipnotic demos
havoc [Sun, 17 Apr 2005 21:15:50 +0000 (21:15 +0000)]
fixed a bug in CL_ParseClientdata that was breaking on hipnotic demos

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

15 years agogl_texture_anisotropy now only affects TEXF_MIPMAP textures which should fix a number...
havoc [Sun, 17 Apr 2005 09:08:54 +0000 (09:08 +0000)]
gl_texture_anisotropy now only affects TEXF_MIPMAP textures which should fix a number of 'wandering off the lightmap' issues (as well as similar issues with model skins, as they are not mipmapped)

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

15 years agotexture images now take on the TEXF_FORCENEAREST and TEXF_FORCELINEAR flags from...
havoc [Sun, 17 Apr 2005 09:05:32 +0000 (09:05 +0000)]
texture images now take on the TEXF_FORCENEAREST and TEXF_FORCELINEAR flags from the textures placed in them (as was intended), so gl_texturemode changes
should no longer affect them

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

15 years agodefault to insert mode instead of replace mode in console
havoc [Sun, 17 Apr 2005 08:37:08 +0000 (08:37 +0000)]
default to insert mode instead of replace mode in console
get rid of stupid cursor right at end of line behavior in console, repeating characters from the previous edit line is annoying
allow typing characters > 126 in console

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

15 years agofix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)
havoc [Sun, 17 Apr 2005 08:33:17 +0000 (08:33 +0000)]
fix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)

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

15 years agodon't draw glow twice when gl_combine is on
havoc [Sun, 17 Apr 2005 08:32:21 +0000 (08:32 +0000)]
don't draw glow twice when gl_combine is on

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

15 years agofixed a stupid bug in Entityframe5_ExpandEdicts
havoc [Sat, 16 Apr 2005 21:30:13 +0000 (21:30 +0000)]
fixed a stupid bug in Entityframe5_ExpandEdicts

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

15 years agofix a crash when s->tag_entity is higher than current d->maxedicts
havoc [Sat, 16 Apr 2005 09:15:18 +0000 (09:15 +0000)]
fix a crash when s->tag_entity is higher than current d->maxedicts

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

15 years agochanged R_Shadow_RenderLighting to do full base+pants+shirt+gloss rendering in one...
havoc [Fri, 15 Apr 2005 08:37:47 +0000 (08:37 +0000)]
changed R_Shadow_RenderLighting to do full base+pants+shirt+gloss rendering in one call (will optimize the rendering itself later to merge some of the passes)

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

15 years agofix a bug in the early out case of R_Q1BSP_DrawLight
havoc [Fri, 15 Apr 2005 08:30:53 +0000 (08:30 +0000)]
fix a bug in the early out case of R_Q1BSP_DrawLight

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

15 years agoR_Q1BSP_GetLightInfo now uses BSP tree recursion as an optimization for a small speed...
havoc [Fri, 15 Apr 2005 08:21:11 +0000 (08:21 +0000)]
R_Q1BSP_GetLightInfo now uses BSP tree recursion as an optimization for a small speed gain

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

15 years agomade dland2.wav not play in GAME_NEXUIZ
havoc [Fri, 15 Apr 2005 08:18:26 +0000 (08:18 +0000)]
made dland2.wav not play in GAME_NEXUIZ
no longer runs physics on disconnected clients (quake did not run them), fixing the physics problems with frikbots, thanks to FrikaC for explanation of this problem

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

15 years ago-Added the parameter 'persistent'(naming?) to Draw_CachePic, which decides
black [Thu, 14 Apr 2005 20:45:08 +0000 (20:45 +0000)]
-Added the parameter 'persistent'(naming?) to Draw_CachePic, which decides
 whether the texture is loaded in texture memory directly or only on demand.
-Adapted all Draw_CachePic calls (I'll do some corrections, atm most of them
 pass persistent := false)

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

15 years agoLoadTGA is now more compliant with the TGA spec regarding colormaps (they can be...
havoc [Thu, 14 Apr 2005 08:27:36 +0000 (08:27 +0000)]
LoadTGA is now more compliant with the TGA spec regarding colormaps (they can be present even on a truecolor image, just not used by it) and attributebits (alpha is now ignored if attributebits is not 8 which fixes a number of malformed TGA files (though they still waste disk space) - note that attributebits is part of the attributes header byte)

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

15 years agorenamed r_shadow_cursor cvars to actually have the word cursor in their name like...
havoc [Mon, 11 Apr 2005 19:37:04 +0000 (19:37 +0000)]
renamed r_shadow_cursor cvars to actually have the word cursor in their name like they were supposed to

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

15 years agoremove unused variable
havoc [Mon, 11 Apr 2005 19:06:49 +0000 (19:06 +0000)]
remove unused variable

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

15 years ago-Changed the dpv buffer to 1 MB.
black [Mon, 11 Apr 2005 16:53:33 +0000 (16:53 +0000)]
-Changed the dpv buffer to 1 MB.

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

15 years agoimplemented playerclip and monsterclip brush support for q3bsp levels
havoc [Mon, 11 Apr 2005 02:27:30 +0000 (02:27 +0000)]
implemented playerclip and monsterclip brush support for q3bsp levels

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

15 years agochanged color codes to match Quake3
havoc [Mon, 11 Apr 2005 02:23:16 +0000 (02:23 +0000)]
changed color codes to match Quake3
changed chat coloring in Nexuiz to use yellow, instead of shifting to upper 128 characters, this should open up the possibility of 8bit fonts in Nexuiz (for multilingual chat)

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

15 years agosmoke no longer expands over time (eats fillrate and isn't very realistic)
havoc [Sun, 10 Apr 2005 16:53:42 +0000 (16:53 +0000)]
smoke no longer expands over time (eats fillrate and isn't very realistic)

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

15 years agofixed ut2003-style smoke ring effect on explosions (not that anyone uses this I assume)
havoc [Sun, 10 Apr 2005 15:46:47 +0000 (15:46 +0000)]
fixed ut2003-style smoke ring effect on explosions (not that anyone uses this I assume)

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

15 years agoreimplemented particle lighting, however it is not used (too slow)
havoc [Sun, 10 Apr 2005 15:36:33 +0000 (15:36 +0000)]
reimplemented particle lighting, however it is not used (too slow)
fixed a stupid bug in fogging of alpha blend and modulation blend

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

15 years agofixed a crash if decals are stuck to submodels when cl_entities expands
havoc [Sun, 10 Apr 2005 15:29:29 +0000 (15:29 +0000)]
fixed a crash if decals are stuck to submodels when cl_entities expands

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

15 years agoremoved unused leaf parameter on CompleteLightPoint
havoc [Sun, 10 Apr 2005 14:01:22 +0000 (14:01 +0000)]
removed unused leaf parameter on CompleteLightPoint

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

15 years agoUmm, I think this todo item (netconn) has been done some time ago.
black [Sat, 9 Apr 2005 20:11:40 +0000 (20:11 +0000)]
Umm, I think this todo item (netconn) has been done some time ago.

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

15 years agoAdded the DP_HALFLIFE_SPRITE QC extension
molivier [Thu, 7 Apr 2005 10:00:48 +0000 (10:00 +0000)]
Added the DP_HALFLIFE_SPRITE QC extension

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

15 years agofix 256 frame limit (stupid legacy bug in entity_state_t building code)
havoc [Wed, 6 Apr 2005 20:30:19 +0000 (20:30 +0000)]
fix 256 frame limit (stupid legacy bug in entity_state_t building code)

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

15 years agochanged cl_brushmodel_entities array from entity_render_t * to int, to fix a crash...
havoc [Wed, 6 Apr 2005 11:12:56 +0000 (11:12 +0000)]
changed cl_brushmodel_entities array from entity_render_t * to int, to fix a crash when cl_entities array expands

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

15 years agofixed a stupid typo in EntityFrame5_ExpandEdicts that caused a double free error
havoc [Wed, 6 Apr 2005 10:06:26 +0000 (10:06 +0000)]
fixed a stupid typo in EntityFrame5_ExpandEdicts that caused a double free error

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

15 years agofixed an error case in S_StartSound
havoc [Tue, 5 Apr 2005 22:23:17 +0000 (22:23 +0000)]
fixed an error case in S_StartSound

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

15 years agofix some crashes with fogged surfaces
havoc [Tue, 5 Apr 2005 20:28:07 +0000 (20:28 +0000)]
fix some crashes with fogged surfaces

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

15 years agomade CL_ExpandEntities cause an error if called before cl_entities is initialized
havoc [Tue, 5 Apr 2005 20:01:33 +0000 (20:01 +0000)]
made CL_ExpandEntities cause an error if called before cl_entities is initialized

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

15 years agoconsolidated many mempools to make memlist more readable (and very slightly reduce...
havoc [Tue, 5 Apr 2005 18:23:53 +0000 (18:23 +0000)]
consolidated many mempools to make memlist more readable (and very slightly reduce memory usage)
changed gltexture_t->identifier from a pointer to an array to reduce the number of allocations per texture (now 2-3 rather than 3-4)
made all MAX_EDICTS arrays in entityframe5_database_t adaptive size to reduce server memory usage

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

15 years agono longer uses SZ_Alloc for cmd_text buffer
havoc [Tue, 5 Apr 2005 17:31:37 +0000 (17:31 +0000)]
no longer uses SZ_Alloc for cmd_text buffer

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

15 years agoreduced client memory usage by 29MB by making cl_max_entities dynamic (starts out...
havoc [Tue, 5 Apr 2005 11:15:45 +0000 (11:15 +0000)]
reduced client memory usage by 29MB by making cl_max_entities dynamic (starts out at 256)
cleaned up cl_num_entities to be more generally useful, it is only increased by network entities, this should speed up some code (by using cl_num_entities instead of MAX_EDICTS or cl_max_entities)

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

15 years agofixed a unintended-water-scroll bug on transparent fullbright surfaces
havoc [Mon, 4 Apr 2005 19:33:09 +0000 (19:33 +0000)]
fixed a unintended-water-scroll bug on transparent fullbright surfaces

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

15 years agofix gl_combine 0 crashes (it was indexing the color vector as if it was a vertex...
havoc [Mon, 4 Apr 2005 18:46:20 +0000 (18:46 +0000)]
fix gl_combine 0 crashes (it was indexing the color vector as if it was a vertex property... wrong!)

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

15 years agooptimized surface rendering to surface->groupmesh->data_* array pointers directly...
havoc [Mon, 4 Apr 2005 16:01:17 +0000 (16:01 +0000)]
optimized surface rendering to surface->groupmesh->data_* array pointers directly instead of indexing them with surface->num_firstvertex, this allows fewer pointer changes (a small speed gain)
fixed stupid bug in q1bsp texture loading which was making all missing textures invisible
changed portal generation to not break when a portal is clipped away, this fixes a crash at render time with bogus portals
changed r_drawportals to only draw portals surrounding the visible leafs (speed gain, but also useful for debugging vis glitches)

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

15 years agoFixed getserversResponse parsing:
molivier [Mon, 4 Apr 2005 14:51:56 +0000 (14:51 +0000)]
Fixed getserversResponse parsing:
* serverquerycount was incremented even when it didn't query this server
* if the list contained a server that was already queried, the remaining servers were ignored

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

15 years ago-ServerList: Changed some if-else-chains to switch constructs.
black [Mon, 4 Apr 2005 13:03:54 +0000 (13:03 +0000)]
-ServerList: Changed some if-else-chains to switch constructs.
-Added a pointer check (!= NULL) to VM_strunzone.

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

15 years agoRemoved LoadLMPAs8Bit; the menu now uses LoadLMP directly
molivier [Mon, 4 Apr 2005 08:26:46 +0000 (08:26 +0000)]
Removed LoadLMPAs8Bit; the menu now uses LoadLMP directly

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

15 years agoFactorized LoadLMP and LoadLMPAs8Bit. Made a bunch of buffers const
molivier [Mon, 4 Apr 2005 05:40:51 +0000 (05:40 +0000)]
Factorized LoadLMP and LoadLMPAs8Bit. Made a bunch of buffers const

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

15 years ago-Changed HostCache to ServerList (and a few other pure name changes)
black [Sun, 3 Apr 2005 10:12:18 +0000 (10:12 +0000)]
-Changed HostCache to ServerList (and a few other pure name changes)

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

15 years agoAdded Quake 2 sprite support (.sp2 files). Added the corresponding QC extension ...
molivier [Sun, 3 Apr 2005 08:26:14 +0000 (08:26 +0000)]
Added Quake 2 sprite support (.sp2 files). Added the corresponding QC extension (DP_QUAKE2_SPRITE)

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

15 years agorewrote parts of Host_ServerFrame to make host_framerate cvar work again for The...
havoc [Sat, 2 Apr 2005 18:25:26 +0000 (18:25 +0000)]
rewrote parts of Host_ServerFrame to make host_framerate cvar work again for The Ascension Of Vigil

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

15 years agofix hl sprite types again
havoc [Sat, 2 Apr 2005 17:38:45 +0000 (17:38 +0000)]
fix hl sprite types again

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

15 years agofixed hl sprite types to properly handle the palette in each mode
havoc [Sat, 2 Apr 2005 16:49:28 +0000 (16:49 +0000)]
fixed hl sprite types to properly handle the palette in each mode

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

15 years agofixed hl sprite additive mode
havoc [Sat, 2 Apr 2005 16:20:34 +0000 (16:20 +0000)]
fixed hl sprite additive mode

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

15 years agofix hl sprite loading (stupid typo in handling sprite types)
havoc [Sat, 2 Apr 2005 16:04:10 +0000 (16:04 +0000)]
fix hl sprite loading (stupid typo in handling sprite types)

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

15 years ago-Now a server is never pinged more than once.
black [Sat, 2 Apr 2005 12:05:05 +0000 (12:05 +0000)]
-Now a server is never pinged more than once.
-Fixed the color code function.

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

15 years agoUpdated a few entries in the todo file
molivier [Thu, 31 Mar 2005 16:08:23 +0000 (16:08 +0000)]
Updated a few entries in the todo file

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

15 years agofix incompatible types warnings (and change pointer_* fields back to void *)
havoc [Thu, 31 Mar 2005 09:50:43 +0000 (09:50 +0000)]
fix incompatible types warnings (and change pointer_* fields back to void *)

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

15 years agoRemoved GL_OpenLibrary and GL_CloseLibrary from "vid.h" and "vid_null.c"
molivier [Thu, 31 Mar 2005 05:41:44 +0000 (05:41 +0000)]
Removed GL_OpenLibrary and GL_CloseLibrary from "vid.h" and "vid_null.c"

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

15 years agochanged array pointer state to const float * instead of const void *
havoc [Wed, 30 Mar 2005 23:23:14 +0000 (23:23 +0000)]
changed array pointer state to const float * instead of const void *

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

15 years agoadded a firstvertex parameter to R_Mesh_DrawMesh
havoc [Mon, 28 Mar 2005 12:33:25 +0000 (12:33 +0000)]
added a firstvertex parameter to R_Mesh_DrawMesh

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

15 years agosave some memory by not allocating neighbors for q1bsp and q3bsp meshlists
havoc [Mon, 28 Mar 2005 12:16:48 +0000 (12:16 +0000)]
save some memory by not allocating neighbors for q1bsp and q3bsp meshlists

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

15 years agochanged surface->mesh to surface->groupmesh and added num_firsttriangle and num_first...
havoc [Mon, 28 Mar 2005 11:32:47 +0000 (11:32 +0000)]
changed surface->mesh to surface->groupmesh and added num_firsttriangle and num_firstvertex fields to msurface_t, this cuts the msurface_t size from 120 bytes to 88 bytes, causing a 3.5% speed gain in a 37000 surface benchmark scene

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

15 years agomoved a number of msurface_t fields to a separate msurface_lightmapinfo_t structure...
havoc [Mon, 28 Mar 2005 06:54:34 +0000 (06:54 +0000)]
moved a number of msurface_t fields to a separate msurface_lightmapinfo_t structure which is allocated only for q1bsp maps, to save some memory and save some memory bandwidth (as these fields are not often accessed)
moved collision triangles/vertices information out of surfmesh_t and into msurface_t

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

15 years agoslight optimizations to bsp renderer
havoc [Mon, 28 Mar 2005 01:46:58 +0000 (01:46 +0000)]
slight optimizations to bsp renderer

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

15 years agoremoved an unneeded CHECKGLERROR
havoc [Mon, 28 Mar 2005 01:43:43 +0000 (01:43 +0000)]
removed an unneeded CHECKGLERROR

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

15 years agofixed backwards bumps in r_shadow_glsl 1 mode
havoc [Sun, 27 Mar 2005 09:15:59 +0000 (09:15 +0000)]
fixed backwards bumps in r_shadow_glsl 1 mode

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

15 years agoimplemented tag attachments on skeletal .zym models and centralized the code dealing...
havoc [Sun, 27 Mar 2005 08:22:05 +0000 (08:22 +0000)]
implemented tag attachments on skeletal .zym models and centralized the code dealing with tags in model_alias.c

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

15 years agoadded comments to the bloom code in R_BlendView to try to explain how it works
havoc [Fri, 25 Mar 2005 11:35:48 +0000 (11:35 +0000)]
added comments to the bloom code in R_BlendView to try to explain how it works

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

15 years agorearranged stale worldmodel removal a bit so that trying to load a level that doesn...
havoc [Thu, 24 Mar 2005 14:49:39 +0000 (14:49 +0000)]
rearranged stale worldmodel removal a bit so that trying to load a level that doesn't exist doesn't mess up things on a server due to a partial reload

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

15 years agofixed skybox texture leak on level changes
havoc [Thu, 24 Mar 2005 14:48:06 +0000 (14:48 +0000)]
fixed skybox texture leak on level changes

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

15 years agodisabled item bobbing by default
havoc [Wed, 23 Mar 2005 07:10:17 +0000 (07:10 +0000)]
disabled item bobbing by default

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

15 years agoview_ofs now affects intermission cameras, mods usually set view_ofs to '0 0 0' when...
havoc [Wed, 23 Mar 2005 00:16:28 +0000 (00:16 +0000)]
view_ofs now affects intermission cameras, mods usually set view_ofs to '0 0 0' when going to intermission so this won't break anything, but allows Nexuiz to freeze frame the final moment with players still standing where they were

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

15 years agofix decal fading so they really DO disappear eventually now, rather than hogging...
havoc [Wed, 23 Mar 2005 00:15:03 +0000 (00:15 +0000)]
fix decal fading so they really DO disappear eventually now, rather than hogging particle slots for all time

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

15 years agofixed two more signed/unsigned mismatches
havoc [Mon, 21 Mar 2005 20:47:01 +0000 (20:47 +0000)]
fixed two more signed/unsigned mismatches

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

15 years agofix 3 NULL vertex pointer crashes (caused by R_Mesh_State lingering where it shouldn't)
havoc [Mon, 21 Mar 2005 09:58:21 +0000 (09:58 +0000)]
fix 3 NULL vertex pointer crashes (caused by R_Mesh_State lingering where it shouldn't)

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

15 years agofix a bug in R_Mesh_Finish introduced by the unsigned int i fix
havoc [Mon, 21 Mar 2005 09:57:52 +0000 (09:57 +0000)]
fix a bug in R_Mesh_Finish introduced by the unsigned int i fix

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

15 years agofix two runaway loops caused by unsigned int i
havoc [Mon, 21 Mar 2005 09:14:57 +0000 (09:14 +0000)]
fix two runaway loops caused by unsigned int i

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

15 years agoAdded Mac OS X support to the makefiles. Note that the client doesn't compile yet...
molivier [Mon, 21 Mar 2005 08:44:35 +0000 (08:44 +0000)]
Added Mac OS X support to the makefiles. Note that the client doesn't compile yet since some files are still missing (vid_agl.c mainly)

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

15 years agoMoved some particles texture initialization loops in a separate function to work...
molivier [Mon, 21 Mar 2005 08:42:59 +0000 (08:42 +0000)]
Moved some particles texture initialization loops in a separate function to work around an optimization bug in Mac OS X's GCC

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

15 years agomore unsigned (i/j/size variables)
havoc [Mon, 21 Mar 2005 04:23:14 +0000 (04:23 +0000)]
more unsigned (i/j/size variables)

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