mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Hide secondary hint strings if player is not valid
This commit is contained in:
@ -216,7 +216,7 @@ show_balance(player)
|
|||||||
|
|
||||||
while ( isDefined( self ) )
|
while ( isDefined( self ) )
|
||||||
{
|
{
|
||||||
if (!player isTouching(self) || player isSprinting() || player isThrowingGrenade())
|
if (!player isTouching(self) || !is_player_valid(player) || player isSprinting() || player isThrowingGrenade())
|
||||||
{
|
{
|
||||||
hud.alpha = 0;
|
hud.alpha = 0;
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
|
@ -554,7 +554,7 @@ choose_open_buildable( player )
|
|||||||
|
|
||||||
while ( isDefined( self.playertrigger[ num ] ) && !self.built )
|
while ( isDefined( self.playertrigger[ num ] ) && !self.built )
|
||||||
{
|
{
|
||||||
if (!player isTouching(self.playertrigger[num]) || !player is_player_looking_at(self.playertrigger[num].origin, 0.76) || player isSprinting() || player isThrowingGrenade())
|
if (!player isTouching(self.playertrigger[num]) || !player is_player_looking_at(self.playertrigger[num].origin, 0.76) || !is_player_valid(player) || player isSprinting() || player isThrowingGrenade())
|
||||||
{
|
{
|
||||||
hud.alpha = 0;
|
hud.alpha = 0;
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
|
@ -94,7 +94,7 @@ show_current_weapon(player)
|
|||||||
|
|
||||||
while ( isDefined( self ) )
|
while ( isDefined( self ) )
|
||||||
{
|
{
|
||||||
if (!player isTouching(self) || player isSprinting() || player isThrowingGrenade())
|
if (!player isTouching(self) || !is_player_valid(player) || player isSprinting() || player isThrowingGrenade())
|
||||||
{
|
{
|
||||||
hud.alpha = 0;
|
hud.alpha = 0;
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
|
Reference in New Issue
Block a user