processVehicleOneShots for heli, and heli blade fix

This commit is contained in:
Roman Masanin 2020-09-26 04:10:00 +03:00
parent 6e3523d594
commit a75ddd0d0c
2 changed files with 23 additions and 2 deletions

View file

@ -1486,7 +1486,7 @@ CAutomobile::ProcessControl(void)
CMatrix mat;
mat.Attach(RwFrameGetMatrix(m_aCarNodes[CAR_BONNET]));
CVector blade = mat.GetRight();
blade = GetMatrix() * blade;
blade = Multiply3x3(blade, GetMatrix());
camDist /= Max(Sqrt(distSq), 0.01f);
if(Abs(DotProduct(camDist, blade)) > 0.95f){
DMAudio.PlayOneShot(m_audioEntityId, SOUND_31, 0.0f);