From 1b622cf24f673abca179b652a6d4b83a31f76bbe Mon Sep 17 00:00:00 2001 From: MotoLegacy Date: Sat, 13 Jan 2024 15:34:25 -0500 Subject: [PATCH] NX/VITA: Bump intensity of idle viewmodel bobbing --- source/view.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/view.c b/source/view.c index 64d0c6c..36878d9 100644 --- a/source/view.c +++ b/source/view.c @@ -241,9 +241,9 @@ float V_CalcBob (float speed,float which)//0 = regular, 1 = side bobbing speed = 0.25; if (which == 0) - bob = cl_bobup.value * 10 * speed * (sprint * sprint) * sin(cl.time * 3.25 * sprint); - else - bob = cl_bobside.value * 50 * speed * (sprint * sprint * sprint) * sin((cl.time * sprint) - (M_PI * 0.25)); + bob = cl_bobup.value * 20 * speed * (sprint * sprint) * sin(cl.time * 3.25 * sprint); + else + bob = cl_bobside.value * 50 * speed * (sprint * sprint * sprint) * sin((cl.time * 2 * sprint) - (M_PI * 0.25)); } // Normal walk/sprint bob. else { @@ -252,9 +252,9 @@ float V_CalcBob (float speed,float which)//0 = regular, 1 = side bobbing //12.048 -> 4.3 = 100 -> 36ish, so replace 100 with 36 if(which == 0) - bob = cl_bobup.value * 24 * speed * (sprint * sprint) * sin((cl.time * 12.5 * sprint));//Pitch Bobbing 10 + bob = cl_bobup.value * 36 * speed * (sprint * sprint) * sin((cl.time * 12.5 * sprint));//Pitch Bobbing 10 else if(which == 1) - bob = cl_bobside.value * 24 * speed * (sprint * sprint * sprint) * sin((cl.time * 6.25 * sprint) - (M_PI * 0.25));//Yaw Bobbing 5 + bob = cl_bobside.value * 36 * speed * (sprint * sprint * sprint) * sin((cl.time * 6.25 * sprint) - (M_PI * 0.25));//Yaw Bobbing 5 } return bob; @@ -1258,6 +1258,7 @@ void V_Init (void) Cvar_RegisterVariable (&cl_bob); Cvar_RegisterVariable (&cl_bobcycle); Cvar_RegisterVariable (&cl_bobup); + Cvar_RegisterVariable (&cl_bobside); Cvar_RegisterVariable (&v_kicktime); Cvar_RegisterVariable (&v_kickroll);