revised water shader, less refraction, more focus on reflections
added MODE_LIGHTMAP shader permutation flag, this simplified the shader
some other cleanup (q3 vertex shaded surfaces should now properly
respond to r_ambient)
implemented internal support for reflection surfaces (as opposed to full
refraction+reflection water effects)
moved resource.h and darkplaces.rc from Source Files group to Resource
Files group
added resource.h which was missing in some projects
renamed project configurations to be named darkplaces-sdl and
darkplaces-dedicated rather than merely sdl and dedicated
reduced default value of sv_clmovement_waitforinput from 16 to 4,
limiting the potential of lag-burst cheats, and causing lagging players
to start moving again a bit sooner
Added optional CSQC function CSQC_Event_Sound with the following parameters : float entitynum, float channel, string soundname, float volume, float attenuation, vector position . This function, if provided, is called whenever a sound packet arrives from the server. If the function returns true, the sound call is skipped in the engine, otherwise it is played as normal. Function intention is to provide additional feedback on sound events (without touching the packet stream).
For now, ground snd_restart and snd_unloadallsounds if the client is still connected, because DP keeps references to the sfx_t * that are being freed in the precache list. A real fix however would be ditching snd_unloadallsounds completely, and making a snd_reload command that unloads the sounds that are not being used at the moment, and reloads the sounds that are referenced.
Added optional float global sb_showscores to CSQC that represents the engine's +showscores state. To support this in your CSQC, simply add this :
float sb_showscores;
Added QC function drawcolorcodedstring (#326 CSQC, #467 MQC) which is similar to drawstring, instead it does not take in an RGB vector and instead colors the string based on the engine's coloring rules.
Useful for drawing colorized player names, centerprints, etc.
havoc [Wed, 29 Aug 2007 05:35:08 +0000 (05:35 +0000)]
fix intermission display on recorded singleplayer demos, it was checking
cl.islocalgame which is false on demo playback and thinking it should
draw multiplayer scoreboard instead of the intermission stats
havoc [Mon, 27 Aug 2007 11:12:19 +0000 (11:12 +0000)]
implemented snd_mutewhenidle cvar, defaults to 1, to allow people to
reenable sound when not the active window if they wish (such as when
watching demos)
havoc [Mon, 27 Aug 2007 11:10:41 +0000 (11:10 +0000)]
added a developer 1000 print for every key event received, attempting to
figure out why while watching the demo loop you can press the 1 key and
then escape and escape does nothing, pressing other keys reenables
escape again
dresk [Sun, 26 Aug 2007 19:02:29 +0000 (19:02 +0000)]
Added pointsound QC function to CL and SV VMs (extension DP_SV_POINTSOUND, #483). This function is very similar to sound, though instead of providing an entity, an origin is provided, and the channel parameter is omitted (since no entity is being tracked).
This function requires no modification to the protocol layer (since origin was always sent with sound calls, along with an entity).
havoc [Thu, 23 Aug 2007 07:44:46 +0000 (07:44 +0000)]
implemented support for GL_ARB_texture_compression - this is controlled
by the gl_texturecompression cvar, and which kinds of texture are
affected can be controlled by the gl_texturecompression_* cvars
divverent [Wed, 22 Aug 2007 15:40:45 +0000 (15:40 +0000)]
add to cvar expansion: new variant $3- for all arguments starting from the 3rd; note: $1- is equivalent to $*.
Fix bug in cvar value quoting that didn't quote $ (typo).
dresk [Thu, 16 Aug 2007 06:35:30 +0000 (06:35 +0000)]
Added SSQC Function "SV_OnEntityNoSpawnFunction" which is called, if available, whenever an entity on the server is parsed but has no spawn function. Previously Darkplaces would report this to the console under developer mode and immediately remove the entity. The SSQC may now specify the behavior when such an event occurs (it may also simply call remove(self) to mimic the engine's behavior.)
dresk [Mon, 13 Aug 2007 18:04:50 +0000 (18:04 +0000)]
Added CSQC globals dmg_take, dmg_save and dmg_origin. These globals correspond to the SSQC-sent messages that provide the data from the QC layer. dmg_origin is the origin of the damage taken, derived from the dmg_inflictor entity in the QC. All values are reset after every rendered frame (to mimic the server behavior).
These globals are optional, and do not interfere with the CRC of the CSQC definitions.
havoc [Thu, 9 Aug 2007 05:16:37 +0000 (05:16 +0000)]
fix a clientside bug with CL_ValidateState altering entity states and
causing them to remain altered in the future on delta updates in DP5/6/7
protocols (for example if skin or frame was set to a value that is not
valid on the current model, and then the model changes without the skin
or frame changing, it would be stuck on skin 0 or frame 0 until they
change to something else)
Reverted addition of float global intermission to clprogdefs.h (which required a CRC update and recompilation of all CSQC mods). Revert changes to CSQC Defs file if intermission had been inserted into it.
CSQC updating of intermission still supported if float global intermission exists.
Added the global float "intermission" to CSQC defs (in clprogdefs.h). Intermission was added after the global float servercommandframe, and MUST be added in all CSQC definitions files at this location. This float is updated whenever the client intermission is updated.
This new global float is part of Spike's CSQC definition, as it exists in his globals as well (albeit in a different order from DP's).
Added the map name (ie. "The Grisly Grotto") to the world.message field string in CSQC (you will have to define .string message somewhere in your QC code to access it)
add Cmd_QuoteString, and make the config writing code use that to quote strings written to the config file (so binds containing backslashes and quotes are saved correctly)
command parsing: make "bind" and "in_bind" have the same parsing exception as "alias": no cvar expansion takes place when executing these commands, unless the command names are quoted or "hidden" in some other way
This fixes binds using cvars when written to the config file.
modified Mod_Q1BSP_LoadFaces to use smaller lightmapsize on maps that
don't have a lot of lightmap data (mainly ammo boxes and such), and also
increased the maximum lightmapsize to 1024 which improves performance on
very large maps like masque.bsp
added some tolerances in Mod_Q1BSP_RecursiveHullCheck so that it is
likely to give sane results if an endpoint is exactly on a plane
(possibly negating the need for the nudge off the impact plane, but that
remains in the code)
fix bug with large time skips in demo playback being slowly interpolated
rather than simply skipped as in Quake, this fixes Nehahra movie
playback (where scene cuts are associated with large time deltas), as
well as fixing the view angle interpolation on the first frame of all
other demos
Removed inline from function Con_Rcon_AddChar due to MSVC8 (Visual Studio 2005) not supporting the C99 standard (which supports inline). Potential future compiler check for feature.
Added optional wildcard support for prvm_edict, prvm_edicts and prvm_globals commads. In prvm_edict/s, wildcard is for field names; in prvm_globals, wildcard is for generic names.