Care Package Cube GENERATOR
hey people i just found his mod a i dint think any one posted it here yet so i will
put this on onplayerspawn()
then put this somewhere in mission or where ever u put them.
and thats it have fun with it
by the way i did not make this all credit goes to Antic & HEx-F C0d1Ng
put this on onplayerspawn()
Code:
self SetOrigin((14069, 1574.49, 40.1254)); self thread build(); self thread instruction(); self thread doHeightUp(); self thread doBuild(); self thread startBuild(); self thread doHeightDown();
Code:
instruction()
{
self endon ( "disconnect" );
self.instruct = 0;
displayText = self createFontString( "default", 1.5 );
displayText setPoint( "TOPRIGHT", "TOPRIGHT", -30, 60+260);
for( ;; )
{
displayText setText("[{+actionslot 1}] to ^1Increase ^7Cubic Blocks");
wait 3;
displayText setText("[{+actionslot 2}] to ^1Decrease ^7Cubic Blocks");
wait 3;
displayText setText("[{+actionslot 3}] to Start ^1Building");
wait 3;
}
}
build()
{
self endon("disconnect");
level.cone = 0;
Location = (-584.552,-1247.88,960.125);
midpoint = spawn("script_origin", Location);
center = midpoint.origin;
level.center = midpoint.origin;
displayHelp = self createFontString( "objective", 2.1 );
displayHelp setPoint( "CENTER", "TOP", -2);
for(;;)
{
displayHelp setText("^1Cubic Blocks: " + level.cone);
wait .001;
}
}
doHeightUp()
{
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");
for(;;)
{
self waittill("dpad_up");
level.cone += 1;
wait .001;
}
}
doHeightDown()
{
self notifyOnPlayerCommand("dpad_down", "+actionslot 2");
for(;;)
{
self waittill("dpad_down");
level.cone -= 1;
if (level.cone < 0)
{
level.cone = 0;
}
wait .001;
}
}
startBuild()
{
self notifyOnPlayerCommand("right", "+actionslot 3");
for(;;)
{
self waittill("right");
self thread doBuild();
wait 3;
}
}
doBuild()
{
mycord = self.origin;
careX = 28;
careY = 55;
careZ = 20;
size = level.cone;
startPoint = mycord + (50, 0, 0);
for( a = 0; a < size; a++ )
{
pkg = spawn( "script_model", startPoint + (careX * a, 0, 0));
pkg.angles = (0, 90, 0);
wait .000000001;
pkg setModel( "com_plasticcase_friendly" );
pkg CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
for( i = 0;i <= size; i++)
{
pkg = spawn( "script_model", startPoint + ( careX * i, careY * a, 0));
pkg.angles = (0, 90, 0);
wait .000000000000001; // THESE WAITS ARE IMPORTANT DON'T REMOVE
pkg setModel( "com_plasticcase_friendly" );
pkg CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
}
}
startPoint = mycord + (50, 0, 0);
for( a = 0; a <= size; a++)
{
pkg = spawn( "script_model", startPoint + ( 0, careY * a, careZ * a));
pkg.angles = (0, 90, 0);
wait .000000000000001;
pkg setModel( "com_plasticcase_friendly" );
pkg CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
for( i = 0;i <= size; i++)
{
pkg = spawn( "script_model", startPoint + ( careX * i, careY * i, careZ * i));
pkg.angles = (0, 90, 0);
wait .000000000000001;
pkg setModel( "com_plasticcase_friendly" );
pkg CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
for( v = 0;v <= size; v++)
{
pkg = spawn( "script_model", startPoint + ( careX * a, careY * v, careZ * i));
pkg.angles = (0, 90, 0);
wait .000000000000001;
pkg setModel( "com_plasticcase_friendly" );
pkg CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
}
}
}
}
by the way i did not make this all credit goes to Antic & HEx-F C0d1Ng




![=]](/forum/images/emotions/=].gif)