game_manager
{
	spawn
	{
		wait 50
		wm_axis_respawntime 999		// Axis respawn time
		wm_allied_respawntime 1		// Allied respawn time
		wm_set_round_timelimit 999	// Map timelimit
		
		// 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
		
	}
}

// FLAG 1
//
flag1
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 1!"
		//alertentity flag1spawns

		globalaccum 0 abort_if_greater_than 0 // atleast flag number 1 already taken, abort
		globalaccum 0 set 1
		wait 500
		setautospawn "Flag 1" 0
		setautospawn "Flag 1" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2W^welcome to ^2S^wuper ^2F^wun^2J^wump^2!"
		//alertentity flag1spawns

		globalaccum 0 abort_if_greater_than 0 // atleast flag number 1 already taken, abort
		globalaccum 0 set 1
		wait 500
		setautospawn "Flag 1" 0
		setautospawn "Flag 1" 1
	}

}

// FLAG 2
//
flag2
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 2!"
		alertentity flag2spawns

		globalaccum 0 abort_if_greater_than 1 // atleast flag number 2 already taken, abort
		globalaccum 0 set 2
		wait 500
		setautospawn "Flag 2" 0
		setautospawn "Flag 2" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2F^wlag ^22 ^wcaptured^2!"
		alertentity flag2spawns

		globalaccum 0 abort_if_greater_than 1 // atleast flag number 2 already taken, abort
		globalaccum 0 set 2
		wait 500
		setautospawn "Flag 2" 0
		setautospawn "Flag 2" 1
	}
}

// FLAG 3
//
flag3
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 3!"
		alertentity flag3spawns

		globalaccum 0 abort_if_greater_than 2 // atleast flag number 3 already taken, abort
		globalaccum 0 set 3
		wait 500
		setautospawn "Flag 3" 0
		setautospawn "Flag 3" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2F^wlag ^23 ^wcaptured^2!"
		alertentity flag3spawns

		globalaccum 0 abort_if_greater_than 2 // atleast flag number 3 already taken, abort
		globalaccum 0 set 3
		wait 500
		setautospawn "Flag 3" 0
		setautospawn "Flag 3" 1
	}
}

// FLAG 4
//
flag4
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 4!"
		alertentity flag4spawns

		globalaccum 0 abort_if_greater_than 3 // atleast flag number 4 already taken, abort
		globalaccum 0 set 4
		wait 500
		setautospawn "Flag 4" 0
		setautospawn "Flag 4" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2F^wlag ^24 ^wcaptured^2!"
		alertentity flag4spawns

		globalaccum 0 abort_if_greater_than 3 // atleast flag number 4 already taken, abort
		globalaccum 0 set 4
		wait 500
		setautospawn "Flag 4" 0
		setautospawn "Flag 4" 1
	}
}

// FLAG 5
//
flag5
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 5!"
		alertentity flag5spawns

		globalaccum 0 abort_if_greater_than 4 // atleast flag number 5 already taken, abort
		globalaccum 0 set 5
		wait 500
		setautospawn "Flag 5" 0
		setautospawn "Flag 5" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2F^wlag ^25 ^wcaptured^2!"
		alertentity flag5spawns

		globalaccum 0 abort_if_greater_than 4 // atleast flag number 5 already taken, abort
		globalaccum 0 set 5
		wait 500
		setautospawn "Flag 5" 0
		setautospawn "Flag 5" 1
	}
}

// FLAG 6
//
flag6
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 6!"
		alertentity flag6spawns

		globalaccum 0 abort_if_greater_than 5 // atleast flag number 6 already taken, abort
		globalaccum 0 set 6
		wait 500
		setautospawn "Flag 6" 0
		setautospawn "Flag 6" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2F^wlag ^26 ^wcaptured^2!"
		alertentity flag6spawns

		globalaccum 0 abort_if_greater_than 5 // atleast flag number 6 already taken, abort
		globalaccum 0 set 6
		wait 500
		setautospawn "Flag 6" 0
		setautospawn "Flag 6" 1
	}
}

// FLAG 7
//
flag7
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 7!"
		alertentity flag7spawns

		globalaccum 0 abort_if_greater_than 6 // atleast flag number 7 already taken, abort
		globalaccum 0 set 7
		wait 500
		setautospawn "Flag 7" 0
		setautospawn "Flag 7" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2F^wlag ^27 ^wcaptured^2!"
		alertentity flag7spawns

		globalaccum 0 abort_if_greater_than 6 // atleast flag number 7 already taken, abort
		globalaccum 0 set 7
		wait 500
		setautospawn "Flag 7" 0
		setautospawn "Flag 7" 1
	}
}

// FLAG 8
//
flag8
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 8!"
		alertentity flag8spawns

		globalaccum 0 abort_if_greater_than 7 // atleast flag number 8 already taken, abort
		globalaccum 0 set 8
		wait 500
		setautospawn "Flag 8" 0
		setautospawn "Flag 8" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2F^wlag ^28 ^wcaptured^2!"
		alertentity flag8spawns

		globalaccum 0 abort_if_greater_than 7 // atleast flag number 8 already taken, abort
		globalaccum 0 set 8
		wait 500
		setautospawn "Flag 8" 0
		setautospawn "Flag 8" 1
	}
}

// FLAG 9
//
flag9
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 9!"
		alertentity flag9spawns

		globalaccum 0 abort_if_greater_than 8 // atleast flag number 9 already taken, abort
		globalaccum 0 set 9
		wait 500
		setautospawn "Flag 9" 0
		setautospawn "Flag 9" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2F^wlag ^29 ^wcaptured^2!"
		alertentity flag9spawns

		globalaccum 0 abort_if_greater_than 8 // atleast flag number 9 already taken, abort
		globalaccum 0 set 9
		wait 500
		setautospawn "Flag 9" 0
		setautospawn "Flag 9" 1
	}
}

// FLAG 10
//
flag10
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 10!"
		alertentity flag10spawns

		globalaccum 0 abort_if_greater_than 9 // atleast flag number 10 already taken, abort
		globalaccum 0 set 10
		wait 500
		setautospawn "Flag 10" 0
		setautospawn "Flag 10" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2F^wlag ^210 ^wcaptured^2!"
		alertentity flag10spawns

		globalaccum 0 abort_if_greater_than 9 // atleast flag number 10 already taken, abort
		globalaccum 0 set 10
		wait 500
		setautospawn "Flag 10" 0
		setautospawn "Flag 10" 1
	}
}

// FLAG 11
//
flag11
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 11!"
		alertentity flag11spawns

		globalaccum 0 abort_if_greater_than 10 // atleast flag number 11 already taken, abort
		globalaccum 0 set 11
		wait 500
		setautospawn "Flag 11" 0
		setautospawn "Flag 11" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"^2L^wast ^2F^wlag ^wcaptured^2!"
		alertentity flag11spawns

		globalaccum 0 abort_if_greater_than 10 // atleast flag number 11 already taken, abort
		globalaccum 0 set 11
		wait 500
		setautospawn "Flag 11" 0
		setautospawn "Flag 11" 1
	}
}

// END
//
flag12
{

trigger allied_capture
	{
	wm_teamvoiceannounce 1 "allies_hq_objective_captured"
	wm_announce "^2C^wongratulations^2! ^2Y^wou completed ^2a^wll ^2a^wllied ^2j^wumps^2!"
	wait 2000
	wm_setwinner 1
	wm_endround
	}

trigger axis_capture
	{
	wm_announce "...lol yo, you just clipped. not cool fool..."
	wm_setwinner 0
	}
}
		

