|
|
@ -756,6 +756,7 @@ void CharacterController::handleTextKey(const std::string &groupname, const std:
|
|
|
|
if(evt.compare(0, 7, "sound: ") == 0)
|
|
|
|
if(evt.compare(0, 7, "sound: ") == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
|
|
|
|
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
|
|
|
|
|
|
|
|
sndMgr->stopSound3D(mPtr, evt.substr(7));
|
|
|
|
sndMgr->playSound3D(mPtr, evt.substr(7), 1.0f, 1.0f);
|
|
|
|
sndMgr->playSound3D(mPtr, evt.substr(7), 1.0f, 1.0f);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -796,8 +797,11 @@ void CharacterController::handleTextKey(const std::string &groupname, const std:
|
|
|
|
MWBase::SoundManager::Play_NoPlayerLocal);
|
|
|
|
MWBase::SoundManager::Play_NoPlayerLocal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
sndMgr->stopSound3D(mPtr, sound);
|
|
|
|
sndMgr->playSound3D(mPtr, sound, volume, pitch);
|
|
|
|
sndMgr->playSound3D(mPtr, sound, volume, pitch);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|