Breach sounds
This commit is contained in:
Binary file not shown.
BIN
core/assets/sounds/shoot/shootBreachCarbide.ogg
Normal file
BIN
core/assets/sounds/shoot/shootBreachCarbide.ogg
Normal file
Binary file not shown.
@@ -4374,6 +4374,7 @@ public class Blocks{
|
|||||||
rangeChange = 7f*8f;
|
rangeChange = 7f*8f;
|
||||||
buildingDamageMultiplier = 0.3f;
|
buildingDamageMultiplier = 0.3f;
|
||||||
trailRotation = true;
|
trailRotation = true;
|
||||||
|
shootSound = Sounds.shootBreachCarbide;
|
||||||
|
|
||||||
fragBullets = 3;
|
fragBullets = 3;
|
||||||
fragRandomSpread = 0f;
|
fragRandomSpread = 0f;
|
||||||
|
|||||||
@@ -79,6 +79,8 @@ public class BulletType extends Content implements Cloneable{
|
|||||||
public Effect chargeEffect = Fx.none;
|
public Effect chargeEffect = Fx.none;
|
||||||
/** Extra smoke effect created when shooting. */
|
/** Extra smoke effect created when shooting. */
|
||||||
public Effect smokeEffect = Fx.shootSmallSmoke;
|
public Effect smokeEffect = Fx.shootSmallSmoke;
|
||||||
|
/** Overrides the shoot sound in turrets if set. Does nothing in units, as they can't have multiple ammo types. */
|
||||||
|
public Sound shootSound = Sounds.none;
|
||||||
/** Sound made when hitting something or getting removed.*/
|
/** Sound made when hitting something or getting removed.*/
|
||||||
public Sound hitSound = Sounds.none;
|
public Sound hitSound = Sounds.none;
|
||||||
/** Sound made when hitting something or getting removed.*/
|
/** Sound made when hitting something or getting removed.*/
|
||||||
|
|||||||
@@ -747,7 +747,7 @@ public class Turret extends ReloadTurret{
|
|||||||
|
|
||||||
(shootEffect == null ? type.shootEffect : shootEffect).at(bulletX, bulletY, rotation + angleOffset, type.hitColor);
|
(shootEffect == null ? type.shootEffect : shootEffect).at(bulletX, bulletY, rotation + angleOffset, type.hitColor);
|
||||||
(smokeEffect == null ? type.smokeEffect : smokeEffect).at(bulletX, bulletY, rotation + angleOffset, type.hitColor);
|
(smokeEffect == null ? type.smokeEffect : smokeEffect).at(bulletX, bulletY, rotation + angleOffset, type.hitColor);
|
||||||
shootSound.at(bulletX, bulletY, Mathf.random(soundPitchMin, soundPitchMax), shootSoundVolume);
|
(type.shootSound != Sounds.none ? type.shootSound : shootSound).at(bulletX, bulletY, Mathf.random(soundPitchMin, soundPitchMax), shootSoundVolume);
|
||||||
|
|
||||||
ammoUseEffect.at(
|
ammoUseEffect.at(
|
||||||
x - Angles.trnsx(rotation, ammoEjectBack),
|
x - Angles.trnsx(rotation, ammoEjectBack),
|
||||||
|
|||||||
Reference in New Issue
Block a user