lots of niceguitab changes
This commit is contained in:
parent
c2fa773fae
commit
2b164b56df
4 changed files with 259 additions and 206 deletions
|
|
@ -285,20 +285,38 @@ static function int GetInvincibilityDuration(KFPlayerReplicationInfo KFPRI){
|
|||
static function int GetInvincibilitySafeMisses(KFPlayerReplicationInfo KFPRI){
|
||||
return 0;
|
||||
}
|
||||
static function SpecialHUDInfo(KFPlayerReplicationInfo KFPRI, Canvas C){
|
||||
|
||||
static function SpecialHUDInfo(KFPlayerReplicationInfo KFPRI, Canvas C)
|
||||
{
|
||||
local KFMonster KFEnemy;
|
||||
local HUDKillingFloor HKF;
|
||||
local int i, hp;
|
||||
local float MaxDistanceSquared;
|
||||
|
||||
MaxDistanceSquared = 640000;
|
||||
MaxDistanceSquared *= GetHealthBarsDistanceMulti(KFPRI)**2;
|
||||
HKF = HUDKillingFloor(C.ViewPort.Actor.myHUD);
|
||||
if(HKF == none || C.ViewPort.Actor.Pawn == none || MaxDistanceSquared <= 0)
|
||||
if (HKF == none || C.ViewPort.Actor.Pawn == none || MaxDistanceSquared <= 0)
|
||||
return;
|
||||
foreach C.ViewPort.Actor.DynamicActors(class'KFMonster', KFEnemy){
|
||||
if(KFEnemy.Health > 0 && (!KFEnemy.Cloaked() || KFEnemy.bZapped || KFEnemy.bSpotted) && VSizeSquared(KFEnemy.Location - C.ViewPort.Actor.Pawn.Location) < MaxDistanceSquared)
|
||||
|
||||
// read and use player settings
|
||||
// 0 - big zeds, 1 - all, 2 - disabled
|
||||
i = NicePlayerController(C.ViewPort.actor).ZedHPBarStyle;
|
||||
|
||||
if (i == 2)
|
||||
return;
|
||||
else if (i == 1)
|
||||
hp = 0;
|
||||
else
|
||||
hp = 1000;
|
||||
|
||||
foreach C.ViewPort.Actor.DynamicActors(class'KFMonster', KFEnemy)
|
||||
{
|
||||
if (KFEnemy.Health > hp && (!KFEnemy.Cloaked() || KFEnemy.bZapped || KFEnemy.bSpotted) && VSizeSquared(KFEnemy.Location - C.ViewPort.Actor.Pawn.Location) < MaxDistanceSquared)
|
||||
HKF.DrawHealthBar(C, KFEnemy, KFEnemy.Health, KFEnemy.HealthMax , 50.0);
|
||||
}
|
||||
}
|
||||
|
||||
// Is player standing still?
|
||||
static function bool IsStandingStill(KFPlayerReplicationInfo KFPRI){
|
||||
if(KFPRI != none && PlayerController(KFPRI.Owner) != none && PlayerController(KFPRI.Owner).Pawn != none && VSize(PlayerController(KFPRI.Owner).Pawn.Velocity) > 0.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue