2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-25 11:19:39 +01:00

Play smoke effect on the correct osprey wing. Related issue: https://github.com/ValveSoftware/halflife/issues/3263 (#253)

This commit is contained in:
Roman Chistokhodov 2022-06-06 18:49:21 +03:00 committed by GitHub
parent 4e13400c61
commit 3dc739547c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -756,7 +756,7 @@ void COsprey::TraceAttack( entvars_t *pevAttacker, float flDamage, Vector vecDir
return;
else
m_flRightHealth -= flDamage;
m_iDoLeftSmokePuff = 3 + ( flDamage / 5.0f );
m_iDoRightSmokePuff = 3 + ( flDamage / 5.0f );
}
if( ptr->iHitgroup == 2 )
@ -765,7 +765,7 @@ void COsprey::TraceAttack( entvars_t *pevAttacker, float flDamage, Vector vecDir
return;
else
m_flLeftHealth -= flDamage;
m_iDoRightSmokePuff = 3 + ( flDamage / 5.0f );
m_iDoLeftSmokePuff = 3 + ( flDamage / 5.0f );
}
// hit hard, hits cockpit, hits engines