add glass sounds

This commit is contained in:
darkrose 2014-12-14 01:09:05 +10:00
parent ac04c22a15
commit 4d653d04f5
4 changed files with 11 additions and 0 deletions

BIN
data/sounds/dig_glass.1.ogg Normal file

Binary file not shown.

Binary file not shown.

View File

@ -2351,6 +2351,9 @@ void Client::playStepSound()
case CMT_WOOD:
m_sound->playSound("wood-walk",false,volume);
break;
case CMT_GLASS:
m_sound->playSound("glass-walk",false,volume);
break;
default:;
}
}
@ -2390,6 +2393,9 @@ void Client::playDigSound(content_t c)
case CMT_WOOD:
m_sound->playSound("wood-dig",false,volume);
break;
case CMT_GLASS:
m_sound->playSound("glass-dig",false,volume);
break;
default:
m_sound->playSound("miss-dig",false,volume);
}

View File

@ -56,6 +56,8 @@ void init_sounds(ISoundManager *sound)
sound->loadSound("wood-walk","wood_footstep.2.ogg");
sound->loadSound("wood-walk","wood_footstep.3.ogg");
sound->loadSound("wood-walk","wood_footstep.4.ogg");
// CMT_GLASS
sound->loadSound("glass-walk","glass_footstep.1.ogg");
// digging
// CMT_DIRT
@ -68,6 +70,8 @@ void init_sounds(ISoundManager *sound)
sound->loadSound("liquid-dig","dig_liquid.1.ogg");
// CMT_WOOD
sound->loadSound("wood-dig","dig_wood.1.ogg");
// CMT_GLASS
sound->loadSound("glass-dig","dig_glass.1.ogg");
// mobs
sound->loadSound("mob-dig","dig_mob.ogg");
// miss
@ -82,6 +86,7 @@ void init_sounds(ISoundManager *sound)
// CMT_PLANT
// CMT_LIQUID
// CMT_WOOD
// CMT_GLASS
}