Author Topic: MARBLE MAN's Pee and Cry items  (Read 404 times)

Can someone give me a link to MARBLE MAN's pee and cry items?

i'll give you the code cuz i don't want to upload it to mediafire now. it's the crying btw.


Code: [Select]
datablock ParticleData(CryParticle)
{
textureName          = "base/data/particles/dot";
dragCoefficient      = 0.0;
gravityCoefficient   = 0.75;
inheritedVelFactor   = 1.0;
windCoefficient      = 0;
constantAcceleration = 0;
lifetimeMS           = 5000;
lifetimeVarianceMS   = 0;
spinSCryd     = 0;
spinRandomMin = -90.0;
spinRandomMax =  90.0;
useInvAlpha   = false;

colors[0] = "0.3 0.3 1.0 1.0";
colors[1] = "0.5 0.5 1.0 1.0";
colors[2] = "1 1 1.0 0.0";

sizes[0] = 0.1;
sizes[1] = 0.1;
sizes[2] = 0.1;

times[0] = 0.0;
times[1] = 0.9;
times[2] = 1.0;
};

datablock ParticleEmitterData(CryEmitter)
{
   ejectionPeriodMS = 8;
   periodVarianceMS = 0;
   ejectionVelocity = 6.0;
   ejectionOffset   = 0;
   velocityVariance = 0.2;
   thetaMin         = 0;
   thetaMax         = 2;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = true;

   particles = CryParticle;

   useEmitterColors = true;

uiName = "";
};
datablock ItemData(CryingItem:PrintGun)
{
    uiname = "Cry";
    image = CryingItemImage;
    colorshiftColor = "0 0 1 1";
};
datablock ShapeBaseImageData(CryingItemImage:PrintGunImage)
{
   projectile = "";
   mountpoint = 0;
   firstPerson = 0;
   correctMuzzleVector = 1;
   armready = 0;
   showBricks = 0;
   shapeFile="base/data/shapes/empty.dts";
   stateSound[2] = "";
   stateEmitter[2] = "";
   stateTimeoutValue[2] = 1;
   stateAllowImageChange[2] = 0;
};
datablock ShapeBaseImageData(CryingImageB)
{
   mountpoint = 5;
   armready = 0;
   emap = false;
   correctMuzzleVector = 0;
   shapeFile="base/data/shapes/empty.dts";
   offset = "-0.1 0 0";
   eyeoffset = "-0.1 0 0";
   rotation = eulertoMatrix("10 0 0");
   stateName[0] = "Start";
stateTransitionOnTimeout[0] = "Emitter";
stateTimeoutValue[0] = "0.01";
stateName[1] = "Emitter";
stateTransitionOnTimeout[1] = "Done";
stateWaitForTimeout[1] = "1";
stateTimeoutValue[1] = "1";
stateEmitter[1] = "CryEmitter";
stateEmitterTime[1] = "1";
stateName[2] = "Done";
stateScript[2] = "onDone";
};
function CryingImageB::onDone(%this,%obj,%slot)
{
%obj.unMountImage(%slot);
}
datablock ShapeBaseImageData(CryingImageA)
{
   mountpoint = 5;
   armready = 0;
   correctMuzzleVector = 0;
   emap = false;
   
   shapeFile="base/data/shapes/empty.dts";
   offset = "0.1 0 0";
   eyeoffset = "0.1 0 0";
   rotation = eulertoMatrix("10 0 0");
   stateName[0] = "Start";
stateTransitionOnTimeout[0] = "Emitter";
stateTimeoutValue[0] = "0.01";
stateName[1] = "Emitter";
stateTransitionOnTimeout[1] = "Done";
stateWaitForTimeout[1] = "1";
stateTimeoutValue[1] = "1";
stateEmitter[1] = "CryEmitter";
stateEmitterTime[1] = "1";
stateName[2] = "Done";
stateScript[2] = "onDone";
};
function CryingImageA::onDone(%this,%obj,%slot)
{
%obj.unMountImage(%slot);
}
function CryingItemImage::onMount(%this,%obj,%slot)
{
   %obj.playThread(1,"root");
}
function CryingItemImage::onFire(%data,%obj,%slot)
{
   %obj.mountImage(CryingImageA,3);
   %obj.mountImage(CryingImageB,2);
}