Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UT2k4Assault.ASCinematic_SceneManager


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
//=============================================================================
// ASCinematic_SceneManager
//=============================================================================
// Created by Laurent Delayen
// © 2003, Epic Games, Inc.  All Rights Reserved
//=============================================================================

class ASCinematic_SceneManager extends Info
    placeable;

var() name  CameraTag;
var() name  EventSceneStarted;
var() name  EventSceneEnded;

var ASCinematic_Camera  Camera;


function PostBeginPlay()
{
    super.PostBeginPlay();
    if ( CameraTag != '' )
        ForEach AllActors(class'ASCinematic_Camera', Camera, CameraTag)
            break;
}

function Trigger( Actor Other, Pawn EventInstigator )
{
    PlayScene();
}

function PlayScene()
{
    Level.Game.SceneStarted( None, Self );
    Camera.SetView( Self );
    TriggerEvent(EventSceneStarted, Self, None);
}

event ShotEnded( ASCinematic_Camera Cam )
{
    if ( Cam != None && Cam.NextCamera != None && Cam.NextCamera != Camera )    // safety check, avoid loops
    {
        if ( Cam.NextCamera.bActive )
            Cam.NextCamera.SetView( Self );
        else
            ShotEnded( Cam.NextCamera );    // Skip if not active (use triggers to activate/deactivate cameras)
    }
    else
        SceneEnded();
}

event SceneEnded()
{
    Level.Game.SceneEnded( None, Self );
    TriggerEvent(EventSceneEnded, Self, None);
}

defaultproperties
{
     bNoDelete=Wahr
     Texture=Texture'Engine.S_SceneManager'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 30.3.2007 08:43:52.000 - Creation time: Mo 16.4.2007 11:20:44.328 - Created with UnCodeX