#library "levelname"
#include "zcommon.acs"

script "LevelName" ENTER
	{
	//aliases
		int monstercount = GetLevelInfo(LEVELINFO_TOTAL_MONSTERS);
			
	//startup sound
		AmbientSound("misc/startup",100);
	
	//scanlines
		SetFont("LINES");
		HudMessage(s:"A";
	
		HUDMSG_FADEOUT|HUDMSG_LAYER_UNDERHUD,//type
		0,	 								 //id
		1,	 								 //color
		0,0, 								 //coordinates
		45,									 //holdtime
		0.8);								 //alpha
		
	//delay
		Delay(13);

	//level message
		SetFont("CONFONT");
		HudMessage(s:"Entering Sector: ",n:PRINTNAME_LEVELNAME,s:"\nHostiles Detected: ",d:monstercount,s:"\nDirective: Kill Them All";
	
		HUDMSG_TYPEON,	//type
		0, 		 	 	//id
		CR_DARKGREEN,	//color
		0, 0,	 		//coordinates
		120);  	 	 	//holdtime
	}