Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default Flawless Mystery Box

    Code:
    doGlobalVars() //onPlayerConnect();
    {
    	level.using = 0;
    	
    	level.guns[0] = "aug_mp";
            level.guns[1] = "m16_mp";
            level.guns[2] = "spas_mp";
            level.guns[3] = "famas_mp";
            level.guns[4] = "rpk_mp";
            level.guns[5] = "rpg_mp";
            level.guns[6] = "m72_law_mp";
            level.guns[7] = "commando_mp";
            level.guns[8] = "python_mp";
            level.guns[9] = "ak74u_mp";
            level.guns[10] = "l96a1_mp";
            level.guns[11] = "fnfal_mp";
            level.guns[12] = "cz75_mp";
            level.guns[13] = "spectre_mp";
            level.guns[14] = "hk21_mp";
            level.guns[15] = "crossbow_explosive_mp";
            level.guns[16] = "knife_ballistic_mp";
            level.guns[17] = "m60_mp";
            level.guns[18] = "stoner63_mp";
    }
    
    
    spawnMysteryBox() //thread spawnMysteryBox(); init
    {
    	switch( getDvar( "mapname" ) )
    	{
    		case "mp_nuked": // This is the map Nuketown
    			level thread createBox( ( -231, 1009, -46 ), ( 0, 112, 0 ) );
    			break;
    		case "mp_mountain": // This is the map Summit
    			break;
    		case "mp_array": // This is the map Array
    			break;
    		case "mp_cairo": // This is the map Havana
    			break;
    		case "mp_cosmodrome": // This is the map Launch
    			level thread createBox( ( 9, 386, 9 ), ( 0, 2, 0 ) );
    			break;
    		case "mp_crisis": // This is the map Crisis
    			break;
    		case "mp_duga": // This is the map Grid
    			break;
    		case "mp_firingrange": // This is the map Firing Range
    			level thread createBox( ( 9, 1494, -38 ), ( 0, -105, 0 ) );
    			break;
    		case "mp_hanoi": // This is the map Hanoi
    			break;
    		case "mp_havoc": // This is the map Jungle
    			break;
    		case "mp_radiation": // This is the map Radiation
    			break;
    		case "mp_russianbase": // This the map WMD
    			break;
    		case "mp_villa": // This is the map Villa
    			break;
    	}
    }
    
    createBox( pos, ang )
    {
    	level.mBox = spawn( "script_model", pos );
    	level.mBox setModel( "mp_supplydrop_ally" );
    	level.mBox.angles = ang;
    	 
    	level.mGun = spawn( "script_model", level.mBox.origin );
            level.mGun setModel( GetWeaponModel( "claymore_mp" ) );
            level.mGun.angles = level.mBox.angles + ( 0, 90, 0 );
            level.mGun hide();
    }
    
    checkDistance() //OnPlayerConnected()
    {
    	self endon( "disconnect" );
    	
    	while( 1 )
    	{
    		wait 0.01;
    
    		if( distance( self.origin, level.mBox.origin ) < 75 && level.using == 0 )
    		{
    			self setLowerMessage( "Press [{+activate}] for Mystery Box" );
    			randWeap = randomInt( level.guns.size );
    			
    			for(;;)
    			{
    				if( self useButtonPressed() == true && distance( self.origin, level.mBox.origin ) < 75 && level.using == 0 )
    				{
    					level.using = 1;
    					self clearLowerMessage( 1.0 );
    					level.mGun show();
                            	        level.mGun moveTo( level.mBox.origin + ( 0, 0, 30 ), 1 );
                            	        wait .2;
                            	        for( i = 0; i < 14; i++ )
                            	        {
                            	        	rander = randomInt( level.guns.size );
                            	                level.mGun setModel( GetWeaponModel( level.guns[rander] ) );
                            	                wait( 0.025 * i );
                            	        }
                            	        level.mGun setModel( GetWeaponModel( level.guns[randWeap] ) );
                            	        wait .1;
    					if( self GetWeaponsListPrimaries().size > 1 ) self takeWeapon( self getCurrentWeapon() );
                            	        self giveWeapon( level.guns[randWeap] );
                            	        self switchToWeapon( level.guns[randWeap] );
                            	        self giveMaxAmmo( level.guns[randWeap] );
                            	        self clearLowerMessage( .5 );
                            	        level.mGun moveTo( level.mBox.origin, 1 );
                                    	wait 1;
                                    	level.mGun hide();
                                    	level.using = 0;
                                    	break;
    				}
    				else if( distance( self.origin, level.mBox.origin ) > 75 )
                                    {
                                            self clearLowerMessage( 1.0 );
                                            break;
                                    }
    				wait 0.01;
    			}
    		}
    		else
    		{
    			self clearLowerMessage( 1.0 );
    		}
    	}
    	wait 0.01;
    }

    0 Not allowed! Not allowed!

  2. #2
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    EDit: i looked through the script and answerred the question myself lol

    0 Not allowed! Not allowed!
    Last edited by tony; 07-10-2011 at 08:34 AM.

  3. #3
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,312
    Points
    9,407
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,312
    Points
    9,407
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    sweet how would i add it and decide where it goes and stuff?

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  4. #4
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    u need to edit the

    switch( getDvar( "mapname" ) )
    {
    case "mp_nuked": // This is the map Nuketown
    level thread createBox( ( -231, 1009, -46 ), ( 0, 112, 0 ) );

    if u need help doing this pm me

    0 Not allowed! Not allowed!

  5. #5
    Member xxmasal22xx's Avatar
    Join Date
    Jul 2011
    Location
    Unforseen places
    Posts
    136
    Points
    209
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Unforseen places
    Posts
    136
    Points
    209

    Default

    wait...is this for multiplayer??? Like the actual mystery box, or just a care package model???

    0 Not allowed! Not allowed!
    Co-Founder of clan Radiation (*:*)
    Clan Radiation (*:*) recruiting now!

    MEMORABLE QUOTES:
    Tcll: I <3 69
    xxmasal22xx: Hey, you should probably go to the hopshital
    BlackJax96: everything is so ROUND
    Visit my website, Brawl Imports, a gathering place for Brawl hackers!
    http://brawlimports.proboards.com/index.cgi
    Take a look at my Brawl hacks!

  6. #6
    The Fire Within
    Winning!
    Notorious's Avatar
    Join Date
    May 2011
    Location
    Twilight Zone
    Posts
    2,053
    Points
    3,427
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Twilight Zone
    Posts
    2,053
    Points
    3,427
    Gamer IDs

    Gamertag: TehNotorious PSN ID: NOTORIOUS-ORTIZ

    Default

    so we could just put in different coordinates and it will work for whatever map
    no homo but i love you Tlpwnzer!!! i can now start up my fort on every map project
    could you get your different map options script working for guns on the wall and starting spawn points?

    0 Not allowed! Not allowed!


    ^Thanks Renji for the awesome sig^

  7. #7
    Diehard
    Join Date
    May 2011
    Posts
    1,342
    Points
    3,488
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    1,342
    Points
    3,488

    Default

    can some1 mail me the modded iso disc

    0 Not allowed! Not allowed!

  8. #8
    The Fire Within
    Winning!
    Notorious's Avatar
    Join Date
    May 2011
    Location
    Twilight Zone
    Posts
    2,053
    Points
    3,427
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Twilight Zone
    Posts
    2,053
    Points
    3,427
    Gamer IDs

    Gamertag: TehNotorious PSN ID: NOTORIOUS-ORTIZ

    Default

    Quote Originally Posted by cornerpath View Post
    can some1 mail me the modded iso disc
    just get a 8gb sd card or flash drive
    its not that hard to learn how to play games off a memory device

    0 Not allowed! Not allowed!


    ^Thanks Renji for the awesome sig^

  9. #9
    Nooblet
    Join Date
    Jul 2011
    Posts
    31
    Points
    57
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Posts
    31
    Points
    57

    Default

    how do you add this to nitys mod menu

    0 Not allowed! Not allowed!

  10. #10
    The Fire Within
    Winning!
    Notorious's Avatar
    Join Date
    May 2011
    Location
    Twilight Zone
    Posts
    2,053
    Points
    3,427
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Twilight Zone
    Posts
    2,053
    Points
    3,427
    Gamer IDs

    Gamertag: TehNotorious PSN ID: NOTORIOUS-ORTIZ

    Default

    Launch doesn't work

    0 Not allowed! Not allowed!


    ^Thanks Renji for the awesome sig^

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 02:55 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.