mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 07:37:56 -05:00
Grief: optimize Nuke code
This commit is contained in:
@ -211,15 +211,7 @@ nuke_powerup( drop_item, player_team )
|
|||||||
}
|
}
|
||||||
else if(players[i] maps/mp/zombies/_zm_laststand::player_is_in_laststand())
|
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();
|
||||||
{
|
|
||||||
players[i] thread scripts/zm/zgrief/zgrief_reimagined::player_suicide();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
players[i] maps/mp/zombies/_zm::spectator_respawn();
|
|
||||||
players[i].revives--;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1938,6 +1938,13 @@ unlimited_zombies()
|
|||||||
|
|
||||||
player_suicide()
|
player_suicide()
|
||||||
{
|
{
|
||||||
|
if(level.scr_zm_ui_gametype_obj != "zgrief")
|
||||||
|
{
|
||||||
|
self maps/mp/zombies/_zm::spectator_respawn();
|
||||||
|
self.revives--;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
self.playersuicided = 1;
|
self.playersuicided = 1;
|
||||||
self notify( "player_suicide" );
|
self notify( "player_suicide" );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user