Progress on new SFX (WIP)
Pitch is broken in the sound engine - this has already been fixed, but I haven't updated the natives
This commit is contained in:
@@ -14,14 +14,14 @@ public class ArtilleryBulletType extends BasicBulletType{
|
||||
collidesAir = false;
|
||||
scaleLife = true;
|
||||
hitShake = 1f;
|
||||
hitSound = Sounds.explosion;
|
||||
hitSound = Sounds.artilleryExplosion;
|
||||
hitEffect = Fx.flakExplosion;
|
||||
shootEffect = Fx.shootBig;
|
||||
trailEffect = Fx.artilleryTrail;
|
||||
|
||||
//default settings:
|
||||
shrinkX = 0.15f;
|
||||
shrinkY = 0.63f;
|
||||
shrinkY = 0.5f;
|
||||
shrinkInterp = Interp.slope;
|
||||
|
||||
//for trail:
|
||||
|
||||
@@ -80,9 +80,9 @@ public class BulletType extends Content implements Cloneable{
|
||||
public Sound hitSound = Sounds.none;
|
||||
/** Sound made when hitting something or getting removed.*/
|
||||
public Sound despawnSound = Sounds.none;
|
||||
/** Pitch of the sound made when hitting something*/
|
||||
public float hitSoundPitch = 1;
|
||||
/** Volume of the sound made when hitting something*/
|
||||
/** Pitch of the sound made when hitting something */
|
||||
public float hitSoundPitch = 1, hitSoundPitchRange = 0.1f;
|
||||
/** Volume of the sound made when hitting something */
|
||||
public float hitSoundVolume = 1;
|
||||
/** Extra inaccuracy when firing. */
|
||||
public float inaccuracy = 0f;
|
||||
@@ -511,7 +511,7 @@ public class BulletType extends Content implements Cloneable{
|
||||
|
||||
public void hit(Bullet b, float x, float y){
|
||||
hitEffect.at(x, y, b.rotation(), hitColor);
|
||||
hitSound.at(x, y, hitSoundPitch, hitSoundVolume);
|
||||
hitSound.at(x, y, hitSoundPitch + Mathf.range(hitSoundPitchRange), hitSoundVolume);
|
||||
|
||||
Effect.shake(hitShake, hitShake, b);
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ abstract class MechComp implements Posc, Hitboxc, Unitc, Mechc, ElevationMovec{
|
||||
if(type.mechStepParticles){
|
||||
Effect.floorDust(cx, cy, hitSize/8f);
|
||||
}
|
||||
type.stepSound.at(cx, cy, 1f + Mathf.range(0.1f), type.stepSoundVolume);
|
||||
}
|
||||
|
||||
walkExtension = extendScl;
|
||||
|
||||
Reference in New Issue
Block a user