game_manager
{
	spawn
	{
		// Game rules
		wm_axis_respawntime	5
		wm_allied_respawntime	5
		wm_set_round_timelimit	10

		wait 2000
		wm_announce "^1#^7gTh ^1FRAGMAP"
		wait 1000
		wm_announce "^7by ^1dIaB0los"
		wait 1000
		wm_announce "visit www.gth-clan.de"

		// Stopwatch mode defending team (0=Axis, 1=Allies)
		//wm_set_defending_team	0

		// 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 0

                wait 200
 
        // *----------------------------------- vo ------------------------------------------*
	wm_addteamvoiceannounce 0 "axis_need_engi"
        wm_addteamvoiceannounce 1 "allies_need_engi"


	wm_teamvoiceannounce 0 "axis_need_engi"
        wm_teamvoiceannounce 1 "allies_need_engi" 
       // *---------------------------------------------------------------------------------*

	}
}

glotz   //Axis Side
{
    spawn           
    {
        wait 200
        trigger self setup

        constructible_class 2
 
    }

    trigger setup
    {
    setstate glotz invisible

    setstate Baumaterial default
    }


    //Baustart
    buildstart final 
    { 
        //setstate objekt underconstruction legt den visuellen Zustand des Entitys fest
        //underconstruction ist der Zustand des Objekts im Aufbau, also halbdurchsichtig
        //default = komplett sichtbar
        //invisible = unsichtbar

        setstate glotz underconstruction  
        setstate Baumaterial default
        wm_announce "^1Axis build the Wooden Barrier"
    }

    //Bau ist abgeschlossen
    built final 
    {
        setstate glotz default
        setstate Baumaterial invisible
        wm_announce "^1Axis have build the Wooden Barrier"

        // *----------------------------------- vo ------------------------------------------*
	wm_addteamvoiceannounce 0 "axis_build_def"
        wm_teamvoiceannounce 0 "axis_build_def"
	wm_removeteamvoiceannounce 0 "axis_build_def"

	wm_addteamvoiceannounce 1 "axis_build_def"
        wm_teamvoiceannounce 1 "axis_build_def"
	wm_removeteamvoiceannounce 1 "axis_build_def"
	// *----------------------------------- vo ------------------------------------------*
    }



       

    //Bau wird begonnen, aber nicht abgeschlossen
    decayed final 
    {
        setstate glotz invisible
        setstate Baumaterial default
        wm_announce "^1Construction is discontinued"

        // *----------------------------------- vo ------------------------------------------*
	wm_addteamvoiceannounce 0 "axis_def_failt"
        wm_teamvoiceannounce 0 "axis_def_failt"
	wm_removeteamvoiceannounce 0 "axis_def_failt"
	// *----------------------------------- vo ------------------------------------------*   
    }



    //Bau wird zerstoert
    death 
    {

        setstate glotz invisible
        setstate Baumaterial default
        wm_announce "^1Axis Wooden Barrier destroid"

        // *----------------------------------- vo ------------------------------------------*
	wm_addteamvoiceannounce 1 "axis_def_des"
        wm_teamvoiceannounce 1 "axis_def_des"
	wm_removeteamvoiceannounce 1 "axis_def_des"

	wm_addteamvoiceannounce 0 "axis_def_des"
        wm_teamvoiceannounce 0 "axis_def_des"
	wm_removeteamvoiceannounce 0 "axis_def_des"
	// *----------------------------------- vo ------------------------------------------*    
    }
}

//==============================================================================
//==============================================================================

glotz1  //Allies Side
{
    spawn           
    {
        wait 200
        trigger self setup

        constructible_class 2
 
    }

    trigger setup
    {
    setstate glotz1 invisible

    setstate Baumaterial1 default
    }


    //Baustart
    buildstart final 
    {

        //setstate objekt underconstruction legt den visuellen Zustand des Entitys fest
        //underconstruction ist der Zustand des Objekts im Aufbau, also halbdurchsichtig
        //default = komplett sichtbar
        //invisible = unsichtbar

        setstate glotz1 underconstruction  
        setstate Baumaterial1 default
        wm_announce "^4Allies build the Wooden Barrier"
    }

    //Bau ist abgeschlossen
    built final 
    {

        setstate glotz1 default
        setstate Baumaterial1 invisible
        wm_announce "^4Allies have build the Wooden Barrier"

     	// *----------------------------------- vo ------------------------------------------*
	wm_addteamvoiceannounce 1 "allies_build_def"
        wm_teamvoiceannounce 1 "allies_build_def"
	wm_removeteamvoiceannounce 1 "allies_build_def"

	wm_addteamvoiceannounce 0 "allies_build_def"
        wm_teamvoiceannounce 0 "allies_build_def"
	wm_removeteamvoiceannounce 0 "allies_build_def"
	// *----------------------------------- vo ------------------------------------------*
   
       
    }

    //Bau wird begonnen, aber nicht abgeschlossen
    decayed final 
    {

        setstate glotz1 invisible
        setstate Baumaterial1 default
        wm_announce "^4Construction is discontinued"

	// *----------------------------------- vo ------------------------------------------*
	wm_addteamvoiceannounce 1 "allies_def_failt"
        wm_teamvoiceannounce 1 "allies_def_failt"
	wm_removeteamvoiceannounce 1 "allies_def_failt"
	// *----------------------------------- vo ------------------------------------------*
        
    }

    //Bau wird zerstoert
    death 
    {

        setstate glotz1 invisible
        setstate Baumaterial1 default
        wm_announce "^4Allies Wooden Barrier destroid"

        // *----------------------------------- vo ------------------------------------------*
	wm_addteamvoiceannounce 0 "allies_def_des"
        wm_teamvoiceannounce 0 "allies_def_des"
	wm_removeteamvoiceannounce 0 "allies_def_des"

	wm_addteamvoiceannounce 1 "allies_def_des"
        wm_teamvoiceannounce 1 "allies_def_des"
	wm_removeteamvoiceannounce 1 "allies_def_des"
	// *----------------------------------- vo ------------------------------------------*
        
    }
}