mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-02 14:40:40 +00:00
- SW: Implement cl_viewbob
.
This commit is contained in:
parent
555ebf86a0
commit
f0b32b6078
1 changed files with 5 additions and 2 deletions
|
@ -1725,9 +1725,12 @@ 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))
|
||||||
|
{
|
||||||
|
if (cl_viewbob)
|
||||||
{
|
{
|
||||||
tz += bob_amt;
|
tz += bob_amt;
|
||||||
tz += pp->obob_z + xs_CRoundToInt(fmulscale16(pp->bob_z - pp->obob_z, smoothratio));
|
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