gun1_spt	
{
	trigger gun1fire		
	{
		trigger gun1 gun1firing	
	}
}
gun1
{
	trigger gun1firing		
	{
		gotomarker gun1_b 200 wait		
		gotomarker gun1_a 50 wait
		
	}
}
wall	
{
	trigger walla		
	{
		wm_teamvoiceannounce 0 "wall_destroyed"
		wm_announce "We have breached the Old City wall"
	}
}
waterpump1
{
	spawn
	{
		wait 50
		trigger self setup
		wait 30000
		wm_announce "They destoryed gun control!"
		wm_teamvoiceannounce 0 "controls_destroyed"
		wm_teamvoiceannounce 0 "controls_construct"
	}

	trigger setup
	{
		setstate waterpump1_materials default
		setstate waterpump1_materials_clip default
		setstate waterpump1_flag default

		setstate waterpump1_base default
		setstate waterpump1_wheel invisible
		setstate waterpump1_clip default

		disablespeaker waterpump1_sound
	}

	built final
	{
		setstate waterpump1_materials invisible
		setstate waterpump1_materials_clip invisible
		setstate waterpump1_flag invisible

		setstate waterpump1_wheel default
		setstate waterpump1_clip invisible

		enablespeaker waterpump1_sound

		trigger water up
		wm_announce "We have built the Water Pump!"
		wm_teamvoiceannounce 0 "pump_rep"
		wm_teamvoiceannounce 0 "cave_drain"
	}
}

waterpump1_wheel
{
	spawn
	{
		startanimation 0 40 20 nolerp
	}
}

water
{
	trigger up
	{
		gotomarker water_up 5 wait
	}
}
control
{
	spawn
	{
		wait 50
		trigger self setup
	}

	trigger setup
	{	
		setstate control_materials default
		setstate gun1b invisible
		setstate control_flag default
		setstate control_clip default
	}

	built final
	{	
		setstate control_materials invisible
		setstate gun1b default
		setstate control_flag invisible
		setstate control_clip invisible
		wm_announce "Axis have built the control!"
		wm_teamvoiceannounce 0 "railgun_fire"
	}

	death
	{
		trigger self setup
		wm_announce "Cheater have damaged the control!"
	}

	decayed final
	{
		trigger self setup
	}
}
end
{
	trigger allied_capture
	{
		wait 1000
		wm_announce "Cheater captrue the flag!! o_O"
		wait 5000
		wm_setwinner 1
		wm_endround
	}

	trigger axis_capture
	{
		wait 1000
		wm_announce "You did all trickjump ! Good job ! =D"
		wait 5000
		wm_setwinner 0
		wm_endround
	}
}