mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-22 12:00:13 -04:00
[Client] Only play sound for trap disarms in currently active cells
This commit is contained in:
parent
b5e20d3701
commit
023956fd41
@ -698,7 +698,10 @@ void ObjectList::triggerTrapObjects(MWWorld::CellStore* cellStore)
|
||||
{
|
||||
if (baseObject.trapAction == mwmp::BaseObjectList::TRAP_ACTION::DISARM)
|
||||
{
|
||||
MWBase::Environment::get().getSoundManager()->playSound3D(ptrFound, "Disarm Trap", 1.0f, 1.0f);
|
||||
if (mwmp::Main::get().getCellController()->isActiveWorldCell(cell))
|
||||
{
|
||||
MWBase::Environment::get().getSoundManager()->playSound3D(ptrFound, "Disarm Trap", 1.0f, 1.0f);
|
||||
}
|
||||
}
|
||||
else if (baseObject.trapAction == mwmp::BaseObjectList::TRAP_ACTION::TRIGGER)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user