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

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

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

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

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

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

12 years agoimplemented support for \" in console command parsing code
havoc [Fri, 18 May 2007 15:26:11 +0000 (15:26 +0000)]
implemented support for \" in console command parsing code

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

12 years agochanged default of cl_netinputpacketsperserverpacket to 1.0
havoc [Thu, 17 May 2007 22:01:55 +0000 (22:01 +0000)]
changed default of cl_netinputpacketsperserverpacket to 1.0

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

12 years agoallow non-integer cl_netinputpacketsperserverpacket values
havoc [Thu, 17 May 2007 21:23:03 +0000 (21:23 +0000)]
allow non-integer cl_netinputpacketsperserverpacket values

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

12 years agofix descriptions on cl_netinputpacketsper* cvars
havoc [Thu, 17 May 2007 19:19:38 +0000 (19:19 +0000)]
fix descriptions on cl_netinputpacketsper* cvars

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

12 years agoadded a cvar which allows the client to send more than one packet per
havoc [Thu, 17 May 2007 19:14:36 +0000 (19:14 +0000)]
added a cvar which allows the client to send more than one packet per
server packet, by default 2, this results in smoother demos when packet
loss is occurring with predicted movement

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

12 years agodon't limit lerps to 100ms in demo playback
havoc [Thu, 17 May 2007 19:04:55 +0000 (19:04 +0000)]
don't limit lerps to 100ms in demo playback

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

12 years agomoved the code that applies slowmo to demo playback so that it reacts
havoc [Thu, 17 May 2007 18:58:54 +0000 (18:58 +0000)]
moved the code that applies slowmo to demo playback so that it reacts
immediately to changes, not at the next packet read (which may never
come if slowmo was set to 0 at any point)
made pausedemo command freeze demo playback in a way that time does not
advance, preventing the problem where it fast forwards to catch up with
where it would have been if not paused after unpausing the demo

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

12 years agocvar apple_mouse_noaccel (1 default) disables mouse acceleration
divverent [Thu, 17 May 2007 15:53:57 +0000 (15:53 +0000)]
cvar apple_mouse_noaccel (1 default) disables mouse acceleration

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

12 years agosetting skinframe to R_SkinFrame_LoadMissing for animmap too!
divverent [Thu, 17 May 2007 15:50:10 +0000 (15:50 +0000)]
setting skinframe to R_SkinFrame_LoadMissing for animmap too!

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

12 years agofix 3 typos
havoc [Thu, 17 May 2007 14:14:19 +0000 (14:14 +0000)]
fix 3 typos

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

12 years agorenamed vid_dga to vid_dgamouse
havoc [Thu, 17 May 2007 13:49:39 +0000 (13:49 +0000)]
renamed vid_dga to vid_dgamouse

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

12 years agorenamed vid_dga to vid_dgamouse
havoc [Thu, 17 May 2007 13:45:35 +0000 (13:45 +0000)]
renamed vid_dga to vid_dgamouse

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

12 years agocleaned up vid_dga code, removed vid_dga_mouseaccel cvar as it did the
havoc [Thu, 17 May 2007 13:44:12 +0000 (13:44 +0000)]
cleaned up vid_dga code, removed vid_dga_mouseaccel cvar as it did the
same thing as sensitivity (and was not saved, and defaulted to 1)

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

12 years agoimproved coreaudio initialization code to suggest more changes
havoc [Thu, 17 May 2007 11:55:41 +0000 (11:55 +0000)]
improved coreaudio initialization code to suggest more changes

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

12 years agofix CoreAudio support so that it suggests a proper sound speed when the
havoc [Thu, 17 May 2007 11:43:53 +0000 (11:43 +0000)]
fix CoreAudio support so that it suggests a proper sound speed when the
hardware returns a different value

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

12 years agoenable apple multithreaded GL by default; let's see when the first one complains
divverent [Thu, 17 May 2007 10:16:58 +0000 (10:16 +0000)]
enable apple multithreaded GL by default; let's see when the first one complains

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

12 years agolibcurl-4; vid_glx: RTLD_GLOBAL (apparently FreeBSD users need it)
divverent [Thu, 17 May 2007 09:38:46 +0000 (09:38 +0000)]
libcurl-4; vid_glx: RTLD_GLOBAL (apparently FreeBSD users need it)

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

12 years agotrace corona checks from eye to light origin, this fixes light coronas
havoc [Wed, 16 May 2007 17:15:09 +0000 (17:15 +0000)]
trace corona checks from eye to light origin, this fixes light coronas
being seen inside walls in quake mission pack 2 on lightning traps

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

12 years agofix some unused variables
havoc [Wed, 16 May 2007 17:11:35 +0000 (17:11 +0000)]
fix some unused variables

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

12 years agochanged 1-frame warm-up period to 3 frames before time begins advancing
havoc [Wed, 16 May 2007 17:11:04 +0000 (17:11 +0000)]
changed 1-frame warm-up period to 3 frames before time begins advancing
in the timedemo playback (meaning 3 identical frames are rendered first)
this should improve consistency of timedemo results

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

12 years agochanged an error when fighting the end boss of Nehahra to merely a
havoc [Wed, 16 May 2007 13:45:39 +0000 (13:45 +0000)]
changed an error when fighting the end boss of Nehahra to merely a
warning, the qc should be fixed though

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

12 years agohopefully fixed a bug in line/sphere collision code (not used)
havoc [Wed, 16 May 2007 11:47:15 +0000 (11:47 +0000)]
hopefully fixed a bug in line/sphere collision code (not used)

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

12 years agooptimized the Mod_Q3BSP_LightPoint pitch/yaw math by using the
havoc [Wed, 16 May 2007 09:27:04 +0000 (09:27 +0000)]
optimized the Mod_Q3BSP_LightPoint pitch/yaw math by using the
mod_md3_sin table rather than a lot of angle math to feed to cos/sin

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

12 years agoonly print Set: and SetA: for developer >= 100 (as only then, a Cvar_Get function...
divverent [Tue, 15 May 2007 23:16:06 +0000 (23:16 +0000)]
only print Set: and SetA: for developer >= 100 (as only then, a Cvar_Get function call line always follows)

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

12 years agocalling VM_SetTraceGlobals can create a tempstring for the texture name; thus,
divverent [Tue, 15 May 2007 23:12:54 +0000 (23:12 +0000)]
calling VM_SetTraceGlobals can create a tempstring for the texture name; thus,
make sure that the tempstring gets freed when VM_SetTraceGlobals gets called
from outside QC (before calling the touch function)

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

12 years agorenamed QUAKEWORLD protocol to QW to shorten connect string
havoc [Tue, 15 May 2007 10:14:06 +0000 (10:14 +0000)]
renamed QUAKEWORLD protocol to QW to shorten connect string

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

12 years agofix a bug that caused the DP server to only report the first two
havoc [Tue, 15 May 2007 10:08:23 +0000 (10:08 +0000)]
fix a bug that caused the DP server to only report the first two
protocols it supports rather than all

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

12 years agoadded a proper gl_lightmaps rendering path, previously the gl_lightmaps
havoc [Mon, 14 May 2007 14:34:53 +0000 (14:34 +0000)]
added a proper gl_lightmaps rendering path, previously the gl_lightmaps
option did not work with r_glsl 1 and affected sprites (which it was not
meant to)

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

12 years agooops, forgot to remove it...
divverent [Mon, 14 May 2007 14:31:57 +0000 (14:31 +0000)]
oops, forgot to remove it...

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

12 years agoneed to explicitly load vorbis_comment_query from libvorbis, not libvorbisfile, on...
divverent [Mon, 14 May 2007 14:25:46 +0000 (14:25 +0000)]
need to explicitly load vorbis_comment_query from libvorbis, not libvorbisfile, on Win32

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

12 years agoremove a piece of debugging code
havoc [Mon, 14 May 2007 14:20:00 +0000 (14:20 +0000)]
remove a piece of debugging code

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

12 years agofixed lightmap merging bugs and added a special simplified case for
havoc [Mon, 14 May 2007 14:07:27 +0000 (14:07 +0000)]
fixed lightmap merging bugs and added a special simplified case for
the case of no merging (mainly for testing)

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

12 years agoreworked lightmap merging code to determine optimal texture size for
havoc [Mon, 14 May 2007 12:24:55 +0000 (12:24 +0000)]
reworked lightmap merging code to determine optimal texture size for
each merged lightmap texture (which basically means the last one is now
smaller than the rest in most cases)

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

12 years agoLOOP_START tag in vorbis files now gives the sample number to loop from
divverent [Mon, 14 May 2007 12:03:07 +0000 (12:03 +0000)]
LOOP_START tag in vorbis files now gives the sample number to loop from

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

12 years agorestored the old lightmap batching code that I removed when adding the
havoc [Mon, 14 May 2007 10:28:00 +0000 (10:28 +0000)]
restored the old lightmap batching code that I removed when adding the
lightmap merging, this helps a lot on maps that don't fit in one
1024x1024 lightmap

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

12 years agochanged loopstart from signed to unsigned, now un-looped sounds are
havoc [Mon, 14 May 2007 09:33:26 +0000 (09:33 +0000)]
changed loopstart from signed to unsigned, now un-looped sounds are
represented with loopstart == total_length

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

12 years agoremoved channel_t->end and lastptime, now only pos governs playback
havoc [Mon, 14 May 2007 09:12:25 +0000 (09:12 +0000)]
removed channel_t->end and lastptime, now only pos governs playback
position, this should make the playback code safer
reworked S_PaintChannels to advance channel pos regardless of volume
changed S_StartSound to delay sounds rather than skip them, which may be
important on short sound effects

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

12 years agodon't use cl_nettimesync code when playing a demo
havoc [Sat, 12 May 2007 10:26:15 +0000 (10:26 +0000)]
don't use cl_nettimesync code when playing a demo

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

12 years agoadded a keyname for backslash which is now used instead of the literal \
havoc [Sat, 12 May 2007 10:02:06 +0000 (10:02 +0000)]
added a keyname for backslash which is now used instead of the literal \
character, avoiding issues with bind "\" "something" which was parsing
wrongly, also removed the quotes around the bind keyname, and changed
the keyname code to prefer using the override names (such as tilde
instead of ~) in binds when saving the config

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

12 years agopatch from David Cristian which adds a "browse mods" menu which seems to
havoc [Sat, 12 May 2007 09:46:58 +0000 (09:46 +0000)]
patch from David Cristian which adds a "browse mods" menu which seems to
work quite well

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

12 years agofix description of cl_movement_wateraccelerate; make air movement use movevars_airacc...
divverent [Fri, 11 May 2007 08:45:14 +0000 (08:45 +0000)]
fix description of cl_movement_wateraccelerate; make air movement use movevars_airaccelerate (fixes movement in Nexuiz Pro)

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

12 years agoif .gravity field is zero, it means the same as one (see also: SV_AddGravity)
divverent [Fri, 11 May 2007 08:20:56 +0000 (08:20 +0000)]
if .gravity field is zero, it means the same as one (see also: SV_AddGravity)

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

12 years agoalso send friction/waterfriction as stats
divverent [Fri, 11 May 2007 08:14:11 +0000 (08:14 +0000)]
also send friction/waterfriction as stats

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

12 years agofix typo in r_q1bsp_skymasking cvar name
divverent [Fri, 11 May 2007 07:47:31 +0000 (07:47 +0000)]
fix typo in r_q1bsp_skymasking cvar name

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

12 years agoadded back cl_netsyncboundmode 5 (4 with sub-millisecond adjustment when
havoc [Fri, 11 May 2007 01:17:24 +0000 (01:17 +0000)]
added back cl_netsyncboundmode 5 (4 with sub-millisecond adjustment when
very near the correct value)
added new default cl_nettimesyncboundmode 6, this is a hybrid of 1 and 5

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

12 years agomoved almost all server cvars to sv_main.c and added corresponding
havoc [Fri, 11 May 2007 01:04:45 +0000 (01:04 +0000)]
moved almost all server cvars to sv_main.c and added corresponding
externs in server.h
removed cl_gravity and cl_slowmo cvars
renamed cl.movevars_slowmo to cl.movevars_timescale

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

12 years agoadded friction and waterfriction movevars stats
havoc [Fri, 11 May 2007 00:00:29 +0000 (00:00 +0000)]
added friction and waterfriction movevars stats
corrected sv_airaccel_qw and sv_airaccel_sideways_friction cvars (they
had the wrong name string)

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

12 years agoadded back support for {}()[]: special characters in
havoc [Wed, 9 May 2007 11:09:07 +0000 (11:09 +0000)]
added back support for {}()[]: special characters in

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

12 years agorenamed COM_ParseTokenConsole to COM_ParseToken_Console
havoc [Wed, 9 May 2007 11:00:14 +0000 (11:00 +0000)]
renamed COM_ParseTokenConsole to COM_ParseToken_Console
split COM_ParseToken into COM_ParseToken_Simple, COM_ParseToken_QuakeC
and COM_ParseToken_VM_Tokenize which have different support for special

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

12 years agofixed several critical bugs in VM_tokenizebyseparator
havoc [Wed, 9 May 2007 09:53:11 +0000 (09:53 +0000)]
fixed several critical bugs in VM_tokenizebyseparator

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

12 years agofix broken OFS_PARM0 + index code in VM_M_callfunction and
havoc [Wed, 9 May 2007 09:29:56 +0000 (09:29 +0000)]
fix broken OFS_PARM0 + index code in VM_M_callfunction and
VM_tokenizebyseparator, these were not multiplying by 3 as is required

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

12 years agoremoved a wasted normalize in fragment shader for model lighting
havoc [Wed, 9 May 2007 00:17:21 +0000 (00:17 +0000)]
removed a wasted normalize in fragment shader for model lighting

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

12 years agoscale demo playback speed by slowmo cvar
havoc [Wed, 9 May 2007 00:13:21 +0000 (00:13 +0000)]
scale demo playback speed by slowmo cvar

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

12 years agoGAME_NEXUIZ: move the key up a bit for keyhunt, looks better
divverent [Mon, 7 May 2007 23:19:14 +0000 (23:19 +0000)]
GAME_NEXUIZ: move the key up a bit for keyhunt, looks better

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

12 years agoImpossible combination of GAME_NEXUIZ CTF status icons ("have red flag | have blue...
divverent [Mon, 7 May 2007 21:36:32 +0000 (21:36 +0000)]
Impossible combination of GAME_NEXUIZ CTF status icons ("have red flag | have blue flag") now displays an alternate image for the new keyhunt game mode

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

12 years agofix crash when loading progs/null.spr in nehahra, which has 0x0 size
havoc [Mon, 7 May 2007 20:50:22 +0000 (20:50 +0000)]
fix crash when loading progs/null.spr in nehahra, which has 0x0 size

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

12 years agofix glsl model lighting on unlit maps (normal vector was calculated as (0,0,0) as...
divverent [Mon, 7 May 2007 18:23:22 +0000 (18:23 +0000)]
fix glsl model lighting on unlit maps (normal vector was calculated as (0,0,0) as there was no contribution from the map -> GLSL calls normalize() on that -> (nan,nan,nan), which apparently counts as black).
The fix replaces these zero normal vectors by (0,0,1) (which vector is actually chosen does not matter, as its contribution is scaled by zero anyway).

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

12 years agolet the slowmo cvar override the server/demo's idea of slowmo when it is != 1; makes...
divverent [Mon, 7 May 2007 17:17:38 +0000 (17:17 +0000)]
let the slowmo cvar override the server/demo's idea of slowmo when it is != 1; makes slowmo work again for demo playback

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

12 years agoreduced uninitialized memory a bit more
havoc [Mon, 7 May 2007 08:46:37 +0000 (08:46 +0000)]
reduced uninitialized memory a bit more

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

12 years agoreduced uninitialized data size by 13MB by moving some temporary arrays
havoc [Mon, 7 May 2007 07:28:00 +0000 (07:28 +0000)]
reduced uninitialized data size by 13MB by moving some temporary arrays
used by outdated protocols into their database struct, also moved some
other arrays

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

12 years agoreplaced mod_known array with a memexpandablearray_t, this saves 11.5MB
havoc [Mon, 7 May 2007 06:46:04 +0000 (06:46 +0000)]
replaced mod_known array with a memexpandablearray_t, this saves 11.5MB

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

12 years agorewrote server sendstates building code, no longer builds two
havoc [Mon, 7 May 2007 05:37:08 +0000 (05:37 +0000)]
rewrote server sendstates building code, no longer builds two
entity_state_t arrays (where one of them is global and one per-client),
this is a slight efficiency loss but saves a few megabytes and makes the
customizeentityforclient code more straightforward
merged some global variables into cl. and sv. structs, and others became
arrays on the stack

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

12 years agonow sends player physics variables as stats, including slowmo, gravity,
havoc [Mon, 7 May 2007 03:41:11 +0000 (03:41 +0000)]
now sends player physics variables as stats, including slowmo, gravity,
and sys_ticrate, this avoids the need to stuffcmd cl_movement cvars
on servers that provide the ticrate stat the cl_netinputpacketspersecond
cvar is no longer important, this also seems to improve demo recording

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

12 years agoremoved PRVM_EDICT_NUM_UNSIGNED (PRVM_EDICT_NUM now casts to unsigned)
havoc [Mon, 7 May 2007 03:01:40 +0000 (03:01 +0000)]
removed PRVM_EDICT_NUM_UNSIGNED (PRVM_EDICT_NUM now casts to unsigned)

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

12 years agochanged rain to spawn particles without collisions and implemented
havoc [Mon, 7 May 2007 02:49:41 +0000 (02:49 +0000)]
changed rain to spawn particles without collisions and implemented
delayed spawning of splashes to facilitate this

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

12 years agoincreased tolerance on warnings in DEBUGMOVES code
havoc [Mon, 7 May 2007 02:49:10 +0000 (02:49 +0000)]
increased tolerance on warnings in DEBUGMOVES code

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

12 years agofixed a reference to sv.models in client code (should have been
havoc [Mon, 7 May 2007 02:48:43 +0000 (02:48 +0000)]
fixed a reference to sv.models in client code (should have been

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

12 years agorewrote most of wad system, this eliminated 512KB of static arrays for
havoc [Sun, 6 May 2007 22:46:43 +0000 (22:46 +0000)]
rewrote most of wad system, this eliminated 512KB of static arrays for
hlwad lumpinfo
added W_UnloadAll function which is now called by FS_Rescan

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

12 years agomade r_depthfirst a saved cvar
havoc [Sun, 6 May 2007 12:23:19 +0000 (12:23 +0000)]
made r_depthfirst a saved cvar

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

12 years agoadded support for \" in console
havoc [Sun, 6 May 2007 11:37:04 +0000 (11:37 +0000)]
added support for \" in console

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

12 years agoadded r_depthfirst option which defaults to 1 (render depth of world
havoc [Sun, 6 May 2007 10:38:31 +0000 (10:38 +0000)]
added r_depthfirst option which defaults to 1 (render depth of world
into scene before rendering color), and also offers 2 (render depth of
world and models), this saves shader fillrate on intensive shaders or
texturing techniques (deluxemapping, anisotropic filtering, etc)

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

12 years agoreworked sound mixing code to fix a bug that caused sound to stop
havoc [Sun, 6 May 2007 10:13:43 +0000 (10:13 +0000)]
reworked sound mixing code to fix a bug that caused sound to stop
working after a timedemo (or anything else that overrode the normal
sound timing)

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

12 years agofix a bug that caused GL20 render path to always ask for tangents and
havoc [Sun, 6 May 2007 10:12:19 +0000 (10:12 +0000)]
fix a bug that caused GL20 render path to always ask for tangents and
normals when rendering models

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

12 years agooops, the r_picmipworld should be CVAR_SAVE of course. Sorry for that.
divverent [Fri, 4 May 2007 11:40:58 +0000 (11:40 +0000)]
oops, the r_picmipworld should be CVAR_SAVE of course. Sorry for that.

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

12 years agor_picmipworld - when 0, gl_picmip does not apply to world models (because they tend...
divverent [Fri, 4 May 2007 09:29:57 +0000 (09:29 +0000)]
r_picmipworld - when 0, gl_picmip does not apply to world models (because they tend to use much less texture memory than player models in Nexuiz)

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

12 years agofixed broken trails (introduced by my attempt to fix them)
havoc [Fri, 4 May 2007 07:01:34 +0000 (07:01 +0000)]
fixed broken trails (introduced by my attempt to fix them)
fixed a bug where attachments to viewmodelforclient entities would show
up in the world in chase_active 1 mode near 0 0 0
rain particles now trace ahead at spawn and only begin collision
checking when near the impact time

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

12 years agoreenabled code that unloads unused models on level change
havoc [Fri, 4 May 2007 01:17:16 +0000 (01:17 +0000)]
reenabled code that unloads unused models on level change

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

12 years agofix bug where attached models spawn a trail from their non-attached
havoc [Thu, 3 May 2007 07:40:58 +0000 (07:40 +0000)]
fix bug where attached models spawn a trail from their non-attached
start location to their new location on the first frame

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

12 years agodamn, I can't convert hex/dec...
divverent [Wed, 2 May 2007 13:49:57 +0000 (13:49 +0000)]
damn, I can't convert hex/dec...

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

12 years agomade palette colors more readable
divverent [Wed, 2 May 2007 13:20:35 +0000 (13:20 +0000)]
made palette colors more readable

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

12 years agoa slight cleanup of PaintAndSubmit conditions and S_Update early out
havoc [Wed, 2 May 2007 04:36:28 +0000 (04:36 +0000)]
a slight cleanup of PaintAndSubmit conditions and S_Update early out

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

12 years agosignificant cleanup of input networking code (reorganized and now uses
havoc [Tue, 1 May 2007 06:11:48 +0000 (06:11 +0000)]
significant cleanup of input networking code (reorganized and now uses
frametimes rather than timestamps for queued moves) and some refinements
to prediction code
tried to reimplement the anti-pogostick code and it's partially working
but not completely (mispredicts for one frame each time)

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

12 years agodefault vid_grabkeyboard to 0, it's already forced to 1 on fullscreen so
havoc [Tue, 1 May 2007 02:25:32 +0000 (02:25 +0000)]
default vid_grabkeyboard to 0, it's already forced to 1 on fullscreen so
this should do no harm

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

12 years agomake SV_PushMove push by playerclip faces too (by using the right contents mask for...
divverent [Mon, 30 Apr 2007 23:00:58 +0000 (23:00 +0000)]
make SV_PushMove push by playerclip faces too (by using the right contents mask for each pushed entity)

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

12 years agomvdsv sucks (changed *ver from showing a string like DarkPlaces Linux
havoc [Mon, 30 Apr 2007 22:44:19 +0000 (22:44 +0000)]
mvdsv sucks (changed *ver from showing a string like DarkPlaces Linux
14:15:44 Apr 30 2007, to simply \*ver\dp)

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

12 years agoApplied KadaverJack's patch on my cl_sound_ric_gunshot code that provides a small...
dresk [Mon, 30 Apr 2007 21:59:19 +0000 (21:59 +0000)]
Applied KadaverJack's patch on my cl_sound_ric_gunshot code that provides a small optimization by using bitwise operations instead of numerical calculations.

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

12 years agoAdded DP_QC_STRING_CASE_FUNCTIONS extension, providing VM functions strtolower and...
dresk [Mon, 30 Apr 2007 17:27:16 +0000 (17:27 +0000)]
Added DP_QC_STRING_CASE_FUNCTIONS extension, providing VM functions strtolower and strtoupper which return the lowercase and uppercase of strings respectively, available across the CL, SV and MENU VMs.

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

12 years agofix pl% calculation for QW servers (was using [i] instead of [j])
havoc [Mon, 30 Apr 2007 17:22:47 +0000 (17:22 +0000)]
fix pl% calculation for QW servers (was using [i] instead of [j])

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

12 years agofix nettimesync bug after the recent cleanup
havoc [Mon, 30 Apr 2007 17:02:10 +0000 (17:02 +0000)]
fix nettimesync bug after the recent cleanup

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

12 years agoimplemented QW skin support, it's broken on skins that are not the same
havoc [Mon, 30 Apr 2007 05:39:56 +0000 (05:39 +0000)]
implemented QW skin support, it's broken on skins that are not the same
size as the model skin though

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

12 years agocount empty packets in rate limiting
havoc [Mon, 30 Apr 2007 05:39:00 +0000 (05:39 +0000)]
count empty packets in rate limiting

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

12 years agofix a bug in texture path identification (the nopath case was occurring
havoc [Mon, 30 Apr 2007 05:28:29 +0000 (05:28 +0000)]
fix a bug in texture path identification (the nopath case was occurring
even when there was a path, because it was checking the wrong variable)

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

12 years agoremoved cl_nettimesyncboundmode 5 because it seems to print many more
havoc [Mon, 30 Apr 2007 05:27:03 +0000 (05:27 +0000)]
removed cl_nettimesyncboundmode 5 because it seems to print many more
time warnings than 4 does when developer is on
now sets cls.servermovesequence to cls.netcon->qw_incoming_sequence
now keeps around qw player entities if a packet does not contain any
(an fteqw server I was testing on sometimes sent packets containing
large reliable message groups but no player entities at all)

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

12 years agoUpdated cl_sound_ric_gunshot CVar to support multiple modes. 0 plays no sounds,...
dresk [Mon, 30 Apr 2007 03:58:20 +0000 (03:58 +0000)]
Updated cl_sound_ric_gunshot CVar to support multiple modes.  0 plays no sounds, 1 plays sounds on TE_GUNSHOT, 2 plays sounds on TE_GUNSHOTQUAD and 3 plays sounds on both TE_GUNSHOT and TE_GUNSHOTQUAD.  This is not bloat because the Crylink in Nexuiz uses TE_GUNSHOTQUAD, and most people don't want ricochet sounds on that (though if you do, all the merrier).

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

12 years agoincreased IP + UDP header overhead estimate from 18 bytes to 28 bytes
havoc [Sun, 29 Apr 2007 22:15:44 +0000 (22:15 +0000)]
increased IP + UDP header overhead estimate from 18 bytes to 28 bytes
based on tcpdump results

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

12 years agostore into *colorindex again
divverent [Sun, 29 Apr 2007 19:36:05 +0000 (19:36 +0000)]
store into *colorindex again

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

12 years agoAdded cl_sound_ric_gunshot which specifies if the related cl_sound_ric and cl_sound_t...
dresk [Fri, 27 Apr 2007 23:25:47 +0000 (23:25 +0000)]
Added cl_sound_ric_gunshot which specifies if the related cl_sound_ric and cl_sound_tink CVars will apply to te_gunshot and te_gunshotquad calls.  The default value is 0 and it is not saved.

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