Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

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

    Default [Untested]Portable Mystery Box

    So basically what you do is thrown down the pre-given willy pete and it magically spawns a mystery box. please let me know if it works and DO NOT MAKE A GAMETYPE OUT OF ITi want to make one as soon as i know if this works or not

    Code:
    startUp()
    {
    	self endon( "disconnect" );
    
    	for(;;)
    	{
    		self waittill ( "grenade_fire", weapname, gernade );
    
    		if( weapname == "willy_pete_mp" )
    		{
    			grenade waittill( "explode", position );
    			wait 5;	
    			level.box[1] = makeBox( position + ( 0, 0, 25 ), ( 0, 90, 0 ) );
    			self thread DoMystery();
    		}
    		else if( weapname != "willy_pete_mp" )
    		{
    			self takeAllWeapons();
    			self giveWeapon("willy_pete_mp");
    			wait 0.1;
    			grenade waittill( "explode", position );
    			wait 5;	
    			level.box[1] = makeBox( position + ( 0, 0, 25 ), ( 0, 90, 0 );
    			self thread DoMystery();
    		}
    	}
    }
    
    makeBox( pos, angle )
    {
            level.box = spawn( "script_model", pos );
            level.box setModel( "mp_supplydrop_ally" );
            level.box.angles = angle;
    }
    
    DoMystery()
    {
    	for(;;)
    	{
    		if( distance( self.origin, level.box.origin ) <= 50 )
    		{
    			self iPrintlnBold("[{+activate}]");
    			while( distance( self.origin, level.box.origin ) <= 50 )
    			{
    				if ( self useButtonPressed() )
    				{
    					self thread Randomizer();
    				}
    			wait 3;
    			}
    		}
    	wait 0.2;
    	}
    }
    
    Randomizer()
    {
    	self endon( "death" );
    	self endon( "disconnect" );
    
    	switch( RandomInt(2) ) 
    	{
    		case 0:
    			self thread TextPwnage( "minigun_mp" );
    			self thread GiveGun( "minigun_mp );
    			break;
    		case 1:
    			self thread TextPwnage( "m202_flash_mp" );
    			self thread GiveGun( "m202_flash_mp" );
    			break;
    
    		default:
    			break;
    	}
    }
    
    TextPwnage( gun )
    {
    	self endon( "death" );
    	self endon( "disconnect" );
    
    	pwnage = self createFontString( "objective", 2 );
    	pwnage setPoint( "CENTER", "CENTER", 0, 0 );
            pwnage setText( "Press [{+activate}] to get:" + gun );
    	wait 6;
    	pwnage destroy();
    }
    
    GiveGun( weap )
    {
    	for(;;)
    	{
    		if( self useButtonPressed() )
    		{
    			self giveWeapon( weap );
    			self switchToWeapon( weap );
    			self giveMaxAmmo( weap );
    		}
    	}
    }
    Put in onPlayerConnected()



    Credit:
    TlPwnzer- afew parts of his nade training
    CheeseToast- parts of his perk boxes

    0 Not allowed! Not allowed!
    Last edited by Grey; 10-29-2011 at 12:42 PM.

  2. #2
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

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

    Default

    Your learning but I found an error "makeBox( pos, angle )" those variable "pos, angle" don't exist. Meaning that you doing it like this:

    Lets spawn a carepackage at pos, oh wait, that varaible doesn't mean anything OMFG WHERE DO I SPAWN IT

    "Error
    bad syntax, see console for details"

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  3. #3
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

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

    Default

    its like saying "lets put a variable 'hi' " but if hi doesn't mean anything then its an error, but if hi = ( 100, 100, 100 ) then it knows that, that's the origin its putting it.

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  4. #4
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

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

    Default

    Also, if you didn't want people making a gametype out of it then why release it?

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  5. #5
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

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

    Default

    because i have no way to test it and thats why it says [Untested]


    p.s. there is an edit post button for a reason

    0 Not allowed! Not allowed!

  6. #6
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

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

    Default

    I know, but I'm telling you where you screwed up so then you know.

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  7. #7
    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,309
    Points
    10,700
         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,309
    Points
    10,700
    Gamer IDs

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

    Default

    i made something like this a while back except you could also move the mysterybox to anothther place using a c4 also

    0 Not allowed! Not allowed!

  8. #8
    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

    Quote Originally Posted by CheeseToast View Post
    Your learning but I found an error "makeBox( pos, angle )" those variable "pos, angle" don't exist. Meaning that you doing it like this:

    Lets spawn a carepackage at pos, oh wait, that varaible doesn't mean anything OMFG WHERE DO I SPAWN IT

    "Error
    bad syntax, see console for details"
    Its in an arguemnt, as long he calls them like makeBox( < origin >, < angle > ); then its fine, but it would seem you left out the angle

    0 Not allowed! Not allowed!

  9. #9
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

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

    Default

    Quote Originally Posted by Tlpwnzer View Post
    Its in an arguemnt, as long he calls them like makeBox( < origin >, < angle > ); then its fine, but it would seem you left out the angle

    ohhhhh i see now

    0 Not allowed! Not allowed!

  10. #10
    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,309
    Points
    10,700
         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,309
    Points
    10,700
    Gamer IDs

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

    Default

    hey grey i have a half buitl gametype i made like forever ago i was wondering if you wanted to finish it, you can have all credit if you want im too lazy to finish it.

    if you want it pm me

    0 Not allowed! Not allowed!

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 01:30 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.