Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2015
    Posts
    71
    Points
    138
         User Info     Contact     Gamer ID
    Join Date
    Jan 2015
    Posts
    71
    Points
    138

    Contact info:

    Youtube Channel: http://www.youtube.com/user/nicisthatdeal

    Default (SC7E52)AllMoDs Gamrtype edit Mario Kart BLACK OPS WII

    cred to maker of Mario Kart BO
    and who ever els i left out
    i didnt make i justed edited it

    MAP GRID


    NOT MY VID AND I TOOK ALL CRATES OUT FORE THE TRACK BUT POWER UPBOXES ARE STILL THERE
    i linked players to rc care so you spawn where you last died
    and you get kills and death so you have a winner

    max players 6

    STILL HAVE BUGS TO FIX WILL DO SOON


    Code:
    #include common_scripts\utility;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    #include Modding\Mod\_Utility;
    
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
            thread globalDvars();
    	level thread doBlocks();
    	level thread PowerUps(getDvar("mapname"));
    }
    	
    onPlayerConnect()
    {
    	for(;;)
    	{
    	level waittill( "connecting", player );
    	player thread onPlayerSpawned();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)
    	{
    	level waittill( "connected", player );
                       player thread doIntro();
    	}
    }
    doIntro()
    {
    	self waittill( "spawned_player" );
    	while(level.matchHasntStarted)
    		wait 0.1;
    	wait 0.8;
    	self thread scrollFadeText( 4, "CENTER", "CENTER", 0, 0, "", "Mario Kart BO" );
    }
    onPlayerSpawned()
    {
    	for(;;)
    	{
    	self waittill( "spawned_player" );
    
                    self thread rcxd();
                    self thread karts();
                    self thread graphicsBoost();
    	}
    }
    
    scrollFadeText( fontscale, pos1, pos2, x, y, color, text )
    {
    	message = [];
    	txt = GetSubStr(text,0);
    	for(i=0;i<txt.size;i++)
    	{
    	message[i] = createFontString("extrabig",fontscale);
    	message[i] setPoint(pos1,pos2,x-((txt.size/2)*(fontscale*6))+((fontscale*6)*i),y);
    	message[i].glow = 1; 
    	message[i].glowColor = ( 1, 0, 1 ); 
    	message[i].glowAlpha = 1; ; 
    	message[i] setText(color+txt[i]);
    	message[i].alpha = 0;
    	}
    	for(i=0;i<message.size;i++)
    	{
    	message[i] doFade(0.3,1);
    	wait 0.3;
    	message[i] doFade(0.5,0);
    	}
    	wait 0.7;
    	for(i=0;i<message.size;i++)
    		message[i] doFade(1,1);
    	wait 2;
    	for(i=0;i<message.size;i++)
    		message[i] doFade(2,0);
    	wait 2;
    	for(i=0;i<message.size;i++)
    		message[i] destroy();
    }
    
    doFade( time, alpha )
    {
    	self FadeOverTime(time);
    	self.alpha = alpha;
    }
    Timer()
    {
            self endon ( "disconnect" );
    
            displayText = self createFontString( "objective", 4.6 );
            displayText setPoint( "CENTER", "TOP",0, -15 );
            displayText.glow = 1; 
            displayText.glowColor = ( 2, 4, 6 ); 
            displayText.glowAlpha = 1; ; 
    
            for( ;; )
            { 
            displayText setText("^0Mario ^1Kart ^3BO");
            wait 0.1;
            displayText setText("^1Mario ^3Kart ^0BO");
            wait 0.1;
            displayText setText("^3Mario ^0Kart ^1BO");
            wait 0.1;
            displayText setText("^1Mario ^3Kart ^0BO");
            wait 0.1;                                             
           }
    }
    createBlock( pos, angle )
    {
            crate = spawn( "script_model", pos );
            crate setModel( "mp_supplydrop_ally" );
            crate.angles = angle;
    }
    
    karts()
    {	
    kart = RandomInt( 10 );
    switch( kart )
    {
    case 0: self setOrigin( ( 921.216, -5115.04, 64.250 ), ( 0, -92.1106, 0 ) ); 
    break;
    case 1: self setOrigin( ( 835.026, -4985.88, 67.9562 ), ( 0, -92.1106, 0 ) ); 
    break;
    case 2: self setOrigin( ( 861.476, -4869.18, 88.3195 ), ( 0, 89.1058, 0 ) ); 
    break;
    case 3: self setOrigin( ( 813.787, -5149.1, 63.9527 ), ( 0, 92.8076, 0 ) );   
    break;
    case 4: self setOrigin( ( 943.917, -5132.59, 63.6306 ), ( 0, -96.7218, 0 ) ); 
    break;
    case 5: self setOrigin( ( 925.414, -5285.25, 64.2813 ), ( 0, -92.124, 0 ) );  
    break;
    case 6: self setOrigin( ( 922.905, -5418.6, 62.4307 ), ( 0, 76.1206, 0 ) ); 
    break;
    case 7: self setOrigin( ( 783.008, -5416.19, 60.1104 ), ( 0, 5.43884, 0 ) ); 
    break;
    case 8: self setOrigin( ( 885.681, -5317.77, 70.0429 ), ( 0, -81.6003, 0 ) ); 
    break;
    case 9: self setOrigin( ( 631.724, -5348.96, 42.3068 ), ( 0, -64.5441, 0 ) ); 
    break;
    }
    }
    
    
    rcxd()
    {
    	self endon("death");
    	self endon("disconnect");
    
    	self.instructions = createFontString( "objective", 1.4 );
    	self.instructions setPoint( "CENTER", "BOTTOM", 0, -70 );
    	self.instructions.archived = false;
    	self.instructions setText( "^2FOLLOW THE PACKAGES THIS IS A RACE TRY TO WIN THE PRIZE!" );
    	self.instructions thread maps\mp\gametypes\_class::fadeAway( 5, 0.75 );
    
    	self hide();
    	self setMoveSpeedScale( 0.01 );
    	self.maxhealth = 1000000;
    	self.health = self.maxhealth;
    	wait 1;
    	self giveWeapon("rcbomb_mp");
    	self switchToWeapon("rcbomb_mp");
    	wait 1;
    	self thread maps\mp\_rcbomb::useKillstreakRCBomb("rcbomb_mp");
    	self linkto(self.rcbomb, "tag_origin", (0, 0, 0), (0, 0, 0));
    	self thread newRC();
    
    	if ( !isdefined( self.entnum ) )
    	{
    		self.entnum = self getEntityNumber();
    	}
    	level.activeUAVs[self.entnum] = 5;
    	level notify ( "uav_update" );
    
    	self waittill("death");
    	self.instructions destroyElem();
    }
    
    newRC()
    {
    	self endon( "death" );
    	self endon( "disconnect" );
    
    	for(;;)
    	{
    		self waittill( "rcbomb_done" );
    		wait 0.05;
    		self thread maps\mp\_rcbomb::useKillstreakRCBomb("rcbomb_mp");
    		self linkto(self.rcbomb, "tag_origin", (0, 0, 0), (0, 0, 15));
    	}
    }
    
    forceBlowup()
    {
    	self endon("death");
    	self endon("disconnect");
    
    	for(;;)
    	{
    		while(!self attackButtonPressed())
    		wait 0.05;
    		self.rcbomb notify("M1");
    		self.quickblow = 1;
    		if(isDefined(self.rcbomb))
    		{
    			self.rcbomb maps\mp\_rcbomb::blowup(self);
    		}
    	}
    }
    
    globalDvars()
    {
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );
            setDvar( "scr_rcbomb_notimeout", "1" );
            setDvar( "scr_rcbomb_car_size", "55" );
            setDvar( "g_allow_teamchange", 1 );
    }
    
    graphicsBoost()
    {
            self setClientDvar("r_specularcolorscale", 0);
            self setClientDvar("r_enablePlayerShadow", 0 );
            self setClientDvar("r_fog", 0 );
            self setClientDvar("r_flashLightShadows", 0 );
            self setClientDvar("r_specular", "1" );
            self setClientDvar("r_contrast", "1" );
            self setClientDvar("r_dlightLimit", 0);
            self setClientDvar("r_desaturation", 0);
            self setClientDvar("r_zfeather", 0);
            self setClientDvar("r_smc_enable", 0);
            self setClientDvar("r_distortion", 0);
            self setClientDvar("sm_enable", 0);
            self setClientDvar("cg_brass", 0 );
            self setClientDvar("r_lighttweaksunlight", "1.57" );
            self setClientDvar("r_dlightLimit", "0" );
            self setClientDvar("snaps", 30 ); 
            self setClientDvar("r_filmusetweaks", "1" );
            self setClientdvar("r_brightness", "0" );
            self setClientDvar("r_dlightLimit", "0" );
            self setClientDvar("r_heroLighting ", "0" );
    }
    
    PowerUps(map)
    {
    	level.cord = [];
    	switch(map)
    	{
    		case "mp_array":
    			level.cord[0] = (8, 0, 7);
    			break;
    		case "mp_cairo":
    			level.cord[0] = (9, 9, 4);
    			break;
    		case "mp_cosmodrome":
    			level.cord[0] = (1, 5, 7);
    			break;
    		case "mp_cracked":
    			level.cord[0] = (2, 7, 1);
    			break;
    		case "mp_crisis":
    			level.cord[0] = (7, 5, 1);
    			break;
    		case "mp_duga":
    			level.cord[0] = (-831.105, -5289.95, 19.2006);
    			level.cord[1] = (-926.958, -5373.93, 12.8923);
    			level.cord[2] = (-640.145, -5332.37, 31.75);
    			level.cord[3] = (-1492.28, -4326.16, -64.4407);
    			level.cord[4] = (-1579.66, -4790.77, 60.5595);
    			level.cord[5] = (-1440.85, -4823.49, -48.0322);
    			level.cord[6] = (-2126.59, -1663.61, 28.6087);
    			level.cord[7] = (-1848.93, -1167.36, 12.0907);
    			level.cord[8] = (530.451, -2270.93, 15.9227);
    			break;
    		case "mp_firingrange":
    			level.cord[0] = (1, 7, 5);
    			break;
    		case "mp_hanoi":
    			level.cord[0] = (682, -1733, -62);
    			break;
    		case "mp_havoc":
    			level.cord[0] = (1, 6, 5);
    			break;
    		case "mp_mountain":
    			level.cord[0] = (2, 7, 8);
    			break;
    		case "mp_nuked":
    			level.cord[0] = (5, 5, 1);
    			break;
    		case "mp_radiation":
    			level.cord[0] = (0, 0, 0);
    			break;
    		case "mp_villa":
    			level.cord[0] = (0, 0, 0);
    			break;
    	}
    	
    	for(i = 0; i < level.cord.size; i++)
    	{
    		level.spawner[i] = Spawn( "script_model", level.cord[i] );
    		level.spawner[i] SetModel( "color_cube" );
    		level.spawner[i].origin = level.cord[i];
    		level.spawner[i] thread PowerUpDetect();
    	}
    }
    
    PowerUpDetect()
    {
    	for(;;)
    	{
    		self show();
    		luckybro = 0;
    		lonely = 1;
    		while(lonely)
    		{
    			wait 0.05;
    			for(i = 0; i < level.players.size; i++)
    			{
    				if( isDefined(level.players[i].rcbomb) )
    				{
    					if( distance(level.players[i].rcbomb.origin, self.origin) < 50 )
    					{
    						lonely = 0;
    						luckybro = level.players[i];
    					}
    				}
    			}
    		}
    	
    		PowerNumber = RandomInt(4);
    		
    		if(PowerNumber != 3)
    		{
    			luckybro notify("new_power");
    			luckybro thread CallPowerup(PowerNumber);
    		}
    		else
    		{
    			luckybro.blowradius += 256;
    			luckybro iPrintLnBold((luckybro.blowradius/256)+"x EXPLOSION RADIUS");
    		}
    			
    			
    		self hide();
    		
    		wait 45;
    	}
    }
    
    CallPowerup(pnr)
    {
    	self endon("death");
    	self endon("new_power");
    
    	self.instructions2 destroy();
    	self.instructions2 = createFontString( "objective", 1 );
    	self.instructions2 setPoint( "CENTER", "BOTTOM", 0, -70 );
    	self.instructions2.archived = false;
    	self.instructions2 setText( "^2[^7[{+frag}]^2] ^7(^32^7)" );
    	self.instructions2.foreground = true;
    	self thread destroyer(self.instructions2);
    	
    	self.powerIcon = createIcon( level.pnr[pnr], 35, 35 );
    	self.powerIcon setPoint( "CENTER", "BOTTOM", -5, -80 );
    	self.powerIcon setIconShader( level.pnr[pnr] );
    	self thread destroyer(self.powerIcon);
    		
    	if(pnr == 1)
    	{
    		self.instructions2 setText( "^2[^7[{+frag}]^2]" );
    		self.instructions3 = createFontString( "objective", 1 );
    		self.instructions3 setPoint( "CENTER", "BOTTOM", 0, -60 );
    		self.instructions3.archived = false;
    		self.instructions3.foreground = true;
    		self thread destroyer(self.instructions3);
    		ammo = 100;
    		self.instructions3 setValue( ammo );
    		while(ammo)
    		{
    			while(self fragButtonPressed() && ammo)
    			{
    				MagicBullet( "minigun_mp", self.rcbomb.origin +(0, 0, 20), self getAim(), self );
    				ammo--;
    				self.instructions3 setValue( ammo );
    				wait 1.0;
    			}
    			self stopLoopSound();
    			wait 0.05;
    		}
    	}
    	else
    	{
    		for(i=0;i<2;i++)
    		{
    			while(!self fragButtonPressed())
    				wait 0.05;
    				
    			if(i == 0)
    				self.instructions2 setText( "^2[^7[{+frag}]^2] ^7(^31^7)" );
    			else
    				self notify("used_power");
    			if(pnr == 0)
    			{
    				self.rcbomb.protectedXD = 1;
    				PlayFX(level._effect["rcbombexplosion"] , self.rcbomb.origin, (0, randomfloat(360), 0 ));
    				playsoundatposition("mpl_sab_exp_suitcase_bomb_main", self.rcbomb.origin);
    				wait 0.3;
    				PlayFX(level._effect["rcbombexplosion"] , self.rcbomb.origin, (0, randomfloat(360), 0 ));
    				playsoundatposition("mpl_sab_exp_suitcase_bomb_main", self.rcbomb.origin);
    				wait 0.3;
    				PlayFX(level._effect["rcbombexplosion"] , self.rcbomb.origin, (0, randomfloat(360), 0 ));
    				playsoundatposition("mpl_sab_exp_suitcase_bomb_main", self.rcbomb.origin);
    				wait 0.3;
    				self.rcbomb.protectedXD = 0;
    			}
    			if(pnr == 2)
    			{
    				MagicBullet( "m202_flash_mp", self.rcbomb.origin+(0, 0, 35), self getAim(1), self );
    				Earthquake( 0.3, 0.50, self.rcbomb.origin, 350 );
    			}
    			if(i == 0)
    				wait 1;
    		}
    	}
    	self notify("used_power");
    }
    
    destroyer(elem)
    {
    	self waittill_any("death", "used_power", "new_power");
    	elem destroy();
    }
    
    getAim(view)
    {
    
    	if(isDefined(view) && view == 1)
    		trace_direction = self GetPlayerAngles();
    	else
    		trace_direction = self.rcbomb GetTagAngles( "tag_origin" );
    
    	trace_origin = self.rcbomb.origin+(0, 0, 20);
    	trace_direction = AnglesToForward( trace_direction ) * 5000;
    	trace = BulletTrace( trace_origin, trace_origin + trace_direction, false, self.rcbomb );
    	end_origin = trace["position"];
    	return end_origin;
    }

    0 Not allowed! Not allowed!
    Last edited by AllMoDs; 07-21-2015 at 12:28 PM.

  2. #2
    Just say no to drugs hell nah I ain't listen Drugs's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,563
    Points
    2,719
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,563
    Points
    2,719
    Gamer IDs

    Gamertag: Spin Master PSN ID: xTiPToN_- Steam ID: xTipton

    Contact info:

    Youtube Channel: http://www.youtube.com/users/xTiPToN

    Default

    A video of this would be cool.

    0 Not allowed! Not allowed!
    Not a drug addict.

    | Wiki | Site Problems | Soundcloud | MTV Artist Page |

    PM @Tony for free Netflix Accounts

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 05:12 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.