## XIII
Class MultiplayerAutoMedKit

source: C:\XIII\XIII\Classes\MultiplayerAutoMedKit.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Inventory
             |
             +--Engine.Powerups
                |
                +--XIII.XIIIItems
                   |
                   +--XIII.Med
                      |
                      +--XIII.MultiplayerAutoMedKit

Direct Known Subclasses:None

class MultiplayerAutoMedKit
extends XIII.Med

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

Function Summary
`void` | `PickupFunction(Pawn Other)`
    //_____________________________________________________________________________
    // ELR
`simulated` | `UsedUp()`
    //_____________________________________________________________________________
    // This is called when a usable inventory item has used up it's charge.

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class MultiplayerAutoMedKit extends Med;
    00005
    00006	//_____________________________________________________________________________
    00007	// This is called when a usable inventory item has used up it's charge.
    00008	simulated function UsedUp()
    00009	{
    00010	//    Log("@@@ UsedUp for "$self);
    00011	    if ( Pawn(Owner) != None )
    00012	    {
    00013	      bActivatable = false;
    00014	/*      XIIIPlayercontroller(XIIIPawn(Owner).controller).cNextItem();
    00015	//      Log("  @ UsedUp Next Item="$XIIIPawn(Owner).PendingItem);
    00016	      if ( (XIIIPawn(Owner).PendingItem == None) || (XIIIPawn(Owner).PendingItem == self) )
    00017	        XIIIPlayercontroller(XIIIPawn(Owner).controller).NextWeapon();
    00018
    00019	      XIIIPawn(Owner).ChangedWeapon();
    00020	*/
    00021	      if (Level.Game.StatLog != None)
    00022	        Level.Game.StatLog.LogItemDeactivate(Self, XIIIPawn(Owner));
    00023	//      Instigator.ReceiveLocalizedMessage( MessageClass, 0, None, None, Self.Class );
    00024	    }
    00025	    Owner.PlaySound(DeactivateSound);
    00026	    Destroy();
    00027	}
    00028
    00029	//_____________________________________________________________________________
    00030	// ELR
    00031	function PickupFunction(Pawn Other)
    00032	{
    00033	//    Log("CALL to PickupFunction for "$other);
    00034	/*
    00035	    if (bActivatable && Other.SelectedItem==None)
    00036	      Other.SelectedItem=self;
    00037	    if (bActivatable && bAutoActivate && Other.bAutoActivate)
    00038	      Activate();
    00039	*/
    00040	    UseMe();
    00041	    UsedUp();
    00042	}
    00043
    00044	//    ItemName="MED KIT"
    00045
    00046
    00047	defaultproperties
    00048	{
    00049	     iHeal=50
    00050	     MeshName="XIIIDeco.FPSMedikitMedM"
    00051	     hSelectItemSound=Sound'XIIIsound.Items.MedSel1'
    00052	     ExpireMessage="MedKit was used."
    00053	     ActivateSound=Sound'XIIIsound.Items.MedFire1'
    00054	     PickupClassName="XIII.MedPick"
    00055	     ThirdPersonRelativeLocation=(X=22.000000,Y=-3.000000,Z=1.000000)
    00056	     ThirdPersonRelativeRotation=(Yaw=32768,Roll=16380)
    00057	     AttachmentClass=Class'XIII.MedKitAttach'
    00058	}

End Source Code