mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-10 06:32:03 +00:00
NX/VITA: Bump intensity of idle viewmodel bobbing
This commit is contained in:
parent
d93ecf2b1d
commit
1b622cf24f
1 changed files with 6 additions and 5 deletions
|
@ -241,9 +241,9 @@ float V_CalcBob (float speed,float which)//0 = regular, 1 = side bobbing
|
||||||
speed = 0.25;
|
speed = 0.25;
|
||||||
|
|
||||||
if (which == 0)
|
if (which == 0)
|
||||||
bob = cl_bobup.value * 10 * speed * (sprint * sprint) * sin(cl.time * 3.25 * sprint);
|
bob = cl_bobup.value * 20 * speed * (sprint * sprint) * sin(cl.time * 3.25 * sprint);
|
||||||
else
|
else
|
||||||
bob = cl_bobside.value * 50 * speed * (sprint * sprint * sprint) * sin((cl.time * sprint) - (M_PI * 0.25));
|
bob = cl_bobside.value * 50 * speed * (sprint * sprint * sprint) * sin((cl.time * 2 * sprint) - (M_PI * 0.25));
|
||||||
}
|
}
|
||||||
// Normal walk/sprint bob.
|
// Normal walk/sprint bob.
|
||||||
else {
|
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
|
//12.048 -> 4.3 = 100 -> 36ish, so replace 100 with 36
|
||||||
if(which == 0)
|
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)
|
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;
|
return bob;
|
||||||
|
@ -1258,6 +1258,7 @@ void V_Init (void)
|
||||||
Cvar_RegisterVariable (&cl_bob);
|
Cvar_RegisterVariable (&cl_bob);
|
||||||
Cvar_RegisterVariable (&cl_bobcycle);
|
Cvar_RegisterVariable (&cl_bobcycle);
|
||||||
Cvar_RegisterVariable (&cl_bobup);
|
Cvar_RegisterVariable (&cl_bobup);
|
||||||
|
Cvar_RegisterVariable (&cl_bobside);
|
||||||
|
|
||||||
Cvar_RegisterVariable (&v_kicktime);
|
Cvar_RegisterVariable (&v_kicktime);
|
||||||
Cvar_RegisterVariable (&v_kickroll);
|
Cvar_RegisterVariable (&v_kickroll);
|
||||||
|
|
Loading…
Reference in a new issue