mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 16:44:09 +00:00
processVehicleOneShots for heli, and heli blade fix
This commit is contained in:
parent
6e3523d594
commit
a75ddd0d0c
2 changed files with 23 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue