CLIENT/SERVER: More accurate sprint camera movement in FTE

This commit is contained in:
Steam Deck User 2023-03-06 13:04:50 -05:00
parent 101749371d
commit ab0d4315ba
2 changed files with 5 additions and 12 deletions

View file

@ -368,18 +368,11 @@ void() Update_Vmodel =
adsoffset = GetWeaponADSPos(weapon);
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 += 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;
}
else
{
switch(getstatf(STAT_PLAYERSTANCE)) {

View file

@ -223,13 +223,13 @@ void() PlayerPreThink =
#ifdef FTE
if (self.viewzoom > 0.9)
if (self.viewzoom > 0.98)
self.viewzoom -= 0.015;
else if (self.viewzoom < 0.9)
self.viewzoom = 0.9;
else if (self.viewzoom < 0.98)
self.viewzoom = 0.98;
// viewbob when running
self.punchangle_x = 1*sin(time*15);
self.punchangle_y = 0.25*sin(time*10);
#endif // FTE