## XIDMaps
Class Spads02a

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

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--XIII.MapInfo
                |
                +--XIDMaps.Map09_Spads
                   |
                   +--XIDMaps.Spads02a

Direct Known Subclasses:None

class Spads02a
extends XIDMaps.Map09_Spads

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Variables
`CWndFocusTrigger` | `BombeFocus`
`BombeInteraction,` | `MicroInteraction`
`sound` | `hBombReady`

Function Summary
`void` | `FirstFrame()`
    //_____________________________________________________________________________
`void` | `SetGoalComplete(int N)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class Spads02a extends Map09_Spads;
    00005
    00006	VAR(Spads02aSetUp) Spads02DecoBombe BombeDeco;
    00007	VAR(Spads02aSetUp) Spads02DecoMicro MicroDeco;
    00008	VAR XIIIGoalTrigger BombeInteraction, MicroInteraction;
    00009	VAR CWndFocusTrigger BombeFocus;
    00010	VAR sound hBombReady;
    00011
    00012	//_____________________________________________________________________________
    00013	FUNCTION FirstFrame()
    00014	{
    00015		LOCAL inventory Inv;
    00016		LOCAL XIIIGoalTrigger xgt;
    00017		LOCAL CWndFocusTrigger cwft;
    00018
    00019		Super.FirstFrame();
    00020
    00021	    if ( XIIIGameInfo(Level.Game).CheckPointNumber <2 )
    00022		{
    00023			Inv = GiveSomething(class'Spads02Bombe', XIIIPawn);
    00024			Inv = GiveSomething(class'Spads02Micro', XIIIPawn);
    00025		}
    00026
    00027		BombeDeco.bHidden=true;
    00028		MicroDeco.bHidden=true;
    00029		foreach DynamicActors(class'XIIIGoalTrigger', xgt )
    00030		{
    00031			if ( xgt.GoalNumber==99 )
    00032			{
    00033				BombeInteraction=xgt;
    00034			}
    00035			else
    00036				if ( xgt.GoalNumber==98 )
    00037				{
    00038					MicroInteraction=xgt;
    00039				}
    00040		}
    00041
    00042		foreach DynamicActors(class'CWndFocusTrigger', cwft )
    00043		{
    00044			if ( cwft.Focus==BombeDeco )
    00045			{
    00046				BombeFocus=cwft;
    00047			}
    00048		}
    00049
    00050	}
    00051
    00052	//_____________________________________________________________________________
    00053	FUNCTION SetGoalComplete(int N)
    00054	{
    00055	    LOCAL Spads02Bombe Bomb;
    00056	    LOCAL Spads02Micro Micr;
    00057
    00058	    switch(N)
    00059	    {
    00060	      case 98:
    00061	        MicroDeco.bHidden=false;
    00062	  		MicroDeco.RefreshDisplaying();
    00063			Micr = Spads02Micro(XIIIPawn.FindInventoryType(class'Spads02Micro'));
    00064			if ( MicroInteraction!=none )
    00065				MicroInteraction.bInteractive=false;
    00066	        if (Micr != none )
    00067	          Micr.UsedUp();
    00068	        break;
    00069	      case 99:
    00070	//        BombeDeco.bHidden=false;
    00071			BombeDeco.StaticMesh = StaticMesh'MeshArmesPickup.BombeMagnet';
    00072	//		BombeDeco.RefreshDisplaying();
    00073			if ( BombeInteraction!=none )
    00074				BombeInteraction.bInteractive=false;
    00075			XIIIPawn.PlaySound(hBombReady);
    00076			Bomb = Spads02Bombe(XIIIPawn.FindInventoryType(class'Spads02Bombe'));
    00077	        if (Bomb != none )
    00078	          Bomb.UsedUp();
    00079			if ( BombeFocus!=none )
    00080				BombeFocus.Trigger(self,none);
    00081	        break;
    00082	    }
    00083	    SUPER.SetGoalComplete(N);
    00084
    00085	    if (N==0)
    00086	      SetPrimaryGoal(1);
    00087	}
    00088
    00089
    00090
    00091	defaultproperties
    00092	{
    00093	     hBombReady=Sound'XIIIsound.Items__BombFireSub.BombFireSub__hBombFire'
    00094	     EndMapVideo="cine10"
    00095	}

End Source Code