]>
git.rm.cloudns.org Git - xonotic/darkplaces.git/log
divverent [Mon, 26 Jul 2010 12:05:38 +0000 (12:05 +0000)]
bump modplug version to libmodplug-1.dll (only supports 0.8.8 upwards, sorry, but any versions before are broken on 64bit platforms anyway)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10365
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 25 Jul 2010 19:39:19 +0000 (19:39 +0000)]
make prydon cursor absolute, not relative
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10364
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 25 Jul 2010 18:42:31 +0000 (18:42 +0000)]
fix v_flipped with near clip plane (water, warpzone)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10363
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 25 Jul 2010 17:10:11 +0000 (17:10 +0000)]
Linux SDL/GLX: allow loading the icon from .xpm at runtime (darkplaces-icon.xpm). Allows for easier branding.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10362
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 25 Jul 2010 14:56:25 +0000 (14:56 +0000)]
fix a nasty bug in refraction/water renders. It is evil that GL20TU_FIRST must be matching, out of all texture units, the one of normalmaps.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10361
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 25 Jul 2010 12:20:39 +0000 (12:20 +0000)]
track if a cachepic has alpha, and turn off depth write if it does; also use alpha-less blendfuncs if all alpha values are >= 1 and the texture has no alpha (might be a slight performance increase, but mainly to help R_BeginPolygon in 3D space)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10360
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 25 Jul 2010 06:14:44 +0000 (06:14 +0000)]
PROPERLY handle roundoff errors in drawsetcliparea
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10359
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 23 Jul 2010 19:14:21 +0000 (19:14 +0000)]
Fix the usage of the CACHEPICFLAGS_NOTPERSISTENT flag in Draw_CachePic calls
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10358
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Wed, 21 Jul 2010 09:46:58 +0000 (09:46 +0000)]
CRLF fixes, .gitattributes file updated
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10357
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 20 Jul 2010 17:54:56 +0000 (17:54 +0000)]
make airstopaccelerate less accidentally epic ;)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10356
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 20 Jul 2010 17:19:35 +0000 (17:19 +0000)]
Merge remote branch 'origin/mirceakitsune/landing_viewshake_fix'
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10355
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 20 Jul 2010 17:16:30 +0000 (17:16 +0000)]
And my third intended change: Remove view bobbing dependencies from the gun model bobbing. It has its own cvar and imo there's no reason to block this effect when the normal bobbing is disabled. Their intensities could also be different, which is another reason why I think this doesn't make sense.
I don't believe it should change anything for Quake players since this just allows you to disable both effects individually. If the core developers disagree please revert this change.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10354
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 20 Jul 2010 17:16:27 +0000 (17:16 +0000)]
Second change: Use cos for the horizontal view bobbing while leaving sin for the vertical (old) one. This makes the view bobbing look rounder and prettier when both are enabled.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10353
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 20 Jul 2010 17:16:24 +0000 (17:16 +0000)]
Sort this space in a more correct way while I'm at it
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10352
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 20 Jul 2010 17:16:21 +0000 (17:16 +0000)]
Fix some final things on my list for my effects in Darkplaces. First change: Use the highpass / lowpass values in Xonotic for gun leaning / following, which are much better.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10351
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 20 Jul 2010 07:07:23 +0000 (07:07 +0000)]
sv_aircontrol_penalty
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10350
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 20 Jul 2010 03:51:50 +0000 (03:51 +0000)]
VM_stringtokeynum: return a float, not an int
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10349
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:25:31 +0000 (22:25 +0000)]
Oops, must be framerate dependent
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10348
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:25:25 +0000 (22:25 +0000)]
Fix the final details and disable by default. Use cl_bobfall 0.05 to test at a good value. Ready for testing and merging.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10347
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:25:19 +0000 (22:25 +0000)]
Minimum necessary speed for fall-bobbing to occur
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10346
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:25:12 +0000 (22:25 +0000)]
Bounds
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10345
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:25:06 +0000 (22:25 +0000)]
Cvars. Enabled by default just for testing until everything is done.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10344
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:25:00 +0000 (22:25 +0000)]
The code works as intended! Change some names and comments in the meantime.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10343
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:24:54 +0000 (22:24 +0000)]
Very close to getting the correct maths done. It now works as intended, just need to separate the swing's length and speed.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10342
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:24:42 +0000 (22:24 +0000)]
Even closer to a senseful code. We need to get just one swing using sin()
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10341
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:24:35 +0000 (22:24 +0000)]
Use sin() for the the view going up / down. Now it needs to be arranged in a correct way.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10340
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:24:29 +0000 (22:24 +0000)]
More progress, still nothing considerable
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10339
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:24:23 +0000 (22:24 +0000)]
Some comments and a view bound on the speed, which should match xyspeed's for the bobbing
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10338
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:24:17 +0000 (22:24 +0000)]
Make the view slowly go back after hitting the ground. We need to do the same for both up and down. Also use reasonable values until cvars are done.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10337
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 22:24:11 +0000 (22:24 +0000)]
Attempt to implement landing viewshake effect (the camera lowering and going back up when you hit the ground with speed). Code very primitive at this point, and just gets the basic calculation in place.
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10336
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 16 Jul 2010 16:29:13 +0000 (16:29 +0000)]
fix uninitialized variable warning
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10335
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 09:07:42 +0000 (09:07 +0000)]
fix ~TEXF_PICMIP in DDS loading, and fix TEXF_ALPHA generation (there was a bug that caused TEXF_ALPHA to never be set, now it is set if the caller requested it AND the texture has alpha)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10334
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 16 Jul 2010 08:42:48 +0000 (08:42 +0000)]
cvar: r_mipnormalmaps
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10333
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 15 Jul 2010 19:11:48 +0000 (19:11 +0000)]
fix ISWORLD and ISSPRITE texture flags (making r_picmipworld actually work again)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10332
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 15 Jul 2010 12:39:14 +0000 (12:39 +0000)]
fix r_shadows 2 shadowmapping by rendering to the correct depth range in
GL again
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10331
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 15 Jul 2010 12:38:52 +0000 (12:38 +0000)]
improved r_shadows 2 shadowmapping setup code a bit, especially the
debugging code snippets
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10330
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 15 Jul 2010 12:09:36 +0000 (12:09 +0000)]
better error message when map load fails
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10329
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 15 Jul 2010 12:08:38 +0000 (12:08 +0000)]
fix map loading in Nexuiz
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10328
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 15 Jul 2010 10:04:30 +0000 (10:04 +0000)]
raise SVBSP polygon points limit to avoid crashes with portal tests
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10327
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Jul 2010 10:18:23 +0000 (10:18 +0000)]
reworked .obj loader to work as a world model (SLOWLY though, no vis, no
surface clustering!), now also interprets o (object name) commands as
submodel number
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10326
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Jul 2010 10:15:46 +0000 (10:15 +0000)]
changed modeldecompile's obj output to not negate an axis, this makes it
consistent with the OBJ loader
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10325
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Jul 2010 10:14:07 +0000 (10:14 +0000)]
fix a mingw warning
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10324
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Jul 2010 10:13:50 +0000 (10:13 +0000)]
allow loading non-bsp files as world models (no longer always appends
.bsp suffix)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10323
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Jul 2010 10:13:17 +0000 (10:13 +0000)]
fix a mingw warning
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10322
d7cf8633 -e32d-0410-b094-
e92efae38249
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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