black [Sun, 3 Jul 2005 11:23:47 +0000 (11:23 +0000)]
-Moved findflags and findchainflags to the prvm_cmds.c.
-Added support for default values to the cvar system.
-Added a cvar_defstring builtin to the vm.
fix bug that made pants/shirt not render in rtlighting (logic was backwards on the fullbright color range checks)
fix bug that rendered specular multiple times (brighter than inended) when using GLSL shader path on colormapped entities
don't print PRVM_NAME in each dprint call, it looks terrible (prints multiple times per line because of multiple dprint calls without \n)
fix fatal bug in findchain and findchainfloat which were using FindFieldOffset (which returns a byte array index) to get an offset to feed to PRVM_E_INT (which takes an integer array index)
fix Black's mistake of using 'long' (32bit/64bit depending on architecture) type in reading .lno files, changed to int (32bit) so that the code works on 64bit architectures
havoc [Wed, 29 Jun 2005 22:45:28 +0000 (22:45 +0000)]
added knownstrings_freeable array to prog struct so that attempts to free engine strings are detected and cause a PRVM_FreeString error (rather than a Mem_Free error)
black [Tue, 28 Jun 2005 21:09:58 +0000 (21:09 +0000)]
-Added sv_playerphysicsqc to control whether the qc physics function is called (if its available).
-Added support for loading LNO files (more to follow soon).
-The server now tries other ports (up to 100 above default) if the default port cant be bound.
havoc [Tue, 28 Jun 2005 05:59:39 +0000 (05:59 +0000)]
removed r_editlights_rtlightssizescale and r_editlights_rtlightscolorscale cvars (now they behave as if they were both 1.0)
added r_editlights_edit commands radiusscale sizescale and colorscale (use these to fix old-format .rtlights files)
havoc [Sun, 19 Jun 2005 23:52:18 +0000 (23:52 +0000)]
removed two unused Key_Event implementations (which let me remove some unused variables like menukeys and consolekeys to save several K of memory), cleaned up keys.h externs
black [Sun, 19 Jun 2005 16:42:43 +0000 (16:42 +0000)]
-Added support for 515]'s BX_COLOREDTEXT extension.
-Changed fopen's and fclose's log ouput a bit (to include the prvm name)
-Fixed a stupid bug in the SV VM that caused it to crash on error.
havoc [Sun, 19 Jun 2005 01:10:38 +0000 (01:10 +0000)]
removed CL_InitTEnts function, moved its contents (cl_sfx precaches) to CL_ParseServerInfo
removed beam precaches from the beam parsing code to CL_ParseServerInfo so that the precaches are made each level (when it unloads models/sounds) rather than only once (ever!) during the game, this fixed crashes and rendering issues (using the wrong model) with lightning beams
renamed cl_sfx_ and cl_model_ from cl_ prefix to cl. prefix now that they are part of the per-level state
havoc [Thu, 16 Jun 2005 22:43:37 +0000 (22:43 +0000)]
replace control characters (such as newline) with _ in savegame comments, this fixes loading savegames in 'dungeon.bsp' of The Ascension of Vigil, and probably some other maps that use newlines in their titles (nasty)
black [Tue, 14 Jun 2005 19:26:27 +0000 (19:26 +0000)]
-reconnect wont work if being called from the console (it never did but now
it wont get you into this 'zombie' state).
-changed the severlist string compare function to convert all strings to
lowercase before comparing.
tomaz [Mon, 13 Jun 2005 14:54:52 +0000 (14:54 +0000)]
added -demo and -demolooponly options. -demo starts the wanted demo and then shuts down the engine once done. -demolooponly does pretty mucht the same except it disables all keys but the escape key and makes escape key quit the engine.
black [Sat, 11 Jun 2005 18:49:09 +0000 (18:49 +0000)]
-The new Key_Event is enabled by default now and Ive added a check so the
console toggle char is only added to the message line or console input if it is
the color tag char.
-Some name changes of the colored string constants.
havoc [Sat, 11 Jun 2005 16:42:02 +0000 (16:42 +0000)]
split CL_ClientMovement into CL_ClientMovement_Input (called each input packet) and CL_ClientMovement_Replay (called each frame) functions to cure a feedback loop that could freeze up a client with a full prediction queue (prediction became slower with each queue item, and the server was not affected by the slowness of the replay, so it could keep the client busy with an endless packet stream and the client would never catch up)
molivier [Sat, 11 Jun 2005 13:12:43 +0000 (13:12 +0000)]
Basic support for Q3's "getstatus" message, for a better integration with Q3 compatible server browsers. Thanks to divVerent for an early version of this patch
havoc [Sat, 11 Jun 2005 00:44:08 +0000 (00:44 +0000)]
changed searchpath directories to have a trailing / (allowing %s%s instead of %s/%s for more consistency)
fixed FS_Search to support empty paths (*.cfg and such), and use %s%s concatenation as the rest of the filesystem does, this required changing listdirectory slightly
some cleanup of the opendir implementation of listdirectory
havoc [Thu, 9 Jun 2005 16:28:57 +0000 (16:28 +0000)]
added r_shadow_glsl_geforcefxlowquality cvar (automatically on if running a GeForce FX card) to use half floats instead of full floats where possible, and r_shadow_glsl_surfacenormalize cvar (slight quality improvement to bumpmapping)
havoc [Thu, 9 Jun 2005 11:57:24 +0000 (11:57 +0000)]
replaced uses of VectorNormalizeFast with VectorNormalize as it was broken on x86_64 (probably just because it used long * casts of floats) and was never much faster on modern CPUs anyway
made a lot of internal functions in portals.c static, and replaced two vector subtracts and a crossproduct with TriangleNormal
black [Wed, 8 Jun 2005 20:12:37 +0000 (20:12 +0000)]
New Key_Event is still disabled.
Changed it back, so keys bound to toggleconsole that arent used as
console keys can hide the console again when pressed in the console.
molivier [Wed, 8 Jun 2005 06:06:44 +0000 (06:06 +0000)]
Changed default sound module for linux to ALSA. Modified makefiles to allow people to choose the sound module easily at compile time (ex: "make DP_SOUND_API=OSS release" compiles release binaries with OSS sound output). Available sound modules are: NULL, OSS, ALSA, BSD, WIN, and COREAUDIO (not functional yet).
black [Tue, 7 Jun 2005 20:55:08 +0000 (20:55 +0000)]
My Key_Event is disabled (yet).
-Changed it to only toggle the console with ESCAPE when you're in the console,
so binding toggleconsole to a normal key wont toggle it while typing.
-Changed the panic console key to shift-escape since ctrl-escape open the start
menu.
Feel free to test it.
@ETG: since I can probably only reach you this way: it is intended that the console
toggle key now appears in the console input line and is also send to e.g. message.
This is because the color tag ^ key opens the console on some keyboard layouts and
couldnt be typed in otherwise.
black [Mon, 6 Jun 2005 20:37:00 +0000 (20:37 +0000)]
If the new Key_Event breaks anything for you, you can set #if 0 and activate the old
one again.
-Moved _Con_DrawString to cl_screen and changed its name to DrawQ_ColoredString.
-Changed all the code to allow colored nicks.
-Changed Win32 code to support two-char keys (it takes the second byte - may
need some more testing).
-Rewrote Key_Event to support typing in the ^ key on Germany keyboards (or
at least mine). Press ^ two times, once to open the console and once to close it.
If you type in a message, there will be a ^ char waiting for you (same in the console if you open it again).
havoc [Sun, 5 Jun 2005 09:27:19 +0000 (09:27 +0000)]
fix lagged prydon cursor trace bug (it was using renderer variables, now uses V_CalcRefdef to get an up to date view matrix before this frame is even rendered)
fixed 'shooting at world origin' bug due to a misplaced CL_UpdatePrydonCursor call (now in CL_SendMove so it works properly)