Talk:Pyoff

From EDukeWiki
Revision as of 22:08, 2 December 2014 by Jwaffe (talk | contribs) (Created page with "y axis? Isn't it a Z offset? game.c/G_DrawRooms: // cl setting if (ud.viewbob) { // addz = p->opyoff + (p->opyoff - p->opyoff...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

y axis? Isn't it a Z offset?

game.c/G_DrawRooms:

           // cl setting
           if (ud.viewbob)
           {
           // addz = p->opyoff + (p->opyoff - p->opyoff)*smoothratio)
               int32_t addz = (p->opyoff + mulscale16(p->pyoff - p->opyoff, smoothratio));
               if (p->over_shoulder_on) // reduce view bobbing if we're over the shoulder because we're farther away and it will look terrible
                   addz >>= 3;
               CAMERA(pos.z) += addz;
           }

-75