]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
14 years agofix more mingw warnings
havoc [Wed, 14 Jul 2010 10:13:01 +0000 (10:13 +0000)]
fix more mingw warnings

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

14 years agofix a warning in mingw
havoc [Wed, 14 Jul 2010 10:12:46 +0000 (10:12 +0000)]
fix a warning in mingw
changed a model->brush.data_nodes check to data_leafs instead

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

14 years agofix more warnings in mingw
havoc [Wed, 14 Jul 2010 10:11:44 +0000 (10:11 +0000)]
fix more warnings in mingw

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

14 years agofix a warning in mingw
havoc [Wed, 14 Jul 2010 10:11:20 +0000 (10:11 +0000)]
fix a warning in mingw

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

14 years agofix a warning in mingw
havoc [Wed, 14 Jul 2010 10:11:05 +0000 (10:11 +0000)]
fix a warning in mingw

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

14 years agofix a bug with svbsp compiled lights when a leaf has no portals -
havoc [Wed, 14 Jul 2010 10:10:46 +0000 (10:10 +0000)]
fix a bug with svbsp compiled lights when a leaf has no portals -
however the leaf is assumed visible, not good

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

14 years agoadd q prefix to modplug functions
divverent [Wed, 14 Jul 2010 09:12:56 +0000 (09:12 +0000)]
add q prefix to modplug functions

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

14 years agoMake cl_bobmodel work if cl_bob2 is enabled too. Although I don't see why bobmodel...
divverent [Mon, 12 Jul 2010 18:09:19 +0000 (18:09 +0000)]
Make cl_bobmodel work if cl_bob2 is enabled too. Although I don't see why bobmodel depends on view bobbing, given it has its own cvar.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoBound the side bobbing's speed as well
divverent [Mon, 12 Jul 2010 18:09:16 +0000 (18:09 +0000)]
Bound the side bobbing's speed as well

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoRemove xyspeed from the side bobbing. The speed is calculated separately for it,...
divverent [Mon, 12 Jul 2010 18:09:13 +0000 (18:09 +0000)]
Remove xyspeed from the side bobbing. The speed is calculated separately for it, so we were multiplying the speed two times and dividing to match the proper intensity.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoComments
divverent [Mon, 12 Jul 2010 18:09:08 +0000 (18:09 +0000)]
Comments

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoPlace / move a speed bound, to avoid bobbing getting stronger if sv_maxspeed is over 400
divverent [Mon, 12 Jul 2010 18:09:03 +0000 (18:09 +0000)]
Place / move a speed bound, to avoid bobbing getting stronger if sv_maxspeed is over 400

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoBound cvar values instead of bounding how far the view can go. This also fixes the...
divverent [Mon, 12 Jul 2010 18:08:51 +0000 (18:08 +0000)]
Bound cvar values instead of bounding how far the view can go. This also fixes the original view bobbing, where setting a high value for cl_bob would cause the view to instantly go up and down.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoGet rid of cl_bob2up. It's not good for -sideways- movement
divverent [Mon, 12 Jul 2010 18:08:43 +0000 (18:08 +0000)]
Get rid of cl_bob2up. It's not good for -sideways- movement

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoCvar description grammar fix :P
divverent [Mon, 12 Jul 2010 18:08:33 +0000 (18:08 +0000)]
Cvar description grammar fix :P

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoCode, name and comment cleanups
divverent [Mon, 12 Jul 2010 18:08:10 +0000 (18:08 +0000)]
Code, name and comment cleanups

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoCenter the effect, as this isn't the vertical bobbing
divverent [Mon, 12 Jul 2010 18:08:00 +0000 (18:08 +0000)]
Center the effect, as this isn't the vertical bobbing

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoTweak a definition and cvar
divverent [Mon, 12 Jul 2010 18:07:55 +0000 (18:07 +0000)]
Tweak a definition and cvar

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoBetter name for the cvar set
divverent [Mon, 12 Jul 2010 18:07:51 +0000 (18:07 +0000)]
Better name for the cvar set

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoRemove the rolling in favor of the side-bobbing. I don't believe both effects would...
divverent [Mon, 12 Jul 2010 18:07:40 +0000 (18:07 +0000)]
Remove the rolling in favor of the side-bobbing. I don't believe both effects would make sense to keep, and imo the side bobbing looks better than the rolling and simulates steps better. This can be reverted if anyone misses the rolling too much, but I don't think we need to load the code with both effects.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoBetter bounds for the view rolling, and fix a comment
divverent [Mon, 12 Jul 2010 18:07:10 +0000 (18:07 +0000)]
Better bounds for the view rolling, and fix a comment

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoBetter bounds
divverent [Mon, 12 Jul 2010 18:06:44 +0000 (18:06 +0000)]
Better bounds

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoSorry, this is more correct
divverent [Mon, 12 Jul 2010 18:06:24 +0000 (18:06 +0000)]
Sorry, this is more correct

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoAdd bounds. Tweak the bounds of the default bobbing as well (I hope this is alright...
divverent [Mon, 12 Jul 2010 18:06:04 +0000 (18:06 +0000)]
Add bounds. Tweak the bounds of the default bobbing as well (I hope this is alright, I tested the new values and they look good). Should allow more bobbing to be set from cvars.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoCode cleanup, disable by default (set cl_bobside to 0.02 for optimal intensity, large...
divverent [Mon, 12 Jul 2010 18:05:58 +0000 (18:05 +0000)]
Code cleanup, disable by default (set cl_bobside to 0.02 for optimal intensity, larger values to see the effect better). I think this can be considered ready and working :) Please post comments on http://forums.xonotic.org/showthread.php?tid=583&pid=8527

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoAdd a bobside_airtime like for the bobroll, to prevent the effect while in the air...
divverent [Mon, 12 Jul 2010 18:05:52 +0000 (18:05 +0000)]
Add a bobside_airtime like for the bobroll, to prevent the effect while in the air or bunny-hopping

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoMake the sideways bobbing speed-based. Not ready but should be safe to use and test.
divverent [Mon, 12 Jul 2010 18:05:47 +0000 (18:05 +0000)]
Make the sideways bobbing speed-based. Not ready but should be safe to use and test.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoCode now in its place, but still doesn't work as indented
divverent [Mon, 12 Jul 2010 18:05:44 +0000 (18:05 +0000)]
Code now in its place, but still doesn't work as indented

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoGot the correct formula working. Code still not in place and doesn't do what it shoul...
divverent [Mon, 12 Jul 2010 18:05:40 +0000 (18:05 +0000)]
Got the correct formula working. Code still not in place and doesn't do what it should, fixing that next.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoSystem to calculate the walking direction properly. The code is very dirty and not...
divverent [Mon, 12 Jul 2010 18:05:21 +0000 (18:05 +0000)]
System to calculate the walking direction properly. The code is very dirty and not in the right place yet! Thanks parasti for the helpful suggestions.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoRemove this, not needed
divverent [Mon, 12 Jul 2010 18:05:16 +0000 (18:05 +0000)]
Remove this, not needed

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoAttempt to implement sideway view bobbing as well, for better simulation of steps...
divverent [Mon, 12 Jul 2010 18:05:07 +0000 (18:05 +0000)]
Attempt to implement sideway view bobbing as well, for better simulation of steps (a copy of the current view bobbing code with its own cvars, meant to bob to the side of the player).

This is not ready yet! The commit before this is stable. Still trying to figure out how to make the X and Y axes both work as the player's side.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoSuspend the effect when the jump button is pressed. Fixes the bunny-hopping twitches.
divverent [Mon, 12 Jul 2010 18:04:55 +0000 (18:04 +0000)]
Suspend the effect when the jump button is pressed. Fixes the bunny-hopping twitches.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoSlightly better cycle default
divverent [Mon, 12 Jul 2010 18:04:36 +0000 (18:04 +0000)]
Slightly better cycle default

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoDisable by default
divverent [Mon, 12 Jul 2010 18:04:25 +0000 (18:04 +0000)]
Disable by default

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoUse += instead. You never know what else might change the view roll someday :)
divverent [Mon, 12 Jul 2010 18:04:14 +0000 (18:04 +0000)]
Use += instead. You never know what else might change the view roll someday :)

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoSet better defaults and fix final comments. I think this should be ready for testing...
divverent [Mon, 12 Jul 2010 18:04:07 +0000 (18:04 +0000)]
Set better defaults and fix final comments. I think this should be ready for testing and merging if approved.

NOTE: If anyone wishes to see the effect better, set cl_bobroll to a higher value (eg. 0.01)

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoOptimize cvars
divverent [Mon, 12 Jul 2010 18:03:54 +0000 (18:03 +0000)]
Optimize cvars

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoCap speed to sv_maxspeed, so this looks right when bunny-hopping (makes more sense...
divverent [Mon, 12 Jul 2010 18:03:42 +0000 (18:03 +0000)]
Cap speed to sv_maxspeed, so this looks right when bunny-hopping (makes more sense too)

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoUnground smoothing. The roll slowly returns to normal when untouching the ground.
divverent [Mon, 12 Jul 2010 18:03:29 +0000 (18:03 +0000)]
Unground smoothing. The roll slowly returns to normal when untouching the ground.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agocl_bobroll should only be a switch
divverent [Mon, 12 Jul 2010 18:03:12 +0000 (18:03 +0000)]
cl_bobroll should only be a switch

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoFix centering, works exactly as intended now
divverent [Mon, 12 Jul 2010 18:03:02 +0000 (18:03 +0000)]
Fix centering, works exactly as intended now

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoUse independent cycle float
divverent [Mon, 12 Jul 2010 18:02:44 +0000 (18:02 +0000)]
Use independent cycle float

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoHalf fix TODO 2 with a simple check. The view doesn't roll when not touching the...
divverent [Mon, 12 Jul 2010 18:02:28 +0000 (18:02 +0000)]
Half fix TODO 2 with a simple check. The view doesn't roll when not touching the ground, but needs to return to 0 smoothly rather than instantly when you jump / fall.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agoAttempt to implement Q4engine style bob-rolling (the view discretely rolls to the...
divverent [Mon, 12 Jul 2010 18:02:20 +0000 (18:02 +0000)]
Attempt to implement Q4engine style bob-rolling (the view discretely rolls to the sides as you walk). Things to do before it is ready:

TODO 1: Make it work around the center rather than the left side
TODO 2: Don't bob roll when not touching the ground
TODO 3: Write cvars in darkplaces.txt, set better defaults and possibly disable by default once the first TODOs are ready.

From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

14 years agocleanup mempool use when generating a shadow mesh (one instance that used "loadmodel...
divverent [Fri, 9 Jul 2010 17:21:51 +0000 (17:21 +0000)]
cleanup mempool use when generating a shadow mesh (one instance that used "loadmodel->mempool" that shouldn't)

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

14 years agofix font loading bug causing E0xx glyphs to get zero size
divverent [Wed, 7 Jul 2010 20:16:53 +0000 (20:16 +0000)]
fix font loading bug causing E0xx glyphs to get zero size

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

14 years agoremove the #define list at the start of the embedded default.glsl, it
havoc [Mon, 5 Jul 2010 08:30:22 +0000 (08:30 +0000)]
remove the #define list at the start of the embedded default.glsl, it
was unintended (this list is prepended by r_glsl_dumpshader)

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

14 years agofinalize DP_CSQC_BINDMAPS:
divverent [Sun, 4 Jul 2010 19:49:03 +0000 (19:49 +0000)]
finalize DP_CSQC_BINDMAPS:
functions:
string(float key[, float bindmap]) getkeybind = #342;
float(float key, string bind[, float bindmap]) setkeybind = #630;
vector(void) getbindmaps = #631;
float(vector bm) setbindmaps(vector bm) = #632;
string findkeysforcommand(string command[, float bindmap]) = #610; /* DEPRECATED csqc: #521 */
string keynumtostring(float keynum) = #340; /* menu: #609, DEPRECATED csqc: #520 */
float stringtokeynum(string key) = #341; /* DEPRECATED menu: #614 */

The bindmap argument is OPTIONAL, and maybe should be declared as ... in the definitons.
The old alternative builtin numbers are hereby deprecated; they come from esteel's unofficial extension to csqc to provide findkeysforcommand with a different builtin number than the menuqc one, and from menuqc builtins that now are part of the "more official" csqc spec in other builtin number, apart from #609 in menuqc which was documented as part of menuqc before.

From: Rudolf Polzer <divverent@alientrap.org>

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

14 years agouse a default bindmap of 0 in the PRVM commands, and the arg -1 means "current bindma...
divverent [Sun, 4 Jul 2010 19:49:00 +0000 (19:49 +0000)]
use a default bindmap of 0 in the PRVM commands, and the arg -1 means "current bindmap". Still need a QC way to get the current bindmap.

From: Rudolf Polzer <divverent@alientrap.org>

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

14 years agomake -1 as bindmap argument also work, to mean "current bindmap" (same as leaving...
divverent [Sun, 4 Jul 2010 19:48:56 +0000 (19:48 +0000)]
make -1 as bindmap argument also work, to mean "current bindmap" (same as leaving out). Helps when the user wants to avoid the varargs declaration.

From: Rudolf Polzer <divverent@alientrap.org>

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

14 years ago- fix a bug in Quake menu when in_bindmap was not "0 0"
divverent [Sun, 4 Jul 2010 19:48:53 +0000 (19:48 +0000)]
- fix a bug in Quake menu when in_bindmap was not "0 0"
- key bind editing QC builtins: add an optional second argument of the bindmap number to query

From: Rudolf Polzer <divverent@alientrap.org>

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

14 years agoa simple time profiler for prvm_profile, cvar: prvm_timeprofiling
divverent [Sun, 4 Jul 2010 19:44:08 +0000 (19:44 +0000)]
a simple time profiler for prvm_profile, cvar: prvm_timeprofiling

From: Rudolf Polzer <divverent@alientrap.org>

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

14 years agoupdated glsl and cg (now also directly compiled as hlsl) shaders - integrated the...
havoc [Sat, 3 Jul 2010 10:33:30 +0000 (10:33 +0000)]
updated glsl and cg (now also directly compiled as hlsl) shaders - integrated the r_bloom_colorsubtract behavior into the shader rather than relying on fixed function blending in an extra pass, this should be a little faster...

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

14 years agoimplemented Direct3D9 renderer (off by default), not very optimized but almost comple...
havoc [Sat, 3 Jul 2010 10:27:16 +0000 (10:27 +0000)]
implemented Direct3D9 renderer (off by default), not very optimized but almost completely functional

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

14 years agocreated new MSVC2008 project files and solution from scratch
havoc [Fri, 2 Jul 2010 09:00:08 +0000 (09:00 +0000)]
created new MSVC2008 project files and solution from scratch
fixed several warnings in MSVC2008

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

14 years agofix minor typo in doc-string
divverent [Fri, 2 Jul 2010 08:46:17 +0000 (08:46 +0000)]
fix minor typo in doc-string

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

14 years agofix a crash in particlefont.txt parser when given no texcoords
havoc [Fri, 2 Jul 2010 02:44:03 +0000 (02:44 +0000)]
fix a crash in particlefont.txt parser when given no texcoords

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

14 years agoadd DeviceLost and DeviceRestored functions to R_Modules system
havoc [Fri, 2 Jul 2010 02:39:31 +0000 (02:39 +0000)]
add DeviceLost and DeviceRestored functions to R_Modules system

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

14 years agofix a bunch of warnings if compiling darkplaces as C++ in MSVC2008
havoc [Fri, 2 Jul 2010 02:24:32 +0000 (02:24 +0000)]
fix a bunch of warnings if compiling darkplaces as C++ in MSVC2008

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

14 years agogrow svbsp allocation limit much faster (*16 rather than *2) to speed up
havoc [Fri, 2 Jul 2010 00:20:59 +0000 (00:20 +0000)]
grow svbsp allocation limit much faster (*16 rather than *2) to speed up
rtlight compiling on large lights

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

14 years agoa third console picture layer. NOW we should be able to do about anything remotely...
divverent [Thu, 1 Jul 2010 18:37:16 +0000 (18:37 +0000)]
a third console picture layer. NOW we should be able to do about anything remotely sensible with console backgrounds.

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

14 years agonew cvar r_draw2d to turn off all 2D drawing (except for console, r_speeds and showfps)
divverent [Thu, 1 Jul 2010 18:37:11 +0000 (18:37 +0000)]
new cvar r_draw2d to turn off all 2D drawing (except for console, r_speeds and showfps)

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

14 years agomenuqc += +VM_getkeybind, // #342 string(float keynum) getkeybind (EXT_CSQC)
divverent [Wed, 30 Jun 2010 15:05:44 +0000 (15:05 +0000)]
menuqc += +VM_getkeybind, // #342 string(float keynum) getkeybind (EXT_CSQC)

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

14 years agofix a cvar name typo
divverent [Tue, 29 Jun 2010 14:47:18 +0000 (14:47 +0000)]
fix a cvar name typo

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

14 years agonew cvars:
divverent [Tue, 29 Jun 2010 14:46:47 +0000 (14:46 +0000)]
new cvars:

scr_conalpha2factor (relative alpha for gfx/conback2)
scr_conscroll_x (like tcmod scroll on console background)
scr_conscroll_y
scr_conscroll2_x (like tcmod scroll on second console background)
scr_conscroll2_y

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

14 years agofix getsurfaceneartexture() returning no useful data
divverent [Tue, 29 Jun 2010 07:08:53 +0000 (07:08 +0000)]
fix getsurfaceneartexture() returning no useful data

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

14 years agospeed up decal creation in newdecalsystem by using BIH for finding the affected triangles
divverent [Tue, 29 Jun 2010 06:34:05 +0000 (06:34 +0000)]
speed up decal creation in newdecalsystem by using BIH for finding the affected triangles

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

14 years agomake sure dynamicvertex gets set by deformvertexes commands
havoc [Sat, 26 Jun 2010 20:46:57 +0000 (20:46 +0000)]
make sure dynamicvertex gets set by deformvertexes commands

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

14 years agofix a warning
havoc [Fri, 25 Jun 2010 14:05:05 +0000 (14:05 +0000)]
fix a warning

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

14 years agoadd surfaceindex to bih_leaf_t and initialize it
havoc [Fri, 25 Jun 2010 14:03:32 +0000 (14:03 +0000)]
add surfaceindex to bih_leaf_t and initialize it

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

14 years agoadded BIH_GetTriangleListForBox function
havoc [Fri, 25 Jun 2010 11:53:41 +0000 (11:53 +0000)]
added BIH_GetTriangleListForBox function

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

14 years agoallow immediate stains in the new particle system to be turned off
divverent [Thu, 24 Jun 2010 15:04:59 +0000 (15:04 +0000)]
allow immediate stains in the new particle system to be turned off

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

14 years agoTEXF_CLAMP cubemap textures to fix seams (hack alert)
divverent [Thu, 24 Jun 2010 12:30:14 +0000 (12:30 +0000)]
TEXF_CLAMP cubemap textures to fix seams (hack alert)

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

14 years agocameras: invert the correct coordinate to fix up texcoords
divverent [Thu, 24 Jun 2010 12:30:09 +0000 (12:30 +0000)]
cameras: invert the correct coordinate to fix up texcoords

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

14 years agor_font_disable_freetype 0: don't replace the char by the cursor on console, but overd...
divverent [Wed, 23 Jun 2010 11:39:12 +0000 (11:39 +0000)]
r_font_disable_freetype 0: don't replace the char by the cursor on console, but overdraw with a cursor image instead

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

14 years agofix a minor typo causing a slight misprediction
divverent [Wed, 23 Jun 2010 11:39:08 +0000 (11:39 +0000)]
fix a minor typo causing a slight misprediction

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

14 years agocvsignore no longer used for ages, but we can make it into a .gitignore file
divverent [Tue, 22 Jun 2010 15:25:09 +0000 (15:25 +0000)]
cvsignore no longer used for ages, but we can make it into a .gitignore file

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

14 years agoDDS picmip support (similar to JPEG one)
divverent [Mon, 21 Jun 2010 11:22:07 +0000 (11:22 +0000)]
DDS picmip support (similar to JPEG one)

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

14 years agojpeg: perform picmip levels 1, 2, 3 accelerated by telling libjpeg to decode at small...
divverent [Mon, 21 Jun 2010 11:21:48 +0000 (11:21 +0000)]
jpeg: perform picmip levels 1, 2, 3 accelerated by telling libjpeg to decode at smaller resolution

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

14 years agofix a bug in userwavefuncs, they now work 100% fine in div0-stable branch (without...
divverent [Sun, 20 Jun 2010 17:01:19 +0000 (17:01 +0000)]
fix a bug in userwavefuncs, they now work 100% fine in div0-stable branch (without DX vertex formats) and work fine here for animated models only

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

14 years agoCatch bad pointers when loading corrupt TGAs
divverent [Sun, 20 Jun 2010 15:26:32 +0000 (15:26 +0000)]
Catch bad pointers when loading corrupt TGAs

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

14 years agoallow to freely place the chat panel when con_chatrect is 1 (squashed commit of fruit...
divverent [Sat, 19 Jun 2010 19:01:17 +0000 (19:01 +0000)]
allow to freely place the chat panel when con_chatrect is 1 (squashed commit of fruitiex/newpanelhud branch without cl_blockinput stuff)

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

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

14 years agooptimize away NOP wave functions in one more case
divverent [Thu, 17 Jun 2010 21:53:45 +0000 (21:53 +0000)]
optimize away NOP wave functions in one more case

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

14 years agosupport user install of SDL framework
divverent [Thu, 17 Jun 2010 21:39:12 +0000 (21:39 +0000)]
support user install of SDL framework

From: Merlijn Hofstra <merlijnhofstra@mh.local>

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

14 years agouser (csqc) controllable wavefuncs
divverent [Thu, 17 Jun 2010 21:39:09 +0000 (21:39 +0000)]
user (csqc) controllable wavefuncs

From: Rudolf Polzer <divverent@alientrap.org>

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

14 years agonew cvars:
divverent [Tue, 15 Jun 2010 09:55:17 +0000 (09:55 +0000)]
new cvars:
gl_picmip_world, gl_picmip_sprites, gl_picmip_other: offsets relative to gl_picmip for different kinds of textures (i.e. world stuff renders at gl_picmip + gl_picmip_world)
r_picmipworld, r_picmipsprites are kind of obsolete with this, but stay supported (setting them to 0 is essentially equivalent to setting gl_picmip_foo to -9999)

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

14 years agoit is libpng14.14.dylib on OSX
divverent [Sun, 13 Jun 2010 18:26:25 +0000 (18:26 +0000)]
it is libpng14.14.dylib on OSX

From: Merlijn Hofstra <merlijnhofstra@mh.local>

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

14 years agofix pqrcon rcon_password bug introduced in r9420 (was not
havoc [Wed, 9 Jun 2010 21:05:14 +0000 (21:05 +0000)]
fix pqrcon rcon_password bug introduced in r9420 (was not
nul-terminating a string)

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

14 years agoVM_sprintf(): make %i treat the input as QC integer, as opposed to float. %d of cours...
divverent [Wed, 9 Jun 2010 09:58:16 +0000 (09:58 +0000)]
VM_sprintf(): make %i treat the input as QC integer, as opposed to float. %d of course continues to expect a QC float.

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

14 years agooops, should use 1.4.0 in the libpng14 version string to be sure
divverent [Sun, 6 Jun 2010 18:22:16 +0000 (18:22 +0000)]
oops, should use 1.4.0 in the libpng14 version string to be sure

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

14 years agolibpng14's .so name is libpng14.so.14, not .0 as usual
divverent [Sun, 6 Jun 2010 18:21:23 +0000 (18:21 +0000)]
libpng14's .so name is libpng14.so.14, not .0 as usual

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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