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
This commit is contained in:
tankefugl 2005-06-02 11:10:12 +00:00
parent 12f4be06be
commit af75bded0e
1 changed files with 7 additions and 1 deletions

View File

@ -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();
}
}
}