mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 13:55:43 +00:00
fix another
This commit is contained in:
parent
d34c33e74b
commit
9fc6a8b56b
@ -1647,7 +1647,7 @@ finishPlayerDamageWrapper( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeat
|
||||
eAttacker.owner thread doPrintDamage( iDamage, sHitLoc, iDFlags );
|
||||
}
|
||||
|
||||
if( level.extraDamageFeedback )
|
||||
if( isDefined( eAttacker ) && level.extraDamageFeedback )
|
||||
{
|
||||
if( sWeapon == "nuke_mp" )
|
||||
{
|
||||
@ -1663,7 +1663,7 @@ finishPlayerDamageWrapper( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeat
|
||||
|
||||
if( sHitLoc == "head" || sHitLoc == "helmet" )
|
||||
{
|
||||
if ( isDefined( eAttacker ) && isPlayer( eAttacker ) )
|
||||
if ( isPlayer( eAttacker ) )
|
||||
eAttacker playLocalSound( "bullet_impact_headshot_2" );
|
||||
else if( isDefined( eAttacker.owner ) && isPlayer( eAttacker.owner ) )
|
||||
eAttacker.owner playLocalSound( "bullet_impact_headshot_2" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user