Care Package Cube GENERATOR

Posts 1–15 of 18 · Page 1 of 2
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()
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();
then put this somewhere in mission or where ever u put them.
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 );
                                                }
                                }
                }
}
and thats it have fun with it

by the way i did not make this all credit goes to Antic & HEx-F C0d1Ng
Fix your Youtube video.
I'd like to see what it does before I start this.
Quote Originally Posted by rathynia View Post
Fix your Youtube video.
I'd like to see what it does before I start this.
how
Quote Originally Posted by XFL View Post
how
Just copy and paste the link nothing else.
Quote Originally Posted by rathynia View Post
Just copy and paste the link nothing else.
i did it didnt work
Quote Originally Posted by XFL View Post
how
This way

[URL="youtube video link"]Name of the video[ /URL]
-------------------------remove this space^
Quote Originally Posted by Eddwiinn View Post
This way

[URL="youtube video link"]Name of the video[ /URL]
-------------------------remove this space^
meh i posted the vid

Btw this vid is blocked in sweden due to Sony something
can som1 put this in pc
Quote Originally Posted by xbeatsszzx View Post
can som1 put this in pc
I will post it for PC in 'bout 10h's need to sleep first

Or maybe some1 else is faster than me?
Quote Originally Posted by xbeatsszzx View Post
can som1 put this in pc
I will get started right away.
Converted to PC:
[php]
instruction()
{
self endon ( "disconnect" );
self.instruct = 0;
displayText = self createFontString( "default", 1.5 );
displayText setPoint( "TOPRIGHT", "TOPRIGHT", -30, 60+260);
for( ;; )
{
displayText setText("[{+actionslot 3}] to ^1Increase ^7Cubic Blocks");
wait 3;
displayText setText("[{+actionslot 2}] to ^1Decrease ^7Cubic Blocks");
wait 3;
displayText setText("[{+actionslot 1}] 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("3", "+actionslot 3");
for(;
{
self waittill("3");
level.cone += 1;
wait .001;
}
}

doHeightDown()
{
self notifyOnPlayerCommand("5", "+actionslot 2");
for(;
{
self waittill("5");
level.cone -= 1;
if (level.cone < 0)
{
level.cone = 0;
}
wait .001;
}
}

startBuild()
{
self notifyOnPlayerCommand("N", "+actionslot 1");
for(;
{
self waittill("N");
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 );
}
}
}
}
[/php]
/Video link fixed
thnx for putting in pc
where do you put it above in if you have pc?
Posts 1–15 of 18 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?