divverent/darkplaces.git
12 years agoadded parsing of rgbgen wave and alphagen wave
havoc [Thu, 24 May 2007 20:12:21 +0000 (20:12 +0000)]
added parsing of rgbgen wave and alphagen wave

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

12 years agosupport multiple tcmod commands on a single layer
havoc [Thu, 24 May 2007 07:35:30 +0000 (07:35 +0000)]
support multiple tcmod commands on a single layer

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

12 years agoimplemented tcgen
havoc [Thu, 24 May 2007 06:43:28 +0000 (06:43 +0000)]
implemented tcgen

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

12 years agoimplemented tcmod (all forms)
havoc [Thu, 24 May 2007 05:55:41 +0000 (05:55 +0000)]
implemented tcmod (all forms)

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

12 years agoadded loading of rgbgen/alphagen/tcgen/tcmod
havoc [Thu, 24 May 2007 03:37:44 +0000 (03:37 +0000)]
added loading of rgbgen/alphagen/tcgen/tcmod

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

12 years agoremove unused rsurface.modelneighbor3i
havoc [Thu, 24 May 2007 01:49:26 +0000 (01:49 +0000)]
remove unused rsurface.modelneighbor3i

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

12 years agoeliminated rsurface.model, so there is now no dependence on having an
havoc [Thu, 24 May 2007 01:36:13 +0000 (01:36 +0000)]
eliminated rsurface.model, so there is now no dependence on having an
actual model in the material renderer
(except transparent surface queuing still needing an entity)
this cleanup means that the material renderer could be called from other
places without an entity (effects such as particles and lightning beams)

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

12 years agomoved rsurface_ variables into rsurface struct as a minor cleanup
havoc [Wed, 23 May 2007 22:41:52 +0000 (22:41 +0000)]
moved rsurface_ variables into rsurface struct as a minor cleanup

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

12 years agoadded DP_QC_CVAR_DEFSTRING extension
havoc [Wed, 23 May 2007 22:36:08 +0000 (22:36 +0000)]
added DP_QC_CVAR_DEFSTRING extension
corrected function descriptions of DP_QC_STRING_CASE_FUNCTIONS extension
to indicate that they are in that extension, previously they broke the
formatting convention by saying what they were for instead of the
extension they belong to

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

12 years agoforgot to commit this change
havoc [Wed, 23 May 2007 22:24:53 +0000 (22:24 +0000)]
forgot to commit this change

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

12 years agochanged DP_SV_MODELFLAGS_AS_EFFECTS extension, now using any of the MF_
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

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

12 years agoremoved rsurface_entity field, and copied all fields that were accessed
havoc [Wed, 23 May 2007 20:51:31 +0000 (20:51 +0000)]
removed rsurface_entity field, and copied all fields that were accessed
through it into rsurface_* fields

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

12 years agoremove stupid int casts of pitch/yaw in beam code, yet another instance
havoc [Wed, 23 May 2007 17:15:21 +0000 (17:15 +0000)]
remove stupid int casts of pitch/yaw in beam code, yet another instance
of this legacy from quake that I hadn't killed yet

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

12 years agochanged server to not send pingplreport in response to "ping" command,
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.

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

12 years agohide ping reports in demos
havoc [Wed, 23 May 2007 17:03:07 +0000 (17:03 +0000)]
hide ping reports in demos

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

12 years agoreplace funky !!a ^ !!b XOR usage by a new boolxor(a, b) macro that does that interna...
divverent [Wed, 23 May 2007 16:26:59 +0000 (16:26 +0000)]
replace funky !!a ^ !!b XOR usage by a new boolxor(a, b) macro that does that internally - should be more readable

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

12 years agoin v_flipped mode, invert the sense of snd_swapstereo
divverent [Wed, 23 May 2007 11:31:54 +0000 (11:31 +0000)]
in v_flipped mode, invert the sense of snd_swapstereo

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

12 years agoadded support for "rgbgen lightingdiffuse" as a type of lighting
havoc [Wed, 23 May 2007 03:51:42 +0000 (03:51 +0000)]
added support for "rgbgen lightingdiffuse" as a type of lighting

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

12 years agodamn, committed the old version of my patch... this now is the REAL v_flipped
divverent [Wed, 23 May 2007 00:23:30 +0000 (00:23 +0000)]
damn, committed the old version of my patch... this now is the REAL v_flipped

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

12 years agocvar: v_flipped flips all 3D view except sprites and flips input to compensate,
divverent [Wed, 23 May 2007 00:11:40 +0000 (00:11 +0000)]
cvar: v_flipped flips all 3D view except sprites and flips input to compensate,
basically a poor man's left handed mode

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

12 years agocall FS_ClearSearchPath in FS_Shutdown
havoc [Tue, 22 May 2007 20:17:21 +0000 (20:17 +0000)]
call FS_ClearSearchPath in FS_Shutdown

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

12 years agoclose packs when clearing search path
havoc [Tue, 22 May 2007 20:15:24 +0000 (20:15 +0000)]
close packs when clearing search path

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

12 years agorenamed snd_reload to snd_unloadallsounds to clarify its purpose
havoc [Tue, 22 May 2007 20:07:56 +0000 (20:07 +0000)]
renamed snd_reload to snd_unloadallsounds to clarify its purpose

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

12 years agoenable svc_pointparticles1 protocol, because the pointparticles
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

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

12 years agofixed bug in autosprite setup code that made it malfunction badly on any
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

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

12 years agoWin32: ioctl SIO_UDP_CONNRESET <- FALSE
divverent [Tue, 22 May 2007 08:07:34 +0000 (08:07 +0000)]
Win32: ioctl SIO_UDP_CONNRESET <- FALSE

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

12 years agoReject clc_stringcmd with \r and \n in them; when developer is set, hex dump these...
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).

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

12 years agoq3 shaders are now supported on all model and map formats
havoc [Tue, 22 May 2007 05:50:19 +0000 (05:50 +0000)]
q3 shaders are now supported on all model and map formats

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

12 years agofix typo
havoc [Tue, 22 May 2007 02:37:06 +0000 (02:37 +0000)]
fix typo

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

12 years agoadded DP_SV_POINTPARTICLES extension string (the functions already
havoc [Mon, 21 May 2007 23:08:37 +0000 (23:08 +0000)]
added DP_SV_POINTPARTICLES extension string (the functions already
existed)

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

12 years agoadded svc_pointparticles1 for next protocol bump (uses 15 bytes instead
havoc [Mon, 21 May 2007 22:13:46 +0000 (22:13 +0000)]
added svc_pointparticles1 for next protocol bump (uses 15 bytes instead
of 29 bytes for the potentially common case of zero velocity and a count
of 1)

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

12 years agomake ASCII 10 and ASCII 13 terminate messagemode too (fixes Ctrl-J, Ctrl-M, Num-Enter)
divverent [Mon, 21 May 2007 21:14:34 +0000 (21:14 +0000)]
make ASCII 10 and ASCII 13 terminate messagemode too (fixes Ctrl-J, Ctrl-M, Num-Enter)

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

12 years agosentcvar: don't append a \n, it's a clc_stringcmd, these are not separated by \n!
divverent [Mon, 21 May 2007 21:08:24 +0000 (21:08 +0000)]
sentcvar: don't append a \n, it's a clc_stringcmd, these are not separated by \n!

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

12 years agoremoved r_shadow_realtime_world_dlightshadows cvar, now the
havoc [Sun, 20 May 2007 22:42:39 +0000 (22:42 +0000)]
removed r_shadow_realtime_world_dlightshadows cvar, now the
r_shadow_realtime_dlight_shadows setting applies even in rtworld mode

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

12 years agorenamed r_shadow_shadow_polygon* cvars to r_shadow_polygon*
havoc [Sun, 20 May 2007 22:32:51 +0000 (22:32 +0000)]
renamed r_shadow_shadow_polygon* cvars to r_shadow_polygon*

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

12 years agovalidate r_shadow_frontsidecasting each frame and correct it to a valid
havoc [Sun, 20 May 2007 22:28:18 +0000 (22:28 +0000)]
validate r_shadow_frontsidecasting each frame and correct it to a valid
value if invalid

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

12 years agomade the effect of the r_shadow_shadow_polygonoffset cvar reverse when
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

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

12 years agosend input for every client frame in singleplayer
havoc [Sun, 20 May 2007 16:16:02 +0000 (16:16 +0000)]
send input for every client frame in singleplayer

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

12 years agoDP_PRELOAD_DEPENDENCIES=yes makefile option: when set, link against the libraries...
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

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

12 years agonew option -capturedemo to capture a demo to an AVI file;
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

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

12 years agodon't send svc_statubyte or any stat index over 32 to old clients
havoc [Sat, 19 May 2007 19:24:19 +0000 (19:24 +0000)]
don't send svc_statubyte or any stat index over 32 to old clients

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

12 years agodon't send empty unreliable packets
havoc [Sat, 19 May 2007 19:23:34 +0000 (19:23 +0000)]
don't send empty unreliable packets

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

12 years agofix bug that caused server to send incorrect format of .velocity in
havoc [Sat, 19 May 2007 18:42:03 +0000 (18:42 +0000)]
fix bug that caused server to send incorrect format of .velocity in
svc_clientdata when using "QUAKEDP" protocol

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

12 years agoreworked newmouseparms[] code
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

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

12 years agokill mouse accel using IOHIDSetAccelerationWithKey(mouseDev, CFSTR(kIOHIDMouseAcceler...
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)

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

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
COM_ParseToken_VM_Tokenize

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
characters

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