From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10278
d7cf8633-e32d-0410-b094-
e92efae38249
// view rolling code
// 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.
+ // TODO 2: Make the roll smoothly return to 0 when you stop touching the ground, rather than instantly
+ // TODO 3: Write cvars to darkplaces.txt, set better defaults and possibly disable by default once the first TODOs are ready
if (cl_bobroll.value && cl_bobrollcycle.value)
+ if (cl.onground)
{
cycle = cl.time / cl_bobrollcycle.value;
cycle -= (int) cycle;