xonotic/darkplaces.git
10 years agoexperimental libpng14 support
divverent [Sun, 6 Jun 2010 18:11:12 +0000 (18:11 +0000)]
experimental libpng14 support

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

10 years agopng: no longer use png_set_gray_1_2_4_to_8? (N/A in libpng14, and redundant anyway...
divverent [Sun, 6 Jun 2010 17:50:13 +0000 (17:50 +0000)]
png: no longer use png_set_gray_1_2_4_to_8? (N/A in libpng14, and redundant anyway as png_set_expand does the same)

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

10 years agosupport for q3map2's custinfoparms.txt in Mod_LoadQ3Shaders, so now you can create...
vortex [Sun, 6 Jun 2010 16:33:45 +0000 (16:33 +0000)]
support for q3map2's custinfoparms.txt in Mod_LoadQ3Shaders, so now you can create custom surfaceparms that works with BIH.

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

10 years agoif a dotranslate_ variable exists, ALWAYS assume the opt-in way of translating
divverent [Sat, 5 Jun 2010 16:55:35 +0000 (16:55 +0000)]
if a dotranslate_ variable exists, ALWAYS assume the opt-in way of translating

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

10 years agosv_airspeedlimit_nonqw: a soft speedlimit for games using sv_airaccel_qw
divverent [Fri, 4 Jun 2010 21:55:25 +0000 (21:55 +0000)]
sv_airspeedlimit_nonqw: a soft speedlimit for games using sv_airaccel_qw

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

10 years agoiqmbounds loading fix
eihrul [Tue, 1 Jun 2010 19:54:39 +0000 (19:54 +0000)]
iqmbounds loading fix

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

10 years agosanity checking of most header offsets/sizes in IQM
eihrul [Tue, 1 Jun 2010 19:52:53 +0000 (19:52 +0000)]
sanity checking of most header offsets/sizes in IQM

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

10 years agofix defaultfont scale bug (which makes it invisible)
vortex [Tue, 1 Jun 2010 19:24:45 +0000 (19:24 +0000)]
fix defaultfont scale bug (which makes it invisible)

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

10 years agoraise MAX_STATICENTITIES for a new map goldenboy is making
havoc [Fri, 28 May 2010 09:35:33 +0000 (09:35 +0000)]
raise MAX_STATICENTITIES for a new map goldenboy is making

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

10 years agofix some sentinel related error messages
divverent [Thu, 27 May 2010 20:13:30 +0000 (20:13 +0000)]
fix some sentinel related error messages

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

10 years agoMerge remote branch 'origin/mirceakitsune/gunmodel_effects'
divverent [Wed, 26 May 2010 21:54:45 +0000 (21:54 +0000)]
Merge remote branch 'origin/mirceakitsune/gunmodel_effects'

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

10 years agofix a bug with font scale/voffset not surviving r_restart by moving this settings...
vortex [Mon, 24 May 2010 18:20:25 +0000 (18:20 +0000)]
fix a bug with font scale/voffset not surviving r_restart by moving this settings to dp_font->settings. Added "scale" and "voffset" custom switches to loadfont console command.

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

10 years agoMod_Alias_GetTagIndexForName returns an 1-based index, not 0-based, so fix skel_find_...
divverent [Mon, 24 May 2010 07:43:45 +0000 (07:43 +0000)]
Mod_Alias_GetTagIndexForName returns an 1-based index, not 0-based, so fix skel_find_bone for that

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

10 years agotry fix a warning
vortex [Sun, 23 May 2010 12:11:33 +0000 (12:11 +0000)]
try fix a warning

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

10 years agoremove a superfluous and possibly harmful block in cl_input.qc
divverent [Sun, 23 May 2010 11:53:42 +0000 (11:53 +0000)]
remove a superfluous and possibly harmful block in cl_input.qc

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

10 years agoDP_GFX_FONTS: add 2 additional parms to loadfont() - char scale and vertical offset...
vortex [Sat, 22 May 2010 23:52:10 +0000 (23:52 +0000)]
DP_GFX_FONTS: add 2 additional parms to loadfont() - char scale and vertical offset, scale are identical to .width file "scale" parm (per-character center-oriented scale that doesn't change line height), vertical offset are added to each char during render, it's a multiplier to character height.

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

10 years agobugfix recent font additions
vortex [Sat, 22 May 2010 22:50:34 +0000 (22:50 +0000)]
bugfix recent font additions

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

10 years agodocumented DP_GFX_FONTS/DP_GFX_FONTS_FREETYPE/DP_UTF8
vortex [Sat, 22 May 2010 22:22:17 +0000 (22:22 +0000)]
documented DP_GFX_FONTS/DP_GFX_FONTS_FREETYPE/DP_UTF8

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

10 years agoformed DP_GFX_FONTS/DP_GFX_FONTS_FREETYPE/DP_UTF8 extensions, add loadfont()/findfont...
vortex [Sat, 22 May 2010 22:18:08 +0000 (22:18 +0000)]
formed DP_GFX_FONTS/DP_GFX_FONTS_FREETYPE/DP_UTF8 extensions, add loadfont()/findfont() builtins. Font structure is now expandable (grows by 8), so new fonts could be added at no limits, just use new names for loadfont. When loading font, check for given file path before add extensions, this make "loadfont user1 myfont.ttf 10" work correctly.

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

10 years agosv_airstrafeaccel_qw cvar for tuning CPMA-style physics
divverent [Sat, 22 May 2010 18:41:10 +0000 (18:41 +0000)]
sv_airstrafeaccel_qw cvar for tuning CPMA-style physics

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

10 years ago+Added Urre's game, "Strap-on-bomb Car"
motorsep [Sat, 22 May 2010 15:18:44 +0000 (15:18 +0000)]
+Added Urre's game, "Strap-on-bomb Car"

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

10 years agofix a wrong mempool use in Mod_Alias_AnimateVertices that crashed on dedicated server...
divverent [Fri, 21 May 2010 21:12:08 +0000 (21:12 +0000)]
fix a wrong mempool use in Mod_Alias_AnimateVertices that crashed on dedicated server due to r_main_mempool not existing there

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

10 years agofix a typo in default deluxemap setup
divverent [Fri, 21 May 2010 11:57:57 +0000 (11:57 +0000)]
fix a typo in default deluxemap setup

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

10 years agoMake another replacement
divverent [Fri, 21 May 2010 05:41:38 +0000 (05:41 +0000)]
Make another replacement

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoOops, forgot something
divverent [Fri, 21 May 2010 05:41:27 +0000 (05:41 +0000)]
Oops, forgot something

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoAttempt to fix issues with spectating / demos
divverent [Fri, 21 May 2010 05:41:25 +0000 (05:41 +0000)]
Attempt to fix issues with spectating / demos

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agofix warning
divverent [Wed, 19 May 2010 06:23:22 +0000 (06:23 +0000)]
fix warning

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

10 years agofix stairsmoothing annoyance through warpzones
divverent [Wed, 19 May 2010 06:10:33 +0000 (06:10 +0000)]
fix stairsmoothing annoyance through warpzones

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

10 years agoremove some Blood Omnicide related hacks, fixed video stippling on ATI (always draw...
vortex [Tue, 18 May 2010 19:06:45 +0000 (19:06 +0000)]
remove some Blood Omnicide related hacks, fixed video stippling on ATI (always draw black pic behind)

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

10 years agoautocvars: update to current value after loading a savegame, to always fulfill the...
divverent [Tue, 18 May 2010 18:46:29 +0000 (18:46 +0000)]
autocvars: update to current value after loading a savegame, to always fulfill the invariant "autocvar = cvar value"

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

10 years agofix a double free problem in jpeg.c
divverent [Tue, 18 May 2010 10:03:09 +0000 (10:03 +0000)]
fix a double free problem in jpeg.c

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

10 years agostart of "dpdefs", QC files that define all current DP features
divverent [Tue, 18 May 2010 09:54:35 +0000 (09:54 +0000)]
start of "dpdefs", QC files that define all current DP features

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

10 years agomade cprogs.dat builtin #303 (setproperty) accept 1 parm, in this case it will return...
vortex [Sun, 16 May 2010 21:05:13 +0000 (21:05 +0000)]
made cprogs.dat builtin #303 (setproperty) accept 1 parm, in this case it will return a value of property stored in engine struct instead of setting it. Pretty useful with several viewports code + 2d drawing. Curently the only property that can't be returned is VF_VIEWPORT (will give a warning) as it stored in 2 vectors (VF_MIN and VF_SIZE). To use new feature define 2 more builtins:
float(float property) getproperty = #303;
vector(float property) getpropertyvec = #303;

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

10 years agoattempt at better defaults for gunmodel effects; try to make jumping look more natural
divverent [Sat, 15 May 2010 18:33:54 +0000 (18:33 +0000)]
attempt at better defaults for gunmodel effects; try to make jumping look more natural

From: FruitieX <rasse@rasse-lappy.localdomain>

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

10 years agoDP_CSQC_BOXPARTICLES
divverent [Wed, 12 May 2010 07:59:29 +0000 (07:59 +0000)]
DP_CSQC_BOXPARTICLES
allow particles to be tinted, and trails to be modded in their spacing by the particle count factor

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

10 years agoreally fix multiple effectinfo.txt file loading
havoc [Tue, 11 May 2010 21:40:35 +0000 (21:40 +0000)]
really fix multiple effectinfo.txt file loading

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

10 years agofix loading of q1bsp sky replacement textures to also check
havoc [Tue, 11 May 2010 21:06:21 +0000 (21:06 +0000)]
fix loading of q1bsp sky replacement textures to also check
textures/mapname/sky4 and such

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

10 years agotwo more obvious bugs in worldnamenoextension
divverent [Tue, 11 May 2010 15:51:15 +0000 (15:51 +0000)]
two more obvious bugs in worldnamenoextension

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

10 years agoproperly strip the / from worldbasename
divverent [Tue, 11 May 2010 15:47:26 +0000 (15:47 +0000)]
properly strip the / from worldbasename

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

10 years agoappend maps/mapname_effectinfo.txt as intended
havoc [Tue, 11 May 2010 09:35:29 +0000 (09:35 +0000)]
append maps/mapname_effectinfo.txt as intended

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

10 years agosomehow I missed this edit in the other maps/ checks
havoc [Tue, 11 May 2010 09:35:09 +0000 (09:35 +0000)]
somehow I missed this edit in the other maps/ checks

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

10 years agoparticles: apply rotation so that in the initial display frame of the particle, the...
divverent [Tue, 11 May 2010 09:11:48 +0000 (09:11 +0000)]
particles: apply rotation so that in the initial display frame of the particle, the start rotation min/max are shown

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

10 years agoanoth'error bites the dust
divverent [Mon, 10 May 2010 06:57:49 +0000 (06:57 +0000)]
anoth'error bites the dust

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

10 years agofix compile error
divverent [Mon, 10 May 2010 06:54:13 +0000 (06:54 +0000)]
fix compile error

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

10 years agofixed bug with effectinfo.txt loading so that it now loads the proper
havoc [Mon, 10 May 2010 06:29:56 +0000 (06:29 +0000)]
fixed bug with effectinfo.txt loading so that it now loads the proper
name for the map
added cl.worldmessage, cl.worldname, cl.worldbasename,
cl.worldnamenoextension strings (and sv. versions) as well as cvars

audited all use of these variables in the engine for consistent behavior
basename generation for maps now strips only maps/ prefix (allowing
subdirectory paths to be preserved)

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

10 years agostringbuffers: allow "" strings, keep disallowing NULL strings.
divverent [Sun, 9 May 2010 13:21:40 +0000 (13:21 +0000)]
stringbuffers: allow "" strings, keep disallowing NULL strings.

Now, bufstr_set'ing an item to string_null will yield string_null on bufstr_get,
and bufstr_set'ing an item to "" will yield "" on bufstr_get.

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

10 years agofix segfault on empty slots in a stringbuffer on buf_sort
divverent [Sun, 9 May 2010 13:08:56 +0000 (13:08 +0000)]
fix segfault on empty slots in a stringbuffer on buf_sort

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

10 years agofix funny loading screen breakage with DX vertex formats
divverent [Sun, 9 May 2010 10:52:43 +0000 (10:52 +0000)]
fix funny loading screen breakage with DX vertex formats

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

10 years agoadd a missing include
divverent [Sun, 9 May 2010 10:34:50 +0000 (10:34 +0000)]
add a missing include

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

10 years agoscreenshot: get rid of the 3*w*h+18 TGA buffer; instead however always capture as...
divverent [Sun, 9 May 2010 10:28:26 +0000 (10:28 +0000)]
screenshot: get rid of the 3*w*h+18 TGA buffer; instead however always capture as BGRA from the GPU;
also cvar: r_drawworld (when 0, turns off world drawing), and scr_screenshot_alpha (try to save alpha channel with screenshot).
Together, with this one can make nice alpha transparent screenshots of player models.

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

10 years agochanged R_Mesh_PrepareVertices_*_Unlock and _Lock functions to always
havoc [Sun, 9 May 2010 00:17:27 +0000 (00:17 +0000)]
changed R_Mesh_PrepareVertices_*_Unlock and _Lock functions to always
use the rsurface.preparevertices_ arrays, rather than having an
unnecessary renderpath check

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

10 years agouse rsurface.modelelement3i variable instead of
havoc [Sun, 9 May 2010 00:16:01 +0000 (00:16 +0000)]
use rsurface.modelelement3i variable instead of
model->surfmesh.data_element3i for consistency sake

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

10 years agofix a stencil shadowvolume bug with models that use dynamic batches
havoc [Sun, 9 May 2010 00:13:51 +0000 (00:13 +0000)]
fix a stencil shadowvolume bug with models that use dynamic batches

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

10 years agoWritePicture: also support png input images :P
divverent [Sat, 8 May 2010 12:37:48 +0000 (12:37 +0000)]
WritePicture: also support png input images :P

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

10 years agomakefile: we need to link to image loading libs in the dedicated server too
divverent [Sat, 8 May 2010 12:37:44 +0000 (12:37 +0000)]
makefile: we need to link to image loading libs in the dedicated server too

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

10 years agonew cvar: mastervolume (controlling both volume and bgmvolume)
divverent [Thu, 6 May 2010 06:45:32 +0000 (06:45 +0000)]
new cvar: mastervolume (controlling both volume and bgmvolume)

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

10 years agoadd r_editlights_lock command which will lock selection on current selected light...
vortex [Wed, 5 May 2010 18:55:49 +0000 (18:55 +0000)]
add r_editlights_lock command which will lock selection on current selected light (or unlock if already locked)

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

10 years agodemo deleting: switch the meaning of the values 2 and 3 in cl_autodemo_delete, so...
divverent [Tue, 4 May 2010 11:08:40 +0000 (11:08 +0000)]
demo deleting: switch the meaning of the values 2 and 3 in cl_autodemo_delete, so & 1 would check if the CURRENT demo is to be deleted, and & 2 would check if any future demos are to be deleted

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

10 years agoproperly declare the aircontrol power cvar
divverent [Tue, 4 May 2010 07:31:52 +0000 (07:31 +0000)]
properly declare the aircontrol power cvar

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

10 years agofix the EndIncreaseEdicts handlers as edicts beyond num_edicts are not initialized yet
divverent [Tue, 4 May 2010 05:14:45 +0000 (05:14 +0000)]
fix the EndIncreaseEdicts handlers as edicts beyond num_edicts are not initialized yet

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

10 years agosv_aircontrol_power - customizing the response curve of CPMA style air control
divverent [Mon, 3 May 2010 19:43:20 +0000 (19:43 +0000)]
sv_aircontrol_power - customizing the response curve of CPMA style air control

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

10 years agocall m_hide() on loadgame/map/changelevel/restart if keydest is menu one (menu or...
vortex [Sun, 2 May 2010 19:43:54 +0000 (19:43 +0000)]
call m_hide() on loadgame/map/changelevel/restart if keydest is menu one (menu or menu_grabbed), since we are going to force it to key_game (which if not forcing to m_hide leads to menu drawn but not reacting to key events).

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

10 years agodon't generate vertex colors in q1bsp format for shader path
havoc [Sun, 2 May 2010 18:17:14 +0000 (18:17 +0000)]
don't generate vertex colors in q1bsp format for shader path

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

10 years agoadded -noconfig commandline option for benchmarking purposes
havoc [Sun, 2 May 2010 17:33:00 +0000 (17:33 +0000)]
added -noconfig commandline option for benchmarking purposes

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

10 years agofix water/reflection/camera surface rendering
havoc [Sun, 2 May 2010 15:08:22 +0000 (15:08 +0000)]
fix water/reflection/camera surface rendering

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

10 years agofix a crash on deformvertexes wave
havoc [Sun, 2 May 2010 14:19:27 +0000 (14:19 +0000)]
fix a crash on deformvertexes wave

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

10 years agofor now, turn off gun lean and follow effects by default
divverent [Sun, 2 May 2010 14:11:12 +0000 (14:11 +0000)]
for now, turn off gun lean and follow effects by default

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agoRevert "gunangles[ROLL] = cl.viewangles[ROLL] rather than 0, because the view may...
divverent [Sun, 2 May 2010 14:10:40 +0000 (14:10 +0000)]
Revert "gunangles[ROLL] = cl.viewangles[ROLL] rather than 0, because the view may roll sometimes.", as this contains the difference in roll angle, not the roll angle itself

This reverts commit 7ef836e6b9fb5a58e0c10978efbb83a5430b5905.

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agofix most of the guneffect issues with warpzones
divverent [Sun, 2 May 2010 14:10:12 +0000 (14:10 +0000)]
fix most of the guneffect issues with warpzones

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agogunangles[ROLL] = cl.viewangles[ROLL] rather than 0, because the view may roll sometimes.
divverent [Sun, 2 May 2010 14:09:57 +0000 (14:09 +0000)]
gunangles[ROLL] = cl.viewangles[ROLL] rather than 0, because the view may roll sometimes.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoUse only one pair of toggle cvars.
divverent [Sun, 2 May 2010 14:09:46 +0000 (14:09 +0000)]
Use only one pair of toggle cvars.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoattempted fix for teleports
divverent [Sun, 2 May 2010 14:09:34 +0000 (14:09 +0000)]
attempted fix for teleports

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agoBetter following limits for the new code. Added new cvars to darkplaces.txt
divverent [Sun, 2 May 2010 14:09:29 +0000 (14:09 +0000)]
Better following limits for the new code. Added new cvars to darkplaces.txt

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agohopefully fix issues with mouse motion (shivering) and warpzones
divverent [Sun, 2 May 2010 14:09:17 +0000 (14:09 +0000)]
hopefully fix issues with mouse motion (shivering) and warpzones

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agoAdd the highpass cvars to darkplaces.txt
divverent [Sun, 2 May 2010 14:09:09 +0000 (14:09 +0000)]
Add the highpass cvars to darkplaces.txt

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agosimplify and clean up the gun model effects code a bit
divverent [Sun, 2 May 2010 14:09:01 +0000 (14:09 +0000)]
simplify and clean up the gun model effects code a bit

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agoVery minor renaming
divverent [Sun, 2 May 2010 14:08:57 +0000 (14:08 +0000)]
Very minor renaming

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoUse cl.realframetime properly again
divverent [Sun, 2 May 2010 14:08:51 +0000 (14:08 +0000)]
Use cl.realframetime properly again

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoActually, why not persist gunorg and gunangles and work with them directly, rather...
divverent [Sun, 2 May 2010 14:08:35 +0000 (14:08 +0000)]
Actually, why not persist gunorg and gunangles and work with them directly, rather than using intermediary vectors and replacing with them?

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoMinor optimizations
divverent [Sun, 2 May 2010 14:08:30 +0000 (14:08 +0000)]
Minor optimizations

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoWeapon following: Subtract player velocity from gun origin rather than making the...
divverent [Sun, 2 May 2010 14:08:23 +0000 (14:08 +0000)]
Weapon following: Subtract player velocity from gun origin rather than making the gun follow the player. Reduces a huge code to a few lines and works much better. How could I not realize this until now? :P

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoUse averaging for calculating the leaning speed. Most of the credits go to FruitieX...
divverent [Sun, 2 May 2010 14:08:01 +0000 (14:08 +0000)]
Use averaging for calculating the leaning speed. Most of the credits go to FruitieX for this code.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoMake leaning even faster (more discrete). Fix typos from previous commit.
divverent [Sun, 2 May 2010 14:07:45 +0000 (14:07 +0000)]
Make leaning even faster (more discrete). Fix typos from previous commit.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoTweak limits, to make this more like in Half-Life 2 :)
divverent [Sun, 2 May 2010 14:07:39 +0000 (14:07 +0000)]
Tweak limits, to make this more like in Half-Life 2 :)

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoFaster speeds and tighter limits by default
divverent [Sun, 2 May 2010 14:07:30 +0000 (14:07 +0000)]
Faster speeds and tighter limits by default

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoFix slowmo speed
divverent [Sun, 2 May 2010 14:07:13 +0000 (14:07 +0000)]
Fix slowmo speed

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoMinor comment arrangements
divverent [Sun, 2 May 2010 14:07:02 +0000 (14:07 +0000)]
Minor comment arrangements

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agotry to fix the gun origin for view bobbing
divverent [Sun, 2 May 2010 14:06:49 +0000 (14:06 +0000)]
try to fix the gun origin for view bobbing

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agoRevert "More arrangements"
divverent [Sun, 2 May 2010 14:06:38 +0000 (14:06 +0000)]
Revert "More arrangements"

This reverts commit 06694fee2275d36160c2948be3fd1f224842d800.

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agoMore arrangements
divverent [Sun, 2 May 2010 14:06:22 +0000 (14:06 +0000)]
More arrangements

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoFix some comments
divverent [Sun, 2 May 2010 14:06:14 +0000 (14:06 +0000)]
Fix some comments

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agofix a typo in the last commit
divverent [Sun, 2 May 2010 14:06:08 +0000 (14:06 +0000)]
fix a typo in the last commit

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agomove the new globals into the cl struct
divverent [Sun, 2 May 2010 14:06:02 +0000 (14:06 +0000)]
move the new globals into the cl struct

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agosome fixes to Taoki's code regarding axis-independence
divverent [Sun, 2 May 2010 14:05:53 +0000 (14:05 +0000)]
some fixes to Taoki's code regarding axis-independence

From: Rudolf Polzer <divverent@alientrap.org>

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

10 years agoFinal checking and cleanup on my end. Imo this should be ready for testing.
divverent [Sun, 2 May 2010 14:05:43 +0000 (14:05 +0000)]
Final checking and cleanup on my end. Imo this should be ready for testing.

I'm not very good with C and this is my first code for Darkplaces. Therefore my coding may not be that great, so if anyone with more experience could check and optimize this I would be grateful. Please message me on IRC for anything regarding this patch (Taoki).

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoCvars for part 2. Added safety checks and fixed gunmodel bobbing.
divverent [Sun, 2 May 2010 14:05:33 +0000 (14:05 +0000)]
Cvars for part 2. Added safety checks and fixed gunmodel bobbing.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoLimits for part 2.
divverent [Sun, 2 May 2010 14:05:27 +0000 (14:05 +0000)]
Limits for part 2.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoPart 2 of the viewmodel effects. Gunmodel now "follows" the player, causing it to...
divverent [Sun, 2 May 2010 14:05:16 +0000 (14:05 +0000)]
Part 2 of the viewmodel effects. Gunmodel now "follows" the player, causing it to also push back when you're walking forward and get pulled when you're walking back. To be limited and cvared like the first part.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoAdd cl.movevars_timescale into the mix so this works correctly with slowmo. Previous...
divverent [Sun, 2 May 2010 14:04:58 +0000 (14:04 +0000)]
Add cl.movevars_timescale into the mix so this works correctly with slowmo. Previous commit stays (if the leaning speed is too high, slowmo is too fast and framerate is too low, the effect is temporarily disabled).

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

10 years agoDisable when cl.realframetime * speed_cvar go over 1, otherwise angles go crazy and...
divverent [Sun, 2 May 2010 14:04:50 +0000 (14:04 +0000)]
Disable when cl.realframetime * speed_cvar go over 1, otherwise angles go crazy and the gun spins at very low FPS. By default this only affects very low framerates, unless setting the speed to high values. Can't think of a better way to avoid the braking angles, but imo this is alright.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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