Hovering sounds for large flying units
This commit is contained in:
Binary file not shown.
@@ -1167,6 +1167,8 @@ public class UnitTypes{
|
|||||||
targetFlags = new BlockFlag[]{BlockFlag.generator, BlockFlag.core, null};
|
targetFlags = new BlockFlag[]{BlockFlag.generator, BlockFlag.core, null};
|
||||||
ammoType = new ItemAmmoType(Items.thorium);
|
ammoType = new ItemAmmoType(Items.thorium);
|
||||||
|
|
||||||
|
loopSound = Sounds.loopHover;
|
||||||
|
|
||||||
BulletType missiles = new MissileBulletType(2.7f, 18){{
|
BulletType missiles = new MissileBulletType(2.7f, 18){{
|
||||||
width = 8f;
|
width = 8f;
|
||||||
height = 8f;
|
height = 8f;
|
||||||
@@ -1242,6 +1244,8 @@ public class UnitTypes{
|
|||||||
targetFlags = new BlockFlag[]{BlockFlag.reactor, BlockFlag.battery, BlockFlag.core, null};
|
targetFlags = new BlockFlag[]{BlockFlag.reactor, BlockFlag.battery, BlockFlag.core, null};
|
||||||
ammoType = new ItemAmmoType(Items.thorium);
|
ammoType = new ItemAmmoType(Items.thorium);
|
||||||
|
|
||||||
|
loopSound = Sounds.loopHover;
|
||||||
|
|
||||||
BulletType fragBullet = new FlakBulletType(4f, 15){{
|
BulletType fragBullet = new FlakBulletType(4f, 15){{
|
||||||
shootEffect = Fx.shootBig;
|
shootEffect = Fx.shootBig;
|
||||||
ammoMultiplier = 4f;
|
ammoMultiplier = 4f;
|
||||||
@@ -1461,6 +1465,8 @@ public class UnitTypes{
|
|||||||
|
|
||||||
ammoType = new PowerAmmoType(3000);
|
ammoType = new PowerAmmoType(3000);
|
||||||
|
|
||||||
|
loopSound = Sounds.loopHover;
|
||||||
|
|
||||||
weapons.add(
|
weapons.add(
|
||||||
new Weapon(){{
|
new Weapon(){{
|
||||||
x = y = 0f;
|
x = y = 0f;
|
||||||
@@ -1531,6 +1537,8 @@ public class UnitTypes{
|
|||||||
buildBeamOffset = 43;
|
buildBeamOffset = 43;
|
||||||
ammoCapacity = 1;
|
ammoCapacity = 1;
|
||||||
|
|
||||||
|
loopSound = Sounds.loopHover;
|
||||||
|
|
||||||
abilities.add(new ForceFieldAbility(140f, 4f, 7000f, 60f * 8, 8, 0f){{
|
abilities.add(new ForceFieldAbility(140f, 4f, 7000f, 60f * 8, 8, 0f){{
|
||||||
breakSound = Sounds.shieldBreak;
|
breakSound = Sounds.shieldBreak;
|
||||||
}}, new RepairFieldAbility(130f, 60f * 2, 140f));
|
}}, new RepairFieldAbility(130f, 60f * 2, 140f));
|
||||||
@@ -3957,6 +3965,9 @@ public class UnitTypes{
|
|||||||
engineOffset = 61 / 4f;
|
engineOffset = 61 / 4f;
|
||||||
range = 4.3f * 60f * 1.4f;
|
range = 4.3f * 60f * 1.4f;
|
||||||
|
|
||||||
|
loopSoundVolume = 0.85f;
|
||||||
|
loopSound = Sounds.loopHover;
|
||||||
|
|
||||||
abilities.add(new SuppressionFieldAbility(){{
|
abilities.add(new SuppressionFieldAbility(){{
|
||||||
reload = 60f * 8f;
|
reload = 60f * 8f;
|
||||||
orbRadius = 5.3f;
|
orbRadius = 5.3f;
|
||||||
@@ -4056,6 +4067,8 @@ public class UnitTypes{
|
|||||||
engineSize = 6f;
|
engineSize = 6f;
|
||||||
engineOffset = 25.25f;
|
engineOffset = 25.25f;
|
||||||
|
|
||||||
|
loopSound = Sounds.loopHover;
|
||||||
|
|
||||||
float orbRad = 5f, partRad = 3f;
|
float orbRad = 5f, partRad = 3f;
|
||||||
int parts = 10;
|
int parts = 10;
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
|
|||||||
if(!within(tile, finalPlaceDst)) continue;
|
if(!within(tile, finalPlaceDst)) continue;
|
||||||
|
|
||||||
if(!headless){
|
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)){
|
if(!(tile.build instanceof ConstructBuild cb)){
|
||||||
|
|||||||
Reference in New Issue
Block a user