XIII
Class Silencer

source: C:\XIII\XIII\Classes\Silencer.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Inventory
         |
         +--Engine.Powerups
            |
            +--XIII.XIIIItems
               |
               +--XIII.Silencer
Direct Known Subclasses:None

class Silencer
extends XIII.XIIIItems

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

Function Summary
 void GiveTo(Pawn Other)
     
//_____________________________________________________________________________
 void PickupFunction(Pawn Other)
     
//_____________________________________________________________________________



Source Code


00001	//-----------------------------------------------------------
00002	//
00003	//-----------------------------------------------------------
00004	class Silencer extends XIIIItems;
00005	
00006	//_____________________________________________________________________________
00007	function PickupFunction(Pawn Other)
00008	{
00009	    Super.PickupFunction(Other);
00010	    if ( Level.Game.bInventorySetup )
00011	      XIIIWeapon(Other.Weapon).UpdateSilencer();
00012	}
00013	
00014	//_____________________________________________________________________________
00015	function GiveTo( pawn Other )
00016	{
00017	  	Instigator = Other;
00018	  	Other.AddInventory( Self );
00019	  	GotoState('');
00020	    if ( Level.Game.bInventorySetup )
00021	      XIIIWeapon(Other.Weapon).UpdateSilencer();
00022	}
00023	
00024	
00025	
00026	defaultproperties
00027	{
00028	     bCanHaveMultipleCopies=True
00029	     PickupClassName="XIII.SilencerPick"
00030	     ItemName="SILENCER"
00031	}

End Source Code