How to prevent a commando from seeing the patriarch's HP?

How to prevent a commando from seeing the patriarch's HP?

  • Topic closed
  • You cannot reply to this topic

How to prevent a commando from seeing the patriarch's HP? How to prevent a commando from seeing the patriarch's HP? In ServerPerksP.SRVetCommando.SpecialHUDInfo in the foreach loop P.CollidingActors add: That is, the function will be like this for SP 7.50

Geekrainian #1

    • Group: Admin
    • Posts: 800

    Posted:

    How to prevent a commando from seeing the patriarch’s HP?

    In ServerPerksP.SRVetCommando.SpecialHUDInfo in the foreach loop P.CollidingActors add:

    if(KFEnemy.IsA('ZombieBoss'))
        continue;

    That is, the function will be like this for SP 7.50

    static function SpecialHUDInfo(KFPlayerReplicationInfo KFPRI, Canvas C)
    {
        local KFMonster KFEnemy;
        local HUDKillingFloor HKF;
        local Pawn P;
        if ( KFPRI.ClientVeteranSkillLevel > 0 )
        {
            HKF = HUDKillingFloor(C.ViewPort.Actor.myHUD);
            P = Pawn(C.ViewPort.Actor.ViewTarget);
            if ( HKF==none || P==none || P.Health<=0 )
                return;
            foreach P.CollidingActors(class'KFMonster',KFEnemy,FMin(160*KFPRI.ClientVeteranSkillLevel,800.f))
            {
                if(KFEnemy.IsA('ZombieBoss'))
                    continue;
                if ( KFEnemy.Health > 0 && (!KFEnemy.Cloaked() || KFEnemy.bZapped || KFEnemy.bSpotted) )
                    HKF.DrawHealthBar(C, KFEnemy, KFEnemy.Health, KFEnemy.HealthMax , 50.0);
            }
        }
    }
    Back