mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-26 13:51:01 +00:00
CLIENT/SERVER: More accurate sprint camera movement in FTE
This commit is contained in:
parent
101749371d
commit
ab0d4315ba
2 changed files with 5 additions and 12 deletions
|
@ -368,16 +368,9 @@ void() Update_Vmodel =
|
||||||
adsoffset = GetWeaponADSPos(weapon);
|
adsoffset = GetWeaponADSPos(weapon);
|
||||||
|
|
||||||
ads = getstatf(STAT_WEAPONZOOM); //get the zoomtoggle value
|
ads = getstatf(STAT_WEAPONZOOM); //get the zoomtoggle value
|
||||||
if(ads == 1)
|
if(ads == 1 || ads == 2)
|
||||||
{
|
{
|
||||||
vmodel_currentpos += (adsoffset * 0.15 * 128) * frametime;
|
vmodel_currentpos += (adsoffset * 0.15 * 128) * frametime;
|
||||||
vmodel_currentpos += offset*0.025;
|
|
||||||
vmodel.origin = vmodel_currentpos + adsoffset;
|
|
||||||
}
|
|
||||||
else if (ads == 2)
|
|
||||||
{
|
|
||||||
vmodel_currentpos += (adsoffset * 0.15 * 128) * frametime;
|
|
||||||
vmodel_currentpos += offset*0.025;
|
|
||||||
vmodel.origin = vmodel_currentpos + adsoffset;
|
vmodel.origin = vmodel_currentpos + adsoffset;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -223,13 +223,13 @@ void() PlayerPreThink =
|
||||||
|
|
||||||
#ifdef FTE
|
#ifdef FTE
|
||||||
|
|
||||||
if (self.viewzoom > 0.9)
|
if (self.viewzoom > 0.98)
|
||||||
self.viewzoom -= 0.015;
|
self.viewzoom -= 0.015;
|
||||||
else if (self.viewzoom < 0.9)
|
else if (self.viewzoom < 0.98)
|
||||||
self.viewzoom = 0.9;
|
self.viewzoom = 0.98;
|
||||||
|
|
||||||
// viewbob when running
|
// viewbob when running
|
||||||
self.punchangle_x = 1*sin(time*15);
|
self.punchangle_y = 0.25*sin(time*10);
|
||||||
|
|
||||||
#endif // FTE
|
#endif // FTE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue