From af75bded0e6acb75e273ea438d7ae25fade053d5 Mon Sep 17 00:00:00 2001 From: tankefugl Date: Thu, 2 Jun 2005 11:10:12 +0000 Subject: [PATCH] Mantis 0001021: o The onos is now properly uncloaked while charging Added a check in AvHPlayer::InternalAlienThink to trigger the uncloak if charge is active. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@159 67975925-1194-0748-b3d5-c16f83f1a3a1 --- main/source/mod/AvHPlayer.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main/source/mod/AvHPlayer.cpp b/main/source/mod/AvHPlayer.cpp index 673ff18..8eeb580 100644 --- a/main/source/mod/AvHPlayer.cpp +++ b/main/source/mod/AvHPlayer.cpp @@ -5863,7 +5863,7 @@ void AvHPlayer::InternalAlienUpgradesCloakingThink() } // :joev else - { + { // If we have cloaking upgrade int theCloakingLevel = AvHGetAlienUpgradeLevel(this->pev->iuser4, MASK_UPGRADE_7); if(theCloakingLevel > 0) @@ -6363,6 +6363,12 @@ void AvHPlayer::InternalAlienThink() this->mIsScreaming = false; } } + + // Uncloak if we are charging + if(GetHasUpgrade(this->pev->iuser4, MASK_ALIEN_MOVEMENT)) + { + this->TriggerUncloak(); + } } }