//-----------------------------------------------------------------------------
// Torque Game Engine 
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------


datablock TSShapeConstructor(SlimeDts)
{
   baseShape = "./Slime.dts";
};


datablock DebrisData( SlimeDebris )
{
   explodeOnMaxBounce = false;

   elasticity = 0.15;
   friction = 0.5;

   lifetime = 4.0;
   lifetimeVariance = 0.0;

   minSpinSpeed = 40;
   maxSpinSpeed = 600;

   numBounces = 5;
   bounceVariance = 0;

   staticOnMaxBounce = true;
   gravModifier = 1.0;

   useRadiusMass = true;
   baseRadius = 1;

   velocity = 20.0;
   velocityVariance = 12.0;
};     

datablock PlayerData(SlimeArmor : PlayerStandardArmor)
{
   shapeFile = "./Slime.dts";
   cameraMaxDist = 6;


   
   // Damage location details
   boxNormalHeadPercentage       = 0.83;
   boxNormalTorsoPercentage      = 0.49;
   boxHeadLeftPercentage         = 0;
   boxHeadRightPercentage        = 1;
   boxHeadBackPercentage         = 0;
   boxHeadFrontPercentage        = 1;

		uiName = "Slime";
		showEnergyBar = false;

		maxDamage = 160;

   boundingBox			= vectorScale("2 2 2", 4); //"2 2 2";
   crouchBoundingBox	= vectorScale("2 2 2", 4); //"2 2 2";
   proneBoundingBox		= vectorScale("2 2 2", 4); //"2 2 2"; 
  

	minJetEnergy = 0;
	jetEnergyDrain = 0;
	canJet = 0;


   uiname = "Slime";


};


function SlimeArmor::onAdd(%this,%obj)
{
   // Vehicle timeout
   %obj.mountVehicle = false;

   // Default dynamic armor stats
   %obj.setRepairRate(0);

}



//called when the driver of a player-vehicle is unmounted
function SlimeArmor::onDriverLeave(%obj, %player)
{
	//do nothing
}
