
//Map: 		Forward Base (Final,Fixed and no loud crickets)
//Last update	09.05.06
//Map type:	TRJ
//Map by B0n3g1b
//Build time:	20 days

game_manager
{
	spawn
	{
		wm_axis_respawntime	1
		wm_allied_respawntime	1
		wm_number_of_objectives 1
		wm_set_round_timelimit	30
		wm_setwinner -1

		wait 500

		setautospawn	"Axis Spawn" 0
		setautospawn	"Allied Spawn"	1

		wait 2000

		setchargetimefactor 0 soldier 0.1
		setchargetimefactor 0 lieutenant 0.1
		setchargetimefactor 0 medic 0.1
		setchargetimefactor 0 engineer 0.1
		setchargetimefactor 0 covertops 0.1
		setchargetimefactor 1 soldier 0.1
		setchargetimefactor 1 lieutenant 0.1
		setchargetimefactor 1 medic 0.1
		setchargetimefactor 1 engineer 0.1
		setchargetimefactor 1 covertops 0.1
	}
}



//
//   <--!  Axis  -->
//



ax_tower_flag
{
	spawn
	{
		accum 0 set 2
		accum 2 set 2
	}

	trigger axis_capture
	{
		accum 0 abort_if_equal 0
		accum 0 set 0
		accum 2 set 0
		wm_announce	"Axis capture the Tower Spawn!"
		wm_objective_status 1 0 1
		alertentity ax_tower_spawner
		setautospawn	"Axis Tower" 0
		trigger self kill
	}

	trigger allied_capture
	{
	}

	trigger kill
	{
		wait 500
		remove
	}
}

ax_flag_2
{
	spawn
	{
		accum 0 set 2
		accum 2 set 2
	}

	trigger axis_capture
	{
		accum 0 abort_if_equal 0
		accum 0 set 0
		accum 2 set 0
		wm_announce	"Axis capture the Spawn 2!"
		wm_objective_status 2 0 1
		alertentity ax_spawner_2	
		setautospawn	"Axis Spawn 2" 0
		trigger self kill
	}

	trigger allied_capture
	{
	}

	trigger kill
	{
		wait 500
		remove
	}
}

ax_tower_flag_3
{
	spawn
	{
		accum 0 set 2
		accum 2 set 2
	}

	trigger axis_capture
	{
		accum 0 abort_if_equal 0
		accum 0 set 0
		accum 2 set 0
		wm_announce	"Axis capture the Tower Spawn 3!"
		alertentity ax_tower_spawner_3
		setautospawn	"Axis Tower 3" 0	
		wm_objective_status 3 0 1
		trigger self kill
	}

	trigger allied_capture
	{
	}

	trigger kill
	{
		wait 500
		remove
	}
}

ax_flag_4
{
	spawn
	{
		accum 0 set 2
		accum 2 set 2
	}

	trigger axis_capture
	{
		accum 0 abort_if_equal 0
		accum 0 set 0
		accum 2 set 0
		wm_announce	"Axis capture the Spawn 4!"

		wm_objective_status 4 0 1

		alertentity ax_spawner_4
		
		setautospawn	"Axis Spawn 4" 0
		trigger self kill
	}

	trigger allied_capture
	{
	}

	trigger kill
	{
		wait 500
		remove
	}
}

ax_end_flag
{
	spawn
	{
		accum 0 set 2
		accum 2 set 2
	}

	trigger axis_capture
	{
		accum 0 abort_if_equal 0
		accum 0 set 0
		accum 2 set 0
		wm_announce	"Axis capture the Finish Flag!"

		wm_objective_status 5 0 1

		    wait 500
			wm_setwinner 0
			wm_endround

	}

	trigger allied_capture
	{
	}
}