]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
16 years agomake COM_StringLengthNoColors and COM_StringDecolorize get an additional length param...
divverent [Fri, 27 Apr 2007 22:57:01 +0000 (22:57 +0000)]
make COM_StringLengthNoColors and COM_StringDecolorize get an additional length parameter to just work on part of a string (if set to 0, it means use the whole string); use that in centerprint drawing to fix centering issues in some odd situations like "^^^^^^^^^^^^^^^^^^^^^^^^^^".

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

16 years agoclarified descriptions of r_mipsprites and r_mipskins
havoc [Thu, 26 Apr 2007 20:20:20 +0000 (20:20 +0000)]
clarified descriptions of r_mipsprites and r_mipskins

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

16 years agosplit cl_netpacketloss into cl_netpacketloss_send and
havoc [Thu, 26 Apr 2007 16:19:42 +0000 (16:19 +0000)]
split cl_netpacketloss into cl_netpacketloss_send and
cl_netpacketloss_receive to allow more network testing

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

16 years agofixed bug where animated mdl skins (such as Tomaz's health box and
havoc [Wed, 25 Apr 2007 18:17:38 +0000 (18:17 +0000)]
fixed bug where animated mdl skins (such as Tomaz's health box and
explobox models in dpmod) were getting freed because they were not
properly counted in the model->num_textures

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

16 years agochanged default cl_movement_minping from 1 to 0
havoc [Wed, 25 Apr 2007 16:41:34 +0000 (16:41 +0000)]
changed default cl_movement_minping from 1 to 0

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

16 years agochanged default cl_movement_minping from 50 to 1
havoc [Wed, 25 Apr 2007 16:41:02 +0000 (16:41 +0000)]
changed default cl_movement_minping from 50 to 1

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

16 years agoadded tracking of memory usage of VBO/EBO buffers
havoc [Wed, 25 Apr 2007 14:47:02 +0000 (14:47 +0000)]
added tracking of memory usage of VBO/EBO buffers
added gl_vbostats command to list VBO/EBO buffers
added total VBO/EBO usage information in memstats

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

16 years agofix bugs in Mod_Q3BSP_Loadtextures that caused crashes and other
havoc [Wed, 25 Apr 2007 10:15:55 +0000 (10:15 +0000)]
fix bugs in Mod_Q3BSP_Loadtextures that caused crashes and other
sillyness

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

16 years agoprevent abuse by ending netname with a ^: if the name is not a valid colored string...
divverent [Wed, 25 Apr 2007 08:38:40 +0000 (08:38 +0000)]
prevent abuse by ending netname with a ^: if the name is not a valid colored string, add a ^ if possible, and if there is no space for it, remove the trailing ^

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

16 years agofix strlennocol/strdecolorize on unusual strings like "foo^";
divverent [Wed, 25 Apr 2007 07:18:16 +0000 (07:18 +0000)]
fix strlennocol/strdecolorize on unusual strings like "foo^";
now strlennocol returns the visible width (like before) and strdecolorize
returns a string that can be safely printed and that looks like the original,
just without the colors.

Moved decolorizing and counting to common.c.

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

16 years agoisolated more of the texture loading code from the rest of model
havoc [Tue, 24 Apr 2007 23:17:36 +0000 (23:17 +0000)]
isolated more of the texture loading code from the rest of model
loading, to avoid potential for crashes in dedicated servers

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

16 years agofixed crash in sprite loaders on dedicated servers
havoc [Tue, 24 Apr 2007 22:55:20 +0000 (22:55 +0000)]
fixed crash in sprite loaders on dedicated servers

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

16 years agoadded DP_SV_MODELFLAGS_AS_EFFECTS extension, this adds EF_ROCKET and
havoc [Tue, 24 Apr 2007 21:29:59 +0000 (21:29 +0000)]
added DP_SV_MODELFLAGS_AS_EFFECTS extension, this adds EF_ROCKET and
friends as effect bits in the protocol, the QC can use these constants
directly or can use the new .modelflags field to set them without float
precision issues caused by the large values, this basically means that
you can make an entity leave a blood trail, or look like a rocket

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

16 years agoreverted dresk's DP_SV_ALLOWTOUCHWITHOWNER patch as it adds unnecessary
havoc [Tue, 24 Apr 2007 20:33:32 +0000 (20:33 +0000)]
reverted dresk's DP_SV_ALLOWTOUCHWITHOWNER patch as it adds unnecessary
bloat when there is a well-known QuakeC approach to do this already

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

16 years agoAdded QC float .allowtouchwithowner . Setting this to true allow an entity to touch...
dresk [Tue, 24 Apr 2007 20:28:42 +0000 (20:28 +0000)]
Added QC float .allowtouchwithowner .  Setting this to true allow an entity to touch its owner (ie. missile or grenade).  Be careful where you spawn your projectiles and assign this value, as you may end up detonating the projectile immediately.

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

16 years agoallow model flags to work on attached entities
havoc [Tue, 24 Apr 2007 19:24:32 +0000 (19:24 +0000)]
allow model flags to work on attached entities

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

16 years agoexpanded texture name buffer so that names don't get clipped in
havoc [Tue, 24 Apr 2007 17:11:32 +0000 (17:11 +0000)]
expanded texture name buffer so that names don't get clipped in
r_texturestats output

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

16 years agodon't crash in Mod_BuildAliasSkinFromSkinFrame on dedicated servers
havoc [Tue, 24 Apr 2007 17:08:54 +0000 (17:08 +0000)]
don't crash in Mod_BuildAliasSkinFromSkinFrame on dedicated servers

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

16 years agoAdded standard color escapes to "changed name to" broadcast prints
dresk [Tue, 24 Apr 2007 16:27:21 +0000 (16:27 +0000)]
Added standard color escapes to "changed name to" broadcast prints

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

16 years agoUpdated console command description of prvm_edicts (it had the description of prvm_ed...
dresk [Tue, 24 Apr 2007 16:11:13 +0000 (16:11 +0000)]
Updated console command description of prvm_edicts (it had the description of prvm_edictset)

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

16 years agoAdded return to standard color coding in "status" command player listing
dresk [Tue, 24 Apr 2007 15:47:51 +0000 (15:47 +0000)]
Added return to standard color coding in "status" command player listing

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

16 years agoAdded check for MAX_MODELS in cl_modelindexlist command
dresk [Tue, 24 Apr 2007 15:40:38 +0000 (15:40 +0000)]
Added check for MAX_MODELS in cl_modelindexlist command

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

16 years agoRemoved modelindexlist command from cmd.c, shifted function as cl_modelindexlist...
dresk [Tue, 24 Apr 2007 15:37:47 +0000 (15:37 +0000)]
Removed modelindexlist command from cmd.c, shifted function as cl_modelindexlist into cl_main.c

Started modelindex at 1

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

16 years agoAdded return to standard color coding in the "Player entered the game" and "Client...
dresk [Tue, 24 Apr 2007 15:30:47 +0000 (15:30 +0000)]
Added return to standard color coding in the "Player entered the game" and "Client "Player" Dropped" messages

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

16 years agoImplemented console command 'modelindexlist' which lists all the models and their...
dresk [Tue, 24 Apr 2007 15:21:56 +0000 (15:21 +0000)]
Implemented console command 'modelindexlist' which lists all the models and their corresponding model index numbers

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

16 years agofixed missing sprite textures caused by purging code
havoc [Tue, 24 Apr 2007 15:02:02 +0000 (15:02 +0000)]
fixed missing sprite textures caused by purging code

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

16 years agofix bug that made all textures without a shader definition have
havoc [Tue, 24 Apr 2007 14:41:57 +0000 (14:41 +0000)]
fix bug that made all textures without a shader definition have
numskinframes = 0, which caused purging to eliminate their textures

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

16 years agocheck if skinframe is NULL in R_SkinFrame_MarkUsed
havoc [Tue, 24 Apr 2007 14:41:27 +0000 (14:41 +0000)]
check if skinframe is NULL in R_SkinFrame_MarkUsed

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

16 years agofix a line I forgot to commit
havoc [Tue, 24 Apr 2007 14:23:25 +0000 (14:23 +0000)]
fix a line I forgot to commit

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

16 years agoFixed a typo by not putting a whitespace after the DP_SV_NETADDRESS
dresk [Tue, 24 Apr 2007 13:25:23 +0000 (13:25 +0000)]
Fixed a typo by not putting a whitespace after the DP_SV_NETADDRESS

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

16 years agoreplaced Mod_LoadSkinFrame functions with R_SkinFrame system, this
havoc [Tue, 24 Apr 2007 13:19:07 +0000 (13:19 +0000)]
replaced Mod_LoadSkinFrame functions with R_SkinFrame system, this
allows multiple models to share textures in a given level, as well as
models using the same texture multiple times (often the case in md3
where meshes have a vertex limit, and q3bsp where texture structs
describe surface properties and multiple may exist referring to the same
texture set)
this reduced Nexuiz video memory usage by over 150MB

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

16 years agofix MAX_CHANNELS, it was too low with the expanded MAX_DYNAMIC_CHANNELS
havoc [Tue, 24 Apr 2007 13:12:35 +0000 (13:12 +0000)]
fix MAX_CHANNELS, it was too low with the expanded MAX_DYNAMIC_CHANNELS

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

16 years agofix crash when freeing an expandable array caused by a typo
havoc [Tue, 24 Apr 2007 10:14:46 +0000 (10:14 +0000)]
fix crash when freeing an expandable array caused by a typo

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

16 years agoaudited all Sys_Quit calls and gave them return values indicating
havoc [Tue, 24 Apr 2007 06:56:37 +0000 (06:56 +0000)]
audited all Sys_Quit calls and gave them return values indicating
whether the game quit normally, so shell scripts get a useful value

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

16 years agoreplaced qglArrayElement calls with qglVertex3f calls in showtris code,
havoc [Mon, 23 Apr 2007 20:44:45 +0000 (20:44 +0000)]
replaced qglArrayElement calls with qglVertex3f calls in showtris code,
this avoids issues with abysmal gl_vbo 1 performance on NVIDIA cards
(which seem to use a software fallback for drawing lines for some
reason)

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

16 years agoAdded new extension for .string netaddress (DP_SV_NETADDRESS)
dresk [Mon, 23 Apr 2007 20:32:12 +0000 (20:32 +0000)]
Added new extension for .string netaddress (DP_SV_NETADDRESS)

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

16 years agoImplemented .string netaddress to SVQC, providing the IP Address of the associated...
dresk [Mon, 23 Apr 2007 20:25:05 +0000 (20:25 +0000)]
Implemented .string netaddress to SVQC, providing the IP Address of the associated client entity (string is "null/botclient is client is not valid)

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

16 years agomodified Mod_LoadSkinFrame to not attempt to generate a fogging mask if
havoc [Mon, 23 Apr 2007 19:39:18 +0000 (19:39 +0000)]
modified Mod_LoadSkinFrame to not attempt to generate a fogging mask if
not given the TEXF_ALPHA flag (in which case the fog mask would not be
used anyway)

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

16 years agocleaned up Mod_LoadSkinFrame now that image_loadskin is gone
havoc [Mon, 23 Apr 2007 19:13:39 +0000 (19:13 +0000)]
cleaned up Mod_LoadSkinFrame now that image_loadskin is gone

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

16 years agomerged image_loadskin and image_freeskin into Mod_LoadSkinFrame
havoc [Mon, 23 Apr 2007 18:11:15 +0000 (18:11 +0000)]
merged image_loadskin and image_freeskin into Mod_LoadSkinFrame

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

16 years agofix some unintentional math on a void pointer
havoc [Mon, 23 Apr 2007 16:20:31 +0000 (16:20 +0000)]
fix some unintentional math on a void pointer

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

16 years agobatch by lightmap rather than by use of lightmaps (batching by use of
havoc [Sun, 22 Apr 2007 13:04:35 +0000 (13:04 +0000)]
batch by lightmap rather than by use of lightmaps (batching by use of
lightmaps is no longer necessary with the lightmap merging)

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

16 years agoadded r_showbboxes cvar and accompanying code to render server entity
havoc [Sun, 22 Apr 2007 11:24:17 +0000 (11:24 +0000)]
added r_showbboxes cvar and accompanying code to render server entity
bounding boxes

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

16 years agofix a bug in the last commit pertaining to lightning beam fogging
havoc [Sun, 22 Apr 2007 09:52:01 +0000 (09:52 +0000)]
fix a bug in the last commit pertaining to lightning beam fogging

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

16 years agofixed several bugs in fog code, it basically wasn't working in the
havoc [Sun, 22 Apr 2007 09:48:18 +0000 (09:48 +0000)]
fixed several bugs in fog code, it basically wasn't working in the
r_glsl 0 case at all, it still doesn't work with rtlights in gl_combine
1 mode though

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

16 years agofixed bug where items would not fall if pushed off a ledge by a
havoc [Sun, 22 Apr 2007 09:02:23 +0000 (09:02 +0000)]
fixed bug where items would not fall if pushed off a ledge by a
MOVETYPE_PUSH entity

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

16 years agocorrect a couple error messages which said "Map downloads", changed to
havoc [Sun, 22 Apr 2007 05:13:06 +0000 (05:13 +0000)]
correct a couple error messages which said "Map downloads", changed to
"cURL downloads"

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

17 years agooops... sorry for that one. Copypaste without testing never works...
divverent [Fri, 20 Apr 2007 22:36:23 +0000 (22:36 +0000)]
oops... sorry for that one. Copypaste without testing never works...

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

17 years agofix multithreaded OpenGL support; actually load CGL functions from OpenGL.framework
divverent [Fri, 20 Apr 2007 22:22:59 +0000 (22:22 +0000)]
fix multithreaded OpenGL support; actually load CGL functions from OpenGL.framework

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

17 years agocompare the right values for host cache masks;
divverent [Fri, 20 Apr 2007 15:59:28 +0000 (15:59 +0000)]
compare the right values for host cache masks;
use -1 bots to indicate unknown bot count

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

17 years agonew cvar fs_empty_files_in_pack_mark_deletions: when set, a pk3 with empty files...
divverent [Fri, 20 Apr 2007 11:43:24 +0000 (11:43 +0000)]
new cvar fs_empty_files_in_pack_mark_deletions: when set, a pk3 with empty files can effectively "delete" a file in an earlier pk3

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

17 years agoupped MAX_DYNAMIC_CHANNELS from 128 to 512
havoc [Fri, 20 Apr 2007 06:25:06 +0000 (06:25 +0000)]
upped MAX_DYNAMIC_CHANNELS from 128 to 512

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

17 years agochanged VERTEXFOGTABLE macro to not use a global variable
havoc [Thu, 19 Apr 2007 13:17:06 +0000 (13:17 +0000)]
changed VERTEXFOGTABLE macro to not use a global variable

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

17 years agosignificant cleanup of reliefmapping shader, now uses step() function
havoc [Thu, 19 Apr 2007 12:50:45 +0000 (12:50 +0000)]
significant cleanup of reliefmapping shader, now uses step() function
instead of if's, this might improve compatibility with ATI cards, but
not sure, in any case I improved the stepping math a little bit which
saves some time, minor fps improvement on reliefmapping compared to
before

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

17 years agoadjusted netgraph code to draw the latest netgraph column on the right
havoc [Thu, 19 Apr 2007 07:32:00 +0000 (07:32 +0000)]
adjusted netgraph code to draw the latest netgraph column on the right
rather than the left

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

17 years agocorrect a typo (numbotss)
havoc [Thu, 19 Apr 2007 00:44:52 +0000 (00:44 +0000)]
correct a typo (numbotss)

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

17 years agosv_public -2 now allows the local: client to connect
divverent [Wed, 18 Apr 2007 11:38:57 +0000 (11:38 +0000)]
sv_public -2 now allows the local: client to connect

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

17 years agofix a bug in the RENDER_EXTERIORMODEL check in the last commit
havoc [Wed, 18 Apr 2007 11:15:58 +0000 (11:15 +0000)]
fix a bug in the RENDER_EXTERIORMODEL check in the last commit

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

17 years agochanged protocol code to always send origin as low precision if
havoc [Wed, 18 Apr 2007 11:13:57 +0000 (11:13 +0000)]
changed protocol code to always send origin as low precision if
possible, except for exteriormodel's (such as the player itself),
this means the only effect of EF_LOWPRECISION is lower precision angles

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

17 years agoremoved the forced LOWPRECISION flag on entities because it messes up
havoc [Wed, 18 Apr 2007 10:35:30 +0000 (10:35 +0000)]
removed the forced LOWPRECISION flag on entities because it messes up
angles too much, and it is hard to decide what origins warrant high
precision or low precision

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

17 years agoimproved entity unsticking code, it now uses a trace from the offset
havoc [Wed, 18 Apr 2007 10:20:09 +0000 (10:20 +0000)]
improved entity unsticking code, it now uses a trace from the offset
position back to the original position, and uses the impact point, this
makes it correct significantly less than before

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

17 years agotry unstick offsets in a certain order, preferring horizontal offsets
havoc [Wed, 18 Apr 2007 09:59:06 +0000 (09:59 +0000)]
try unstick offsets in a certain order, preferring horizontal offsets
and then vertical, and never doing horizontal + vertical, this fixes
problems where you would 'creep' along the floor diagonally at certain
frametimes at certain plane distances where precision error causes
problems, now you only teleport upward 1 unit and fall repeatedly

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

17 years agoadded Mem_ExpandableArray_IndexRange and
havoc [Wed, 18 Apr 2007 09:29:50 +0000 (09:29 +0000)]
added Mem_ExpandableArray_IndexRange and
Mem_ExpandableArray_RecordAtIndex which allow iterating the array

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

17 years agoadded Mem_ExpandableArray functions, which are not currently used but
havoc [Wed, 18 Apr 2007 09:17:54 +0000 (09:17 +0000)]
added Mem_ExpandableArray functions, which are not currently used but
may be useful

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

17 years agoadded cl_nettimesyncboundmode 5 which is div0's slight refinement of 4
havoc [Wed, 18 Apr 2007 09:17:33 +0000 (09:17 +0000)]
added cl_nettimesyncboundmode 5 which is div0's slight refinement of 4

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

17 years agoadded numbots and numhumans in server info parsing, serverlist filtering
havoc [Wed, 18 Apr 2007 08:08:31 +0000 (08:08 +0000)]
added numbots and numhumans in server info parsing, serverlist filtering
can also mask by these, and the 'player empty' check for the engine's
own server listings now uses numhumans rather than numplayers

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

17 years agoadded reporting of number of bots in getinfo/getstatus replies (they are
havoc [Wed, 18 Apr 2007 07:51:11 +0000 (07:51 +0000)]
added reporting of number of bots in getinfo/getstatus replies (they are
counted as clients also, so something parsing the info can deduct them
if it wishes)

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

17 years agofix bug introduced in last patch that made all text print one character
havoc [Wed, 18 Apr 2007 07:00:49 +0000 (07:00 +0000)]
fix bug introduced in last patch that made all text print one character
to the left

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

17 years agofurther optimized space skipping in DrawQ_String
havoc [Wed, 18 Apr 2007 06:45:31 +0000 (06:45 +0000)]
further optimized space skipping in DrawQ_String

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

17 years agochanged weapons bar in nexuiz hud to use alpha rather than additive
havoc [Wed, 18 Apr 2007 06:20:32 +0000 (06:20 +0000)]
changed weapons bar in nexuiz hud to use alpha rather than additive
blend, and have full opacity for 1 second and then fade over half a second

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

17 years agorefactored DrawQ_Pic to actually do the drawing rather than wasting time
havoc [Wed, 18 Apr 2007 05:52:36 +0000 (05:52 +0000)]
refactored DrawQ_Pic to actually do the drawing rather than wasting time
on a DrawQ_SuperPic call
added DrawQ_Fill as an optimized case of DrawQ_Pic
this significantly improved performance of shownetgraph

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

17 years agochanged r_textshadow behavior to always draw a black shadow, but with
havoc [Wed, 18 Apr 2007 05:33:17 +0000 (05:33 +0000)]
changed r_textshadow behavior to always draw a black shadow, but with
alpha dependent on the brightness of the primary text color, this means
you don't get white shadows under black text, but do get black shadows
under white text
rewrote DrawQ_String and friends to be one combined function that draws
colored strings more efficiently by batching characters with differing
colors together, and it even batches the shadow with the text which can
help performance significantly with r_textshadow on

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

17 years agorenamed client netgraphs back to incoming and outgoing
havoc [Tue, 17 Apr 2007 11:59:40 +0000 (11:59 +0000)]
renamed client netgraphs back to incoming and outgoing

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

17 years agoadded shownetgraph 2 mode which shows netgraphs for all clients when
havoc [Tue, 17 Apr 2007 11:51:02 +0000 (11:51 +0000)]
added shownetgraph 2 mode which shows netgraphs for all clients when
hosting a listen server
tweaked shownetgraph separator spacing a bit so that it is only 2 pixels
between incoming/outgoing graphs, and 4 pixels between netgraphs
relabeled incoming/outgoing graphs to world/input

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

17 years agomoved calls of CL_ReadDemoMessage and CL_SendMove from CL_ReadFromServer
havoc [Tue, 17 Apr 2007 11:50:04 +0000 (11:50 +0000)]
moved calls of CL_ReadDemoMessage and CL_SendMove from CL_ReadFromServer
to the main loop
renamed CL_ReadFromServer to CL_UpdateWorld, and it is now called even
if not connected (to clear the r_refdef entities/lights info, and the
num_brushmodels)

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

17 years agono longer sends nearly-empty input packets when cl.time is less than the
havoc [Tue, 17 Apr 2007 11:48:51 +0000 (11:48 +0000)]
no longer sends nearly-empty input packets when cl.time is less than the
previous move time

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

17 years agoreplaced cl_nettimesyncmode with 3 cvars cl_nettimesyncfactor,
havoc [Tue, 17 Apr 2007 09:32:44 +0000 (09:32 +0000)]
replaced cl_nettimesyncmode with 3 cvars cl_nettimesyncfactor,
cl_nettimesyncboundmode, cl_nettimesyncboundtolerance
the new default time sync method is from Quake3 and slowly adjusts 1ms
forward each packet received, or falls back 2ms if it found itself ahead
of time

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

17 years agofix a crash reported by Lardarse when using more skin textures for a
havoc [Tue, 17 Apr 2007 08:03:27 +0000 (08:03 +0000)]
fix a crash reported by Lardarse when using more skin textures for a
.mdl model than skins exist in the model, this was caused by texture_t
containing pointers to itself that were broken by the reallocation of
the array

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

17 years agomoved shownetgraph to right side of screen
havoc [Tue, 17 Apr 2007 05:54:26 +0000 (05:54 +0000)]
moved shownetgraph to right side of screen

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

17 years agoin X11, keypad * is KP_MULTIPLY, not '*'
divverent [Mon, 16 Apr 2007 21:51:29 +0000 (21:51 +0000)]
in X11, keypad * is KP_MULTIPLY, not '*'

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

17 years agoserver no longer calls networking on each physics frame (since sv.datagram
havoc [Mon, 16 Apr 2007 13:37:42 +0000 (13:37 +0000)]
server no longer calls networking on each physics frame (since sv.datagram
is no longer important)

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

17 years agodisable some debugging code that caused an empty packet to be sent each
havoc [Mon, 16 Apr 2007 13:36:31 +0000 (13:36 +0000)]
disable some debugging code that caused an empty packet to be sent each
server frame even if CanSend returned false (which was done just to see
when the CanSend blocking was occurring, since it was hard to tell)

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

17 years agoimplemented shownetgraph
havoc [Mon, 16 Apr 2007 13:08:38 +0000 (13:08 +0000)]
implemented shownetgraph
major overhaul of rate limiting code
implemented packet-frequency rate limiting (like qw/q2/q3) as a fallback
when packet size limiting fails (such as packet sizes below 100 bytes
causing all sorts of issues, so now the minimum bound on maxsize is 100,
and another good example is reliable messages exceeding the rate limit)

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

17 years agofixed several issues in the recent effect rate limiting code (situations
havoc [Mon, 16 Apr 2007 13:05:26 +0000 (13:05 +0000)]
fixed several issues in the recent effect rate limiting code (situations
where it could get stuck and stop sending them entirely due to too low a
rate setting)
fixed issues introduced in recent stats code (was not resetting them on
a level change, leading to very broken stats for the client)
this includes a missing part of the LOWPRECISION-on-all-entities patch so
that now works

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

17 years agoEF_LOWPRECISION is now default on all entities except the player, this
havoc [Mon, 16 Apr 2007 12:21:00 +0000 (12:21 +0000)]
EF_LOWPRECISION is now default on all entities except the player, this
saves quite a bit of bandwidth (bad side effect: rotating bmodels are
less smooth, need another workaround for that...)
fixed a bug in entity priorities which caused entities to be sent with
no change bits set (which did nothing useful, just wasted bandwidth),
saving quite a bit more bandwidth

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

17 years agosv.datagram is now flushed to client->unreliablemsg buffers, along with
havoc [Mon, 16 Apr 2007 07:57:51 +0000 (07:57 +0000)]
sv.datagram is now flushed to client->unreliablemsg buffers, along with
logging of good split points so that each effect can be issued to
different packets as space allows (sending some each packet), this makes
effects finally obey the rate limit
cleaned up sending of csqc stats in pre-DP6 protocols and renamed the
autosentstats stuff to customstats to better represent what it does
implemented stats updates in pre-DP6 protocols (mostly for sake of
customstats code cleanlyness)

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

17 years agomade cl_joinbeforedownloadsfinish a saved cvar
havoc [Sun, 15 Apr 2007 23:37:17 +0000 (23:37 +0000)]
made cl_joinbeforedownloadsfinish a saved cvar

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

17 years agomade cl_nettimesyncmode a saved cvar
havoc [Sun, 15 Apr 2007 23:36:43 +0000 (23:36 +0000)]
made cl_nettimesyncmode a saved cvar

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

17 years agoadded cl_nettimesyncmode 7 (adaptive + loose sync)
havoc [Sun, 15 Apr 2007 22:13:01 +0000 (22:13 +0000)]
added cl_nettimesyncmode 7 (adaptive + loose sync)

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

17 years agoadded cl_nettimesyncmode 6 (adaptive sync, gradually adapts to server
havoc [Sun, 15 Apr 2007 21:59:02 +0000 (21:59 +0000)]
added cl_nettimesyncmode 6 (adaptive sync, gradually adapts to server
sync)

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

17 years agoincreased cl_nettimesyncmode 5 tolerance to 25% of time delta to better
havoc [Sun, 15 Apr 2007 21:42:45 +0000 (21:42 +0000)]
increased cl_nettimesyncmode 5 tolerance to 25% of time delta to better
accomodate german ADSL

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

17 years agochanged cl_nettimesyncmode 2 to use tighter tolerances again (1 frame,
havoc [Sun, 15 Apr 2007 21:36:53 +0000 (21:36 +0000)]
changed cl_nettimesyncmode 2 to use tighter tolerances again (1 frame,
not 2)
added cl_nettimesyncmode 5 (new default) which is like 2 but has very
tight tolerances (1/8th of frame delta)

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

17 years agosp2 loader no longer errors if an image is missing
havoc [Sun, 15 Apr 2007 20:52:08 +0000 (20:52 +0000)]
sp2 loader no longer errors if an image is missing
(WHY did it do this before??)

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

17 years agoNew console commands sv_cmd, menu_cmd, cl_cmd, that call GameCommand(string s) in...
divverent [Sun, 15 Apr 2007 20:01:38 +0000 (20:01 +0000)]
New console commands sv_cmd, menu_cmd, cl_cmd, that call GameCommand(string s) in the server, menu, client program with the remainder of the command line as argument. Extension: DP_QC_CMD for all of them, DP_SV_CMD for sv_cmd.

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

17 years agoadds a cvar r_picmipsprites that, when set to 0, makes gl_picmip not affect sprites
divverent [Sun, 15 Apr 2007 09:21:17 +0000 (09:21 +0000)]
adds a cvar r_picmipsprites that, when set to 0, makes gl_picmip not affect sprites

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

17 years agofix segfault sendcvar for non existing cvars introduced in r6933
divverent [Sat, 14 Apr 2007 20:44:36 +0000 (20:44 +0000)]
fix segfault sendcvar for non existing cvars introduced in r6933

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

17 years agochanged default cl_autodemo_nameformat to put demos in an autodemos/
havoc [Sat, 14 Apr 2007 18:27:13 +0000 (18:27 +0000)]
changed default cl_autodemo_nameformat to put demos in an autodemos/
directory (they clutter the id1 directory too much)

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

17 years agoremoved all commandline checks for the option "-safe" except for the
havoc [Sat, 14 Apr 2007 01:11:00 +0000 (01:11 +0000)]
removed all commandline checks for the option "-safe" except for the
OpenGL extension checks, this makes -safe actually playable

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

17 years agosaved a little more memory by not keeping around the basebonepose data
havoc [Fri, 13 Apr 2007 22:53:33 +0000 (22:53 +0000)]
saved a little more memory by not keeping around the basebonepose data
after loading (it can be regenerated by inverting the inverse array
anyway)

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

17 years agofix broken allocation code for skeletal models that was allocating too
havoc [Fri, 13 Apr 2007 22:41:27 +0000 (22:41 +0000)]
fix broken allocation code for skeletal models that was allocating too
much memory for basebonepose arrays (thanks to Vic for reporting this)

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