31
Off Topic / I baked you guys cookies (Thanks to a math error, we have ∞ cookies!)
« on: March 20, 2012, 10:41:00 PM »
I made 6, I ate an oreo instead of one of them.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
exec("./voices.cs");
%error = forceRequiredAddOn("Sound_Skycaptain");
if(%error == $Error::AddOn_NotFound)
{
error("ERROR: Sound_Skycaptain - required add-on Sound_Skycaptain not found");
}
datablock PlayerData(Skycaptain : PlayerStandardArmor)
{
runForce = 10 * 90;
runEnergyDrain = 0;
minRunEnergy = 0;
maxForwardSpeed = 20;
maxBackwardSpeed = 10;
maxSideSpeed = 10;
maxForwardCrouchSpeed = 7;
maxBackwardCrouchSpeed = 7;
maxSideCrouchSpeed = 7;
maxdamage = 100;
jumpForce = 12 * 120; //8.3 * 90;
jumpEnergyDrain = 0;
minJumpEnergy = 0;
jumpDelay = 0;
minJetEnergy = 1;
jetEnergyDrain = 3;
canJet = 1;
uiName = "Sky Captain";
showEnergyBar = true;
runSurfaceAngle = 20;
jumpSurfaceAngle = 10;
};
package skyCaptainentrance
{
function Skycaptain::onNewDataBlock(%this,%obj)
{
if(!$SCschedule && !isObject($SCschedule))
{
ServerPlay2D(SC_Entrance1);
echo(Entrance1);
$SCSchedulevar = schedule(10000, 0, SCschedule, %obj);
}
parent::onNewDataBlock(%this,%obj);
}
};
activatepackage(skycaptainentrance);
package skycaptainondisabled
{
function Skycaptain::ondisabled(%dtb, %obj, %enabled)
{
cancel($SCSchedulevar);
echo("Schdule cancled!");
parent::ondisabled(%dtb, %obj, %enabled);
}
};
activatepackage(skycaptainondisabled);
function skycaptainkill(%client)
{
switch(getRandom(0, 3))
{
case 0:
ServerPlay2D(SC_kill1);
echo(Killsound1);
case 1:
ServerPlay2D(SC_kill2);
echo(Killsound2);
case 2:
ServerPlay2D(SC_kill3);
echo(killsound3);
case 3:
ServerPlay2D(SC_kill4);
echo(killsound4);
}
}
function SCschedule(%obj)
{
echo("Schdule loop");
%r=(getrandom(1, 5));
if(%r==1)
{
ServerPlay2D(SC_intimidation1);
Echo(intimidation1);
}
if(%r==2)
{
ServerPlay2D(SC_intimidation2);
Echo(intimidation2);
}
if(%r==3)
{
ServerPlay2D(SC_intimidation3);
Echo(intimidation3);
}
if(%r>3)
{
Echo("No sound effect (intimidation)");
}
if(%obj.getdamagelevel()>75)
{
%lh=(getRandom(0, 6));
if(%lh==0)
{
schedule(2000, 0, ServerPlay2D, SC_lowhealth1);
echo(lowhealth1);
}
if(%lh==1)
{
schedule(2000, 0, ServerPlay2D, SC_lowhealth2);
echo(lowhealth2);
}
if(%lh==2)
{
schedule(2000, 0, ServerPlay2D, SC_lowhealth3);
echo(lowhealth3);
}
if(%lh>2)
{
echo("No sound effect (lowhealth)");
}
}
}
datablock fxDTSBrickData (5515)
{
brickfile = "./5515.blb";
category = "Bricks";
subCategory = "Generated";
uiName = "5x5x15";
};
This gives me a syntax error for some reason, I compared it to the Large Cubes datablock and I don't see any differences in the syntax besides the icon being non-existant.datablock fxDTSBrickData (brick64xCubeData)
{
brickFile = "./64x Cube.blb";
category = "Baseplates";
subCategory = "Cube";
uiName = "64x Cube";
iconName = "Add-Ons/Brick_Large_Cubes/64x Cube";
};
datablock fxDTSBrickData (5515)
{
brickfile = "./5515.blb";
category = "Bricks";
subCategory = "Generated";
uiName = "5x5x15";
};
This gives me a syntax error, I tried comparing it to the Large Cubes datablock and it isn't much different, I can't see anything wrong with the syntax.datablock fxDTSBrickData (brick64xCubeData)
{
brickFile = "./64x Cube.blb";
category = "Baseplates";
subCategory = "Cube";
uiName = "64x Cube";
iconName = "Add-Ons/Brick_Large_Cubes/64x Cube";
};
all forums are now locked only to people with ID's.
I checked, all the forums are red when you sign off.