Insect/leg unit step sound
This commit is contained in:
@@ -179,6 +179,7 @@ abstract class LegsComp implements Posc, Rotc, Hitboxc, Unitc{
|
||||
floor.walkSound.at(x, y, 1f, floor.walkSoundVolume);
|
||||
}else{
|
||||
Fx.unitLandSmall.at(l.base.x, l.base.y, type.rippleScale, floor.mapColor);
|
||||
type.stepSound.at(l.base.x, l.base.y, type.stepSoundPitch + Mathf.range(0.1f), type.stepSoundVolume);
|
||||
}
|
||||
|
||||
//shake when legs contact ground
|
||||
|
||||
@@ -51,7 +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);
|
||||
type.stepSound.at(cx, cy, type.stepSoundPitch + Mathf.range(0.1f), type.stepSoundVolume);
|
||||
}
|
||||
|
||||
walkExtension = extendScl;
|
||||
|
||||
Reference in New Issue
Block a user