game_manager
{
	spawn
	{
		
	
// Game rules
		wm_axis_respawntime	1
		wm_allied_respawntime	1
		wm_number_of_objectives 2
		wm_set_round_timelimit  60
                          wm_mapdescription allied "Zerstört die wall.*Zerstört objective2." 
                          wm_mapdescription axis "Verteidigt die wall.*Verteidigt objective2." 
                          wm_mapdescription neutral "Kampf um die wall und objective2." 

                           // Axis Objective Descriptions 
                           wm_objective_axis_desc 1 "Primary Objective:**Defend the wall." 
                           wm_objective_axis_desc 2 "Primary Objective:**Defend objective2." 

                           // Allied Objective Descriptions 
                           wm_objective_allied_desc 1 "Primary Objective:**Destroy the wall." 
                           wm_objective_allied_desc 2 "Primary Objective:**Destroy objective2." 


		// Objectives
		// 1: Steal the Docus
		// 2: Escape with the Docus
            	
		// Stopwatch mode defending team (0=Axis, 1=Allies)
		wm_set_defending_team	0

		// Winner on expiration of round timer (0=Axis, 1=Allies)
		wm_setwinner	0

		wait 500
						

		// If the round timer expires, the Axis have won, so set the current winning team
		// Set the round winner:  0 == AXIS, 1 == ALLIED
		wm_setwinner 1

		// Accum #1 will be the state of objective number one
		accum 1 set 0
	}


	// ================================================
	// ============ The Secret Dokuments ==============
	// ================================================

	trigger allied_obj1
	{
		

		// Change the variable within the script so that we can check if someone wins the round
		accum 1 set 1
	

		// Call function to check if the round has been won
		trigger game_manager checkgame
	}


	trigger axis_object_stolen
	{
		// Change the objective state internally, so UI can update, etc.
		// Allied have stolen the documents (0 == AXIS, 1 == ALLIED)
		}

	trigger axis_object_returned
	{
		// Change the objective state internally, so UI can update, etc.
		// Axis have returned the documents (0 == AXIS, 1 == ALLIED)
		//wm_objective_status 2 0
	}

	
	trigger checkgame
	{
		accum 1 abort_if_not_equal 1

		// Set the round winner:  0 == AXIS, 1 == ALLIED
		wm_setwinner 1

		// End the round
		wm_endround 
	}
}



allied_obj1 //The Allies sending the Secret Documents.
{
	spawn
	{
	}

	death
	{
		trigger game_manager allied_obj1
	}
}

game_manager
{
        spawn
        {
                wait 50
		constructible_class 3
        }

        death
        {
                wm_announce "Allies have destroyed the Station!"

                trigger game_manager objective_blown
        }
}

game_manager
{
        spawn
        {
                wait 50
		constructible_class 3
        }

        death
        {
                wm_announce "Axis have destroyed the Station!"

                trigger game_manager objective_blown
        }
}