mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 23:27:57 -05:00
Bank: update account balance hint string on round end
This commit is contained in:
@ -35,6 +35,8 @@ gain_interest_after_rounds()
|
||||
{
|
||||
self.account_value = level.bank_account_max;
|
||||
}
|
||||
|
||||
self notify("update_account_value");
|
||||
}
|
||||
}
|
||||
|
||||
@ -191,7 +193,7 @@ show_balance(player)
|
||||
|
||||
if (isDefined(stub.bankbalancehud[num]))
|
||||
{
|
||||
stub.bankbalancehud[num] settext( "Account Balance: " + round_up_to_ten(int(player.account_value * level.bank_deposit_ddl_increment_amount)) );
|
||||
player notify("update_account_value");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -207,9 +209,10 @@ show_balance(player)
|
||||
hud.fontscale = 1;
|
||||
hud.alpha = 1;
|
||||
hud.color = ( 1, 1, 1 );
|
||||
hud settext( "Account Balance: " + round_up_to_ten(int(player.account_value * level.bank_deposit_ddl_increment_amount)) );
|
||||
stub.bankbalancehud[num] = hud;
|
||||
|
||||
hud thread update_balance(player);
|
||||
|
||||
while ( isDefined( self ) )
|
||||
{
|
||||
if (!player isTouching(self) || player isSprinting() || player isThrowingGrenade())
|
||||
@ -226,4 +229,16 @@ show_balance(player)
|
||||
|
||||
stub.bankbalancehud[num] destroy();
|
||||
stub.bankbalancehud[num] = undefined;
|
||||
}
|
||||
|
||||
update_balance(player)
|
||||
{
|
||||
self endon("death");
|
||||
|
||||
while (1)
|
||||
{
|
||||
self settext( "Account Balance: " + round_up_to_ten(int(player.account_value * level.bank_deposit_ddl_increment_amount)) );
|
||||
|
||||
player waittill("update_account_value");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user