diff --git a/sounds/slide.txt b/sounds/slide.txt new file mode 100644 index 000000000..af62d8f72 --- /dev/null +++ b/sounds/slide.txt @@ -0,0 +1,5 @@ +Derived from Sand paper rub.mp3 by orginaljun +orginaljun.deviantart.com +http://freesound.org/people/orginaljun/sounds/157832/ + +http://creativecommons.org/licenses/by/3.0/ \ No newline at end of file diff --git a/sounds/slide.wav b/sounds/slide.wav new file mode 100644 index 000000000..4ace9d75c Binary files /dev/null and b/sounds/slide.wav differ diff --git a/src/cdogs/actors.c b/src/cdogs/actors.c index 4e6711bb4..1cdb0381d 100644 --- a/src/cdogs/actors.c +++ b/src/cdogs/actors.c @@ -776,6 +776,12 @@ void SlideActor(TActor * actor, int cmd) actor->dx = dx; actor->dy = dy; + + // Slide sound + if (gConfig.Sound.Footsteps) + { + SoundPlayAt(SND_SLIDE, actor->tileItem.x, actor->tileItem.y); + } } void UpdateAllActors(int ticks) diff --git a/src/cdogs/sounds.c b/src/cdogs/sounds.c index 73fc2afd9..d19506228 100644 --- a/src/cdogs/sounds.c +++ b/src/cdogs/sounds.c @@ -86,7 +86,6 @@ SoundDevice gSoundDevice = {"sounds/whistle.wav", 0, NULL}, {"sounds/powergun.wav", 0, NULL}, {"sounds/mg.wav", 0, NULL}, - {"sounds/footstep.wav", 0, NULL}, {"sounds/shotgun_r.wav", 0, NULL}, {"sounds/powergun_r.wav", 0, NULL}, {"sounds/package_r.wav", 0, NULL}, @@ -96,7 +95,9 @@ SoundDevice gSoundDevice = {"sounds/hit_flesh.wav", 0, NULL}, {"sounds/hit_gas.wav", 0, NULL}, {"sounds/hit_hard.wav", 0, NULL}, - {"sounds/hit_petrify.wav", 0, NULL} + {"sounds/hit_petrify.wav", 0, NULL}, + {"sounds/footstep.wav", 0, NULL}, + {"sounds/slide.wav", 0, NULL} } }; diff --git a/src/cdogs/sounds.h b/src/cdogs/sounds.h index 4a23b06a5..b436a145f 100644 --- a/src/cdogs/sounds.h +++ b/src/cdogs/sounds.h @@ -74,7 +74,6 @@ typedef enum SND_DONE, SND_LASER, SND_MINIGUN, - SND_FOOTSTEP, SND_SHOTGUN_R, SND_LASER_R, SND_PACKAGE_R, @@ -85,6 +84,8 @@ typedef enum SND_HIT_GAS, SND_HIT_HARD, SND_HIT_PETRIFY, + SND_FOOTSTEP, + SND_SLIDE, SND_COUNT } sound_e;