Merge pull request #717 from theR4K/miami

Helicopters not ringing, and other audio stuff
This commit is contained in:
erorcun
2020-09-29 01:48:11 +03:00
committed by GitHub
5 changed files with 675 additions and 156 deletions

View File

@ -1489,7 +1489,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);