1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

Hide secondary hint strings if player is not valid

This commit is contained in:
Jbleezy
2023-05-14 22:07:10 -07:00
parent 4d524d2389
commit 2da12b6771
3 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ show_balance(player)
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;
wait 0.05;

View File

@ -554,7 +554,7 @@ choose_open_buildable( player )
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;
wait 0.05;

View File

@ -94,7 +94,7 @@ show_current_weapon(player)
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;
wait 0.05;