mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 15:17:57 -05:00
Containment: fix perks return
This commit is contained in:
@ -223,11 +223,6 @@ perk_set_max_health_if_jugg( perk, set_premaxhealth, clamp_health_to_max_health
|
||||
}
|
||||
else if ( perk == "health_reboot" )
|
||||
{
|
||||
if(isDefined(level.scr_zm_ui_gametype_obj) && level.scr_zm_ui_gametype_obj == "zcontainment")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
max_total_health = level.player_starting_health;
|
||||
}
|
||||
if ( isDefined( max_total_health ) )
|
||||
|
@ -1797,18 +1797,6 @@ grief_laststand_weapons_return()
|
||||
|
||||
self thread grief_laststand_items_return();
|
||||
|
||||
if(level.scr_zm_ui_gametype_obj == "zcontainment")
|
||||
{
|
||||
if(isDefined(self.grief_savedperks))
|
||||
{
|
||||
self.perks_active = [];
|
||||
foreach(perk in self.grief_savedperks)
|
||||
{
|
||||
self maps/mp/zombies/_zm_perks::give_perk(perk);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
self.grief_savedweapon_weapons = undefined;
|
||||
|
||||
primaries = self getweaponslistprimaries();
|
||||
@ -1914,6 +1902,18 @@ grief_laststand_items_return()
|
||||
self [[ self.player_shield_reset_health ]]();
|
||||
}
|
||||
}
|
||||
|
||||
if(is_true(self._retain_perks))
|
||||
{
|
||||
if(isDefined(self.grief_savedperks))
|
||||
{
|
||||
self.perks_active = [];
|
||||
foreach(perk in self.grief_savedperks)
|
||||
{
|
||||
self maps/mp/zombies/_zm_perks::give_perk(perk);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sudden_death()
|
||||
|
Reference in New Issue
Block a user