From be732658488c3115acdb8f7b453ac6bc77285320 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 24 Oct 2016 17:55:10 +0300 Subject: [PATCH] Send ID_WORLD_VIDEO_PLAY from ingame scripts --- apps/openmw/mwscript/miscextensions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/openmw/mwscript/miscextensions.cpp b/apps/openmw/mwscript/miscextensions.cpp index f6010b983..39cded7ca 100644 --- a/apps/openmw/mwscript/miscextensions.cpp +++ b/apps/openmw/mwscript/miscextensions.cpp @@ -88,6 +88,12 @@ namespace MWScript bool allowSkipping = runtime[0].mInteger != 0; runtime.pop(); + // Added by tes3mp + mwmp::WorldEvent *event = mwmp::Main::get().getNetworking()->createWorldEvent(); + event->video = name; + event->allowSkipping = allowSkipping; + mwmp::Main::get().getNetworking()->GetWorldPacket(ID_WORLD_VIDEO_PLAY)->Send(event); + MWBase::Environment::get().getWindowManager()->playVideo (name, allowSkipping); } };