]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
15 years agomake Quake start again :P
divverent [Sat, 4 Apr 2009 15:53:31 +0000 (15:53 +0000)]
make Quake start again :P

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

15 years agomore loading screen stuff, now shows loading screen for connecting clients with progr...
divverent [Sat, 4 Apr 2009 15:50:31 +0000 (15:50 +0000)]
more loading screen stuff, now shows loading screen for connecting clients with progress indicator

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

15 years agoa nice improvement to the loading plaque: displaying the name of what's being loaded
divverent [Sat, 4 Apr 2009 15:05:38 +0000 (15:05 +0000)]
a nice improvement to the loading plaque: displaying the name of what's being loaded

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

15 years agoit is now possible to have multiple map models loaded at once - removed
havoc [Sat, 4 Apr 2009 14:53:35 +0000 (14:53 +0000)]
it is now possible to have multiple map models loaded at once - removed
the isworldmodel flag, and submodel searches now use the mapname as a
second search key so submodels from multiple maps can coexist in memory
this is a cleanup that I had wanted to do for a long time...
added special modeldecompile support for submodels, they should now save
to a name based on the current map as well as the submodel number

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

15 years agomove csqc_progdata and csqc_progdata_deflated from sv to svs to fix a memory leak
divverent [Sat, 4 Apr 2009 13:42:09 +0000 (13:42 +0000)]
move csqc_progdata and csqc_progdata_deflated from sv to svs to fix a memory leak

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

15 years agofix memory leaks in server csqc
divverent [Sat, 4 Apr 2009 13:02:13 +0000 (13:02 +0000)]
fix memory leaks in server csqc

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

15 years agofix a memory leak in WriteImage
divverent [Sat, 4 Apr 2009 12:48:05 +0000 (12:48 +0000)]
fix a memory leak in WriteImage

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

15 years agoupdate crosshair slider
sajt [Sat, 4 Apr 2009 12:07:08 +0000 (12:07 +0000)]
update crosshair slider

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

15 years agodon't apply host_sleep when in a timedemo
havoc [Sat, 4 Apr 2009 07:52:18 +0000 (07:52 +0000)]
don't apply host_sleep when in a timedemo

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

15 years agoadded host_sleep cvar, defaults to 1 millisecond wait each frame, this
havoc [Sat, 4 Apr 2009 07:50:42 +0000 (07:50 +0000)]
added host_sleep cvar, defaults to 1 millisecond wait each frame, this
seems to have no impact on fps on my windows and Linux machines but
reduces cpu usage

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

15 years agochanged r_speeds glFinish to only occur when set to 2, not 1 or 3
havoc [Sat, 4 Apr 2009 07:49:18 +0000 (07:49 +0000)]
changed r_speeds glFinish to only occur when set to 2, not 1 or 3

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

15 years agofix severe animation bug with single-frame framegroups in zym models
havoc [Thu, 2 Apr 2009 09:13:09 +0000 (09:13 +0000)]
fix severe animation bug with single-frame framegroups in zym models
slight tweak to framegroup interpolation in zym models (restored some
epsilon checks)

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

15 years agoreset rsurface.entity in a couple more cases
havoc [Thu, 2 Apr 2009 09:11:15 +0000 (09:11 +0000)]
reset rsurface.entity in a couple more cases
fixed entity count on r_speeds - don't count models twice

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

15 years agofix the NaN checks
divverent [Thu, 2 Apr 2009 07:10:06 +0000 (07:10 +0000)]
fix the NaN checks

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

15 years agochanged sv_masterextra cvars back to IP addresses to avoid gethostbyname
havoc [Wed, 1 Apr 2009 19:33:04 +0000 (19:33 +0000)]
changed sv_masterextra cvars back to IP addresses to avoid gethostbyname
delays on startup of Nexuiz

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

15 years agoreplaced sv_clmovement_waitforinput with sv_clmovement_inputtimeout
havoc [Wed, 1 Apr 2009 18:16:13 +0000 (18:16 +0000)]
replaced sv_clmovement_waitforinput with sv_clmovement_inputtimeout
which takes a timeout inseconds rather than frames, this makes
sys_ticrate safer to modify in Nexuiz (which has a low cl_netfps that
breaks with a rapid sys_ticrate if the administrator tries that)

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

15 years agoturn off exact specular math by default (it's better for fps, and sometimes looks...
divverent [Wed, 1 Apr 2009 18:10:24 +0000 (18:10 +0000)]
turn off exact specular math by default (it's better for fps, and sometimes looks less weird)

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

15 years agoreset rsurface.entity to NULL after each entity is rendered
havoc [Wed, 1 Apr 2009 17:58:29 +0000 (17:58 +0000)]
reset rsurface.entity to NULL after each entity is rendered

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

15 years agofix messed up r_hdr bloom rendering (wasn't setting view dimensions)
havoc [Wed, 1 Apr 2009 14:10:38 +0000 (14:10 +0000)]
fix messed up r_hdr bloom rendering (wasn't setting view dimensions)

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

15 years agoset rsurface.entity correctly before calling R_GetCurrentTexture
havoc [Wed, 1 Apr 2009 13:56:23 +0000 (13:56 +0000)]
set rsurface.entity correctly before calling R_GetCurrentTexture

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

15 years agomake cvar* functions unable to retrieve private cvars
divverent [Wed, 1 Apr 2009 12:52:45 +0000 (12:52 +0000)]
make cvar* functions unable to retrieve private cvars

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

15 years agoslightly more exact "exact specular math", prevents white dots on a mikeeusa map
divverent [Wed, 1 Apr 2009 11:13:50 +0000 (11:13 +0000)]
slightly more exact "exact specular math", prevents white dots on a mikeeusa map

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

15 years agoadded extension names for DP_GFX_MODEL_INTERPOLATION and
havoc [Mon, 30 Mar 2009 15:29:36 +0000 (15:29 +0000)]
added extension names for DP_GFX_MODEL_INTERPOLATION and
DP_CSQC_MULTIFRAME_INTERPOLATION

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

15 years agoreworked animation interpolation code - entity_render_t now has
havoc [Mon, 30 Mar 2009 15:22:57 +0000 (15:22 +0000)]
reworked animation interpolation code - entity_render_t now has
framegroupblend[] instead of frame1/2/1time/2time/framelerp fields
implemented csqc 4-way frame interpolation (lerpfrac2 is inferred based
on the sum of lerpfrac+lerpfrac3+lerpfrac4, so it remains compatible)

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

15 years agofix a use of tempmempool to be loadmodel->mempool
havoc [Mon, 30 Mar 2009 05:35:50 +0000 (05:35 +0000)]
fix a use of tempmempool to be loadmodel->mempool

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

15 years agocompute sorted surface list at load of each model - this tripled
havoc [Sun, 29 Mar 2009 13:29:01 +0000 (13:29 +0000)]
compute sorted surface list at load of each model - this tripled
framerates in some outdoor q1bsp maps
cleaned up water rendering setup code so it at least makes sense now
model lighting is not computed for unseen models (major fps increase in
some q1bsp maps)
added an unfinished OBJ model loader (not enabled)

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

15 years agoupdated project files to include cap_avi.c and cap_ogg.c
havoc [Sun, 29 Mar 2009 13:23:50 +0000 (13:23 +0000)]
updated project files to include cap_avi.c and cap_ogg.c
note: these are MSVC++ 2008 files - I don't have 2005

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

15 years agosame fix for csqc
divverent [Fri, 27 Mar 2009 12:31:04 +0000 (12:31 +0000)]
same fix for csqc

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

15 years agoproperly let sounds come out of attached entities (currently for svqc only)
divverent [Fri, 27 Mar 2009 11:57:59 +0000 (11:57 +0000)]
properly let sounds come out of attached entities (currently for svqc only)

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

15 years agoonly enable nonpoweroftwo textures if GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB > 0 ...
divverent [Thu, 26 Mar 2009 06:48:16 +0000 (06:48 +0000)]
only enable nonpoweroftwo textures if GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB > 0 (as radeon HDs software emulate some use cases of nonpoweroftwo textures, e.g. repeating ones)

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

15 years agomake r_showtris no longer use glVertex
divverent [Wed, 25 Mar 2009 13:38:15 +0000 (13:38 +0000)]
make r_showtris no longer use glVertex
same should be done to shownormals etc., but this would get more complex

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

15 years agovariable name fixes only, no change in behaviour
divverent [Mon, 23 Mar 2009 18:16:30 +0000 (18:16 +0000)]
variable name fixes only, no change in behaviour

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

15 years agooops, move the print for that string upwards, as other code there uses va() too
divverent [Mon, 23 Mar 2009 18:15:50 +0000 (18:15 +0000)]
oops, move the print for that string upwards, as other code there uses va() too

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

15 years agoin PRVM state dumps, also dump a special extra string if prvm_backtraceforwarnings...
divverent [Mon, 23 Mar 2009 18:11:30 +0000 (18:11 +0000)]
in PRVM state dumps, also dump a special extra string if prvm_backtraceforwarnings = 1 that can be specified by other code
currently, this is used to be able to track down the invalid tempstrings in savegame saving

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

15 years agolibcurl: if a resume ended up with an invalid pack, redownload the FULL pack
divverent [Mon, 23 Mar 2009 13:58:24 +0000 (13:58 +0000)]
libcurl: if a resume ended up with an invalid pack, redownload the FULL pack

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

15 years agoproject file to build SDL executives
motorsep [Sun, 22 Mar 2009 20:05:29 +0000 (20:05 +0000)]
project file to build SDL executives

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

15 years agochange names of functions, and add comments.
divverent [Sun, 22 Mar 2009 19:51:44 +0000 (19:51 +0000)]
change names of functions, and add comments.

The code is mathematically correct now, I added a proof of the missing link:
quadratic spline area = exactly 2/3 * area of the control points triangle!

The actual subdivisions stayed invariant, just the names of the functions make
more sense now.

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

15 years agocurl: delete the downloaded pk3 if adding it failed
divverent [Sun, 22 Mar 2009 19:31:07 +0000 (19:31 +0000)]
curl: delete the downloaded pk3 if adding it failed

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

15 years agoshow correct percentage when resuming
divverent [Sun, 22 Mar 2009 19:26:19 +0000 (19:26 +0000)]
show correct percentage when resuming

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

15 years agoDP_QC_GETTIME
divverent [Sat, 21 Mar 2009 22:09:45 +0000 (22:09 +0000)]
DP_QC_GETTIME

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

15 years agochange the model of curves approximation to one that
divverent [Sat, 21 Mar 2009 21:45:12 +0000 (21:45 +0000)]
change the model of curves approximation to one that
a) almost matches the previous one, and
b) makes more sense, mathematically
now the inexactness of a patch is defined as the maximum over the inexactness of its quadratic splines;
the inexactness of such a quadratic spline is defined as the area between the spline and the line between its end points;
as that area is hard to calculate, the triangle area of the three control points is taken instead (which obviously is larger than the area between spline and the line between the end points, so this actually is a pessimistic approach to get some nicely defined tesselation)

not much should change for the user, though, but flat patches are now properly detected and handled

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

15 years agofix warning
divverent [Thu, 19 Mar 2009 11:38:59 +0000 (11:38 +0000)]
fix warning

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

15 years agomake gettaginfo actually work:
divverent [Thu, 19 Mar 2009 10:38:06 +0000 (10:38 +0000)]
make gettaginfo actually work:
- now REALLY returns data in worldspace, as the description says
- handle bmodels' pitch angle correctly

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

15 years agoFTE_QC_CHECKPVS
divverent [Wed, 18 Mar 2009 11:22:48 +0000 (11:22 +0000)]
FTE_QC_CHECKPVS

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

15 years agoDP_QC_FINDCHAIN_TOFIELD (saves into another field than .chain)
divverent [Wed, 18 Mar 2009 10:04:58 +0000 (10:04 +0000)]
DP_QC_FINDCHAIN_TOFIELD (saves into another field than .chain)

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

15 years agoforce 32bit origin for player entiites (TODO: possibly for bmodels too?) to get bette...
divverent [Sun, 15 Mar 2009 20:41:06 +0000 (20:41 +0000)]
force 32bit origin for player entiites (TODO: possibly for bmodels too?) to get better prediction

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

15 years agoExperimental new patch welding code by "someone", fixing the problem with seams when...
divverent [Sat, 14 Mar 2009 18:31:04 +0000 (18:31 +0000)]
Experimental new patch welding code by "someone", fixing the problem with seams when an X and a Y patch side touch.
Also adds a mode for flat patch sides (so they no longer get tesselated at all).

http://www.alientrap.org/forum/viewtopic.php?t=4200

The submitted patch cleaned up a little, but it's probably not perfect yet.

PLEASE READ, VERIFY AND TEST.

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

15 years agomade lhrandom never return MIN (it already never returned MAX), to fix
havoc [Fri, 13 Mar 2009 06:41:13 +0000 (06:41 +0000)]
made lhrandom never return MIN (it already never returned MAX), to fix
the "stone monster" bug from Quake, where occasionally a monster never
even spawns properly because its walkmonster_start_go function had a
nextthink value of exactly 0

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

15 years agofix tiny bug in AVI writing
divverent [Thu, 12 Mar 2009 11:04:27 +0000 (11:04 +0000)]
fix tiny bug in AVI writing

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

15 years agomake bouncing also support the entity gravity
divverent [Thu, 12 Mar 2009 08:42:21 +0000 (08:42 +0000)]
make bouncing also support the entity gravity

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

15 years agoadded sv_gameplayfix_slidemoveprojectiles which avoids a sticking bug
havoc [Thu, 12 Mar 2009 08:17:02 +0000 (08:17 +0000)]
added sv_gameplayfix_slidemoveprojectiles which avoids a sticking bug
with grenades where they kept accumulating gravity

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

15 years agodon't use 16bit origin protocol for attachments
havoc [Thu, 12 Mar 2009 08:16:04 +0000 (08:16 +0000)]
don't use 16bit origin protocol for attachments

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

15 years agochanged sv_gameplayfix_delayprojectiles to also delay think functions on
havoc [Wed, 11 Mar 2009 20:27:15 +0000 (20:27 +0000)]
changed sv_gameplayfix_delayprojectiles to also delay think functions on
newly spawned entities, not just movement

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

15 years agosome typecasts for g++
divverent [Wed, 11 Mar 2009 14:09:38 +0000 (14:09 +0000)]
some typecasts for g++

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

15 years agomodeldecompile: detect skeletal models properly (no more crash on exporting MD3s)
divverent [Wed, 11 Mar 2009 13:11:59 +0000 (13:11 +0000)]
modeldecompile: detect skeletal models properly (no more crash on exporting MD3s)

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

15 years agodecompile models written by pre-r8533 zmodel correctly
divverent [Wed, 11 Mar 2009 08:44:48 +0000 (08:44 +0000)]
decompile models written by pre-r8533 zmodel correctly

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

15 years ago[ 2680901 ] Fix server/client crashes
divverent [Wed, 11 Mar 2009 06:22:50 +0000 (06:22 +0000)]
2680901 ] Fix server/client crashes

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

15 years agominor code simplification
havoc [Wed, 11 Mar 2009 01:39:05 +0000 (01:39 +0000)]
minor code simplification

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

15 years agoanother obj fix
havoc [Wed, 11 Mar 2009 00:58:56 +0000 (00:58 +0000)]
another obj fix

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

15 years agoanother obj fix (normals)
havoc [Wed, 11 Mar 2009 00:40:44 +0000 (00:40 +0000)]
another obj fix (normals)

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

15 years agofix zmodel script to actually work
havoc [Wed, 11 Mar 2009 00:39:15 +0000 (00:39 +0000)]
fix zmodel script to actually work

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

15 years agomore fixes for obj export
havoc [Wed, 11 Mar 2009 00:33:04 +0000 (00:33 +0000)]
more fixes for obj export
smd export now saves two txt scripts, one for zmodel, one for dpmodel

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

15 years agomore fixes for OBJ export
havoc [Tue, 10 Mar 2009 23:44:49 +0000 (23:44 +0000)]
more fixes for OBJ export

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

15 years agofix two problems in obj export
havoc [Tue, 10 Mar 2009 22:24:20 +0000 (22:24 +0000)]
fix two problems in obj export

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

15 years agofix typo
havoc [Tue, 10 Mar 2009 21:36:10 +0000 (21:36 +0000)]
fix typo

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

15 years agoimplemented modeldecompile command, saves .obj version of any model or
havoc [Tue, 10 Mar 2009 21:22:06 +0000 (21:22 +0000)]
implemented modeldecompile command, saves .obj version of any model or
map (but not sprites), also saves dpmodel script and smd files for
skeletal models

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

15 years agochange a cast, trying to fix DP in g++
divverent [Mon, 9 Mar 2009 09:21:51 +0000 (09:21 +0000)]
change a cast, trying to fix DP in g++

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

15 years agofix the latest patch (print the right number)
divverent [Sat, 7 Mar 2009 13:45:46 +0000 (13:45 +0000)]
fix the latest patch (print the right number)

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

15 years agoallow maxplayers to be changed in game (it'll then be latched and the change will...
divverent [Sat, 7 Mar 2009 13:41:21 +0000 (13:41 +0000)]
allow maxplayers to be changed in game (it'll then be latched and the change will be applied on the next "map" (not "changelevel") command)

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

15 years agofix token endpos writng by tokenizebyseparator
divverent [Fri, 6 Mar 2009 13:52:20 +0000 (13:52 +0000)]
fix token endpos writng by tokenizebyseparator

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

15 years agotokenize: allow more tokens
divverent [Fri, 6 Mar 2009 10:54:02 +0000 (10:54 +0000)]
tokenize: allow more tokens

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

15 years agoadd a strftime reference to the cvar descriptions so one knows where to look how...
divverent [Tue, 3 Mar 2009 17:37:30 +0000 (17:37 +0000)]
add a strftime reference to the cvar descriptions so one knows where to look how to make the %M:%D like date strings

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

15 years agoparticle culling: don't crash if r_refdef.scene.worldmodel is NULL
divverent [Tue, 3 Mar 2009 15:13:43 +0000 (15:13 +0000)]
particle culling: don't crash if r_refdef.scene.worldmodel is NULL

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

15 years agobring back the stupid Matrix4x4_Invert call as it breaks on my gcc in release builds...
divverent [Tue, 3 Mar 2009 09:05:48 +0000 (09:05 +0000)]
bring back the stupid Matrix4x4_Invert call as it breaks on my gcc in release builds (but is fine in debug builds).

Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)

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

15 years agocorona query: move the "all pixels" query to the center of the screen, so coronas...
divverent [Tue, 3 Mar 2009 07:42:03 +0000 (07:42 +0000)]
corona query: move the "all pixels" query to the center of the screen, so coronas fade out nicely when they leave the visible screen area

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

15 years agospeed up cl_project (it can simply use the inverse view matrix, no need to invert...
divverent [Tue, 3 Mar 2009 06:44:26 +0000 (06:44 +0000)]
speed up cl_project (it can simply use the inverse view matrix, no need to invert in this function)

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

15 years agowork around ATI bug in corona occlusion testing (use glDepthFunc, not glEnable)
divverent [Mon, 2 Mar 2009 15:26:43 +0000 (15:26 +0000)]
work around ATI bug in corona occlusion testing (use glDepthFunc, not glEnable)

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

15 years agoremove a debug line
havoc [Mon, 2 Mar 2009 03:47:39 +0000 (03:47 +0000)]
remove a debug line

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

15 years agoreplaced cl_particles_novis with cl_particles_visculling and
havoc [Mon, 2 Mar 2009 01:55:26 +0000 (01:55 +0000)]
replaced cl_particles_novis with cl_particles_visculling and
cl_decals_visculling, which default to 0 and 1 respectively
optimized decal vis culling massively by storing the clusterindex

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

15 years agochange default value for cl_particles_novis to 1 because 0 eats fps like
havoc [Mon, 2 Mar 2009 01:31:14 +0000 (01:31 +0000)]
change default value for cl_particles_novis to 1 because 0 eats fps like
candy

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

15 years agoadd three more places to send keepalives. No more disconnects for "redstarrepublic".
divverent [Fri, 27 Feb 2009 11:18:18 +0000 (11:18 +0000)]
add three more places to send keepalives. No more disconnects for "redstarrepublic".

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

15 years agoimprove keepalive handling (also send keepalives during map loading); but still not...
divverent [Fri, 27 Feb 2009 08:50:10 +0000 (08:50 +0000)]
improve keepalive handling (also send keepalives during map loading); but still not perfect (e.g. on redstarrepublic, client and server tend to send each other keepalive messages, and eventually the client gets dropped, no idea why)

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

15 years agocount entities removed by SV_OnEntityPreSpawnFunction as inhibited, not as died
divverent [Thu, 26 Feb 2009 07:19:43 +0000 (07:19 +0000)]
count entities removed by SV_OnEntityPreSpawnFunction as inhibited, not as died

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

15 years agofix typo in previous commit
divverent [Thu, 26 Feb 2009 06:50:42 +0000 (06:50 +0000)]
fix typo in previous commit

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

15 years agouse trace_plane_normal to check whether the trace succeeded
divverent [Thu, 26 Feb 2009 06:26:22 +0000 (06:26 +0000)]
use trace_plane_normal to check whether the trace succeeded

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

15 years agoscr_screenshot_hwgamma - makes the HW gamma table apply to screenshots/videos
divverent [Wed, 25 Feb 2009 14:14:32 +0000 (14:14 +0000)]
scr_screenshot_hwgamma - makes the HW gamma table apply to screenshots/videos

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

15 years agofix v_color_enable with v_glslgamma
divverent [Wed, 25 Feb 2009 14:13:02 +0000 (14:13 +0000)]
fix v_color_enable with v_glslgamma

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

15 years agonever prefer an entity trace over a world trace if the trace fraction is 1 (not hit).
divverent [Wed, 25 Feb 2009 14:09:34 +0000 (14:09 +0000)]
never prefer an entity trace over a world trace if the trace fraction is 1 (not hit).
Fixes bug with SOLID_BSP entities sometimes being collided against "as box".

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

15 years agoZQ_PAUSE extension patch from GreEn`mArine
havoc [Wed, 25 Feb 2009 10:28:47 +0000 (10:28 +0000)]
ZQ_PAUSE extension patch from GreEn`mArine

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

15 years agoC++ compile fixes
divverent [Mon, 23 Feb 2009 07:20:38 +0000 (07:20 +0000)]
C++ compile fixes

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

15 years agocl_capturevideo_nameformat
divverent [Sat, 21 Feb 2009 20:18:26 +0000 (20:18 +0000)]
cl_capturevideo_nameformat

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

15 years agoadd some casts for g++
divverent [Sat, 21 Feb 2009 19:13:28 +0000 (19:13 +0000)]
add some casts for g++

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

15 years agoclarify that the new matrixlib functions only are supposed to work for rotations...
divverent [Sat, 21 Feb 2009 19:08:10 +0000 (19:08 +0000)]
clarify that the new matrixlib functions only are supposed to work for rotations and translations (transformation must be length invariant)

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

15 years agofix ie
havoc [Sat, 21 Feb 2009 18:22:19 +0000 (18:22 +0000)]
fix ie

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

15 years agosome color tag cleanups by terencehill
divverent [Fri, 20 Feb 2009 18:13:06 +0000 (18:13 +0000)]
some color tag cleanups by terencehill

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

15 years agocalculate plane dist in collision code so that it will be valid
havoc [Fri, 20 Feb 2009 18:07:40 +0000 (18:07 +0000)]
calculate plane dist in collision code so that it will be valid

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

15 years agoreport a proper trace_plane_normal for trace_startsolid cases, this
havoc [Fri, 20 Feb 2009 17:50:03 +0000 (17:50 +0000)]
report a proper trace_plane_normal for trace_startsolid cases, this
allows QC physics code to nudge objects out of eachother using the
shortest vector, only valid if trace_fraction is 1 (works best for
stationary overlap tests)
properly transform trace_plane_dist rather than returning 0

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

15 years agofix a compile error on dedicated server in MSVC2008
havoc [Fri, 20 Feb 2009 17:45:53 +0000 (17:45 +0000)]
fix a compile error on dedicated server in MSVC2008

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

15 years agomade cl_capturevideo_ogg 1 by default and saved.
divverent [Fri, 20 Feb 2009 13:20:14 +0000 (13:20 +0000)]
made cl_capturevideo_ogg 1 by default and saved.

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

15 years agochange vorbis default quality to 3 (before: 1), matches oggenc
divverent [Thu, 19 Feb 2009 14:48:34 +0000 (14:48 +0000)]
change vorbis default quality to 3 (before: 1), matches oggenc

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