Change background image
  1. What's up? I see you're viewing as a Guest. How about registering, it only takes like 2 minutes. This will enable you to do more on our forum and stay updated.

RC-XD Race Track

Discussion in 'Wii Game Mods' started by mrownership, Sep 1, 2011.

Thread Status:
This thread is more than 180 days old.
  1. mrownership

    mrownership New Member Member

    --Code Updated-- 9/2/11
    Still Working on it but Im going to post a video of the intended path sometime.
    Its just the track made from care package crates. there are over 130 and it still has not frozen on me yet. There is a RC car that you can ride that will take you around the map and show you the track.
    Let me know what you think.

    This is designed for Firing Range so only play it there

    Things i want to add
    -nuketown people as fans watching the match
    -more than 2 rc's allowed at a time
    -moving obsticals
    -other stuff i cant think of


    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    main()
    {
        thread init();
    }
    
    init()
    {
        thread onPlayerConnect();
        thread onPlayerConnected();
        thread doMap();
        thread doObsticals();
        wait 5;
        thread doMapOverview();
    }
    
    onPlayerConnect()
    {    
        for(;;)
        {
            level waittill( "connecting", player );
            player thread onPlayerSpawned();
    
        }
    }
    
    onPlayerConnected()
    {    
        for(;;)
        {
            level waittill( "connected", player );
        }
    }
    
    onPlayerSpawned()
    {
        for(;;)
        {
            self waittill( "spawned_player" );
            self thread doSettings();
            self thread doVars();
        }
    }
    
    doVars()
    {
        setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
        setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );
        setDvar("scr_rcbomb_notimeout", 1 );
    }
    
    doSettings()
    {    
    self setLowerMessage( "Welcome to ^1(Y)r.^0Ownership^1*^7's RC-XD Race Track" );
    wait 10;
    self setLowerMessage( "" );
        while(1)
        {
            self maps\mp\gametypes\_hardpoints::giveKillstreak( "rcbomb_mp", "rcbomb_mp", true, false );
            wait 30;
        }
    
    }
    
    createGreen( pos, angle )
    {
        crateG = spawn( "script_model", pos );
        crateG setModel( "mp_supplydrop_ally" );
        crateG.angles = angle;
    }
    
    createFans( pos, angle, obj )
    {
        level.xdcar = spawn( "script_model", pos );
        level.xdcar setModel( obj );
        level.xdcar.angles = angle;
    }
    
    createOb( pos, angle, obj,  num )
    {
        level.crateD[num] = spawn( "script_model", pos );
        level.crateD[num] setModel( obj );
        level.crateD[num].angles = angle;
    }
    
    doMap()
    {
        //Track
        level.track[1] = createGreen( ( 1700, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[2] = createGreen( ( 1775, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[3] = createGreen( ( 1850, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[4] = createGreen( ( 1925, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[5] = createGreen( ( 2000, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[6] = createGreen( ( 2075, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[7] = createGreen( ( 2150, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[8] = createGreen( ( 2225, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[9] = createGreen( ( 2300, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[10] = createGreen( ( 2375, 1400, -40 ), ( 0, 90, 0 ) );
        wait 1;
        level.track[11] = createGreen( ( 2450, 1400, -40 ), ( 0, 90, 0 ) );
        level.track[12] = createGreen( ( 2470, 1450, -40 ), ( 0, 0, 0 ) );
        level.track[36] = createGreen( ( 2470, 1500, -40 ), ( 0, 0, 0 ) );
        level.track[13] = createGreen( ( 2450, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[14] = createGreen( ( 2375, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[15] = createGreen( ( 2300, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[16] = createGreen( ( 2225, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[17] = createGreen( ( 2150, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[18] = createGreen( ( 2075, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[19] = createGreen( ( 2000, 1550, -40 ), ( 0, 90, 0 ) );
        wait 1;
        level.track[20] = createGreen( ( 1925, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[21] = createGreen( ( 1850, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[22] = createGreen( ( 1775, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[23] = createGreen( ( 1775, 1600, -40 ), ( 0, 0, 0 ) );
        level.track[24] = createGreen( ( 1775, 1675, -40 ), ( 0, 0, 0 ) );
        level.track[25] = createGreen( ( 1775, 1750, -40 ), ( 0, 0, 0 ) );
        level.track[26] = createGreen( ( 1775, 1825, -40 ), ( 0, 0, 0 ) );
        level.track[27] = createGreen( ( 1775, 1900, -40 ), ( 0, 0, 0 ) );
        level.track[28] = createGreen( ( 1630, 2250, -30 ), ( 0, 90, 0 ) );
        level.track[29] = createGreen( ( 1555, 2250, -30 ), ( 0, 90, 0 ) );
        wait 1;
        level.track[30] = createGreen( ( 1480, 2250, -30 ), ( 0, 90, 0 ) );
        level.track[31] = createGreen( ( 1405, 2250, -35 ), ( 0, 90, 0 ) );
        level.track[32] = createGreen( ( 1330, 2250, -40 ), ( 0, 90, 0 ) );
        level.track[33] = createGreen( ( 1255, 2250, -40 ), ( 0, 90, 0 ) );
        level.track[34] = createGreen( ( 1180, 2250, -40 ), ( 0, 90, 0 ) );
        level.track[35] = createGreen( ( 1105, 2250, -40 ), ( 0, 90, 0 ) );
        level.track[37] = createGreen( ( -300, 1700, -40 ), ( 0, 60, 0 ) );
        level.track[38] = createGreen( ( -250, 1640, -40 ), ( 0, 60, 0 ) );
        level.track[39] = createGreen( ( -200, 1580, -40 ), ( 0, 60, 0 ) );
        level.track[40] = createGreen( ( -550, 1600, -40 ), ( 0, 90, 0 ) );
        wait 1;
        level.track[41] = createGreen( ( -625, 1600, -40 ), ( 0, 90, 0 ) );
        level.track[42] = createGreen( ( -700, 1600, -40 ), ( 0, 90, 0 ) );
        level.track[43] = createGreen( ( -158, 2050, 0 ), ( 0, 100, 0 ) );
        level.track[44] = createGreen( ( -230, 1030, -40 ), ( 0, 0, 0 ) );
        level.track[45] = createGreen( ( -380, 930, -40 ), ( 0, 95, 0 ) );
        level.track[46] = createGreen( ( -575, 930, -40 ), ( 0, 90, 0 ) );
        level.track[47] = createGreen( ( -650, 930, -40 ), ( 0, 90, 0 ) );
        level.track[48] = createGreen( ( -725, 930, -40 ), ( 0, 90, 0 ) );
        level.track[49] = createGreen( ( -800, 930, -40 ), ( 0, 90, 0 ) );
        level.track[50] = createGreen( ( -875, 930, -40 ), ( 0, 90, 0 ) );
        wait 1;
        level.track[51] = createGreen( ( -885, 875, -40 ), ( 0, 0, 0 ) );
        level.track[52] = createGreen( ( -730, 750, -50 ), ( 0, 90, 0 ) );
        level.track[53] = createGreen( ( -650, 690, -50 ), ( 0, 30, 0 ) );
        level.track[54] = createGreen( ( -600, 100, -110 ), ( 0, 0, 0 ) );
        level.track[55] = createGreen( ( -600, 25, -110 ), ( 0, 0, 0 ) );
        level.track[56] = createGreen( ( -600, -50, -110 ), ( 0, 0, 0 ) );
    
        level.track[58] = createGreen( ( -550, -550, -110 ), ( 0, 60, 0 ) );
        level.track[59] = createGreen( ( -475, -600, -110 ), ( 0, 90, 0 ) );
        level.track[60] = createGreen( ( -400, -620, -110 ), ( 0, 90, 0 ) );
        wait 1;
        level.track[61] = createGreen( ( -325, -640, -110 ), ( 0, 90, 0 ) );
        level.track[62] = createGreen( ( -250, -660, -110 ), ( 0, 90, 0 ) );
        level.track[63] = createGreen( ( -175, -680, -110 ), ( 0, 90, 0 ) );
        level.track[64] = createGreen( ( -100, -700, -110 ), ( 0, 90, 0 ) );
        level.track[65] = createGreen( ( -20, -525, -110 ), ( 0, 0, 0 ) );
        level.track[66] = createGreen( ( -20, -450, -110 ), ( 0, 0, 0 ) );
        level.track[57] = createGreen( ( -75, -440, -120 ), ( 0, 0, 30 ) );
        level.track[67] = createGreen( ( -105, -440, -120 ), ( 0, 0, 30 ) );
        level.track[68] = createGreen( ( -45, -440, -120 ), ( 0, 0, 30 ) );
        level.track[69] = createGreen( ( -115, 870, -40 ), ( 0, 90, 0 ) );
        level.track[70] = createGreen( ( -25, -600, -110 ), ( 0, 0, 0 ) );
        wait 1;
        level.track[71] = createGreen( ( -20, -675, -110 ), ( 0, 0, 0 ) );
        level.track[72] = createGreen( ( -25, -720, -110 ), ( 0, 90, 0 ) );
        level.track[73] = createGreen( ( 875, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[74] = createGreen( ( 800, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[75] = createGreen( ( 725, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[76] = createGreen( ( 650, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[77] = createGreen( ( 575, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[78] = createGreen( ( 500, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[79] = createGreen( ( 425, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[80] = createGreen( ( 350, 1400, -50 ), ( 0, 90, 0 ) );
        wait 1;
        level.track[81] = createGreen( ( 275, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[82] = createGreen( ( 200, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[83] = createGreen( ( 125, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[84] = createGreen( ( 50, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[85] = createGreen( ( 1375, 1550, 110 ), ( 0, 90, 0 ) );
        level.track[86] = createGreen( ( 1400, 1100, -45 ), ( 0, 90, 0 ) );
        level.track[87] = createGreen( ( 1475, 1100, -45 ), ( 0, 90, 0 ) );
        level.track[88] = createGreen( ( 1550, 1100, -45 ), ( 0, 90, 0 ) );
        level.track[94] = createGreen( ( 1625, 1100, -45 ), ( 0, 90, 0 ) );
        level.track[89] = createGreen( ( 1700, 650, -30 ), ( 0, 90, 0 ) );
        level.track[90] = createGreen( ( 1625, 650, -30 ), ( 0, 90, 0 ) );
        wait 1;
        level.track[91] = createGreen( ( 950, 1400, -50 ), ( 0, 90, 0 ) );
        level.track[92] = createGreen( ( 1550, 650, -40 ), ( 0, 90, 0 ) );
        level.track[93] = createGreen( ( 1221, 121, -40 ), ( 0, 90, 0 ) );
        level.track[95] = createGreen( ( 1300, 1600, -40 ), ( 0, 55, 0 ) );
        level.track[96] = createGreen( ( 25, -150, -110 ), ( 0, 0, 0 ) );
        level.track[97] = createOb( ( 1600, 1800, -40 ), ( 0, 90, 0 ), "t5_veh_rcbomb_allies", 1 );
        level.track[98] = createGreen( ( 1000, 1240, -40 ), ( 0, 70, 0 ) );
        level.track[99] = createGreen( ( 1125, 1260, -40 ), ( 0, -210, 0 ) );
        level.track[115] = createGreen( ( 1400, 1500, -40 ), ( 0, 70, 0 ) );
        level.track[101] = createGreen( ( 1400, 1500, -10 ), ( 0, 70, 0 ) );
        level.track[102] = createGreen( ( 1400, 1500, 20 ), ( 0, 70, 0 ) );
        wait 1;
        level.track[103] = createGreen( ( 1400, 1500, 50 ), ( 0, 70, 0 ) );
        level.track[104] = createGreen( ( 1400, 1500, 80 ), ( 0, 70, 0 ) );
        level.track[116] = createGreen( ( 1400, 1500, 110 ), ( 0, 70, 0 ) );
        level.track[117] = createGreen( ( 1400, 1500, 140 ), ( 0, 70, 0 ) );
        level.track[118] = createGreen( ( 1400, 1500, 170 ), ( 0, 70, 0 ) );
        level.track[106] = createGreen( ( 1925, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[107] = createGreen( ( 1850, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[108] = createGreen( ( 1775, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[109] = createGreen( ( 1625, 1550, -40 ), ( 0, 90, 0 ) );
        wait 1;
        level.track[110] = createGreen( ( 1550, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[111] = createGreen( ( 1475, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[112] = createGreen( ( 1400, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[114] = createGreen( ( 1700, 1550, -40 ), ( 0, 90, 0 ) );
        level.track[100] = createGreen( ( 1460, 1500, -40 ), ( 0, 70, 0 ) );
        level.track[119] = createGreen( ( 1460, 1500, -10 ), ( 0, 70, 0 ) );
        level.track[120] = createGreen( ( 1460, 1500, 20 ), ( 0, 70, 0 ) );
        level.track[121] = createGreen( ( 1460, 1500, 50 ), ( 0, 70, 0 ) );
        level.track[122] = createGreen( ( 1460, 1500, 80 ), ( 0, 70, 0 ) );
        level.track[123] = createGreen( ( 1460, 1500, 110 ), ( 0, 70, 0 ) );
        wait 1;
        level.track[124] = createGreen( ( 1460, 1500, 140 ), ( 0, 70, 0 ) );
        level.track[125] = createGreen( ( 1460, 1500, 170 ), ( 0, 70, 0 ) );
        level.track[126] = createGreen( ( 1300, 1550, 110 ), ( 0, 90, 0 ) );
        level.track[127] = createGreen( ( 1225, 1550, 110 ), ( 0, 90, 0 ) );
        level.track[128] = createGreen( ( 1150, 1550, 110 ), ( 0, 90, 0 ) );
        level.track[105] = createGreen( ( 1300, 1380, 100 ), ( 0, 65, -30 ) );
        level.track[129] = createGreen( ( 1320, 1400, 100 ), ( 0, 65, -30 ) );
        level.track[130] = createGreen( ( 1340, 1420, 100 ), ( 0, 65, -30 ) );
        level.track[131] = createGreen( ( 1360, 1440, 100 ), ( 0, 65, -30 ) );
        wait 1;
        //level.track[132] =
        level.track[133] = createFans( ( 1540, 1350, 80 ), ( 0, 90, 0 ), "mp_flag_neutral" );
        //level.track[135] =
        level.track[134] = createGreen( ( 150, 2450, -40 ), ( 0, 125, 0 ) );
        level.track[136] = createGreen( ( 100, 2400, -40 ), ( 0, 125, 0 ) );
        level.track[137] = createGreen( ( 50, 2360, -40 ), ( 0, 125, 0 ) );
        level.track[138] = createGreen( ( 0, 2320, -40 ), ( 0, 125, 0 ) );
        level.track[139] = createGreen( ( -50, 2270, -40 ), ( 0, 125, 0 ) );
        level.track[140] = createGreen( ( -100, 2220, -40 ), ( 0, 125, 0 ) );
        wait 1;
        level.track[142] = createOb( ( 1600, 1700, -40 ), ( 0, 90, 0 ), "t5_veh_rcbomb_allies", 2 );
        level.track[143] = createOb( ( 1375, 2300, -35 ), ( 0, 0, 0 ), "mp_supplydrop_ally", 3 );
        level.track[144] = createOb( ( 170, 890, -40 ), ( 0, 85, 0 ), "mp_supplydrop_ally", 4 );
    }
    
    doObsticals()
    {
        for(;;)
        {
            level.crateD[3] moveTo( ( 1375, 2300, -35 ), 2);
                level.crateD[4] moveTo( ( 170, 890, -50 ), 2);
            wait 2;
            level.crateD[3] moveTo( ( 1375, 2400, -35 ), 2);
                level.crateD[4] moveTo( ( 170, 890, 10 ), 2);
            wait 2;        
        }
    }
    
    doMapOverview()
    {
        for(;;)
        {
            wait 6;
            level.crateD[1] moveTo( ( 1600, 1800, 180 ), 3);
                level.crateD[2] moveTo( ( -700, 11, -110 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( 1500, 2230, 180 ), 3);
                level.crateD[2] moveTo( ( -700, -430, -110 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( 500, 2500, 180 ), 3);
                level.crateD[2] moveTo( ( -480, -430, -110 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -550, 2000, 180 ), 3);
                level.crateD[2] moveTo( ( -75, -630, -100 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -280, 1500, 180 ), 3);
                level.crateD[2] moveTo( ( -220, 250, -100 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -450, 1000, 180 ), 3);
                level.crateD[2] moveTo( ( 130, 780, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -750, 1000, 180 ), 3);
                level.crateD[2] moveTo( ( 330, 1830, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -720, 680, 180 ), 3);
                level.crateD[2] moveTo( ( 850, 1950, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -730, 680, -60 ), 3);
                level.crateD[2] moveTo( ( 1600, 1800, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -700, 11, -110 ), 3);
                level.crateD[2] moveTo( ( 1600, 1800, -40 ), 3);
            wait 6;
            level.crateD[1] moveTo( ( -700, -430, -110 ), 3);
                level.crateD[2] moveTo( ( 1600, 1800, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -480, -430, -110 ), 3);
                level.crateD[2] moveTo( ( 1500, 2230, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -75, -630, -100 ), 3);
                level.crateD[2] moveTo( ( 500, 2500, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( -220, 250, -100 ), 3);
                level.crateD[2] moveTo( ( -550, 2000, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( 130, 780, 180 ), 3);
                level.crateD[2] moveTo( ( -280, 1500, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( 330, 1830, 180 ), 3);
                level.crateD[2] moveTo( ( -450, 1000, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( 850, 1950, 180 ), 3);
                level.crateD[2] moveTo( ( -750, 1000, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( 1600, 1800, 180 ), 3);
                level.crateD[2] moveTo( ( -720, 680, 180 ), 3);
            wait 3;
            level.crateD[1] moveTo( ( 1600, 1800, -40 ), 3);
                level.crateD[2] moveTo( ( -730, 680, -60 ), 3);
    
        }
    
    }


    [video=youtube;w-tuW9_zJYo]http://www.youtube.com/watch?v=w-tuW9_zJYo[/video]
    3 people like this.
  2. wick3d

    wick3d z0rz Admin

    Good work man, I'll give this a try tonight
  3. Sh0tGuN2197

    Sh0tGuN2197 *Shotty* Super-Mod

    This is very nice. Just one suggestion though.

    When you join the match have the text as it is now, but have it slowly move towards the bottom so it isnt in the way the whole time.
  4. Minatop3fes

    Minatop3fes New Member Member

    Nice, my friends and I can have fun with this :D
  5. Brandon

    Brandon Programmer Moderator

    Thankyou this mod is fun good job +1 :thumbsup:
  6. GRiZz

    GRiZz New Member Member

    this is pretty sick im editing this game mod and adding more stuff
Thread Status:
This thread is more than 180 days old.

Share This Page