mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 21:31:03 +00:00
- SW: Implement cl_viewbob
.
This commit is contained in:
parent
555ebf86a0
commit
f0b32b6078
1 changed files with 5 additions and 2 deletions
|
@ -1726,8 +1726,11 @@ drawscreen(PLAYERp pp, double smoothratio)
|
||||||
|
|
||||||
if (!TEST(pp->Flags, PF_VIEW_FROM_CAMERA|PF_VIEW_FROM_OUTSIDE))
|
if (!TEST(pp->Flags, PF_VIEW_FROM_CAMERA|PF_VIEW_FROM_OUTSIDE))
|
||||||
{
|
{
|
||||||
tz += bob_amt;
|
if (cl_viewbob)
|
||||||
tz += pp->obob_z + xs_CRoundToInt(fmulscale16(pp->bob_z - pp->obob_z, smoothratio));
|
{
|
||||||
|
tz += bob_amt;
|
||||||
|
tz += pp->obob_z + xs_CRoundToInt(fmulscale16(pp->bob_z - pp->obob_z, smoothratio));
|
||||||
|
}
|
||||||
|
|
||||||
// recoil only when not in camera
|
// recoil only when not in camera
|
||||||
tq16horiz = tq16horiz + pp->recoil_horizoff;
|
tq16horiz = tq16horiz + pp->recoil_horizoff;
|
||||||
|
|
Loading…
Reference in a new issue