Core.Object | +--Engine.Actor | +--Engine.Info | +--Engine.GameInfo | +--UnrealShare.UnrealGameInfo | +--UnrealI.Intro
PlayerPawn
NewPlayer
void
Timer()
00001 //============================================================================= 00002 // Intro. 00003 //============================================================================= 00004 class Intro extends UnrealGameInfo; 00005 00006 var PlayerPawn NewPlayer; 00007 00008 event playerpawn Login 00009 ( 00010 string Portal, 00011 string Options, 00012 out string Error, 00013 class<playerpawn> SpawnClass 00014 ) 00015 { 00016 NewPlayer = Super.Login(Portal, Options, Error, SpawnClass); 00017 SetTimer(0.05,False); 00018 NewPlayer.SetCollisionSize(18,39); 00019 return NewPlayer; 00020 } 00021 00022 Function Timer() 00023 { 00024 local Actor A; 00025 local InterpolationPoint i; 00026 00027 if ( NewPlayer != None ) 00028 { 00029 foreach AllActors( class 'InterpolationPoint', i, 'Path' ) 00030 { 00031 if( i.Position == 0 ) 00032 { 00033 00034 NewPlayer.SetCollision(false,false,false); 00035 NewPlayer.Target = i; 00036 NewPlayer.SetPhysics(PHYS_Interpolating); 00037 NewPlayer.PhysRate = 1.0; 00038 NewPlayer.PhysAlpha = 0.0; 00039 NewPlayer.bInterpolating = true; 00040 // NewPlayer.GotoState(''); 00041 } 00042 } 00043 } 00044 00045 00046 } 00047 00048 defaultproperties 00049 { 00050 bPauseable=False 00051 DefaultWeapon=None 00052 HUDType=Class'UnrealI.IntroNullHud' 00053 }