local Map = game.GetMap():lower() or ""
if Map:find("gm_dnipro") then
    Metrostroi.PlatformMap = "gm_dnipro"
    Metrostroi.CurrentMap = "gm_dnipro"
else
    return
end
Metrostroi.AddPassSchemeTex("717_new","",{
    "models/metrostroi_schemes/dnipro",
})
Metrostroi.AddPassSchemeTex("720", "",{
	"models/metrostroi_schemes/dnipro_720",
	"models/metrostroi_schemes/dnipro_720r",
})
Metrostroi.AddPassSchemeTex("722", "",{
	"models/metrostroi_schemes/dnipro_722",
	"models/metrostroi_schemes/dnipro_722r",
})
Metrostroi.AddPassSchemeTex("760","",{
    "models/metrostroi_schemes/dnipro_760",
})


Metrostroi.AddLastStationTex("717",101,"metrostroi_skins/81-717_schemes/vokzalna_table")
Metrostroi.AddLastStationTex("717",106,"metrostroi_skins/81-717_schemes/pokrovska_table")

local AnnouncerRecords = {
	name = "UPO Dnipro",
    tone = {"subway_announcers/sarmat_upo/tone.mp3", 0.8},

    click_end = {"subway_announcers/rri/boiko/spec/click_end.mp3",0.281451},
    click_start = {"subway_announcers/rri/boiko/spec/click_start.mp3",0.438118},

    click1 = {"subway_announcers/asnp/boiko_new/click1.mp3",0.5},
    click2 = {"subway_announcers/asnp/boiko_new/click2.mp3",0.3},
    click3 = {"subway_announcers/asnp/boiko_new/click3.mp3",0.3},
	
	announcer_ready = {"subway_announcers/dnipro/ready.mp3",2.088000},
    last_m = {"subway_announcers/asnp/boiko_new/spec_attention_last.mp3",4.425625},
    things_m = {"subway_announcers/asnp/boiko_new/spec_attention_things.mp3",4.559146},
    train_stop_m = {"subway_announcers/asnp/boiko_new/spec_attention_train_stop.mp3",6.501979},
    train_depeat_m = {"subway_announcers/asnp/boiko_new/spec_attention_train_depeat.mp3",4.633417},

    arr_metalurgiv1 = {"subway_announcers/dnipro/arr_metalurhiv1.mp3",13.128000},
	arr_metalurgiv2 = {"subway_announcers/dnipro/arr_metalurhiv2.mp3",8.640000},
    arr_metrobud1 = {"subway_announcers/dnipro/arr_metrobud1.mp3",13.272000},
	arr_metrobud2 = {"subway_announcers/dnipro/arr_metrobud2.mp3",13.272000},
    arr_pokrovska = {"subway_announcers/dnipro/arr_pokrovska2.mp3",19.128000},
    arr_svobody1 = {"subway_announcers/dnipro/arr_svobody1.mp3",9.720000},
	arr_svobody2 = {"subway_announcers/dnipro/arr_svobody2.mp3",14.184000},
    arr_vokzalna = {"subway_announcers/dnipro/arr_vokzalna1.mp3",27.768000},
    arr_zavodska1 = {"subway_announcers/dnipro/arr_zavodska1.mp3",14.064000},
	arr_zavodska2 = {"subway_announcers/dnipro/arr_zavodska2.mp3",14.064000},

    next_metalurgiv1 = {"subway_announcers/dnipro/next_metalurhiv1.mp3",17.880000},
	next_metalurgiv2 = {"subway_announcers/dnipro/next_metalurhiv2.mp3",20.111979},
    next_metrobud1 = {"subway_announcers/dnipro/next_metrobud1.mp3",20.736000},
	next_metrobud2 = {"subway_announcers/dnipro/next_metrobud2.mp3",18.048000},
    next_pokrovska = {"subway_announcers/dnipro/next_pokrovska2.mp3",14.304000},
    next_svobody1 = {"subway_announcers/dnipro/next_svobody1.mp3",18.456000},
	next_svobody2 = {"subway_announcers/dnipro/next_svobody2.mp3",21.144000},
    next_zavodska1 = {"subway_announcers/dnipro/next_zavodska1.mp3",20.064000},
	next_zavodska2 = {"subway_announcers/dnipro/next_zavodska2.mp3",17.832000},
    next_vokzalna = {"subway_announcers/dnipro/next_vokzalna1.mp3",14.304000},
}

local AnnouncerData = {
    { --МАРШРУТ
        LED = {5,5,5,5,5,5},
        Name = "Днiпро",
        spec_last = {"last_m",0.5,"things_m"},
        spec_wait = {{"train_stop_m"},{"train_depeat_m"}},
        Loop = false,
        BlockDoors = true,
        {
            101,"Вокзальна",
            arrlast = {nil,"arr_vokzalna"},
            dep = {"next_metrobud2",nil},
            noises = {1,3},noiserandom = 0.08,
        },
        {
            102,"Метробудiвникiв",
            arr = {"arr_metrobud1","arr_metrobud2"},
            dep = {"next_metalurgiv2","next_vokzalna"},
            noises = {2,3},noiserandom = 0.08,
        },
        {
            103,"Металургiв",
            arr = {"arr_metalurgiv1","arr_metalurgiv2"},
            dep = {"next_zavodska2","next_metrobud1"},
            noises = {2,1},noiserandom = 0.08,
        },
        {
            104,"Заводська",
            arr = {"arr_zavodska1","arr_zavodska2"},
            dep = {"next_svobody2","next_metalurgiv1"},
            noises = {3,1},noiserandom = 0.08,
        },
        {
            105,"Пр. Свободи",
            arr = {"arr_svobody1","arr_svobody2"},
            dep = {"next_pokrovska","next_zavodska1"},
            noises = {2,3},noiserandom = 0.08,
        },
        {
            106,"Покровська",
            arrlast = {"arr_pokrovska",nil},
            dep = {nil,"next_svobody1"},
            noises = {3,1},noiserandom = 0.08,
        },
    },
}

Metrostroi.AddANSPAnnouncer("Default",AnnouncerRecords, AnnouncerData)
Metrostroi.SetRRIAnnouncer(AnnouncerRecords, AnnouncerData)
Metrostroi.AddSarmatUPOAnnouncer("Default", AnnouncerRecords, AnnouncerData)
Metrostroi.SetUPOAnnouncer(AnnouncerRecords, {AnnouncerData})

Metrostroi.StationConfigurations = {
    [101] =
    {
        names = {"вокзальная","Vokzyalnaya"},
        positions = {
            {Vector(-6490, -15540, -5994),Angle(0,0,0)},
        }
    },
    [102] =
    {
        names = {"метростроителей","Metrostroiteley"},
        positions = {
            {Vector(3180, 1430, -5463),Angle(0,180,0)},
        }
    },
    [103] =
    {
        names = {"металлургов","Metallurgov"},
        positions = {
            {Vector(-14820, 1060, -4820),Angle(0,90,0)},
        }
    },
    [104] =
    {
        names = {"заводская","Zavodskaya"},
        positions = {
            {Vector(-13187,-6492, -4056),Angle(0,90,0)},
        }
    },
    [105] =
    {
        names = {"проспект свободы","Prospekt Svobody"},
        positions = {
            {Vector(7926, 13256, -2742),Angle(0,0,0)},
        }
    },
    [106] =
    {
        names = {"покровская","Pokrovskaya"},
        positions = {
            {Vector(6917, 13550, -1877),Angle(0,180,0)},
        }
    },

	tupik1 =
	{
		names = {"оборот за станцией Вокзальная","tupikVokzalnaya","тупик вокзальная"},
		positions = {
            {Vector(4847, -15747, -5980),Angle(0,180,0)},
        }
	},

	tupik2 =
	{
		names = {"оборот за станцией Покровская","tupikPokrovskaya","тупик покровская"},
		positions = {
            {Vector(-5480, 13642, -1874),Angle(0,0,0)},
        }
	},

    depot = 
	{
        names = {"депо", "depo"},
        positions = {
            {Vector(5220, 313, -1885),Angle(0,180,0)},
        }
    },
}