multitasker fix part 1

This commit is contained in:
Shtoyan 2022-02-07 16:00:27 +04:00
parent b8045655f1
commit f7017fa7c1

View File

@ -170,17 +170,22 @@ function PostRender(Canvas C)
x += 128 + 4; x += 128 + 4;
} }
} }
//// Draw weapons progress bars //// Draw weapons progress bars
if(nicePlayer != none && nicePlayer.bFlagDisplayWeaponProgress) if (class'NiceVeterancyTypes'.static.hasSkill(nicePlayer, class'NiceSkillEnforcerMultitasker')
&& nicePlayer.bFlagDisplayWeaponProgress)
{ {
x = C.ClipX - InventoryBoxWidth * C.ClipX - 5; x = C.ClipX - InventoryBoxWidth * C.ClipX - 5;
y = C.ClipY * 0.5 - 0.5 * (InventoryBoxHeight * C.ClipX + 4) * niceMutator.niceWeapProgressSet.Length; y = C.ClipY * 0.5 - 0.5 * (InventoryBoxHeight * C.ClipX + 4) * niceMutator.niceWeapProgressSet.Length;
for(i = 0;i < niceMutator.niceWeapProgressSet.Length;i ++){ for (i = 0;i < niceMutator.niceWeapProgressSet.Length;i ++)
DrawWeaponProgress(C, niceMutator.niceWeapProgressSet[i], x, y, {
C.ViewPort.Actor.Pawn.PlayerReplicationInfo.Team); DrawWeaponProgress(C, niceMutator.niceWeapProgressSet[i], x, y,
y += (InventoryBoxHeight * C.ClipX + 4); C.ViewPort.Actor.Pawn.PlayerReplicationInfo.Team);
} y += (InventoryBoxHeight * C.ClipX + 4);
}
} }
//// Draw invincibility bar //// Draw invincibility bar
nicePawn = NiceHumanPawn(nicePlayer.pawn); nicePawn = NiceHumanPawn(nicePlayer.pawn);
if(nicePawn != none && nicePawn.invincibilityTimer != 0.0) if(nicePawn != none && nicePawn.invincibilityTimer != 0.0)