This commit is contained in:
6arelyFuture 2021-09-28 21:35:15 +01:00
parent 46392cea9e
commit c378705963

View File

@ -29,15 +29,15 @@ onConnect()
monitorForRewards() monitorForRewards()
{ {
self endon( "disconnect" ); self endon( "disconnect" );
level endon( "game_ended" ); level endon( "game_ended" );
for ( ;; ) for ( ;; )
{ {
self waittill( "killed_enemy" ); self waittill( "killed_enemy" );
if ( self.sessionteam == "axis" ) return; // It's infected. Once your team is axis you are done for the game if ( self.sessionteam == "axis" ) return; // It's infected. Once your team is axis you are done for the game
count = self.kills; count = self.kills;
switch( count ) switch( count )
{ {
case 1: case 1:
self scripts\_inf_utils::playLeaderDialog( "kill_confirmed" ); self scripts\_inf_utils::playLeaderDialog( "kill_confirmed" );
level thread dropAmmo( self ); level thread dropAmmo( self );
@ -67,7 +67,7 @@ monitorForRewards()
level thread maps\mp\killstreaks\_airdrop::dropNuke( self.origin, self, "nuke_drop" ); level thread maps\mp\killstreaks\_airdrop::dropNuke( self.origin, self, "nuke_drop" );
break; break;
} }
} }
} }
dropAmmo( owner ) dropAmmo( owner )