How is it possible to make matinee interruptable? eg. UT2004 Assault intro movies can be cancelled by primary fire
I am not 100% sure on this, but to cancel a movie you can just use a console command to change to the map.UT2004 Assault intro movies can be cancelled by primary fire
[SAS]Solid Snake said:I am not 100% sure on this, but to cancel a movie you can just use a console command to change to the map.
Vito said:You can't by default. You'll have to check out the UT2004 matinee UnrealScript code for that. If it's not done natively, you might be able to write some UnrealScript that supports it. If it is, I can give you other suggestions.
exec function StartMatinee()
{
local SceneManager scene;
//if(isViewingMatinee()) return;
foreach DynamicActors(class'SceneManager',scene)
{
if(scene.bIsSceneStarted || scene.bIsRunning) continue;
scene.Trigger(self,pawn);
break;
}
}
exec function KillMatinee()
{
local SceneManager scene;
local MatAction action;
local MatSubAction subaction;
local int i,j;
foreach DynamicActors(class'SceneManager',scene)
{
if(!scene.bIsRunning || !scene.bIsSceneStarted) continue;
scene.bIsRunning=false;
scene.bIsSceneStarted=false;
for(i=0;i < scene.Actions.length;i++)
{
action = scene.Actions[i];
if(action != none)
{
for(j=0;j < action.SubActions.length;j++)
{
subaction=action.SubActions[j];
if(subaction != none && subaction.status == SASTATUS_Running)
subaction.status=SASTATUS_Ending;
}
}
}
scene.SceneEnded();
SetViewTarget(pawn);
}
}