Hey Guys,

I have recently been working on porting over my gametype:

Heaven and Hell.


So I was wondering if I could get someone to test it out?

Thanks

Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

        //......................\\
       //    ---------------     \\
      //     / C0D-FR34K's \      \\
     //  -----------------------   \\
    //   / Heaven and Hell V 0.2 \  \\
   //  ----------------------------  \\
  //           / For MW3 \            \\
 //  --------------------------------  \\
//......................................\\

main()
{
	level thread onPlayerConnect();
	level thread globalVars();
}

onPlayerConnect()
{
	for(;;)
	{
		level waittill( "connecting", player );

		player thread onPlayerSpawned();
		player thread playerVars();
		player thread playerStatus();
	}
}


onPlayerSpawned()
{
	self endon( "disconnect" );
	
	for(;;)
	{
		self waittill( "spawned_player" );

		self thread myCredit();

                wait ( 10 );

                self thread maps\mp\gametypes\_hud_message::hintMessage( "^1This was made by: C0D-FR34K" );

                wait ( 10 );

                self thread maps\mp\gametypes\_hud_message::hintMessage( "^1Join www.CodeLeakers.com" );
                
                wait ( 10 );
	}
}

globalVars()
{
	setDvar( "onlinegame", 0 );
	setDvar( "xblive_privatematch", 1 );
	setDvar( "scr_disable_weapondrop", 1 );
	setDvar( "scr_game_killstreaks", 0 );
}

playerVars()
{
	self setClientDvar( "g_TeamName_Allies", "^8Angels" );
	self setClientDvar( "g_TeamName_Axis", "^1Demons" );
}

settings()
{
	if( self.pers["team"] == "allies" )//Angels team
	{
		self thread angelSettings();
		wait 1;
		self thread angelWeapons();
		wait 1;
		self thread angelPerks();
		wait 1;
		self thread spectator();
		wait 1;
		self thread angelFog();
		wait 1;
		self thread angelHealth();
		wait 1;
		self thread doInvisibility();
	}
	else if( self.pers["team"] == "axis" )//Demons team
	{
		self thread demonSettings();
		wait 1;
		self thread demonWeapons();
		wait 1;
		self thread demonPerks();
		wait 1;
		self thread thirdPerson();
		wait 1;
		self thread demonFog();
		wait 1;
		self iPrintln( "^1Angels ^8are ^1Invisble ^8when they dont move, ^1be careful." );
	}
}

playerStatus()
{
	if( self.pers["team"] == "allies" )//Angels Team
	{
		self.StatusText = self createFontString( "objective", 2.0 );
		self.StatusText setPoint( "TOPRIGHT", "TOPRIGHT", 0, 7+10 );
		self.StatusText setText( "^1Status: ^8Angel" );
	}
	else if( self.pers["team"] == "axis" )//Demons team
	{
		self.StatusText = self createFontString( "objective", 2.0 );
		self.StatusText setPoint( "TOPRIGHT", "TOPRIGHT", 0, 7+10 );
		self.StatusText setText( "^8Status: ^1Demon" );
	}
}

myCredit()
{
	self endon("disconnect");

	for(;;)
	{
		self iPrintln( "^1Welcome to:" );
		wait ( 3 );
		self iPrintln( "^8Heaven and Hell" );
		wait ( 5 );
		self iPrintln( "^1Gametype Version:" );
		wait ( 3 );
		self iPrintln( "^80.02" );
		wait ( 3 );
		self iPrintln( "^1Made By: C0D-FR34K" );
		wait ( 5 );
	}
}

//-------------------------------Angel Stuff---------------------------------------------------------------------------------------------------

angelWeapons()
{
	self GiveWeapon( "iw5_44magnum_mp" );
	self GiveWeapon( "iw5_spas12_mp" );
	self SwitchToWeapon( "iw5_spas12_mp" );
}

angelPerks()
{
	self endon ( "disconnect" );

	self clearPerks();
	self givePerk( "specialty_lightweight" );
	self givePerk( "specialty_reducedsway" );
	self givePerk( "specialty_quieter" );
	self givePerk( "specialty_longersprint" );
	self givePerk( "specialty_sharp_focus" );
	self givePerk( "specialty_fastermelee" );
}

angelSettings()
{
	self endon ( "disconnect" );
		
	self.maxhealth = 400;
	self.health = self.maxhealth;
				
	self freeze_player_controls( false ); 
}

angelFog()
{
	self setClientDvar( "r_colormap", "2" );
}

spectator()
{	
	self endon ( "disconnect" );

	self waittill( "death" );
	self [[level.spectator]]();
}

angelHealth()
{
	self endon( "disconnect" );
	for(;;)
	{
		if( self.health <= 399 )
		{
			wait 5;
			if( self.health <= 399 )
			{
				self.maxhealth = 400;
				self.health = self.maxhealth;
			}
		}
	wait 0.1;
	}	
}

doInvisibility()
{
	for(;;)
	{
		if(self getVelocity() == (0,0,0))
		{
			self hide();
		}

		else
		{
			self show(); 
		}
		wait 0.01;
	}
}

//-------------------------------Demons Stuff---------------------------------------------------------------------------------------------------

demonWeapons()
{
	self GiveWeapon( "defaultweapon_mp" );
	self SwitchToWeapon( "defaultweapon_mp" );
}

demonPerks()
{
	self clearPerks();
        self setperk("specialty_coldblooded");
        self setPerk("specialty_detectexplosive");  
        self setPerk("specialty_stalker");
	self setPerk("specialty_marksman");
        self setPerk("specialty_holdbreathwhileads");  
	self setPerk("specialty_quickdraw"); 
	self setPerk("specialty_reducedsway"); 
	self setPerk("_specialty_blastshield");
}

demonSettings()
{	
	self endon ( "disconnect" );

	self.maxhealth = 200;
	self.health = self.maxhealth;
				
	self freeze_player_controls( false );
}

demonFog()
{
	self endon ( "disconnect" );

	self setClientDvar("r_fullbright", 1);
}

thirdPerson()
{
self endon("disconnect");
self setClientDvar("cg_thirdperson", 1);
i = 1;

	te = self createFontString( "objective", 1.2 );
	te setPoint("CENTER", "BOTTOM", 0, -65);
	te setText("^8[^1[{+frag}]^8] ^1To Switch to Third Person");
	te.sort = 10;
	
	for(;;)
	{
		while(!self FragButtonPressed())
			wait 0.01;
		if(i)
			i--;
		else
			i++;
		self setClientDvar("cg_thirdperson", i);
		wait 0.30;
	}
}