havoc [Mon, 1 Oct 2007 03:39:40 +0000 (03:39 +0000)]
implemented support for more than 32768 clipnodes (again a case of
arguire qbsp producing files that violate the q1bsp format), this fixes
large monsters falling out of levels in warpspasm
havoc [Mon, 1 Oct 2007 03:37:39 +0000 (03:37 +0000)]
r_showtris/r_shownormals/r_showcollisionbrushes are no longer obscured
by bmodels and things that are drawn later, they now get their own
rendering stage, and have been moved after transparencies, also changed
them to use alpha blend, where their value controls the opacity
havoc [Mon, 1 Oct 2007 03:12:19 +0000 (03:12 +0000)]
added support for arguire's strange protocols that expand
modelindex/soundindex to 16bit (sometimes), these protocols are
not recommended for mods as the more standard QUAKEDP protocol already
supported 16bit indices by use of additional svc_ codes and additional
entity update bits, however these protocols are used in the warpspasm
demos, so this makes them play
implemented pvs support in water reflection rendering, greatly improving
performance with r_glsl_water 1
implemented some checks to shut off r_glsl_water if texture creation
fails
fix a bug where map becomes invisible (just sky) when the nearclip plane
culls a portal, this bug was introduced by recent water shader rendering
features (using an extra clip plane for culling, accidentally activated
the view's nearclip plane as well, which culls portals accidentally)
changed q1bsp loader to allow more than 32768 nodes, as long as the
total of nodes+leafs is <= 65536, it also attempts to fix corrupt BSP
trees by changing invalid references to instead use the solid leaf (so
you can't walk into a corrupt area), this was done to allow loading of
maps compiled with arguire's qbsp utility that can produce corrupt bsp
files
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)