1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-22 21:20:15 -05:00

Solo revive requires perk to be active

This commit is contained in:
Jbleezy
2020-03-16 13:29:53 -07:00
parent a8b039f36e
commit ac12acf94b
2 changed files with 10 additions and 8 deletions

View File

@ -14,7 +14,7 @@
## Players ## Players
* Unlimited sprint * Unlimited sprint
* Automatically get 3 self revives in solo * Self revives in solo are active whenever the player has at least 1 perk
* 100% backwards speed, strafe speed, and sprint strafe speed * 100% backwards speed, strafe speed, and sprint strafe speed
* Can dive again right away after just diving * Can dive again right away after just diving
* Can move after diving quicker * Can move after diving quicker
@ -84,7 +84,6 @@
### Quick Revive ### Quick Revive
* No longer automatically powered on in solo * No longer automatically powered on in solo
* Increased cost in solo from 500 to 1500 * Increased cost in solo from 500 to 1500
* No longer gives an additional self revive in solo
* Decreases normal health regeneration delay from 2 seconds to 1.5 seconds * Decreases normal health regeneration delay from 2 seconds to 1.5 seconds
* Decreases low health regeneration delay from 4 seconds to 3 seconds * Decreases low health regeneration delay from 4 seconds to 3 seconds
* Increases health regeneration rate from 100 health per second to 125 health per second * Increases health regeneration rate from 100 health per second to 125 health per second

View File

@ -2683,12 +2683,20 @@ solo_lives_fix()
self.lives = 3; self.lives = 3;
self.bought_solo_revive = 0; self.bought_solo_revive = 0;
self setPerk("specialty_quickrevive");
while (1) while (1)
{ {
self waittill_any("perk_acquired", "perk_lost"); self waittill_any("perk_acquired", "perk_lost");
if (self.perks_active.size < 1)
{
self unsetPerk("specialty_quickrevive");
self.bought_solo_revive = 0;
continue;
}
self setPerk("specialty_quickrevive");
has_revive = 0; has_revive = 0;
foreach (perk in self.perks_active) foreach (perk in self.perks_active)
{ {
@ -2700,11 +2708,6 @@ solo_lives_fix()
} }
self.bought_solo_revive = has_revive; self.bought_solo_revive = has_revive;
if (!has_revive)
{
self setPerk("specialty_quickrevive");
}
} }
} }