//Auto exec files here..
//datablock StaticShapeData(ElePlatform) : StaticShapeDamageProfile
//{
//   shapeFile = "Pmiscf.dts";
//   isInvincible = true;
//   collideable = 0;
//   needsNoPower = 1;
//};
//datablock SniperProjectileData(UpLaser)
//{
//   directDamage        = 0;
//   hasDamageRadius     = false;
//   indirectDamage      = 1.0;
//   damageRadius        = 5.0;
//   radiusDamageType    = $DamageType::Default;
//   velInheritFactor    = 1.0;
//   kickBackStrength    = 0;
//   sound 				  = "";
//   explosion           = "";
//   splash              = SniperSplash;
//   directDamageType    = $DamageType::Default;
//
//   maxRifleRange       = 1000;
//   rifleHeadMultiplier = 1;
//   beamColor           = "0.1 0.8 0.0.1";
//   fadeTime            = 0.4;
//
// //  emitter[0] = coolEmitter;
//
//   startBeamWidth		  = 1.1;
//   endBeamWidth 	     = 1.1;
//   pulseBeamWidth 	  = 16.15;
//   beamFlareAngle 	  = 3.0;
//   minFlareSize        = 0.0;
//   maxFlareSize        = 400.0;
//   pulseSpeed          = 4.0;
//   pulseLength         = 0.150;
//
//   lightRadius         = 1.0;
//   lightColor          = "0.1 0.8 0.1";
//
//   useInvAlpha =  true;
//   textureName[0]      = "special/flare";
//   textureName[1]      = "special/nonlingradient";
//   textureName[2]      = "special/nonlingradient";
//   textureName[3]      = "special/nonlingradient";
//   textureName[4]      = "special/nonlingradient";
//   textureName[5]      = "special/nonlingradient";
//   textureName[6]      = "special/nonlingradient";
//   textureName[7]      = "special/nonlingradient";
//   textureName[8]      = "special/nonlingradient";
//   textureName[9]      = "special/nonlingradient";
//   textureName[10]     = "special/nonlingradient";
//   textureName[11]      = "special/nonlingradient";
//   textureName[12]     = "special/nonlingradient";
//};
//function UpLaser::onCollision(%data, %projectile, %targetObject, %modifier, %position, %normal)
//{
//    if(%targetObject.getClassName() !$= TerrainBlock && %targetObject.getClassName() !$= InteriorInstance) {
//     if(isPlayer(%targetObject) || isVehicle(%targetObject)) {
//        //%targetObject.setVelocity("0 0 0");      %targetObject.applyImpulse(%position,VectorScale(VectorScale(%projectile.initialDirection,-1),1030));
//
//       }
//    }
//}
//datablock SniperProjectileData(DownLaser)
//{
//   directDamage        = 0;
//   hasDamageRadius     = false;
//   indirectDamage      = 1.0;
//   damageRadius        = 5.0;
//   radiusDamageType    = $DamageType::Default;
//   velInheritFactor    = 1.0;
//   kickBackStrength    = 0;
//   sound 				  = "";
//   explosion           = "";
//   splash              = SniperSplash;
//   directDamageType    = $DamageType::Default;
//
//   maxRifleRange       = 1000;
//   rifleHeadMultiplier = 1;
//   beamColor           = "0.8 0.1 0.0.1";
//   fadeTime            = 0.2;
//
// //  emitter[0] = coolEmitter;
//
//   startBeamWidth		  = 1.1;
//   endBeamWidth 	     = 1.1;
//   pulseBeamWidth 	  = 16.15;
//   beamFlareAngle 	  = 3.0;
//   minFlareSize        = 0.0;
//   maxFlareSize        = 400.0;
//   pulseSpeed          = 4.0;
//   pulseLength         = 0.150;
//
//   lightRadius         = 1.0;
//   lightColor          = "0.1 0.8 0.1";
//
//   useInvAlpha =  true;
//   textureName[0]      = "special/flare";
//   textureName[1]      = "special/nonlingradient";
//   textureName[2]      = "special/nonlingradient";
//   textureName[3]      = "special/nonlingradient";
//   textureName[4]      = "special/nonlingradient";
//   textureName[5]      = "special/nonlingradient";
//   textureName[6]      = "special/nonlingradient";
//   textureName[7]      = "special/nonlingradient";
//   textureName[8]      = "special/nonlingradient";
//   textureName[9]      = "special/nonlingradient";
//   textureName[10]     = "special/nonlingradient";
//   textureName[11]      = "special/nonlingradient";
//   textureName[12]     = "special/nonlingradient";
//};
//function DownLaser::onCollision(%data, %projectile, %targetObject, %modifier, %position, %normal)
//{
//    if(%targetObject.getClassName() !$= TerrainBlock && %targetObject.getClassName() !$= InteriorInstance) {
//     if(isPlayer(%targetObject)) {
//      %targetObject.setVelocity(VectorScale(%projectile.initialdirection,10));
//     //  %targetObject.applyImpulse(%position,VectorScale(%projectile.initialDirection,200));
// thx captn
//       }
//    if(isVehicle(%targetObject)) {
//     // %targetObject.setVelocity("0 0 1000");
//       if(%targetobject.getdatablock().getname() $= "assaultvehicle")
//       %targetObject.applyImpulse(%targetobject.getposition(),VectorScale(%projectile.initialDirection,10000));
//       else
//       %targetObject.applyImpulse(%targetobject.getposition(),VectorScale(%projectile.initialDirection,4000));
// thx captn
//       }
//    }
//}

datablock ParticleData(RainParticle) {
	dragCoefficient = 0;
	gravityCoefficient = 1;
	windCoefficient = 0.01;
	inheritedVelFactor = 0;
	constantAcceleration = 0;
	lifetimeMS = 22000;
	lifetimeVarianceMS = 6000;
	useInvAlpha = 0;
	spinRandomMin = 0;
	spinRandomMax = 0;
	textureName = "special/underwaterSpark.PNG";
	times[0] = 0.75;
	times[1] = 2;
	colors[0] = "0.2 0.2 0.9 1";
	colors[1] = "0 0 0 0";
	sizes[0] = 0.2;
	sizes[1] = 0.25;
};

datablock ParticleEmitterData(RainEmitter) {
	ejectionPeriodMS = 3;
	periodVarianceMS = 2;
	ejectionVelocity = 8;
	velocityVariance = 2;
	ejectionOffset   = 7;
	thetaMin = 0;//140
	thetaMax = 90;
	phiReferenceVel = 400; // 0
	phiVariance = 160; // 360
	overrideAdvances = 0;
	orientParticles= 1;
	orientOnVelocity = 1;
	particles = "RainParticle";
};
datablock ParticleData(SnowParticle) {
	dragCoefficient = 0;
	gravityCoefficient = 0.4;
	windCoefficient = 0.01;
	inheritedVelFactor = 0;
	constantAcceleration = 0;
	lifetimeMS = 22000;
	lifetimeVarianceMS = 6000;
	useInvAlpha = 0;
	spinRandomMin = -180;
	spinRandomMax = 360;
   animateTexture = true;
   framesPerSec = 1;

   animTexName[00]       = "precipitation/snowflake001";
   animTexName[01]       = "precipitation/snowflake002";
   animTexName[02]       = "precipitation/snowflake003";
   animTexName[03]       = "precipitation/snowflake004";
   animTexName[04]       = "precipitation/snowflake005";
   animTexName[05]       = "precipitation/snowflake006";
   animTexName[06]       = "precipitation/snowflake007";
   animTexName[07]       = "precipitation/snowflake008";
   animTexName[08]       = "precipitation/snowflake009";
   animTexName[09]       = "precipitation/snowflake010";
   animTexName[10]       = "precipitation/snowflake011";
   animTexName[11]       = "precipitation/snowflake012";

	times[0] = 0.75;
	times[1] = 2;
	colors[0] = "0.9 0.9 0.9 1";
	colors[1] = "0.5 0.5 0.5 0";
	sizes[0] = 0.1;
	sizes[1] = 0.05;
};

datablock ParticleEmitterData(SnowEmitter) {
	ejectionPeriodMS = 3;
	periodVarianceMS = 2;
	ejectionVelocity = 8;
	velocityVariance = 2;
	ejectionOffset   = 7;
	thetaMin = 0;//140
	thetaMax = 90;
	phiReferenceVel = 400; // 0
	phiVariance = 160; // 360
	overrideAdvances = 0;
	orientParticles= 0;
	orientOnVelocity = 1;
	particles = "SnowParticle";
};
datablock ParticleData( StuffJetParticle )
{
   dragCoeffiecient     = 0.0;
   gravityCoefficient   = 0.0;
   inheritedVelFactor   = 0.2;
   windCoefficient   = 0;

   lifetimeMS           = 2000;
   lifetimeVarianceMS   = 100;

   textureName          = "special/flare";

   useInvAlpha =     1;

   spinRandomMin = -180.0;
   spinRandomMax = 180.0;

   colors[0]     = "0.9 0.1 0.1 1.0";
   colors[1]     = "0.3 0.3 0.3 0.8";
   colors[2]     = "0.0 0.0 0.0 0.5";
   sizes[0]      = 0.7;
   sizes[1]      = 0.5;
   sizes[2]      = 0.3;
   times[0]      = 0.1;
   times[1]      = 0.5;
   times[2]      = 1.0;
};

datablock ParticleEmitterData( StuffJetEmitter )
{
   ejectionPeriodMS = 3;
   periodVarianceMS = 1;

   ejectionVelocity = 5.5;
   velocityVariance = 0.2;

   thetaMin         = 20.0;
   thetaMax         = 20.0;
   phiReferenceVel = 450;
   phiVariance = 160;
   particles = "StuffJetParticle";
};
