Hovering sounds for large flying units

This commit is contained in:
Anuken
2025-12-12 23:09:20 -05:00
parent 1cf734855b
commit 739ac72af5
3 changed files with 14 additions and 1 deletions

View File

@@ -1167,6 +1167,8 @@ public class UnitTypes{
targetFlags = new BlockFlag[]{BlockFlag.generator, BlockFlag.core, null};
ammoType = new ItemAmmoType(Items.thorium);
loopSound = Sounds.loopHover;
BulletType missiles = new MissileBulletType(2.7f, 18){{
width = 8f;
height = 8f;
@@ -1242,6 +1244,8 @@ public class UnitTypes{
targetFlags = new BlockFlag[]{BlockFlag.reactor, BlockFlag.battery, BlockFlag.core, null};
ammoType = new ItemAmmoType(Items.thorium);
loopSound = Sounds.loopHover;
BulletType fragBullet = new FlakBulletType(4f, 15){{
shootEffect = Fx.shootBig;
ammoMultiplier = 4f;
@@ -1461,6 +1465,8 @@ public class UnitTypes{
ammoType = new PowerAmmoType(3000);
loopSound = Sounds.loopHover;
weapons.add(
new Weapon(){{
x = y = 0f;
@@ -1531,6 +1537,8 @@ public class UnitTypes{
buildBeamOffset = 43;
ammoCapacity = 1;
loopSound = Sounds.loopHover;
abilities.add(new ForceFieldAbility(140f, 4f, 7000f, 60f * 8, 8, 0f){{
breakSound = Sounds.shieldBreak;
}}, new RepairFieldAbility(130f, 60f * 2, 140f));
@@ -3957,6 +3965,9 @@ public class UnitTypes{
engineOffset = 61 / 4f;
range = 4.3f * 60f * 1.4f;
loopSoundVolume = 0.85f;
loopSound = Sounds.loopHover;
abilities.add(new SuppressionFieldAbility(){{
reload = 60f * 8f;
orbRadius = 5.3f;
@@ -4056,6 +4067,8 @@ public class UnitTypes{
engineSize = 6f;
engineOffset = 25.25f;
loopSound = Sounds.loopHover;
float orbRad = 5f, partRad = 3f;
int parts = 10;

View File

@@ -155,7 +155,7 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
if(!within(tile, finalPlaceDst)) continue;
if(!headless){
Vars.control.sound.loop(Sounds.loopBuild, tile, 0.75f);
Vars.control.sound.loop(Sounds.loopBuild, tile, 1f);
}
if(!(tile.build instanceof ConstructBuild cb)){