## XIDMaps
Class CWndUSA02BossIntro

source: C:\XIII\XIDMaps\Classes\CWndUSA02BossIntro.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Effects
             |
             +--XIII.CWndBase
                |
                +--XIDMaps.CWndUSA02BossIntro

Direct Known Subclasses:None

class CWndUSA02BossIntro
extends XIII.CWndBase

    // Specific FX
    // To be displayed for the USA02 Helico boss introduction
    //-----------------------------------------------------------

Variables
`vector` | `X,Y,Z`
`int` | `iPhase`

Source Code

    00001	// Specific FX
    00002	// To be displayed for the USA02 Helico boss introduction
    00003	//-----------------------------------------------------------
    00004	class CWndUSA02BossIntro extends CWndBase;
    00005
    00006	var int iPhase;
    00007	var vector X,Y,Z;
    00008
    00009	//_____________________________________________________________________________
    00010	event PostBeginPlay()
    00011	{
    00012	    Super.PostBeginPlay();
    00013	    SetTimer(0.1, false);
    00014	    GetAxes(Owner.Rotation, X,Y,Z);
    00015	}
    00016
    00017	//_____________________________________________________________________________
    00018	event Timer()
    00019	{
    00020	    iPhase ++;
    00021	    switch (iPhase)
    00022	    {
    00023	      Case 1:
    00024	        // Take Front View, ratio height=2*width
    00025	        MyHudForFX.CWndMat.Update( 0, 0, 256, 256, Owner.Location + X*900, rotator(-X-Y*0.5), 90 );
    00026	        // Take Front-Right view, square
    00027	        MyHudForFX.CWndMat.Update( 128, 0, 128, 128, Owner.Location + normal(X+Y)*600, rotator(-normal(X+Y)), 90 );
    00028	        // Take Right view, square
    00029	        MyHudForFX.CWndMat.Update( 128, 128, 128, 128, Owner.Location + Y*600, rotator(-Y), 90 );
    00030	        AddWnd(10, 10, 128, 276, MyHudForFX.CWndMat, 0, 0, 128, 256, 0.3, false);
    00031	        Owner.PlaySound(hCWndSound, CWndSoundType);
    00032	        SetTimer(0.1, false);
    00033	        break;
    00034	      Case 2:
    00035	        AddWnd(10+128+10, 10, 128, 128, MyHudForFX.CWndMat, 128, 0, 128, 128, 0.2, false);
    00036	        Owner.PlaySound(hCWndSound, CWndSoundType);
    00037	        SetTimer(0.1, false);
    00038	        break;
    00039	      Case 3:
    00040	        AddWnd(10+128+10+128+10, 10, 128, 128, MyHudForFX.CWndMat, 128, 128, 128, 128, 0.1, false);
    00041	        Owner.PlaySound(hCWndSound, CWndSoundType);
    00042	        SetTimer(0.1, false);
    00043	        break;
    00044	      Case 4:
    00045	        Level.Game.SetGameSpeed(1.0);
    00046	        Destroy();
    00047	        break;
    00048	    }
    00049	}
    00050
    00051
    00052
    00053	defaultproperties
    00054	{
    00055	     hCWndSound=Sound'XIIIsound.Vehicles__USABossHelico.USABossHelico__hSnapShot'
    00056	     CWndSoundType=3
    00057	}

End Source Code