Skip to content

Commit

Permalink
NX/VITA: Bump intensity of idle viewmodel bobbing
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed Jan 13, 2024
1 parent d93ecf2 commit 1b622cf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1b622cf

Please sign in to comment.