Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 |
//============================================================================= // ASCinematic_Camera //============================================================================= // Created by Laurent Delayen // © 2003, Epic Games, Inc. All Rights Reserved //============================================================================= class ASCinematic_Camera extends Actor placeable; var() float ShotLength; // length of shot in seconds... var() name EventViewingCamera; // Event triggered when camera is active var() name NextCameraTag; var ASCinematic_Camera NextCamera; var() bool bInitiallyActive; var bool bActive; var ASCinematic_SceneManager ASCSM; function PostBeginPlay() { super.PostBeginPlay(); bActive = bInitiallyActive; if ( NextCameraTag != '' ) ForEach AllActors(class'ASCinematic_Camera', NextCamera, NextCameraTag) break; if ( ShotLength == 0 ) // safety check ShotLength = 2; } /* Specific version, when viewing an objective for end of round cam (and attackers didn't win)*/ function ViewFixedObjective( PlayerController PC, GameObjective GO ) { PC.ClientSetFixedCamera( true ); PC.ClientSetViewTarget( Self ); PC.SetViewTarget( Self ); } /* Scene Manager sets the view on this camera */ function SetView( ASCinematic_SceneManager SM ) { local Controller C, NextC; local PlayerController PC; C = Level.ControllerList; while ( C != None ) { NextC = C.NextController; if ( C.PlayerReplicationInfo != None && !C.PlayerReplicationInfo.bOnlySpectator ) { PC = PlayerController(C); if ( PC != None ) { PC.ClientSetFixedCamera( true ); PC.ClientSetViewTarget( Self ); PC.SetViewTarget( Self ); } } C = NextC; } TriggerEvent(EventViewingCamera, Self, None); if ( SM != None ) { SetTimer( ShotLength, false ); ASCSM = SM; } } function Timer() { ASCSM.ShotEnded( Self ); } function Trigger( Actor Other, Pawn EventInstigator ) { bActive = !bActive; } /* Reset() reset actor to initial state - used when restarting level without reloading. */ function Reset() { super.Reset(); bActive = bInitiallyActive; } defaultproperties { ShotLength=2.000000 bInitiallyActive=Wahr bHidden=Wahr bNoDelete=Wahr RemoteRole=ROLE_None Texture=Texture'Engine.Proj_Icon' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |