Antumbra weapons
BIN
core/assets-raw/sprites/units/weapons/large-bullet-mount.png
Normal file
|
After Width: | Height: | Size: 724 B |
|
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 608 KiB After Width: | Height: | Size: 606 KiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 180 KiB |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 193 KiB After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
@@ -530,7 +530,7 @@ public class UnitTypes implements ContentList{
|
|||||||
speed = 1.25f;
|
speed = 1.25f;
|
||||||
accel = 0.035f;
|
accel = 0.035f;
|
||||||
drag = 0.05f;
|
drag = 0.05f;
|
||||||
rotateSpeed = 3.5f;
|
rotateSpeed = 2f;
|
||||||
flying = true;
|
flying = true;
|
||||||
lowAltitude = true;
|
lowAltitude = true;
|
||||||
health = 9000;
|
health = 9000;
|
||||||
@@ -539,20 +539,50 @@ public class UnitTypes implements ContentList{
|
|||||||
engineSize = 5.3f;
|
engineSize = 5.3f;
|
||||||
hitsize = 58f;
|
hitsize = 58f;
|
||||||
|
|
||||||
weapons.add(new Weapon(){{
|
weapons.add(
|
||||||
y = 1.5f;
|
new Weapon("missiles-mount"){{
|
||||||
|
y = 8f;
|
||||||
|
x = 17f;
|
||||||
reload = 28f;
|
reload = 28f;
|
||||||
ejectEffect = Fx.shellEjectSmall;
|
ejectEffect = Fx.shellEjectSmall;
|
||||||
bullet = Bullets.standardCopper;
|
rotateSpeed = 8f;
|
||||||
|
bullet = Bullets.missileExplosive;
|
||||||
shootSound = Sounds.shoot;
|
shootSound = Sounds.shoot;
|
||||||
}});
|
rotate = true;
|
||||||
|
occlusion = 6f;
|
||||||
|
}},
|
||||||
|
new Weapon("missiles-mount"){{
|
||||||
|
y = -8f;
|
||||||
|
x = 17f;
|
||||||
|
reload = 42;
|
||||||
|
rotateSpeed = 8f;
|
||||||
|
ejectEffect = Fx.shellEjectSmall;
|
||||||
|
bullet = Bullets.missileExplosive;
|
||||||
|
shootSound = Sounds.shoot;
|
||||||
|
rotate = true;
|
||||||
|
occlusion = 6f;
|
||||||
|
}},
|
||||||
|
new Weapon("large-bullet-mount"){{
|
||||||
|
y = 2f;
|
||||||
|
x = 10f;
|
||||||
|
shootY = 12f;
|
||||||
|
reload = 10;
|
||||||
|
shake = 1f;
|
||||||
|
rotateSpeed = 2f;
|
||||||
|
ejectEffect = Fx.shellEjectSmall;
|
||||||
|
bullet = Bullets.standardDenseBig;
|
||||||
|
shootSound = Sounds.shootBig;
|
||||||
|
rotate = true;
|
||||||
|
occlusion = 8f;
|
||||||
|
}}
|
||||||
|
);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
eclipse = new UnitType("eclipse"){{
|
eclipse = new UnitType("eclipse"){{
|
||||||
speed = 1.1f;
|
speed = 1.1f;
|
||||||
accel = 0.02f;
|
accel = 0.02f;
|
||||||
drag = 0.05f;
|
drag = 0.05f;
|
||||||
rotateSpeed = 2.5f;
|
rotateSpeed = 1.5f;
|
||||||
flying = true;
|
flying = true;
|
||||||
lowAltitude = true;
|
lowAltitude = true;
|
||||||
health = 18000;
|
health = 18000;
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ public class UnitType extends UnlockableContent{
|
|||||||
unit.y + Angles.trnsy(unit.rotation + 180f, itemOffsetY),
|
unit.y + Angles.trnsy(unit.rotation + 180f, itemOffsetY),
|
||||||
(3f + Mathf.absin(Time.time(), 5f, 1f)) * unit.itemTime);
|
(3f + Mathf.absin(Time.time(), 5f, 1f)) * unit.itemTime);
|
||||||
|
|
||||||
if(unit.isLocal() && !Core.settings.getBool("pixelate")){
|
if(unit.isLocal() && !renderer.pixelator.enabled()){
|
||||||
Fonts.outline.draw(unit.stack.amount + "",
|
Fonts.outline.draw(unit.stack.amount + "",
|
||||||
unit.x + Angles.trnsx(unit.rotation + 180f, itemOffsetY),
|
unit.x + Angles.trnsx(unit.rotation + 180f, itemOffsetY),
|
||||||
unit.y + Angles.trnsy(unit.rotation + 180f, itemOffsetY) - 3,
|
unit.y + Angles.trnsy(unit.rotation + 180f, itemOffsetY) - 3,
|
||||||
|
|||||||