mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-03-06 10:11:28 +01:00
Adjust fov effects when raging
This commit is contained in:
parent
d4fe4c549d
commit
e5fe26cba8
1 changed files with 4 additions and 1 deletions
|
@ -282,7 +282,10 @@ public class UHud {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EquinePredicates.RAGING.test(client.player)) {
|
if (EquinePredicates.RAGING.test(client.player)) {
|
||||||
context.fill(0, 0, scaledWidth, scaledHeight, 0x3AFF0000);
|
context.fillGradient(0, 0, scaledWidth, scaledHeight / 4, 0xAAFF0000, 0x00FF0000);
|
||||||
|
int alpha = 0x3A + (int)(125 * Math.abs(MathHelper.sin(client.player.age / 25F)));//3A
|
||||||
|
context.fill(0, 0, scaledWidth, scaledHeight, 0x00FF0000 | (alpha << 24));
|
||||||
|
context.fillGradient(0, (int)(scaledHeight / 1.5), scaledWidth, scaledHeight, 0x00FF0000, 0xAAFF0000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue