game_manager
{
	spawn
	{
		wm_axis_respawntime	20
		wm_allied_respawntime	20
		wm_set_round_timelimit	30
		wm_setwinner 1
		accum 1 set 0
		accum 2 set 0
		accum 3 set 0
		accum 4 set 0
	}
	trigger ob1 //cdbas
	{
		accum 1 set 1
		wait 50
		trigger game_manager test
		wm_announce "Les axes on le cd 1"
		setstate cdbas invisible
	}
	trigger ob2  //cdhaut
	{
		accum 2 set 1
		wait 50
		trigger game_manager test
		wm_announce "Les axes on le cd 2"
		setstate cdhaut invisible
	}
	trigger ob3 //cdminus
	{
		accum 3 set 1
		wait 50
		trigger game_manager test
		wm_announce "Les axes on le cd 3"
		setstate cdminus invisible
	}
	trigger ob4 //cdcortex
	{
		accum 4 set 1
		wait 50
		trigger game_manager test
		wm_announce "Les axes on le cd 4"
		setstate cdcortex invisible
	}
	trigger test
	{
		accum 1 abort_if_equal 0
		accum 2 abort_if_equal 0
		accum 3 abort_if_equal 0
		accum 4 abort_if_equal 0
	
		wm_announce "Les axe on ramener les cd"
		wm_setwinner 0
		wait 1500
		wm_endround
	}
}
cd1
{
	trigger captured
	{
		trigger pccd move
		wait 500
		trigger game_manager ob1
		wm_announce "ob1"
		remapshader textures/cortex/cdbao textures/cortex/cdban
		remapshaderflush
	}
}
cd2
{
	trigger captured
	{
		trigger pccd move
		wait 500
		trigger game_manager ob2
		wm_announce "ob2"
		remapshader textures/cortex/cdtvo textures/cortex/cdtvn
		remapshaderflush
	}
}
cd3
{
	trigger captured
	{
		trigger pccd move
		wait 500
		trigger game_manager ob3
		wm_announce "ob3"
		remapshader textures/cortex/cdminuso textures/cortex/cdminusn
		remapshaderflush
	}
}
cd4
{
	trigger captured
	{
		trigger pccd move
		wait 500
		trigger game_manager ob4
		wm_announce "ob4"
		remapshader textures/cortex/cdcortexo textures/cortex/cdcortexn
		remapshaderflush
	}
}
pccd
{
	trigger move
	{
		gotomarker pc2 150
		wait 200
		trigger pc move
		gotomarker pc3 150
		wait 1000
		gotomarker pc4 150
		wait 200
		gotomarker pc1 150
		wait 1000
	}
}
pc
{
	trigger move
	{
		gotomarker pc3 150
		wait 1200
		gotomarker pc2 150
	}
}
	
move_platform		
{
	// This is the target name of your target_script_trigger 
	trigger move_to_destination		
	{
		// Calls move_dest trigger within platform function block
		trigger platform move_dest	
	}

}
platform
{
	spawn
	{
	accum 2 set 1
	}

	trigger move_dest	
	{
		accum 2 abort_if_equal 2
		accum 2 set 2
		playsound sound/vehicles/truck/truck_revup.wav volume 256
		gotomarker point_00 250
		wait 897
		playsound sound/vehicles/truck/truck_move.wav looping volume 256
		wait 1600
		faceangles 0 0 0 1500
		gotomarker point_01 500	
		wait 4161
		faceangles 0 90 0 1000	
		gotomarker point_02 500	
		wait 1149
		faceangles 0 180 0 1000
		gotomarker point_03 500
		wait 4161
		faceangles 0 270 0 2000
		stopsound
		playsound sound/vehicles/truck/truck_stop.wav volume 256
		accum 2 set 1
	}
}
telepherique
{
	//trigger start_telepherique
	spawn
	{
		wm_setwinner 0
		wait 100
		trigger telepheriquemodel tele
		wait 2900
		trigger telepheriquemodel1 tele
		wait 2900
		trigger telepheriquemodel2 tele
		wait 2900
		trigger telepheriquemodel3 tele
		wait 2900
		trigger telepheriquemodel4 tele
		wait 2900
		trigger telepheriquemodel5 tele
		wait 2900
		trigger telepheriquemodel6 tele
		wait 20
		trigger disc disctourne
		wait 20
		trigger as start
	}
}
telepheriquemodel
{
	spawn
	{
		gotomarker teleph_0 1111256
	}
	trigger tele
	{

		gotomarker teleph_0 256
		wait 400
		faceangles 0 -90 0 1400
		faceangles 0 -180 0 1400
		gotomarker teleph_1 256
		wait 400
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_3 512
		wait 1090
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_7 512
		wait 1100
		gotomarker teleph_8 256
		wait 400
		faceangles 0 -270 0 1400
		faceangles 0 -360 0 1400
		gotomarker teleph_7 256
		wait 400
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
		wait 1090
		trigger telepheriquemodel tele
	}
}
telepheriquemodel1
{
	spawn
	{
		gotomarker teleph_2 11512
		wait 1090
		gotomarker teleph_1 512
	}
	
	trigger tele
	{

		gotomarker teleph_0 256
		wait 400
		faceangles 0 -90 0 1400
		faceangles 0 -180 0 1400
		gotomarker teleph_1 256
		wait 400
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_3 512
		wait 1090
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_7 512
		wait 1100
		gotomarker teleph_8 256
		wait 400
		faceangles 0 -270 0 1400
		faceangles 0 -360 0 1400
		gotomarker teleph_7 256
		wait 400
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
		wait 1090
		trigger telepheriquemodel1 tele
	}
}
telepheriquemodel2
{
	spawn
	{
		gotomarker teleph_3 111512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
	}
	trigger tele
	{

		gotomarker teleph_0 256
		wait 400
		faceangles 0 -90 0 1400
		faceangles 0 -180 0 1400
		gotomarker teleph_1 256
		wait 400
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_3 512
		wait 1090
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_7 512
		wait 1100
		gotomarker teleph_8 256
		wait 400
		faceangles 0 -270 0 1400
		faceangles 0 -360 0 1400
		gotomarker teleph_7 256
		wait 400
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
		wait 1090
		trigger telepheriquemodel2 tele
	}
}
telepheriquemodel3
{
	spawn
	{
		gotomarker teleph_5 111512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
	}
	trigger tele
	{

		gotomarker teleph_0 256
		wait 400
		faceangles 0 -90 0 1400
		faceangles 0 -180 0 1400
		gotomarker teleph_1 256
		wait 400
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_3 512
		wait 1090
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_7 512
		wait 1100
		gotomarker teleph_8 256
		wait 400
		faceangles 0 -270 0 1400
		faceangles 0 -360 0 1400
		gotomarker teleph_7 256
		wait 400
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
		wait 1090
		trigger telepheriquemodel3 tele
	}
}
telepheriquemodel4
{
	spawn
	{
		gotomarker teleph_6 111512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
	}
	trigger tele
	{

		gotomarker teleph_0 256
		wait 400
		faceangles 0 -90 0 1400
		faceangles 0 -180 0 1400
		gotomarker teleph_1 256
		wait 400
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_3 512
		wait 1090
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_7 512
		wait 1100
		gotomarker teleph_8 256
		wait 400
		faceangles 0 -270 0 1400
		faceangles 0 -360 0 1400
		gotomarker teleph_7 256
		wait 400
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
		wait 1090
		trigger telepheriquemodel4 tele
	}
}
telepheriquemodel5
{
	spawn
	{
		faceangles 0 180 0 100
		gotomarker teleph_7 111512
		wait 1100
		gotomarker teleph_8 256
		wait 400
		faceangles 0 -270 0 1400
		faceangles 0 -360 0 1400
		gotomarker teleph_7 256
		wait 400
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
	}
	trigger tele
	{

		gotomarker teleph_0 256
		wait 400
		faceangles 0 -90 0 1400
		faceangles 0 -180 0 1400
		gotomarker teleph_1 256
		wait 400
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_3 512
		wait 1090
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_7 512
		wait 1100
		gotomarker teleph_8 256
		wait 400
		faceangles 0 -270 0 1400
		faceangles 0 -360 0 1400
		gotomarker teleph_7 256
		wait 400
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
		wait 1090
		trigger telepheriquemodel5 tele
	}
}
telepheriquemodel6
{
	spawn
	{
		faceangles 0 180 0 100
		gotomarker teleph_5 111512
		wait 1100
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_7 512
		wait 1100
		gotomarker teleph_8 256
		wait 400
		faceangles 0 -270 0 1400
		faceangles 0 -360 0 1400
		gotomarker teleph_7 256
		wait 400
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
	}
	trigger tele
	{

		gotomarker teleph_0 256
		wait 400
		faceangles 0 -90 0 1400
		faceangles 0 -180 0 1400
		gotomarker teleph_1 256
		wait 400
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_3 512
		wait 1090
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_7 512
		wait 1100
		gotomarker teleph_8 256
		wait 400
		faceangles 0 -270 0 1400
		faceangles 0 -360 0 1400
		gotomarker teleph_7 256
		wait 400
		gotomarker teleph_6 512
		wait 1100
		gotomarker teleph_5 512
		wait 1100
		gotomarker teleph_4 512
		wait 1100
		gotomarker teleph_3 512
		wait 1100
		gotomarker teleph_2 512
		wait 1090
		gotomarker teleph_1 512
		wait 1090
		trigger telepheriquemodel6 tele
	}
}

disc
{
	trigger disctourne
	{
		faceangles 0 -90 0 2000
		faceangles 0 -180 0 2000
		faceangles 0 -270 0 2000
		faceangles 0 0 0 2000
		trigger disc disctourne
	}
}
disc2
{
	spawn
	{
	faceangles 0 -30 0 1800000
	}
}
move_cdbas
{
	trigger move_ouvert_fermer
	{
		trigger cdbas movecdbas1
		trigger cdbas movecdbas2
	}
}
cdbas
{
	spawn
	{
		accum 1 set 2
	}
	trigger movecdbas1
	{
		accum 1 abort_if_equal 1
		wait 1000
		accum 1 set 1
		gotomarker cdbas2 128
	}
	trigger movecdbas2
	{
		accum 1 abort_if_equal 2
		wait 1000
		accum 1 set 2
		gotomarker cdbas1 128
	}
}
heur
{
	spawn
	{
		wait 40
		trigger sec4 start
		wait 40
		trigger sec3 start
		wait 40
		trigger sec1 start
		wait 40
		trigger sec2 start
		wait 40
		trigger min1 start
		wait 40
		trigger min2 start
		wait 40
		trigger min3 start
		wait 40
		trigger min4 start
		wait 40
		trigger heur1 start
		wait 40
		trigger heur2 start
		wait 40
		trigger heur3 start
		wait 40
		trigger heur4 start
		wait 40
		trigger mongolfier start
		wait 100
		trigger avion start
		wait 100
		trigger pendule start
		wait 100
	//	trigger pendule start2
		wait 100
		trigger bat1 start
		wait 100
		trigger bat2 start
		wait 100
		trigger bat3 start
	}
}
avion
{
	trigger start
	{
		playsound sound/cortex/avion.wav looping volume 256
		faceangles 30 30 90 60
		faceangles 0 60 180 60
		faceangles -30 30 -90 60
		faceangles 0 0 0 60
		trigger avion start
	}
}
pendule
{
	trigger start
	{
		faceangles 4 0 0 464
		faceangles 6 0 0 268
		faceangles 4 0 0 268
		faceangles -4 0 0 464
		faceangles -6 0 0 268
		faceangles -4 0 0 268
		trigger pendule start
	}
}
heur1
{
	trigger start
	{

		playsound sound/cortex/tictac.wav looping volume 5500
		faceangles -15 0 0 1
		faceangles 0 0 0 1800000
	}
}
min1
{
	trigger start
	{
		faceangles 180 0 0 1
		faceangles 270 0 0 900000
		faceangles 0 0 0 900000
	}
}
sec1
{
	trigger start
	{
		faceangles 90 0 0 14950
		faceangles 180 0 0 14950
		faceangles 270 0 0 14950
		faceangles 0 0 0 14950
		trigger sec1 start
	}
}
heur3
{
	trigger start
	{

		playsound sound/cortex/tictac.wav looping volume 5500
		faceangles -15 0 0 1
		faceangles 0 0 0 1800000
	}
}
min3
{
	trigger start
	{
		faceangles 180 0 0 1
		faceangles 270 0 0 900000
		faceangles 0 0 0 900000
	}
}
sec3
{
	trigger start
	{
		faceangles 90 0 0 14950
		faceangles 180 0 0 14950
		faceangles 270 0 0 14950
		faceangles 0 0 0 14950
		trigger sec3 start
	}
}
heur4
{
	trigger start
	{
		playsound sound/cortex/tictac.wav looping volume 5500
		faceangles -15 0 0 1
		faceangles 0 0 0 1800000
		playsound sound/misc/vote.wav volume 1024 //1
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //2
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //3
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //4
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //5
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //6
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //7
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //8
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //9
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //10
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //11
		wait 1500
		playsound sound/misc/vote.wav volume 1024 //12
	}
}
min4
{
	trigger start
	{
		faceangles 180 0 0 1
		faceangles 270 0 0 900000
		faceangles 0 0 0 900000
	}
}
sec4
{
	trigger start
	{
		faceangles 90 0 0 14950
		faceangles 180 0 0 14950
		faceangles 270 0 0 14950
		faceangles 0 0 0 14950
		trigger sec4 start
	}
}
heur2
{
	trigger start
	{
		playsound sound/cortex/tictac.wav looping volume 5500
		faceangles 0 0 15 1
		faceangles 0 0 0 180000
	}
}
min2
{
	trigger start
	{
		faceangles 0 0 180 1
		faceangles 0 0 -270 900000
		faceangles 0 0 0 900000
	}
}
sec2
{
	trigger start
	{
		faceangles 0 0 -90 14950
		faceangles 0 0 -180 14950
		faceangles 0 0 -270 14950
		faceangles 0 0 0 14950
		trigger sec2 start
	}
}
start_camion
{
	spawn
	{
		trigger start_camion aller
	}
	trigger aller
	{
		wait 8000
		trigger camion aller
		wait 80
		trigger camion2 aller
		wait 80
		trigger camion3 aller
		wait 80
		trigger camion4 aller
		wait 80
		trigger camionp1 aller
		wait 80
		trigger camionp2 aller
		wait 8000
		trigger camion retour
		wait 80
		trigger camion2 retour
		wait 80
		trigger camion3 retour
		wait 80
		trigger camion4 retour
		wait 80
		trigger camionp1 retour
		wait 80
		trigger camionp2 retour
		wait 80
		trigger start_camion aller
	}
}
camion
{
	trigger aller
	{
		playsound sound/vehicles/misc/radar_loop.wav looping volume 256
		gotomarker camion_5 300
		wait 4500
		stopsound
	}
	trigger retour
	{
		playsound sound/vehicles/misc/radar_loop.wav looping volume 256
		gotomarker camion_1 300
		wait 4500
		stopsound
	}
}
camion2
{
	spawn
	{
		gotomarker camion_1 50000
	}
	trigger aller
	{
		gotomarker camion_2 300
	}
	trigger retour
	{
		gotomarker camion_1 300
	}
}
camion3
{
	spawn
	{
		gotomarker camion_1 50000
	}
	trigger aller
	{
		gotomarker camion_3 300
	}
	trigger retour
	{
		gotomarker camion_1 300
	}
}
camion4
{
	spawn
	{
		gotomarker camion_1 50000
	}
	trigger aller
	{
		gotomarker camion_4 300
	}
	trigger retour
	{
		gotomarker camion_1 300
	}
}
camionp1
{
	trigger aller
	{
		gotomarker camionp_3 300
	}
	trigger retour
	{
		gotomarker camionp_1 300
	}
}
camionp2
{
	trigger aller
	{
		gotomarker camionp_3 300
	}
	trigger retour
	{
		gotomarker camionp_2 300
	}
}
mongolfier
{
	trigger start
	{
		playsound sound/vehicles/misc/radar_loop.wav looping volume 64
		faceangles 0 -90 0 13000
		faceangles 0 150 0 13000
		faceangles 0 30 0 13000
		trigger mongolfier start
	}
}
//--------------------------------------------------------------------------------------
//-Command Post-------------------------------------------------------------------------
//--------------------------------------------------------------------------------------

allied_compost_built
{
	spawn
	{
		wait 400
		trigger allied_compost_built setup

		constructible_class 2
	}

	trigger setup
	{
		setchargetimefactor 1 soldier 1
		setchargetimefactor 1 lieutenant 1
		setchargetimefactor 1 medic 1
		setchargetimefactor 1 engineer 1
		setchargetimefactor 1 covertops 1
		sethqstatus 1 0
	}

	buildstart final
	{
		setstate allied_compost_built_model underconstruction
		setstate neutral_compost_closed_clip invisible
		setstate neutral_compost_closed_model invisible
	}

	built final
	{
		setstate allied_compost_built_model default
		setstate neutral_compost_closed_clip invisible
		setstate neutral_compost_closed_model invisible

		trigger allied_compost_built_model enable_allied_features

		enablespeaker allies_compost_sound
	}

	decayed final
	{
		setstate allied_compost_built_model invisible
		setstate neutral_compost_closed_clip default
		setstate neutral_compost_closed_model default
	}

	death
	{
		setstate allied_compost_built_model invisible
		setstate neutral_compost_closed_clip default
		setstate neutral_compost_closed_model default

		trigger allied_compost_built_model disable_allied_features

		disablespeaker allies_compost_sound
	}
}

allied_compost_built_model
{
	spawn
	{
		wait 400
		setstate allied_compost_built_model invisible
	}

	trigger enable_allied_features
	{
		setchargetimefactor 1 soldier 0.75
		setchargetimefactor 1 lieutenant 0.75
		setchargetimefactor 1 medic 0.75
		setchargetimefactor 1 engineer 0.75
		setchargetimefactor 1 covertops 0.75
		sethqstatus 1 1
		wm_axis_respawntime	24
		wm_allied_respawntime	20

		wm_announce	"Allied Command Post constructed. Charge speed increased!"

		// *----------------------------------- vo ------------------------------------------*
		wm_teamvoiceannounce 0 "axis_hq_compost_constructed_allies"

		wm_teamvoiceannounce 1 "allies_hq_compost_constructed"

		wm_removeteamvoiceannounce 1 "allies_hq_compost_construct"
		// *---------------------------------------------------------------------------------*

		wm_objective_status 6 0 2
		wm_objective_status 6 1 1
	}

	trigger disable_allied_features
	{
		setchargetimefactor 1 soldier 1
		setchargetimefactor 1 lieutenant 1
		setchargetimefactor 1 medic 1
		setchargetimefactor 1 engineer 1
		setchargetimefactor 1 covertops 1
		sethqstatus 1 0

		wm_announce	"Axis team has destroyed the Allied Command Post!"

		// *----------------------------------- vo ------------------------------------------*
		wm_addteamvoiceannounce 0 "axis_hq_compost_construct"

		wm_addteamvoiceannounce 1 "allies_hq_compost_construct"

		wm_teamvoiceannounce 0 "axis_hq_compost_construct"

		wm_teamvoiceannounce 1 "allies_hq_compost_damaged"
		// *---------------------------------------------------------------------------------*

		wm_objective_status 6 0 0
		wm_objective_status 6 1 0
	}
}

axis_compost_built
{
	spawn
	{
		wait 400
		trigger axis_compost_built setup

		constructible_class 2
	}

	trigger setup
	{
		setchargetimefactor 0 soldier 1
		setchargetimefactor 0 lieutenant 1
		setchargetimefactor 0 medic 1
		setchargetimefactor 0 engineer 1
		setchargetimefactor 0 covertops 1
		sethqstatus 0 0
		wm_axis_respawntime	20
		wm_allied_respawntime	24
	}

	buildstart final
	{
		setstate axis_compost_built_model underconstruction
		setstate neutral_compost_closed_clip invisible
		setstate neutral_compost_closed_model invisible
	}

	built final
	{
		setstate axis_compost_built_model default
		setstate neutral_compost_closed_clip invisible
		setstate neutral_compost_closed_model invisible

		trigger axis_compost_built_model enable_axis_features

		enablespeaker axis_compost_sound
	}

	decayed final
	{
		setstate axis_compost_built_model invisible
		setstate neutral_compost_closed_clip default
		setstate neutral_compost_closed_model default
	}

	death
	{
		setstate axis_compost_built_model invisible
		setstate neutral_compost_closed_clip default
		setstate neutral_compost_closed_model default

		trigger axis_compost_built_model disable_axis_features

		disablespeaker axis_compost_sound
	}
}

axis_compost_built_model
{
	spawn
	{
		wait 400
		setstate axis_compost_built_model invisible
	}

	trigger enable_axis_features
	{
		setchargetimefactor 0 soldier 0.75
		setchargetimefactor 0 lieutenant 0.75
		setchargetimefactor 0 medic 0.75
		setchargetimefactor 0 engineer 0.75
		setchargetimefactor 0 covertops 0.75
		sethqstatus 0 1

		wm_announce	"Axis Command Post constructed. Charge speed increased!"

		// *----------------------------------- vo ------------------------------------------*
		wm_teamvoiceannounce 0 "axis_hq_compost_constructed"

		wm_teamvoiceannounce 1 "allies_hq_compost_constructed_axis"

		wm_removeteamvoiceannounce 0 "axis_hq_compost_construct"
		// *---------------------------------------------------------------------------------*

		wm_objective_status 7 0 1
		wm_objective_status 7 1 2
	}

	trigger disable_axis_features
	{
		setchargetimefactor 0 soldier 1
		setchargetimefactor 0 lieutenant 1
		setchargetimefactor 0 medic 1
		setchargetimefactor 0 engineer 1
		setchargetimefactor 0 covertops 1
		sethqstatus 0 0

		wm_announce	"Allied team has destroyed the Axis Command Post!"

		// *----------------------------------- vo ------------------------------------------*
		wm_addteamvoiceannounce 0 "axis_hq_compost_construct"

		wm_addteamvoiceannounce 1 "allies_hq_compost_construct"

		wm_teamvoiceannounce 0 "axis_hq_compost_damaged"

		wm_teamvoiceannounce 1 "allies_hq_compost_construct"
		// *---------------------------------------------------------------------------------*

		wm_objective_status 7 0 0
		wm_objective_status 7 1 0
	}
}

// ================================
// ======= REMOVE LMS STUFF =======
// ================================

// LMS Command Post
neutral_compost_toi_lms
{
	spawn
	{
		wait 50
		setstate neutral_compost_toi_lms invisible
	}
}

neutral_compost_clip_lms
{
	spawn
	{
		wait 400
		remove
	}
}

neutral_compost_closed_clip_lms
{
	spawn
	{
		wait 400
		remove
	}
}

neutral_compost_closed_model_lms
{
	spawn
	{
		wait 400
		remove
	}
}

allied_compost_built_lms
{
	spawn
	{
		wait 400
		remove
	}
}

allied_compost_built_model_lms
{
	spawn
	{
		wait 400
		remove
	}
}

axis_compost_built_lms
{
	spawn
	{
		wait 400
		remove
	}
}

axis_compost_built_model_lms
{
	spawn
	{
		wait 400
		remove
	}
}
roadbunker
{
	spawn
	{
		accum 0 set 2	// 0-Axis, 1-Allied
	}

	trigger axis_capture	// Flag has been claimed by an axis player
	{
		accum 0 abort_if_equal 0 // Do Axis already own the flag?

		accum 0 set 0 // Axis own the flag
		wm_announce	"Axis reclaim the Forward Bunker!"


		wm_objective_status 3 1 2
		wm_objective_status 3 0 1

		// spawns:
		// Abandoned Villa
		// Forward Bunker
		// Lower Warehouse
		setautospawn "Forward Bunker" 0

		alertentity roadbunker_wobj

		// *----------------------------------- vo ------------------------------------------*
		wm_addteamvoiceannounce 0 "radar_axis_bunker_stop"

		wm_addteamvoiceannounce 1 "radar_allies_bunker_capture"

		wm_teamvoiceannounce 0 "radar_axis_bunker_reclaimed"

		wm_teamvoiceannounce 1 "radar_allies_bunker_reclaimed"
		// *---------------------------------------------------------------------------------*
	}

	trigger allied_capture	// Flag has been claimed by an allied player
	{
		accum 0 abort_if_equal 1 // Do Allies already own flag?

		accum 0 set 1 // Allied own the flag
		wm_announce	"Allies capture the Forward Bunker!"

		wm_objective_status 3 1 1
		wm_objective_status 3 0 2

		// spawns:
		// Abandoned Villa
		// Forward Bunker
		// Lower Warehouse
		setautospawn "Forward Bunker" 1

		alertentity roadbunker_wobj

		// *----------------------------------- vo ------------------------------------------*
		wm_teamvoiceannounce 0 "radar_axis_bunker_captured"

		wm_teamvoiceannounce 1 "radar_allies_bunker_captured"

		wm_removeteamvoiceannounce 0 "radar_axis_bunker_stop"

		wm_removeteamvoiceannounce 1 "radar_allies_bunker_capture"
		// *---------------------------------------------------------------------------------*
	}
}
porte
{  
	spawn
	{  
		wait 200  
 
		constructible_class 3 // indique au moteur que c'est quelque chose de dynamitable  
	}  
 
	death  
	{  
 
		trigger porte1 ouver 
		wm_announce "La porte de Minus ŕ été ouverte"
	}  
}
porte1
{
	trigger ouver
	{
	faceangles 0 15 0 300
	faceangles 0 25 0 300
	faceangles 0 30 0 300
	}
}
grille1
{  
	spawn
	{  
		wait 200   
		constructible_class 3 // indique au moteur que c'est quelque chose de dynamitable  
	}
}
grille2
{  
	spawn
	{  
		wait 200  
		constructible_class 3 // indique au moteur que c'est quelque chose de dynamitable  
	}
}
grille3
{  
	spawn
	{  
		wait 200  
		constructible_class 3 // indique au moteur que c'est quelque chose de dynamitable  
	}
}
grille4
{  
	spawn
	{  
		wait 200  
		constructible_class 3 // indique au moteur que c'est quelque chose de dynamitable  
	}
}
as
{
	trigger start
	{
		gotomarker as_1 400
		wait 10000
		gotomarker as_2 400
		wait 10000
		trigger as start
	}
}
bat1
{
	trigger start
	{
		gotomarker bat1_1 10
		faceangles 1 20 1 15000
		faceangles 2 -30 -1 15000
		faceangles 1 10 -1 15000
		faceangles -0 10 0 15000
		faceangles -1 -0 1 15000
		faceangles -1 10 1 15000
		gotomarker bat1_2 10
		faceangles 1 10 -1 15000
		faceangles 1 -20 -0 15000
		faceangles -1 10 1 15000
		faceangles 0 30 1 15000
		faceangles -1 -10 -1 15000
		faceangles 1 20 0 15000
		trigger bat1 start
	}
}
bat2
{
	trigger start
	{
		gotomarker bat2_1 10
		faceangles 1 30 1 15000
		faceangles 2 10 -1 15000
		faceangles 1 20 -1 15000
		faceangles -0 30 0 15000
		faceangles -1 -20 1 15000
		faceangles -1 20 1 15000
		gotomarker bat2_2 10
		faceangles 1 30 -1 15000
		faceangles 1 20 -0 15000
		faceangles -1 20 1 15000
		faceangles 0 10 1 15000
		faceangles -1 -10 -1 15000
		faceangles 1 20 0 15000
		trigger bat2 start
	}
}
bat3
{
	trigger start
	{
		gotomarker bat3_1 10
		faceangles 1 10 1 15000
		faceangles 2 -10 -1 15000
		faceangles 1 20 -1 15000
		faceangles -0 30 0 15000
		faceangles -1 20 1 15000
		faceangles -1 10 1 15000
		gotomarker bat3_2 10
		faceangles 1 20 -1 15000
		faceangles 1 -10 -0 15000
		faceangles -1 20 1 15000
		faceangles 0 10 1 15000
		faceangles -1 -20 -1 15000
		faceangles 1 30 0 15000
		trigger bat3 start
	}
}
cordstart
{
	spawn
	{	
		accum 1 set 1
	}
	trigger startcord
	{
		accum 1 abort_if_equal 0
		wait 50
		accum 1 set 0
		wait 50
		trigger cord start
		trigger cord1 start
		wait 50
		trigger cord__1 start
		trigger cord1__1 start
		wait 50
		trigger cord__2 start
		trigger cord1__2 start
		wait 50
		trigger cord__3 start
		trigger cord1__3 start
		wait 50
		trigger cord__4 start
		trigger cord1__4 start
		wait 1400
		accum 1 set 1
	}
}
cord
{
	spawn
	{	
		accum 1 set 1
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2 700
		trigger cord__1 retour
		trigger cord1__1 retour
		wait 6000
		gotomarker cord_3 11700
		wait 100
		gotomarker cord_4 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1 11100
		wait 100
		accum 1 set 1
	}
}
cord1
{
	spawn
	{	
		accum 1 set 1
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2_1 700
		wait 6000
		gotomarker cord_3_1 11700
		wait 100
		gotomarker cord_4_1 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1_1 11100
		wait 100
		accum 1 set 1
	}
}
cord__1
{
	spawn
	{	
		accum 1 set 0
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2 700
		trigger cord__2 retour
		trigger cord1__2 retour
		wait 6000
		gotomarker cord_3 11700
		wait 100
		gotomarker cord_4 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1 11100
		wait 100
		accum 1 set 1
	}
}
cord1__1
{
	spawn
	{	
		accum 1 set 0
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2_1 700
		wait 6000
		gotomarker cord_3_1 11700
		wait 100
		gotomarker cord_4_1 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1_1 11100
		wait 100
		accum 1 set 1
	}
}
cord__2
{
	spawn
	{	
		accum 1 set 0
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2 700
		trigger cord__3 retour
		trigger cord1__3 retour
		wait 6000
		gotomarker cord_3 11700
		wait 100
		gotomarker cord_4 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1 11100
		wait 100
		accum 1 set 1
	}
}
cord1__2
{
	spawn
	{	
		accum 1 set 0
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2_1 700
		wait 6000
		gotomarker cord_3_1 11700
		wait 100
		gotomarker cord_4_1 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1_1 11100
		wait 100
		accum 1 set 1
	}
}
cord__3
{
	spawn
	{	
		accum 1 set 0
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2 700
		trigger cord__4 retour
		trigger cord1__4 retour
		wait 6000
		gotomarker cord_3 11700
		wait 100
		gotomarker cord_4 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1 11100
		wait 100
		accum 1 set 1
	}
}
cord1__3
{
	spawn
	{	
		accum 1 set 0
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2_1 700
		wait 6000
		gotomarker cord_3_1 11700
		wait 100
		gotomarker cord_4_1 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1_1 11100
		wait 100
		accum 1 set 1
	}
}
cord__4
{
	spawn
	{	
		accum 1 set 0
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2 700
		trigger cord retour
		trigger cord1 retour
		wait 6000
		gotomarker cord_3 11700
		wait 100
		gotomarker cord_4 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1 11100
		wait 100
		accum 1 set 1
	}
}
cord1__4
{
	spawn
	{	
		accum 1 set 0
	}
	trigger start
	{
		accum 1 abort_if_equal 0
		accum 1 set 0
		gotomarker cord_2_1 700
		wait 6000
		gotomarker cord_3_1 11700
		wait 100
		gotomarker cord_4_1 11700
	}
	trigger retour
	{
		wait 300
		gotomarker cord_1_1 11100
		wait 100
		accum 1 set 1
	}
}
move_elico
{
	trigger axis
	{
		trigger elico startax
	}
	trigger allied
	{
		trigger elico startal
	}
}
elico
{
	spawn
	{
		wait 100
		accum 1 set 0
		accum 2 set 1
		accum 3 set 0
		accum 4 set 1
		wait 50
		gotomarker elico_2 5500
	}
	trigger startax
	{
		accum 1 set 1
		accum 3 abort_if_equal 1
		trigger elico start
		accum 3 set 1
	}
	trigger startal
	{
		accum 1 set 2
		accum 4 abort_if_equal 1	
		accum 3 abort_if_equal 1
		accum 3 set 1
		trigger elico start
	}
	trigger start
	{
		accum 1 trigger_if_equal 1 elico elicoax
		accum 1 trigger_if_equal 2 elico elicoal
	}
	trigger elicoax
	{
		accum 2 trigger_if_equal 1 elico run1
		accum 2 trigger_if_equal 2 elico run2
		accum 2 trigger_if_equal 3 elico run3
		accum 2 trigger_if_equal 4 elico run4
		accum 2 trigger_if_equal 5 elico run5
		accum 2 trigger_if_equal 6 elico run6
		accum 2 trigger_if_equal 7 elico run7
		accum 2 trigger_if_equal 8 elico run8
		accum 2 trigger_if_equal 9 elico run9
		accum 2 trigger_if_equal 10 elico run10
		accum 2 trigger_if_equal 11 elico run11
		accum 2 trigger_if_equal 12 elico run12
		accum 2 trigger_if_equal 13 elico run13
		accum 2 trigger_if_equal 14 elico run14
		accum 2 trigger_if_equal 15 elico run15
		accum 2 trigger_if_equal 16 elico run16
		accum 2 trigger_if_equal 17 elico run17
		accum 2 trigger_if_equal 18 elico run18
		accum 2 trigger_if_equal 19 elico run19
		accum 2 trigger_if_equal 20 elico run20
	}
	trigger elicoal
	{
		accum 2 trigger_if_equal 1 elico run1a
		accum 2 trigger_if_equal 2 elico run1a
		accum 2 trigger_if_equal 3 elico run1a
		accum 2 trigger_if_equal 4 elico run1a
		accum 2 trigger_if_equal 5 elico run1a
		accum 2 trigger_if_equal 6 elico run1a
		accum 2 trigger_if_equal 7 elico run1a
		accum 2 trigger_if_equal 8 elico run8a
		accum 2 trigger_if_equal 9 elico run9a
		accum 2 trigger_if_equal 10 elico run10a
		accum 2 trigger_if_equal 11 elico run11a
		accum 2 trigger_if_equal 12 elico run12a
		accum 2 trigger_if_equal 13 elico run13a
		accum 2 trigger_if_equal 14 elico run14a
		accum 2 trigger_if_equal 15 elico run15a
	}
	trigger run1
	{
		gotomarker elico_2 350
		wait 300
		accum 2 set 2
		trigger elico start
	}
	trigger run2
	{
		gotomarker elico_2 350
		wait 300
		accum 2 set 3
		trigger elico start
	}
	trigger run3
	{
		gotomarker elico_3 350
		wait 650
		faceangles 0 -15 0 150
		accum 2 set 4
		trigger elico start
	}
	trigger run4
	{
		gotomarker elico_4 350
		wait 5020
		faceangles 0 45 0 500
		accum 2 set 5
		trigger elico start
	}
	trigger run5
	{
		gotomarker elico_5 350
		wait 2840
		faceangles 0 -2 0 400
		accum 2 set 6
		trigger elico start
	}
	trigger run6
	{
		gotomarker elico_6 350
		wait 2460
		faceangles 0 -90 0 400
		accum 2 set 7
		trigger elico start
	}
	trigger run7
	{
		gotomarker elico_7 350
		wait 840
		accum 2 set 8
		trigger elico start
	}
	trigger run8
	{
		gotomarker elico_8 350
		wait 440
		accum 2 set 9
		trigger elico start
		accum 4 set 0
	}
	trigger run9
	{
		gotomarker elico_9 350
		wait 400
		accum 2 set 10
		trigger elico start
	}
	trigger run10
	{
		gotomarker elico_6 350
		wait 1500
		faceangles 0 182 0 400
		accum 2 set 11
		trigger elico start
	}
	trigger run11
	{
		gotomarker elico_5 350
		wait 2460
		faceangles 0 225 0 400
		accum 2 set 12
		trigger elico start
	}
	trigger run12
	{
		gotomarker elico_4 350
		wait 2840
		faceangles 0 165 0 400
		accum 2 set 13
		trigger elico start
	}
	trigger run13
	{
		gotomarker elico_3 350
		wait 5020
		accum 2 set 14
		trigger elico start
	}
	trigger run14
	{
		gotomarker elico_2 350
		wait 650
		accum 2 set 15
		trigger elico start
	}
	trigger run15
	{
		gotomarker elico_2 350
		wait 400
		faceangles 0 0 0 1000
		accum 2 set 15
		accum 3 set 0
	}
	trigger run8a
	{
		accum 3 set 0
	}
	trigger run8a
	{
		gotomarker elico_9 350
		wait 1400
		accum 2 set 8
		accum 3 set 0
	}
	trigger run9a
	{
		gotomarker elico_6 350
		wait 2460
		faceangles 0 -90 0 400
		accum 2 set 8
		trigger elico start
	}
	trigger run10a
	{
		gotomarker elico_5 350
		wait 2840
		faceangles 0 -2 0 1000
		accum 2 set 9
		trigger elico start
	}
	trigger run11a
	{
		gotomarker elico_4 350
		wait 5020
		faceangles 0 45 0 1000
		accum 2 set 10
		trigger elico start
	}
	trigger run12a
	{
		gotomarker elico_3 350
		wait 650
		accum 2 set 11
		trigger elico start
	}
	trigger run13a
	{
		gotomarker elico_2 350
		wait 400
		faceangles 0 -15 0 1000
		accum 2 set 12
		trigger elico start
	}
	trigger run14a
	{
		gotomarker elico_2 350
		wait 400
		accum 2 set 13
		trigger elico start
	}
	trigger run15a
	{
		gotomarker elico_2 350
		wait 400
		accum 2 set 14
		trigger elico start
	}
}
