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

UDSDemo.CSMovie


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
//=============================================================================
// The Unreal Director's Suite                  Release version: Jan 7th, 1999
//=============================================================================
//
// [ CS_Movie ]
//
// This class is designed for non-intertactive C/S levels.  Any map of this
// game type will automatically launch a CS_ACTION at startup.  There should
// be EXACTLY ONE CS_Action actor in this case.
//=============================================================================

class CSMovie expands CSSinglePlayer;

var PlayerPawn NewPlayer;

event playerpawn Login
(
    string Portal,
    string Options,
    out string Error,
    class<playerpawn> SpawnClass
)
{
//log( "SpawnClass.Name="$SpawnClass.Name$" SpawnClass = "$ SpawnClass ); //UG
    if (SpawnClass.Name == 'MaleOne' )
    {
      SpawnClass = class 'CSMaleOne';
    }
    else if (SpawnClass.Name == 'MaleTwo')   SpawnClass = class 'CSMaleTwo';
    else if (SpawnClass.Name == 'MaleThree') SpawnClass = class 'CSMaleThree';
    else if (SpawnClass.Name == 'FemaleOne' || SpawnClass == class'UnrealSpectator' || SpawnClass == class'DemoRecSpectator' || SpawnClass == class'SkaarjPlayer' )
    {
        SpawnClass = class 'CSFemaleOne';
    }
    else if (SpawnClass.Name == 'FemaleTwo') SpawnClass = class 'CSFemaleTwo';
    else if (SpawnClass.Name == 'UPakMaleOne')   SpawnClass = class 'CSMaleOne';
    else if (SpawnClass.Name == 'UPakMaleTwo')   SpawnClass = class 'CSMaleTwo';
    else if (SpawnClass.Name == 'UPakMaleThree') SpawnClass = class 'CSMaleThree';
    else if (SpawnClass.Name == 'UPakFemaleOne') SpawnClass = class 'CSFemaleOne';
    else if (SpawnClass.Name == 'UPakFemaleTwo') SpawnClass = class 'CSFemaleTwo';
//log( "SpawnClass.Name="$SpawnClass.Name$" SpawnClass = "$SpawnClass ); //UG

    NewPlayer = Super.Login(Portal, Options, Error, SpawnClass);
    NewPlayer.ClientAdjustGlow( -1.0, vect( 0, 0, 0 ) );
    NewPlayer.HudType = class'CS_HUD';  
    Spawn( class'CS_ClientFader', NewPlayer,, Location, Rotation );
    SetTimer(0.05,False);
    return NewPlayer;
}

function Timer()
{
    local CS_Action a;
    foreach AllActors(class'CS_Action', a) {
    a.Trigger(NewPlayer, NewPlayer.Instigator);
    break;
    }
}

//
// Send a player to a URL.
//
function SendPlayer( PlayerPawn aPlayer, string URL )
{
    log( "URL: "$URL );
    if( Level.Title != "Intro1" )
    {
        aPlayer.ClientTravel( URL, TRAVEL_Relative, true );
    }
    else
    {
        aPlayer.ClientTravel( URL, TRAVEL_Relative, true );
    }
}

defaultproperties
{
     DefaultPlayerClass=Class'UDSDemo.CSPlayer'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 13:27:50.000 - Creation time: za 22-4-2006 13:29:27.343 - Created with UnCodeX