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

Der Wunderfizz: change max perks hint string

This commit is contained in:
Jbleezy 2024-02-19 00:42:13 -08:00
parent e61d7901d6
commit ffe178287e
3 changed files with 64 additions and 0 deletions

View File

@ -1272,6 +1272,9 @@ LANG_ENGLISH "Lightning Staff Required"
REFERENCE ZM_TOMB_MISSING_ICE_STAFF
LANG_ENGLISH "Ice Staff Required"
REFERENCE ZM_TOMB_RPT
LANG_ENGLISH "You have all perks"
REFERENCE ZOMBIE_BANK_WITHDRAW_PROMPT
LANG_ENGLISH "Hold ^3[{+activate}]^7 to withdraw &&1"

View File

@ -72,3 +72,63 @@ can_buy_perk()
return true;
}
wunderfizzstub_update_prompt(player)
{
self setcursorhint("HINT_NOICON");
if (!self trigger_visible_to_player(player))
return false;
self.hint_parm1 = undefined;
if (isdefined(self.stub.trigger_target.is_locked) && self.stub.trigger_target.is_locked)
{
self.hint_string = &"ZM_TOMB_RPU";
return false;
}
else if (self.stub.trigger_target.is_current_ball_location)
{
if (isdefined(self.stub.trigger_target.machine_user))
{
if (isdefined(self.stub.trigger_target.grab_perk_hint) && self.stub.trigger_target.grab_perk_hint)
{
n_purchase_limit = player get_player_perk_purchase_limit();
if (player.num_perks >= n_purchase_limit)
{
self.hint_string = &"ZM_TOMB_RPT";
return false;
}
else
{
self.hint_string = &"ZM_TOMB_RPP";
return true;
}
}
else
return false;
}
else
{
n_purchase_limit = player get_player_perk_purchase_limit();
if (player.num_perks >= n_purchase_limit)
{
self.hint_string = &"ZM_TOMB_RPT";
return false;
}
else
{
self.hint_string = &"ZM_TOMB_RPB";
self.hint_parm1 = level._random_zombie_perk_cost;
return true;
}
}
}
else
{
self.hint_string = &"ZM_TOMB_RPE";
return false;
}
}

View File

@ -52,6 +52,7 @@ main()
replaceFunc(maps\mp\zombies\_zm_craftables::update_open_table_status, scripts\zm\replaced\_zm_craftables::update_open_table_status);
replaceFunc(maps\mp\zombies\_zm_perk_random::machine_selector, scripts\zm\replaced\_zm_perk_random::machine_selector);
replaceFunc(maps\mp\zombies\_zm_perk_random::trigger_visible_to_player, scripts\zm\replaced\_zm_perk_random::trigger_visible_to_player);
replaceFunc(maps\mp\zombies\_zm_perk_random::wunderfizzstub_update_prompt, scripts\zm\replaced\_zm_perk_random::wunderfizzstub_update_prompt);
replaceFunc(maps\mp\zombies\_zm_powerup_zombie_blood::zombie_blood_powerup, scripts\zm\replaced\_zm_powerup_zombie_blood::zombie_blood_powerup);
replaceFunc(maps\mp\zombies\_zm_riotshield_tomb::doriotshielddeploy, scripts\zm\replaced\_zm_riotshield_tomb::doriotshielddeploy);
replaceFunc(maps\mp\zombies\_zm_riotshield_tomb::trackriotshield, scripts\zm\replaced\_zm_riotshield_tomb::trackriotshield);