//=============================================================================
// Multitool.
//=============================================================================
class ElectriciansMultitool extends Multitool;

function tick(float deltatime)
{
	If (Owner != None)
	{
		If (Owner.IsA('_MMRPGPlayer'))
		{
			if ( ! _MMRPGPlayer(Owner).bMechanic )
			{
				Destroy();
			}
		}
	}
	Super.Tick(deltatime);

}


simulated function bool TestMPBeltSpot(int BeltSpot)
{
   return (BeltSpot == 9);
}


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

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


function UseOnce()
{
// PWNED!
	If (Owner.IsA('_MMRPGPlayer'))
	{
		_MMRPGPlayer(Owner).numFixed += 1;
	}
}

defaultproperties
{
     UseSound=Sound'DeusExSounds.Generic.MultitoolUse'
     maxCopies=1
     bCanHaveMultipleCopies=True
     ItemName="Electrician's Tool"
     PlayerViewOffset=(X=20.000000,Y=10.000000,Z=-16.000000)
     PlayerViewMesh=LodMesh'DeusExItems.MultitoolPOV'
     PickupViewMesh=LodMesh'DeusExItems.Multitool'
     ThirdPersonMesh=LodMesh'DeusExItems.Multitool3rd'
     LandSound=Sound'DeusExSounds.Generic.PlasticHit2'
     Icon=Texture'DeusExUI.Icons.BeltIconMultitool'
     largeIcon=Texture'DeusExUI.Icons.LargeIconMultitool'
     largeIconWidth=28
     largeIconHeight=46
     Description="A disposable electronics tool. By using electromagnetic resonance detection and frequency modulation to dynamically alter the flow of current through a circuit, skilled agents can use the multitool to manipulate code locks, cameras, autogun turrets, alarms, or other security systems."
     beltDescription="ELEC.TOOL"
     Mesh=LodMesh'DeusExItems.Multitool'
     CollisionRadius=4.800000
     CollisionHeight=0.860000
     Mass=20.000000
     Buoyancy=10.000000
}
