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

Grief: optimize Nuke code

This commit is contained in:
Jbleezy
2022-01-30 08:29:01 -08:00
parent 4a0a38cb92
commit 97a9bd34c8
2 changed files with 8 additions and 9 deletions

View File

@ -211,15 +211,7 @@ nuke_powerup( drop_item, player_team )
}
else if(players[i] maps/mp/zombies/_zm_laststand::player_is_in_laststand())
{
if(isDefined(level.scr_zm_ui_gametype_obj) && level.scr_zm_ui_gametype_obj == "zgrief")
{
players[i] thread scripts/zm/zgrief/zgrief_reimagined::player_suicide();
}
else
{
players[i] maps/mp/zombies/_zm::spectator_respawn();
players[i].revives--;
}
players[i] thread scripts/zm/zgrief/zgrief_reimagined::player_suicide();
}
}
}

View File

@ -1938,6 +1938,13 @@ unlimited_zombies()
player_suicide()
{
if(level.scr_zm_ui_gametype_obj != "zgrief")
{
self maps/mp/zombies/_zm::spectator_respawn();
self.revives--;
return;
}
self.playersuicided = 1;
self notify( "player_suicide" );