Gothic Online Forums
VideoPlayer - Printable Version

+- Gothic Online Forums (https://archive.gothic-online.com)
+-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html)
+--- Forum: Resources (https://archive.gothic-online.com/forum-14.html)
+---- Forum: Modules (https://archive.gothic-online.com/forum-32.html)
+---- Thread: VideoPlayer (/thread-1846.html)



VideoPlayer - Dharak - 11.10.2016

Function:
Code:
int PlayVideo(string FileName, int ScreenBlend, int ExitSession);



Comments:
The file name will be searched in: Gothic II\_Work\Data\video
Video must have .bik format



Examples:
Code:
function onInit()
{
  PlayVideo("intro.bik", 1, 0);
}

Code:
function onCommand(cmd, params)
{
    switch (cmd)
    {        
     case "play":
        local scan = sscanf("s", params);
        if(scan)
        {
           PlayVideo(scan[0], 0,  0);
        }
        return 1;
    }
}



Download for Dev 8:
http://www.mediafire.com/file/v176ctqp62jm5s9/VideoPlayer.nud

Download for *.5:
http://www.mediafire.com/file/szxg62u6wqcb2tl/VideoPlayer.zip


RE: VideoPlayer - Nubzior - 11.10.2016

This module use g2ext?


RE: VideoPlayer - Dharak - 11.10.2016

No, I just use IDA...


RE: VideoPlayer - Nubzior - 12.10.2016

Great, so maybe try your skills and do a sound module for Gothic sounds.


RE: VideoPlayer - Kladvey - 14.10.2016

Great Job. I think that your plugin gave more features for creators.