//=============================================================================
// MedKit.
//=============================================================================
//class MedKitMMRPG extends Medkit;
class MedKitMMRPG extends FoodMMRPG;

var int healAmount;
var bool bNoPrintMustBeUsed;
var localized string MustBeUsedOn;

simulated function PreBeginPlay()
{
	Super.PreBeginPlay();

	// If this is a netgame, then override defaults
	if ( Level.NetMode != NM_StandAlone )
		MaxCopies = 5;
}

state Activated
{
	function Activate()
	{
		// can't turn it off
	}

	function BeginState()
	{
		local DeusExPlayer player;
		
		Super(DeusExPickup).BeginState();

		player = DeusExPlayer(Owner);
		if (player != None)
		{
			player.HealPlayer(healAmount, True);

			// Medkits kill all status effects when used in multiplayer
			if ( player.Level.NetMode != NM_Standalone )
			{
				player.StopPoison();
				//player.ExtinguishFire();
				player.drugEffectTimer = 0;
			}
		}

		UseOnce();
	}
Begin:
}




function UseOnce()
{
	_MMRPGPlayer(Owner).XPUp(2, 11);
	Super.UseOnce();
}
simulated function bool TestMPBeltSpot(int BeltSpot)
{
   return ( (BeltSpot >= 1) && (BeltSpot <=8) );
}

defaultproperties
{
     M_Activated=" used"
     healAmount=20
     MustBeUsedOn="Use to heal critical body parts, or use on character screen to direct healing at a certain body part."
     maxCopies=5
     bCanHaveMultipleCopies=True
     bActivatable=True
     ItemName="Medkit"
     PlayerViewOffset=(X=30.000000,Z=-12.000000)
     PlayerViewMesh=LodMesh'DeusExItems.MedKit'
     PickupViewMesh=LodMesh'DeusExItems.MedKit'
     ThirdPersonMesh=LodMesh'DeusExItems.MedKit3rd'
     LandSound=Sound'DeusExSounds.Generic.PlasticHit2'
     Icon=Texture'DeusExUI.Icons.BeltIconMedKit'
     largeIcon=Texture'DeusExUI.Icons.LargeIconMedKit'
     largeIconWidth=39
     largeIconHeight=46
     Description="A first-aid kit.|n|n<UNATCO OPS FILE NOTE JR095-VIOLET> The nanomachines of an augmented agent will automatically metabolize the contents of a medkit to efficiently heal damaged areas. An agent with medical training could greatly expedite this process. -- Jaime Reyes <END NOTE>"
     beltDescription="MEDKIT"
     Mesh=LodMesh'DeusExItems.MedKit'
     CollisionRadius=7.500000
     CollisionHeight=1.000000
     Mass=10.000000
     Buoyancy=8.000000
}
