Skip to content

Commit

Permalink
xrGame/Actor_Network.cpp: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY authored and antoncxx committed Mar 3, 2024
1 parent ebe859d commit 3b518f1
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/xrGame/Actor_Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ bool CActor::net_Spawn(CSE_Abstract* DC)
IKinematicsAnimated* K = smart_cast<IKinematicsAnimated*>(Visual());
K->PlayCycle("death_init");

//
m_HeavyBreathSnd.stop();
}

Expand Down Expand Up @@ -1132,10 +1131,10 @@ void CActor::CalculateInterpolationParams()
for (u32 k = 0; k < 3; k++)
{
SP0[k] = c * (c * (c * SCoeff[k][0] + SCoeff[k][1]) + SCoeff[k][2]) + SCoeff[k][3];
SP1[k] = (c * c * SCoeff[k][0] * 3 + c * SCoeff[k][1] * 2 + SCoeff[k][2]) / 3; // 3 !!!!
SP1[k] = (c * c * SCoeff[k][0] * 3 + c * SCoeff[k][1] * 2 + SCoeff[k][2]) / 3; // скорость из формулы в 3 раза превышает скорость при расчете коэффициентов !!!!

HP0[k] = c * (c * (c * HCoeff[k][0] + HCoeff[k][1]) + HCoeff[k][2]) + HCoeff[k][3];
HP1[k] = (c * c * HCoeff[k][0] * 3 + c * HCoeff[k][1] * 2 + HCoeff[k][2]) / 3; // 3 !!!!
HP1[k] = (c * c * HCoeff[k][0] * 3 + c * HCoeff[k][1] * 2 + HCoeff[k][2]) / 3; // скорость из формулы в 3 раза превышает скорость при расчете коэффициентов !!!!
};

SP1.add(SP0);
Expand Down Expand Up @@ -1311,8 +1310,7 @@ void CActor::make_Interpolation()
case 1:
{
for (int k = 0; k < 3; k++)
SpeedVector[k] = (factor * factor * SCoeff[k][0] * 3 + factor * SCoeff[k][1] * 2 + SCoeff[k][2]) /
3; // 3 !!!!
SpeedVector[k] = (factor * factor * SCoeff[k][0] * 3 + factor * SCoeff[k][1] * 2 + SCoeff[k][2]) / 3; // скорость из формулы в 3 раза превышает скорость при расчете коэффициентов !!!!

ResPosition.set(IPosS);
}
Expand Down Expand Up @@ -1675,7 +1673,7 @@ void CActor::OnRender_Network()
point1S[k] = c * (c * (c * SCoeff[k][0] + SCoeff[k][1]) + SCoeff[k][2]) + SCoeff[k][3];
point1H[k] = c * (c * (c * HCoeff[k][0] + HCoeff[k][1]) + HCoeff[k][2]) + HCoeff[k][3];

tS[k] = (c * c * SCoeff[k][0] * 3 + c * SCoeff[k][1] * 2 + SCoeff[k][2]) / 3; // 3 !!!!
tS[k] = (c * c * SCoeff[k][0] * 3 + c * SCoeff[k][1] * 2 + SCoeff[k][2]) / 3; // скорость из формулы в 3 раза превышает скорость при расчете коэффициентов !!!!
tH[k] = (c * c * HCoeff[k][0] * 3 + c * HCoeff[k][1] * 2 + HCoeff[k][2]);
};

Expand Down Expand Up @@ -2008,15 +2006,14 @@ void CActor::OnPlayHeadShotParticle(NET_Packet P)
P.r_dir(HitDir);
HitDir.invert();
P.r_vec3(HitPos);
//-----------------------------------

if (!m_sHeadShotParticle.size())
return;

Fmatrix pos;
CParticlesPlayer::MakeXFORM(this, element, HitDir, HitPos, pos);
// particles
CParticlesObject* ps = NULL;

ps = CParticlesObject::Create(m_sHeadShotParticle.c_str(), TRUE);
CParticlesObject* ps = CParticlesObject::Create(m_sHeadShotParticle.c_str(), TRUE);

ps->UpdateParent(pos, Fvector().set(0.f, 0.f, 0.f));
GamePersistent().ps_needtoplay.push_back(ps);
Expand Down

0 comments on commit 3b518f1

Please sign in to comment.