NathanKell
...
Just got stuck watching the Oxbay video again.
Argh!
This mod will enable you to (well, sorta) turn off movies, and it makes _all_ movies skippable.
First, add
#define ENABLE_VIDEOS 0 //set to 0 to disable videos
somewhere in build settings.
Then, open interfaceinterface.c
Find function void StartVideo(string vidName)
scroll down to
bPlayVideoNow = true;
Replace from there until the end of the function with:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->bPlayVideoNow = true;
// NK enable break all videos
/*if( vidName=="Artefact" ||
vidName=="BlackPearl" ||
vidName=="Ending" ||
vidName=="Invasion" ||
vidName=="Temple"
) {*/ bBreakVideoDisable = true; //}
//else {bBreakVideoDisable = false;}
// NK <--
// NK allow disable videos
if(!ENABLE_VIDEOS)
{
PostEvent("ievntEndVideo",0);
return;
}
// NK <--
SetEventHandler("Control Activation","IVideoBreak",0);
if(!IsEntity(aviVideoObj))
{
Trace("Can`t create video player");
PostEvent("ievntEndVideo",0);
}
}<!--c2--></div><!--ec2-->
This is a hack. The video will play for ~1/4 of a second and then stop.
I didn't want to wast the time finding how to _actually_ skip the video. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid="
" border="0" alt="wink.gif" />
Argh!
This mod will enable you to (well, sorta) turn off movies, and it makes _all_ movies skippable.
First, add
#define ENABLE_VIDEOS 0 //set to 0 to disable videos
somewhere in build settings.
Then, open interfaceinterface.c
Find function void StartVideo(string vidName)
scroll down to
bPlayVideoNow = true;
Replace from there until the end of the function with:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->bPlayVideoNow = true;
// NK enable break all videos
/*if( vidName=="Artefact" ||
vidName=="BlackPearl" ||
vidName=="Ending" ||
vidName=="Invasion" ||
vidName=="Temple"
) {*/ bBreakVideoDisable = true; //}
//else {bBreakVideoDisable = false;}
// NK <--
// NK allow disable videos
if(!ENABLE_VIDEOS)
{
PostEvent("ievntEndVideo",0);
return;
}
// NK <--
SetEventHandler("Control Activation","IVideoBreak",0);
if(!IsEntity(aviVideoObj))
{
Trace("Can`t create video player");
PostEvent("ievntEndVideo",0);
}
}<!--c2--></div><!--ec2-->
This is a hack. The video will play for ~1/4 of a second and then stop.
I didn't want to wast the time finding how to _actually_ skip the video. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid="
