1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

Fix several runtime errors

This commit is contained in:
Jbleezy
2022-02-04 12:58:34 -08:00
parent ee85fb302d
commit 82c371b1cb
6 changed files with 24 additions and 16 deletions

View File

@ -141,16 +141,19 @@ zombie_damage( mod, hit_location, hit_origin, player, amount, team )
}
}
}
else if ( isDefined( self.a.gib_ref ) || self.a.gib_ref == "right_arm" && self.a.gib_ref == "left_arm" )
else if ( isDefined( self.a.gib_ref ) )
{
if ( self.has_legs && isalive( self ) )
if ( self.a.gib_ref == "right_arm" || self.a.gib_ref == "left_arm" )
{
if ( isDefined( player ) )
if ( self.has_legs && isalive( self ) )
{
rand = randomintrange( 0, 100 );
if ( rand < 7 )
if ( isDefined( player ) )
{
player maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "shoot_arm" );
rand = randomintrange( 0, 100 );
if ( rand < 7 )
{
player maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "shoot_arm" );
}
}
}
}