havoc [Tue, 14 Dec 2004 15:01:08 +0000 (15:01 +0000)]
don't warn about svc_precache failing to precache sounds if snd_initialized is false (-nosound or -safe was used)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4842
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Tue, 14 Dec 2004 09:09:41 +0000 (09:09 +0000)]
Oops... Fixed my fix to BSD makefile
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4841
d7cf8633-e32d-0410-b094-
e92efae38249
black [Mon, 13 Dec 2004 16:51:06 +0000 (16:51 +0000)]
-Fixed another bug introduced by me, affecting the detection of a valid
time global in the new VM.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4840
d7cf8633-e32d-0410-b094-
e92efae38249
black [Mon, 13 Dec 2004 16:20:15 +0000 (16:20 +0000)]
-Fixed the stupid bug introduced by my NEX_PLAYERMODEL/NEX_PLAYERSKIN commit.
-Hopefully playermodel and playerskin work still now.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4839
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Mon, 13 Dec 2004 15:41:32 +0000 (15:41 +0000)]
Fixed BSD makefile for NetBSD
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4838
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Mon, 13 Dec 2004 15:00:36 +0000 (15:00 +0000)]
Fixed a warning in MSVC6
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4837
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Mon, 13 Dec 2004 10:40:44 +0000 (10:40 +0000)]
Fixed model automatic precaching in the new network protocol
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4836
d7cf8633-e32d-0410-b094-
e92efae38249
black [Fri, 10 Dec 2004 18:43:30 +0000 (18:43 +0000)]
-Converted some of the altstring functions to builtins
-Fixed a bug in the DrawQueue - it was calculating the clip area wrongly
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4835
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Fri, 10 Dec 2004 10:55:58 +0000 (10:55 +0000)]
Added BB_Power to the Transfusion map list
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4834
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Fri, 10 Dec 2004 10:55:22 +0000 (10:55 +0000)]
Removed a couple of warnings when compiling with GCC
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4833
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Wed, 8 Dec 2004 15:36:35 +0000 (15:36 +0000)]
A few minor changes in the sound code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4832
d7cf8633-e32d-0410-b094-
e92efae38249
black [Mon, 6 Dec 2004 13:32:11 +0000 (13:32 +0000)]
-Fixed another signed/unsigned warning after the type change of func_t.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4830
d7cf8633-e32d-0410-b094-
e92efae38249
black [Sun, 5 Dec 2004 13:58:16 +0000 (13:58 +0000)]
-Fixed a minor bug in CL_Video
-Changed func_t from int to unsigned int - probably this breaks some things
but at least it fixes an annoying crash of the DP with the current Nexuiz
build.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4829
d7cf8633-e32d-0410-b094-
e92efae38249
black [Sat, 4 Dec 2004 21:08:13 +0000 (21:08 +0000)]
-Added video streaming support to the new VM
-Changed again a lot of CL_Video (mostly bugs and logical errors)
-It doesnt append the prefix now, but only checks whether it matches
or not - if it doesnt it doesnt load the video.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4828
d7cf8633-e32d-0410-b094-
e92efae38249
black [Sat, 4 Dec 2004 16:15:17 +0000 (16:15 +0000)]
-Added the console command prvm_globalset
-Rewritten CL_Video to support multiple video streams
-Fixed a bug in the new VM's epair parser
The only problem CL_Video now has, is that it doesnt use TEXF_FRAGMENT
right now. Ive added a more general description of this problem to the
todo list.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4827
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 3 Dec 2004 19:41:15 +0000 (19:41 +0000)]
some renderer/client separation cleanup, migrated some things to r_refdef to eliminate renderer references to cl. fields
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4826
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 3 Dec 2004 18:58:09 +0000 (18:58 +0000)]
fixed precache problems in non-DARKPLACES6 protocols
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4825
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 3 Dec 2004 18:57:41 +0000 (18:57 +0000)]
fixed a Sys_Error in the client when connected to QUAKE protocol servers (it was trying to send an empty message)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4824
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Fri, 3 Dec 2004 14:15:09 +0000 (14:15 +0000)]
Added "ctype.h" to the list of standard headers in "quakedef.h". Cleaned up the todo file a bit (yes, DP works with zipped id1 PAKs)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4823
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Fri, 3 Dec 2004 08:32:08 +0000 (08:32 +0000)]
- DP now defines MACOSX when relevant
- added a "Mac OS X" string in Sys_Shared_EarlyInit
- removed an unused "rcsid" string
- fixed SDL audio on big endian systems
- fixed SDL video initialization on Mac OS X
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4822
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 3 Dec 2004 05:03:12 +0000 (05:03 +0000)]
don't let clients kill server with bogus cursor_entitynumber values
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4821
d7cf8633-e32d-0410-b094-
e92efae38249
black [Thu, 2 Dec 2004 14:25:48 +0000 (14:25 +0000)]
Ive done three todo items:
-Added support for ' strings in Com_ParseToken.
-Added support for " and ' as end tokens in Com_ParseToken.
-Added the NEXUIZ_PLAYERMODEL and NEXUIZ_PLAYERSKIN extensions.
The last needs to be tested though. Hopefully it works.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4819
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Thu, 2 Dec 2004 09:46:27 +0000 (09:46 +0000)]
- Removed Con_SafePrint and Con_SafePrintf since they now does the same things as Con_Print and Con_Printf
- Moved log initialization right after memory initialization to make the log functions available as early as possible
- Moved the removal of "qconsole.log" (when -condebug is in the command line) in FS_Init
- Moved the "Console initialized." message so it is actually printed at console
- Removed the declaration of "con_chars" (it doesn't exist anymore)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4818
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 23:19:06 +0000 (23:19 +0000)]
implemented scr_screenshot_gamma in screenshot saving (previously only implemented in video saving - oops)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4817
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 23:14:07 +0000 (23:14 +0000)]
changed a lot of Con_DPrint/Con_DPrintf calls to Con_Print/Con_Printf (non-technical things like device errors which should be seen even without developer on)
merged Sys_Print code into Con_Print and changed all other Sys_Print/Sys_Printf calls to calling Con_Print/Con_Printf or Con_DPrint/Con_DPrintf instead
rewrote Con_Print so that timestamps are printed only at the start of each line (or just after the 0x01 or 0x02 characters used for chat messages), not during partial line prints, and timestamps now apply to all output destinations (log, console, terminal)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4816
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 23:13:13 +0000 (23:13 +0000)]
fix a typo
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4815
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 21:49:46 +0000 (21:49 +0000)]
modified PRYDON_CLIENTCURSOR extension to reset cursor_trace_ent to world if the entity it is referencing is currently freed (as requested by FrikaC)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4814
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 21:48:21 +0000 (21:48 +0000)]
cleaned up CL_SendMove a lot, added notes on number of bytes used for different protocols
made CL_SendMove never send a clc_ackframe for frame 0 in any latestframenums slots
made CL_SendMove discard only the clc_move portion of the first two messages (the ones dropped to avoid input leftover from the previous level), still sending the clc_ackframe message
changed CL_SendMove to not accumulate move messages but just send the latest (may improve cursor issues in prydon gate using non-clientcursor mode)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4813
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Wed, 1 Dec 2004 14:03:42 +0000 (14:03 +0000)]
Removed wrong FIXME comment (in-game precached sounds don't need SFXFLAG_SERVERSOUND)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4812
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Wed, 1 Dec 2004 14:00:52 +0000 (14:00 +0000)]
Fixed FS_Seek for unpacked files when FS_USESYSCALLS is defined (should fix HalfLife WAD loading)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4811
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Wed, 1 Dec 2004 08:20:39 +0000 (08:20 +0000)]
341
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4810
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 07:59:48 +0000 (07:59 +0000)]
fix annoying warnings about weaponmodel ""
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4809
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 07:57:08 +0000 (07:57 +0000)]
342
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4808
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 07:45:40 +0000 (07:45 +0000)]
changed order of tests in deciding whether to do culling on a bmodel entity to fix uninitialized variable warnings (thanks Elric)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4807
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 07:40:36 +0000 (07:40 +0000)]
reset animation interpolation on weaponmodel when model changes (thanks Elric)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4806
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 07:20:42 +0000 (07:20 +0000)]
decals now render immediately rather than being transparency sorted, this generally resolves the issues with decals hiding sprites and lightning beams, though it's debatable whether the new interaction with water and transparent bmodels is really an improvement
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4805
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 06:12:47 +0000 (06:12 +0000)]
now clears screen at startup to prevent garbage from being seen around loading plaque in windows
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4804
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 06:07:14 +0000 (06:07 +0000)]
defaulting to nodinput mode again due to problems with dinput mode
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4803
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 05:39:03 +0000 (05:39 +0000)]
implemented PRYDON_CLIENTCURSOR extension (clientside mouse pointer that feeds back information to the QuakeC)
added DP_BUTTONUSE extension (+use/-use button)
added DP_BUTTONCHAT extension (true while input is not focused on the game)
reimplemented DP_ENT_COLORMOD extension due to popular request, and changed its definition to allow colors above '1 1 1' for brightening effects
implemented PROTOCOL_DARKPLACES6 protocol, featuring delta compression of ammo counts and other properties (using generic svc_updatestat and svc_updatestatubyte messages), precaching models and sounds during the game (svc_precache).
removed cmd parameter from a lot of input code (now uses cl.cmd. instead of cmd->)
added sv_gameplayfix_setmodelrealbox to allow disabling of the setmodel real model bounding box on alias models (may improve mod compatibility if set to 0, thus performing a setsize (self, '-16 -16 -16', '16 16 16') instead of the real alias model box).
added SV_ModelIndex and SV_SoundIndex functions to clean up the server's precaching and model lookup processes (code reduction/maintenance reduction).
changed sv.model_precache and sv.sound_precache to be real char arrays rather than pointers, so precache names no longer need to be constants as they're now copied.
added some modelindex bounds checks to a few pieces of code.
the dpfields array is now sorted and matches the supported fields list (added the missing ones).
client now acknowledges the last 3 frames in each input packet to reduce packet loss issues.
renamed clc_ackentities to clc_ackframe as it is now used for compressing stats as well as entities in PROTOCOL_DARKPLACES6, this also means it always produces a packet for every frame even if there's no changed entities (or room under the rate limit for that matter)
PROTOCOL_DARKPLACES5 and 6 now perform a non-harmful serverside packetlog reset (marking all packets as lost) if the packetlog fills up, this should eliminate choked-to-death cases where the client lost everything for a few seconds.
MAX_CL_STATS expanded from 32 to 256 (just incase more stats are added, this prevents protocol breakage on too many unknown extra stats)
fixed a bug with the worst case rtlight rendering (the color array was disabled, oops).
some cl.* fields converted to cl.stats elements (STAT_ITEMS for instance) to accomodate the PROTOCOL_DARKPLACES6 stats updates
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4801
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 1 Dec 2004 04:45:44 +0000 (04:45 +0000)]
some minor cleanup to CL_TraceLine, added CL_SelectTraceLine which is to be used by the PRYDON_CLIENTCURSOR extension
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4800
d7cf8633-e32d-0410-b094-
e92efae38249
black [Tue, 30 Nov 2004 20:33:22 +0000 (20:33 +0000)]
-Fixed a bug in drawstring - it used maxlen instead of len in a validity check
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4799
d7cf8633-e32d-0410-b094-
e92efae38249
black [Mon, 29 Nov 2004 20:43:28 +0000 (20:43 +0000)]
-Fixed an old qc bug that's already been existing in the original quake
(- hopefully it is a bug): ParseEpair was accessing the globals arrays
instead of writing an offset directly into the value.
-Removed the VM_CheckEmptyString from VM_drawstring.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4798
d7cf8633-e32d-0410-b094-
e92efae38249
black [Sun, 28 Nov 2004 13:10:38 +0000 (13:10 +0000)]
-Removed the NG Menu part, since it isnt used anymore (the old layout
works generally better)
-Fixed a bug in VM_max - it used one of the old VM's macro.
-Added a memory leak output of the "strzone" zone when the menu is shutdown
(only displayed if developer >= 2)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4797
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 26 Nov 2004 00:57:30 +0000 (00:57 +0000)]
redesigned drawing of loading plaque, it's now a separate refresh function which draws over the previous frame, rather than invoking a new render, which should fix crashes with level changes with rtlights on (trying to render an rtlight while the map the rtlight was for has already been unloaded tends to cause a crash)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4796
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 20:41:29 +0000 (20:41 +0000)]
removed some windows cruft (like scr_skipupdate, and the SleepUntilInput stuff)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4795
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 20:38:37 +0000 (20:38 +0000)]
removed Sys_Sleep call from CL_KeepaliveMessage, as it's probably better to load as fast as possible than to yield cpu time during loading
removed an unnecessary CL_KeepaliveMessage call in model purging
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4794
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 17:36:24 +0000 (17:36 +0000)]
changed drivername to NULL, as SDL knows best
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4793
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 17:02:38 +0000 (17:02 +0000)]
added model->brush.submodels[] array of pointers to submodels of a world model
added unfinished Mod_Q1BSP_LoadMapBrushes (will be finished someday)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4792
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 16:19:56 +0000 (16:19 +0000)]
changed lhrandom to use the full RAND_MAX limit (more random, after all the low bits are the most predictable), and made the random() qc builtin use lhrandom
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4791
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 16:18:04 +0000 (16:18 +0000)]
small beginnings of GLSL support, doesn't do anything yet
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4790
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 16:16:28 +0000 (16:16 +0000)]
forgot to commit this with the Host_ServerFrame changes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4789
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 16:13:42 +0000 (16:13 +0000)]
redesigned Host_ServerFrame timing again, it now never runs more than 5 serverframes per host frame as a sanity limit (to remain playable in an overloaded game), and is just cleaner
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4788
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 16:08:48 +0000 (16:08 +0000)]
forgot to commit a bunch of CL_AllocDlight changes (to use lightstyle -1)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4787
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 16:07:53 +0000 (16:07 +0000)]
added cl_capturevideo_rawyv12 mode, and cl_screenshot_gamma (defaults to 2.2)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4786
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Thu, 25 Nov 2004 09:04:37 +0000 (09:04 +0000)]
Fixed ambient sound volume (it was reset each frame, and cannot change by more than the value of the "ambient_fade" cvar each frame... you do the math). Thanks to Tomaz and Urre for the bug report
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4785
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 25 Nov 2004 01:24:00 +0000 (01:24 +0000)]
changed Sys_Error to not put up a messagebox if in dedicated mode, and cleaned it up a bit
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4784
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 24 Nov 2004 13:39:38 +0000 (13:39 +0000)]
fixed a critical bug with Vile and other midnight mods (dlights were being controlled by style 0, this meant they didn't appear in these mods, added style -1 as a special case)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4783
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 22 Nov 2004 20:24:57 +0000 (20:24 +0000)]
fixed an uninitialized variable warning
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4782
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Mon, 22 Nov 2004 14:38:33 +0000 (14:38 +0000)]
Several changes to the SFX lock code in the sound engine, mainly to make sure SFXs are automatically freed only at level change
Moved call to CL_InitTEnts after S_Startup so the tent sounds get properly precached
Added a developer warning when trying to play a non-precached SFX
Made the soundlist command more verbose
Added the ssize_t type for Win32 systems
Some comments and dead code removal
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4781
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Mon, 22 Nov 2004 10:01:51 +0000 (10:01 +0000)]
A few very minor changes to the FS code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4780
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 21 Nov 2004 12:16:16 +0000 (12:16 +0000)]
fix skybox loading, _ft and _bk were swapped (and all others had to be flipped accordingly), it now matches quake2 as it was supposed to all along
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4779
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 20 Nov 2004 18:07:34 +0000 (18:07 +0000)]
327
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4778
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 20 Nov 2004 18:05:23 +0000 (18:05 +0000)]
fixed bug with engine sounds (for TE_ effects) and local sounds (menu, etc) being unloaded on level change (they are supposed to stay indefinitely)
keep play/play2/playvol sounds around until level change (so they're not being constantly unloaded and reloaded when used repeatedly)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4777
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 20 Nov 2004 11:49:41 +0000 (11:49 +0000)]
changed S_StartSound to start a sound even if it has no fetcher, as the fetcher isn't set until it is loaded... and it isn't loaded until it is played if it was not precached... and it's being unprecached by the S_ServerSounds function even if it's an engine sound...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4776
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 20 Nov 2004 11:20:24 +0000 (11:20 +0000)]
added support for PROTOCOL_NEHAHRAMOVIE in more places, so now nehahra works again, and added some more Host_Error's for unknown cl.protocol values
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4775
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 20 Nov 2004 09:25:49 +0000 (09:25 +0000)]
fix the unintentional framegroup timing reset that happened when the .frame field changed after more than 100ms since the previous change (this was causing corpses to suddenly stand up and then fall down quickly in Nexuiz)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4774
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 19 Nov 2004 12:42:01 +0000 (12:42 +0000)]
326
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4773
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Thu, 18 Nov 2004 14:08:27 +0000 (14:08 +0000)]
Quick hack to fix the calls to "open" on Win32
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4772
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 18 Nov 2004 13:03:34 +0000 (13:03 +0000)]
326
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4771
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 17 Nov 2004 16:36:07 +0000 (16:36 +0000)]
minimize cpu use when framerate limited
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4769
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 17 Nov 2004 16:34:51 +0000 (16:34 +0000)]
improved how showfps 1 measures framerate, it's now a bit more accurate, still reads a bit low though with millisecond timers
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4768
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 17 Nov 2004 16:33:38 +0000 (16:33 +0000)]
FS now uses open/read/write/lseek/close instead of fopen/fread/fwrite/fseek/fclose to get a little more performance from less unnecessary buffering (helps video recording keep up a steady rate)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4767
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 17 Nov 2004 16:31:58 +0000 (16:31 +0000)]
remove the only use of FS_Eof
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4766
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 17 Nov 2004 15:42:39 +0000 (15:42 +0000)]
made dedicated servers hog a whole lot less CPU time
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4765
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 17 Nov 2004 09:58:38 +0000 (09:58 +0000)]
325
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4764
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Wed, 17 Nov 2004 08:40:05 +0000 (08:40 +0000)]
Give priority to unpacked files over packed files (the old AKVERSION behaviour)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4763
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 17 Nov 2004 08:11:04 +0000 (08:11 +0000)]
fixed windows SDL linking (now uses sdl-config like it should)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4762
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 17 Nov 2004 05:58:54 +0000 (05:58 +0000)]
forgot a very important else in rtlights saving
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4761
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 16 Nov 2004 12:18:58 +0000 (12:18 +0000)]
now unloads all stale submodels and the old world model before loading the new one (this relies on the world model being the first precache to trigger this code at the appropriate time)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4760
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 16 Nov 2004 12:17:54 +0000 (12:17 +0000)]
renamed mod->needload to mod->loaded as a minor cleanup (safer default)
removed now unused Mod_TouchModel
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4759
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 16 Nov 2004 12:15:25 +0000 (12:15 +0000)]
call Mod_FindName directly instead of Mod_TouchModel because one just wraps the other
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4758
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 16 Nov 2004 12:14:51 +0000 (12:14 +0000)]
now checks that a lightmap surfacechain is not NULL before dereferencing it
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4757
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 15 Nov 2004 23:09:21 +0000 (23:09 +0000)]
fixed bug that called PlayerPreThink and PlayerPostThink on unspawned clients
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4756
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 15 Nov 2004 13:13:58 +0000 (13:13 +0000)]
328 (a lot of new items)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4755
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 15 Nov 2004 02:48:40 +0000 (02:48 +0000)]
forgot to commit this file
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4754
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 14 Nov 2004 23:31:36 +0000 (23:31 +0000)]
upgraded rtlights format to have separate ambient, diffuse, and specular intensity scales, and also coronasize, this also allows corona-only lights by setting all scales to 0, and added normalmode/realtimemode flags so that lights can appear in normal mode, not just realtime mode (primarily useful for adding corona effects to a normal level)
added ambient light support to RenderLighting (non-bumpmapped diffuse)
some dlights now use ambientscale (this has not been exposed as a qc extension yet, qc lights remain the same)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4753
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 14 Nov 2004 23:23:19 +0000 (23:23 +0000)]
remove unused sv_player extern
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4752
d7cf8633-e32d-0410-b094-
e92efae38249
black [Sun, 14 Nov 2004 18:34:55 +0000 (18:34 +0000)]
-Fixed a stupid bug in the VM_findchain* functions.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4751
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 14 Nov 2004 02:16:33 +0000 (02:16 +0000)]
someone removed the quotes around binds in Key_WriteBindings... added back so that bind ";" whatever doesn't wreck the config
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4750
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 13 Nov 2004 11:14:31 +0000 (11:14 +0000)]
replaced all uses of sv_player with host_client->edict (because sv_player was often invalid after a level change)
fixed a number of botclient crashes relating to invalid client->edict pointers after a level change
now sets client->spawned = true on botclients when freshly spawned (they were already being set correctly on level change)
DP_SV_BOTCLIENT now works properly
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4744
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 13 Nov 2004 11:11:15 +0000 (11:11 +0000)]
no longer warns about q3bsp surfaces with lightmapindex -3 (or any other negative values below -1), as q3map2 seems to use these values intentionally it's rather pointless to warn about them
now warns about missing textures in q3bsp texture loading
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4743
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 12 Nov 2004 23:18:57 +0000 (23:18 +0000)]
added DP_SV_BOTCLIENT extension
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4742
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 12 Nov 2004 22:50:41 +0000 (22:50 +0000)]
moved the extern prototype for SV_ConnectClient from netconn.c to server.h since the DP_SV_BOTCLIENT builtins will be calling it
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4741
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 12 Nov 2004 22:42:20 +0000 (22:42 +0000)]
more preparation for DP_SV_BOTCLIENT, removed a number of unneeded netconnection checks and changed some others to check active, and made player info queries reply "botclient" for clients with no netconnection
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4740
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 12 Nov 2004 22:09:18 +0000 (22:09 +0000)]
print botclient as address in status reports for clients with no netconnection
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4739
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 12 Nov 2004 22:08:07 +0000 (22:08 +0000)]
cleaned up SV_DropClient code a bit
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4738
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 12 Nov 2004 21:48:07 +0000 (21:48 +0000)]
moved rate and connecttime from netconn structure to client structure in preparation for DP_SV_BOTCLIENT extension
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4737
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 10 Nov 2004 06:02:18 +0000 (06:02 +0000)]
made q3bsp alphafunc shaders render as transparent (quick hack)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4736
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 10 Nov 2004 02:32:00 +0000 (02:32 +0000)]
VorteX has fixed gettaginfo to work as advertised (properly handling of attached entities) and cleaned up gettagindex by splitting it into two functions
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4735
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 5 Nov 2004 00:21:19 +0000 (00:21 +0000)]
imposed a 20 frames at once limit in Host_ServerFrame
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4734
d7cf8633-e32d-0410-b094-
e92efae38249