Add limit to the damage from quad damage skill
This commit is contained in:
parent
3716813a7b
commit
a3f4baabc6
6 changed files with 67 additions and 28 deletions
|
|
@ -260,6 +260,21 @@ function PostRender(Canvas C)
|
|||
}
|
||||
}
|
||||
|
||||
//// Draw quad damage bar
|
||||
if (nicePawn != none && nicePawn.quadDamageRemaining > 0.0)
|
||||
{
|
||||
C.SetDrawColor(255, 255, 255);
|
||||
barTexture = redBar;
|
||||
center = C.ClipX * 0.5;
|
||||
y = C.ClipY * 0.45;
|
||||
barWidth = C.ClipX * 0.2;
|
||||
barWidth *= nicePawn.quadDamageRemaining / class'NiceSkillEnforcerBruteA'.default.maximumDamageAdded;
|
||||
x = center - (barWidth / 2);
|
||||
C.SetPos(x, y);
|
||||
Log("DRAWING" @ x @ y @ barWidth);
|
||||
C.DrawTile(barTexture, barWidth, 32, 0, 0, barTexture.MaterialUSize(), barTexture.MaterialVSize());
|
||||
}//native(466) final function DrawTile( material Mat, float XL, float YL, float U, float V, float UL, float VL );
|
||||
|
||||
team = C.ViewPort.Actor.Pawn.PlayerReplicationInfo.Team;
|
||||
//// Draw health still in regen timer
|
||||
healthToGive = ScrnHumanPawn(C.ViewPort.Actor.Pawn).clientHealthToGive;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue