havoc [Wed, 23 May 2007 22:07:18 +0000 (22:07 +0000)]
changed DP_SV_MODELFLAGS_AS_EFFECTS extension, now using any of the MF_
flags will override the model's flags
added EF_NOMODELFLAGS effect to disable model flags without replacing
them with anything new
havoc [Wed, 23 May 2007 17:05:10 +0000 (17:05 +0000)]
changed server to not send pingplreport in response to "ping" command,
because it confuses non-DP clients and older DP clients (resulting in
the message "unknown command pingplreport" flooding the console)
changed client to send "pings" command to DP7 protocol servers so that
it gets only the pingplreport output, avoiding any potential misparsing
of ping reports and reducing bandwidth a little.
havoc [Tue, 22 May 2007 18:46:56 +0000 (18:46 +0000)]
enable svc_pointparticles1 protocol, because the pointparticles
extension is so new that compatibility with month-old clients that never
officially supported the DP_SV_POINTPARTICLES feature is not a concern
havoc [Tue, 22 May 2007 10:08:34 +0000 (10:08 +0000)]
fixed bug in autosprite setup code that made it malfunction badly on any
non-world entity
rewrote autosprite code to make it a bit cleaner
rewrote autosprite2 code to make it work properly
divverent [Tue, 22 May 2007 07:39:05 +0000 (07:39 +0000)]
Reject clc_stringcmd with \r and \n in them; when developer is set, hex dump these commands.
Exception: \r and \n are allowed at the end of a clc_stringcmd, but get cut off before processing (DP builds from before yesterday did that with sentcvar commands).
havoc [Sun, 20 May 2007 22:26:48 +0000 (22:26 +0000)]
made the effect of the r_shadow_shadow_polygonoffset cvar reverse when
r_shadow_frontsidecasting is off, so that only one setting needs
changing to toggle between the two modes
divverent [Sun, 20 May 2007 16:02:27 +0000 (16:02 +0000)]
DP_PRELOAD_DEPENDENCIES=yes makefile option: when set, link against the libraries needed using -l dynamically so they won't get loaded at runtime using dlopen
divverent [Sun, 20 May 2007 14:59:03 +0000 (14:59 +0000)]
new option -capturedemo to capture a demo to an AVI file;
new cvars cl_capturevideo_width, cl_capturevideo_height to scale down video capture
when capturing >1GB, don't write an index chunk (in that case, an ix00/ix01 chunk has to be written, but that's not yet implemented)
when capturing, write a "dmlh" header to store the total number of frames, and store the partial number of frames in the "avih" header, as specified by OpenDML
when capturing, store the aspect ratio in a "vprp" header chunk (OpenDML)
make Host_Quit_f do nothing when already quitting (fixes "quit" issue while playing back a demo); note that Host_Quit_f is only used by the console and by -benchmark/-demo/-capturedemo
havoc [Sat, 19 May 2007 12:01:02 +0000 (12:01 +0000)]
reworked newmouseparms[] code
removed -noforcemspd and -noforcemaccel options as they didn't make
sense when comparing to the MSDN documentation (-noforcemparms remains)
fixed any possible bugs with restoring originalmouseparms[]
added comments explaining the meaning of newmouseparms[] components
divverent [Sat, 19 May 2007 09:19:52 +0000 (09:19 +0000)]
kill mouse accel using IOHIDSetAccelerationWithKey(mouseDev, CFSTR(kIOHIDMouseAccelerationType), -1.0) instead, this is what System Preferences uses (otherwise, mouse accel doesn't get restored right on exit)
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
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
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
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)
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)
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)
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
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
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
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
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
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
characters
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
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).
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