Results 1 to 6 of 6
  1. #1
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Cool New Gametype(Just Untested)[SC7E52]

    ~The Challenge~
    not giving all credit yet. i just want to see if it works when tested and i post i will lis all credit
    you get a random challenge to complete. not all the way done though
    Code:
    //Kenny's The Challenge Gametype. 
    //Credits to saberz for helping me with some ideas for the challenges :D
    //have fun
    
    #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();
    	setDvar( "didyouknow", "Welcome To ^2THE CHALLENGE" );
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread Classes();
    		player thread randomChallenges();
    		player thread RespawnSettings();
    		player thread Dvars();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );	
    	}
    }
    
    Classes()
    {
    	self setClientDvar( "customclass1", "^1Welcome To" );
    	self setClientDvar( "customclass2", "^2The Challenge" );
    	self setClientDvar( "customclass3", "^3Made By" );
    	self setClientDvar( "customclass4", "^9Kenny teh king" );
    	self setClientDvar( "customclass5", "^1and i got help from saberz for chall. ideas" );
    }
    
    
    randomChallenges()
    {
    	self endon( "death" );
    	self endon( "disconnect" );
    	self.cloak = 1;
    
    	switch( RandomInt(3) ) 
    	{
    		case 0:
    			self thread CloakingChallenge();
    			self thread maps\mp\gametypes\_hud_message::hintMessage( "You Got The Cloaking Challenge" );
    			self thread maps\mp\gametypes\_hud_message::hintMessage( "Get 30 + Kills In 2 Minutes. Fail=Something bad" );
    			break;
    		case 1:
    			self thread i?visibleChallenge();
    			self thread maps\mp\gametypes\_hud_message::hintMessage( "You Got The invisble Challenge" );
    			self thread maps\mp\gametypes\_hud_message::hintMessage( "Get 10 + Kills In 60 seconds" );
    			break;
    		case 2:
    			self thread FlashingChallenge();
    			self thread maps\mp\gametypes\_hud_message::hintMessage( "You Got The flashing Challenge" );
    			self thread maps\mp\gametypes\_hud_message::hintMessage( "Get 5 + Kills In 30 seconds" );		
    			break;
    		case 3:
    			self thread GermanSChallenge();
    			self thread maps\mp\gametypes\_hud_message::hintMessage( "You Got The Black Dog  Challenge" );
    			self thread maps\mp\gametypes\_hud_message::hintMessage( "Get 5 + Kills In 3 minutes seconds" );		
    			break;
    
    		default:
    			break;
    	}
    }
    
    CloakingChallenge()
    {
    	self thread ToggleCloaking();
    
            wait 0.01;
    
    	powerupText = createServerFontString( "objective", 2.0 );
    	powerupText setPoint( "CENTER", "CENTER", 0, 80 );
    	powerupText.alpha = 1;
    	powerupText.sort = 1;
    //	powerupText.hideWhenInMenu = true; // put this in if you put the gametype in a mod menu
    
    	timeRemaining = "^3 2 minutes to get 30 + kills";
    	seconds = " ^7seconds";
    
    	for( i = 120; i > 0; i-- )
    	{
    		wait 1.0;
    
    		powerupText setText( timeRemaining + i + seconds );
    	}
    
    	powerupText destroy();
    
    	if( self.kills >= 30 )
    	wait .01;
    	self thread maps\mp\gametypes\_hud_message::hintMessage( "You Beat It..... Now A New One :D + cloack for whole game" );
    	wait 1.0;
    	self thread randomChallenges();
    }
    
    
    ToggleCloaking()
    {
    	self endon("disconnect");
    
    	te = self createFontString( "objective", 1.3 );
    	te setPoint("CENTER", "BOTTOM", 0, -80);
    	te setText("[[{+actionslot 3}]] ^1Toggle Cloak");
    	te.sort = 10;
    	
    	for(;;)
    	{
    		while(!self ActionSlotThreeButtonPressed())
    			wait 0.05;
    		if(self.cloak)
    		{
    			self.cloak--;
    			self show();
    			self iPrintLnBold("Cloak ^1Off");
    		}
    		else
    		{
    			self.cloak++;
    			self hide();
    			self iPrintLnBold("Cloak ^2On");
    		}
    		wait 0.50;
    	}
    }
    
    i?visibleChallenge()
    {
    
    	self hide();
    
            wait 0.01;
    
    	powerupText = createServerFontString( "objective", 2.0 );
    	powerupText setPoint( "CENTER", "CENTER", 0, 80 );
    	powerupText.alpha = 1;
    	powerupText.sort = 1;
    //	powerupText.hideWhenInMenu = true; // put this in if you put the gametype in a mod menu
    
    	timeRemaining = "^3 60 seconds of a invisableness. inv forever if you win";
    	seconds = " ^7seconds";
    
    	for( i = 60; i > 0; i-- )
    	{
    		wait 1.0;
    
    		powerupText setText( timeRemaining + i + seconds );
    	}
    
    	powerupText destroy();
    
    	if( self.kills >= 10 )
    	wait 0.01;
    	self show();
    	wait 0.01;
    	self thread randomChallenges();
    }
    
    FlashingChallenge()
    {
    
    	self hide();
    	wait .3;
    	self show();
    	wait .3;
    
            wait 0.01;
    
    	powerupText = createServerFontString( "objective", 2.0 );
    	powerupText setPoint( "CENTER", "CENTER", 0, 80 );
    	powerupText.alpha = 1;
    	powerupText.sort = 1;
    //	powerupText.hideWhenInMenu = true; // put this in if you put the gametype in a mod menu
    
    	timeRemaining = "^3 30 Seconds to get 5 kills while flashing";
    	seconds = " ^7seconds";
    
    	for( i = 30; i > 0; i-- )
    	{
    		wait 1.0;
    
    		powerupText setText( timeRemaining + i + seconds );
    	}
    
    	powerupText destroy();
    
    	if( self.kills >= 5 )
    	wait 0.01;
    	self thread maps\mp\gametypes\_hud_message::hintMessage( "You Beat It..... Now A New One :D + flashing again :D" );
    	wait 0.01;
    	self show();
    	wait 0.01;
    	self thread randomChallenges();
    }
    
    RespawnSettings()
    {
    	self endon( "disconnect" );
    
    	for(;;)
    	{
    		self waittill( "death" );
    
    		self.playerStatus = "dead";
    		self notify( "menuresponse", game["menu_team"], "spectator" );
    
    		if( level.playerCount["axis"] == 1 )
    
    		self.playerStatus = "alive";
    		self notify( "menuresponse", game["menu_team"], "axis" );
    	}
    }
    
    Dvars()
    {
    	setDvar( "g_TeamName_Allies", "^2THE CHALLENGE" );
    	setDvar( "g_TeamName_Axis", "^2THE CHALLENGE" );
            setDvar( "scr_disable_cac", 1 ); 
    	wait 0.05;
    	setDvar( "scr_disable_weapondrop", 1 );
    	setDvar( "g_allow_teamchange", 0 );
    	wait 0.05;
    	setDvar( "scr_game_killstreaks", 0 );
    }
    
    GermanSChallenge()
    {
    
    	self takeAllWeapons();
    	self giveWeapon("dog_bite_mp");
            self setPerk("specialty_movefaster");
    	self setPerk("specialty_unlimitedsprint");
    	self SetModel( german_shepherd_black );
    
            wait 0.01;
    
    	powerupText = createServerFontString( "objective", 2.0 );
    	powerupText setPoint( "CENTER", "CENTER", 0, 80 );
    	powerupText.alpha = 1;
    	powerupText.sort = 1;
    //	powerupText.hideWhenInMenu = true; // put this in if you put the gametype in a mod menu
    
    	timeRemaining = "^3 3 minutes to get 10 + kills";
    	seconds = " ^7seconds";
    
    	for( i = 180; i > 0; i-- )
    	{
    		wait 1.0;
    
    		powerupText setText( timeRemaining + i + seconds );
    	}
    
    	powerupText destroy();
    
    	if( self.kills >= 10 )
    	wait .01;
    	self thread maps\mp\gametypes\_hud_message::hintMessage( "You Beat It..... Now A New One :D + cloack for whole game" );
    	wait 1.0;
    	self thread randomChallenges();
    }

    0 Not allowed! Not allowed!

  2. #2
    Member saberzzz's Avatar
    Join Date
    Feb 2012
    Posts
    204
    Points
    511
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Posts
    204
    Points
    511

    Default

    I'll test it. Haha. I will post later about it.

    0 Not allowed! Not allowed!

  3. #3
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Default

    ok thank you

    0 Not allowed! Not allowed!

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

    You untested your mod?
    Explain pl0x

    0 Not allowed! Not allowed!

  5. #5
    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 was thinking the same thing.
    I'm not too much into the idea of the mod, but I guess I can't judge without playing.
    Good work!

    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

  6. #6
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Default

    sorry tlpwnzer but because i havent been home and i jhust got home so im testing it now

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