XIIIMP
Class MPBombingBase

source: C:\XIII\XIIIMP\Classes\MPBombingBase.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.NavigationPoint
         |
         +--XIIIMP.MPBombingBase
Direct Known Subclasses:None

class MPBombingBase
extends Engine.NavigationPoint

//----------------------------------------------------------- // //-----------------------------------------------------------
Variables
 int BombPointID
           Should be 1 by default (not destroyed)
 float BombTime
           Should be 1 by default (not destroyed)
 int BombingCount
           used to initiate counting on clients from good ref (avoid fast fire/unfire Bug)
 byte CurrentTeam
           Should be 1 by default (not destroyed)
 string sBaseName
           Should be 1 by default (not destroyed)
 sound sndBomdDesactived
           used to initiate counting on clients from good ref (avoid fast fire/unfire Bug)


Function Summary
 void MatchStarting()
     
//_____________________________________________________________________________



Source Code


00001	//-----------------------------------------------------------
00002	//
00003	//-----------------------------------------------------------
00004	class MPBombingBase extends NavigationPoint
00005	    placeable;
00006	
00007	//var byte Team;              // Should be 1 by default (not destroyed)
00008	var byte CurrentTeam;         // Should be 1 by default (not destroyed)
00009	var() localized string sBaseName;
00010	var() int BombPointID;
00011	var float BombTime;
00012	var int BombingCount;         // used to initiate counting on clients from good ref (avoid fast fire/unfire Bug)
00013	var sound sndBomdDesactived;
00014	//var float ClientBombTime;
00015	
00016	//_____________________________________________________________________________
00017	replication
00018	{
00019	    reliable if ( Role == ROLE_Authority )
00020	      CurrentTeam, BombTime, BombingCount;
00021	}
00022	
00023	//_____________________________________________________________________________
00024	function MatchStarting()
00025	{
00026	    CurrentTeam = 1;
00027	}
00028	
00029	//_____________________________________________________________________________
00030	event Trigger( Actor Other, Pawn EventInstigator )
00031	{
00032	    local SabotageBotController Bot;
00033	
00034	
00035	//    Log(self@"TRIGGERED by"@other@"/"@EventInstigator);
00036	    if ( vSize(Other.Location - Location) < CollisionRadius )
00037	    {
00038	      //if ( FastTrace(Other.location, Location) )
00039	      //{
00040	        if (CurrentTeam != 0)
00041	        {
00042	            foreach DynamicActors(class'SabotageBotController', BOT)
00043	            {
00044	                BOT.ObjectifIsDestroyed( self );
00045	            }
00046	
00047	            BombTime = -1;
00048	            //BroadcastLocalizedMessage( class'XIIIMPSabotageMessage', 2, none, None, self );
00049	            //EventInstigator.PlayMenu(sndBomdDesactived);
00050	
00051	            CurrentTeam = 0;
00052	            //log("BOMB ->"@self@CurrentTeam@"role="@role);
00053	            XIIIMPBombGame(Level.Game).ScoreObjective(EventInstigator.PlayerReplicationInfo, 1);
00054	            TriggerEvent(Event, Self, EventInstigator);
00055	        }
00056	      //}
00057	    }
00058	}
00059	
00060	//    Team=1
00061	//    ClientBombTime=-1
00062	
00063	
00064	defaultproperties
00065	{
00066	     CurrentTeam=1
00067	     sBaseName="Bombing Point"
00068	     BombTime=-1.000000
00069	     sndBomdDesactived=Sound'XIIIsound.Multi__SFXMulti.SFXMulti__hBombOut'
00070	     bStatic=False
00071	     bHidden=False
00072	     bNoDelete=True
00073	     bAlwaysRelevant=True
00074	     bCollideActors=True
00075	     bUseCylinderCollision=True
00076	     CollisionRadius=200.000000
00077	     CollisionHeight=60.000000
00078	     NetUpdateFrequency=3.000000
00079	}

End Source Code