From 253036abee5dfb609e716852ce8eb30d7a6b63d5 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 28 Aug 2014 02:55:22 +0200 Subject: [PATCH] Play VFX_Soul_Trap on successful soul trap --- apps/openmw/mwmechanics/actors.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/openmw/mwmechanics/actors.cpp b/apps/openmw/mwmechanics/actors.cpp index 26332e47c..a94f26cd4 100644 --- a/apps/openmw/mwmechanics/actors.cpp +++ b/apps/openmw/mwmechanics/actors.cpp @@ -248,6 +248,12 @@ namespace MWMechanics if (caster.getRefData().getHandle() == "player") MWBase::Environment::get().getWindowManager()->messageBox("#{sSoultrapSuccess}"); + + const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get() + .search("VFX_Soul_Trap"); + if (fx) + MWBase::Environment::get().getWorld()->spawnEffect("meshes\\" + fx->mModel, + "", Ogre::Vector3(mCreature.getRefData().getPosition().pos)); } };