//Modele tylko dla scenariusza innofreight_1
node 850 0 innof_d1_1 model 873.941 0.206004 -27116.5 179.5 pkp/d1_przenosna.t3d none endmodel
node 850 0 innof_d1_2 model 489.351 0.18772 -35771.9 0 pkp/d1_przenosna.t3d none endmodel
node 450 0 editor_33962.165176 model 487.139 -0.00458304 -31390.1 28.5 edobre/robol.t3d none endmodel
node 450 0 editor_88015.961737 model 487.269 -0.00318543 -31389 152.5 edobre/robol.t3d none endmodel
node 450 0 editor_89539.002764 model 489.66 0.22459 -31418.1 128.75 edobre/robol.t3d none endmodel
node 450 0 editor_22668.859694 model 489.756 0.165553 -31054.9 29.5 edobre/robol.t3d none endmodel
node 450 0 editor_87044.743841 model 487.25 -0.00352017 -31049.8 63.25 edobre/robol.t3d none endmodel
node 450 0 editor_29828.317726 model 487.097 -0.00358598 -31297.7 72.5 edobre/robol.t3d none endmodel
node 450 0 editor_22722.652537 model 497.362 -0.00556008 -31300.9 230 edobre/robol.t3d none endmodel
node 450 0 editor_17818.627580 model 486.286 -0.00225512 -31348.5 284.5 posers/casual19_st.t3d none endmodel
node 405 0 editor_92195.595450 model 487.293 -0.00458352 -31297.4 9.25 posers/casual25_st.t3d none endmodel
node 450 0 editor_43634.796292 model 487.292 -0.00405518 -31392.4 0 pkp/wskaznik_zejscia_z_toru.t3d none endmodel
node 405 0 editor_61281.424589 model 487.295 -0.00212781 -31306.6 0 pkp/wskaznik_zejscia_z_toru.t3d none endmodel
node 450 0 editor_77449.934040 model 487.366 -0.00556247 -31216.6 0 pkp/wskaznik_zejscia_z_toru.t3d none endmodel
node 2000 0 editor_33033.741459 model 481.188 -0.00543563 -31218.1 270 kolejowe/barak-wsk.t3d none endmodel
node 2000 0 editor_76950.860810 model 482.802 -0.00433079 -31202 346.25 wiejskie/barak_sam.t3d none endmodel
node 2000 0 editor_92900.678677 model 484.217 -0.00530789 -31198.9 166 miejskie/toaleta_przenosna2.t3d none endmodel
node 2000 0 editor_11956.106688 model 484.904 -0.00327752 -31201.4 168 miejskie/toaleta_przenosna2.t3d none endmodel
node 450 0 editor_34081.045826 model 485.215 -0.00365374 -31198.6 162.75 edobre/robol.t3d none endmodel
node 405 0 editor_94308.706185 model 485.336 -0.00338958 -31197.9 7.5 posers/casual11_st.t3d none endmodel
node 450 0 editor_99217.152619 model 485.552 -0.00236152 -31200.3 67 posers/casual13_st.t3d none endmodel
node 2000 0 editor_94933.354108 model 496.506 -0.00428031 -30058.8 0 pkp/w7.t3d none endmodel
node 2000 0 editor_7548.522625 model 486.912 -0.00502513 -30058.2 0 pkp/w7.t3d none endmodel
node 850 0 editor_82222.647472 model 486.91 -0.00620721 -32314.4 178.75 pkp/w7.t3d none endmodel
node 850 0 editor_11424.524479 model 496.331 1.11632 -32313.9 182.5 pkp/w7.t3d none endmodel
node 2000 0 editor_1260.881569 model 484.22 -0.00499806 -31232 0 kolejowe/fundamentypalowe_30m_os_y.t3d none endmodel
node 2000 0 editor_87741.140832 model 485.442 -0.0102909 -31250.1 4.25 kolejowe/fundamentypalowe_30m_os_y.t3d none endmodel
node 2000 0 editor_46407.281339 model 486.941 -0.00602185 -31037 0 kolejowe/fundamentypalowe_w_ziemi.t3d none endmodel
node 2000 0 editor_93906.811600 model 487.054 -0.00665843 -31095.8 0 kolejowe/fundamentypalowe_w_ziemi.t3d none endmodel
node 2000 0 editor_70925.407268 model 487.057 -0.00580155 -31184.2 0 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_14706.049234 model 487.041 -0.00705611 -31259.7 0 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_84894.206278 model 487.028 -0.00520551 -31328.9 0 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_94629.360175 model 487.049 -0.00978171 -31403.9 0 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_36683.020051 model 487.064 -0.00995862 -31475.6 0 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_23549.918463 model 487.073 -0.0109056 -31545.4 0 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_74042.631587 model 487.147 -1.13058 -31613.9 0 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_68106.676794 model 487.155 -1.32052 -31683.5 3.25 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_69169.051496 model 487.125 -0.00455747 -30977.1 0 kolejowe/fundamentypalowe_w_ziemi.t3d none endmodel
node 2000 0 editor_70874.551048 model 486.958 -1.28387 -30901.4 0 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_43564.672382 model 487.006 -0.933102 -30835.5 0 kolejowe/fundamentpalowy_w_ziemi.t3d none endmodel
node 2000 0 editor_44878.424435 model 482.57 -0.00852322 -31239.4 0 kolejowe/fundamentypalowe_30m_os_y.t3d none endmodel

//Eventy Pogodowe
event weather2 updatevalues 0.0 __simulation.weather * 1.40 3200 endevent
event weather3 updatevalues 0.0 __simulation.weather * 1.02 3650 endevent
event weather4 updatevalues 0.0 __simulation.weather * 0.90 4150 endevent
event weather5 updatevalues 0.0 __simulation.weather * 0.65 4550 endevent
event weather6 updatevalues 0.0 __simulation.weather * 0.45 5520 endevent
event weather7 updatevalues 0.0 __simulation.weather * 0.25 6800 endevent

node -1 0 pog2 eventlauncher 1 9 9 -1 none 0850 set_pog2 none  end
node -1 0 pog3 eventlauncher 9 1 9 -1 none 0909 set_pog3 none  end
node -1 0 pog4 eventlauncher 9 9 1 -1 none 0920 set_pog4 none  end
node -1 0 pog5 eventlauncher 9 3 9 -1 none 0935 set_pog5 none  end
node -1 0 pog6 eventlauncher 4 2 9 -1 none 0951 set_pog6 none  end
node -1 0 pog7 eventlauncher 4 2 9 -1 none 1005 set_pog7 none  end

event set_pog2 multiple 0 none weather2 randomdelay 240 endevent
event set_pog3 multiple 0 none weather3 randomdelay 240 endevent
event set_pog4 multiple 0 none weather4 randomdelay 240 endevent
event set_pog5 multiple 0 none weather5 randomdelay 240 endevent
event set_pog6 multiple 0 none weather6 randomdelay 240 endevent
event set_pog7 multiple 0 none weather7 randomdelay 240 endevent

/* Rozpoczynamy opadami sniegu i z czasem opady ustaja, wychodzi pelne slonce i dobra widocznosc.
*/

//Zanik napiecia:
node -1 0 zanik1 eventlauncher 1 5 9 -1 none 0846 zanik_cala_scn none  end //08:46
node -1 0 zanik2 eventlauncher 0 2 6 -1 none 0915 zanik_cala_scn none  end //09:15
node -1 0 zanik3 eventlauncher 1 7 3 -1 none 0940 zanik_cala_scn none  end //09:40
node -1 0 zanik4 eventlauncher 8 4 2 -1 none 1001 zanik_cala_scn none  end //10:01
/* Mamy 10% szansy, ze spadnie napiecie w sieci trakcyjnej na okolo poltorej minuty w w/w godzinach.
*/

event onstart_ruch_towarowa multiple 30 none 
wt_tm3_ms2 wt_zwr101- wt_wk1o //sm42 spod rampy w stacje manewr
wp_a_s12a wolica_zwr1- wolica_zwr2- wolica_zwr3- wt_a_s13 wt_zwr1+ wt_zwr2- wt_zwr5-   //EU07+SISy z Piastowskiej do Towarowej
r1_wolica1 r1_wolica2 r1_wolica3
randomdelay 20 endevent

node -1 0 r1_wolica1 sound -21000 0 -68000 radiotelefon/wjedzie_towarowy.wav endsound
event r1_wolica1 sound 2  r1_wolica1 1 1 endevent  //r1 i moze uda sie pojechac

node -1 0 r1_wolica2 sound -21000 0 -68000 radiotelefon/odjazd_towarowy2.wav endsound
event r1_wolica2 sound 70  r1_wolica2 1 1 endevent  //r1 przygotuj sie jedziemy

node -1 0 r1_wolica3 sound -21000 0 -68000 radiotelefon/przeszkadzajka20.wav endsound
event r1_wolica3 sound 20  r1_wolica3 1 1 endevent  //r1 przeszkadzajka

event wt_iz-5:free multiple 15 none //SISy wjechaly w stacje, mozna wyjechac TDE + przelot osobowy ROJ-33202
TDE:W_Tow-Nu
dek_a_s2 ar_a_s2 zdroj_a_s2 wp_a_s2 wob_a_s2 wob_m_s5 //roj-33202 od Arkadii do Wolicy po jedynce
endevent

event TDE:W_Tow-Nu multiple 50 none //TDE W_Tow -> Grx
wt_f_s12 wt_zwr1- wp_e_s10a wolica_zwr3-  wolica_zwr1+ wolica_zwr2+ zdroj_c_s2 ar_e_s10a arkadia_z1- arkadia_z2- groszex_b_s2 m_n_s2 m_c_s2 
endevent

//Nurzec wjazd:
event 1t_track267:event1 multiple 5 none
nurzec_r4- nu_b_sr3 nu_toe_os1 nu_spb_sp4 nu_tob_os4
randomdelay 10
endevent

node -1 0 r7_nurzec1 sound -4200 0 -49700 radiotelefon/przelot.wav endsound
event r7_nurzec1 sound 5  r7_nurzec1 1 7 endevent  //r7 przelot macie zrobiony (dla IC)


event 1t_track223:event2 multiple 10 none //TDE wjeżdża do Nurzca, z Rakowic rusza IC:
rakowice_c_s2 nu_a_sr2 nu_tof_os1 nu_spa_os2 nu_toa_os2
zanik_pwr2 //10% szans że padnie zasilanie na chwile
randomdelay 30 endevent

event 1t_track223i4-izo:free multiple 10 none //TDE w stacji, przelot dla IC:
nu_f_sr2 nu_tof_os2 nurzec_r4+ m_a_s5 
r7_nurzec1
randomdelay 15 endevent

event 1t_track245:event2 multiple 0 none //IC wyjechał, wyjazd dla TDE do Je:
nu_c_sr3 nurzec_r2- rakowice_f_s2 rakowice_a_s2 nr_e_s10a nr_101- nr_6- endevent


node -1 0 r2_jerz1 sound 500 0 -37500 radiotelefon/wjezdza_na_bok.wav endsound
event r2_jerz1 sound 120 r2_jerz1 1 2 endevent  //r2 wjezdza na bok

node -1 0 r2_jerz2 sound 500 0 -37500 radiotelefon/posp_pod_wjazdem.wav endsound
event r2_jerz2 sound 230 r2_jerz2 1 2 endevent  //r2 posp pod wjazdem

node -1 0 r2_jerz3 sound 500 0 -37500 radiotelefon/linia053/l053_poludnie_ru_wyjazdl2.wav endsound
event r2_jerz3 sound 6 r2_jerz3 1 2 endevent  //r2 prawy zamkniety

node -1 0 r2_jerz4 sound 500 0 -37500 radiotelefon/przeszkadzajka11.wav endsound
event r2_jerz4 sound 45 r2_jerz4 1 2 endevent  //r2 przeszk11 po wjezdzie towara na bok




//Jerzynianka Ruch:
node -1 0 je_mem memcell 1 1 1 * 0 0 none endmemcell
event up1_je updatevalues 2 je_mem * * 1 endevent

event track_wr507:event1 multiple 0 je_mem //tylko raz
TDE:Je_wj
TLE:Ku-Je
up1_je
nr_sklady_a_s2 //ESZ elon rusza do NR
condition memcompare * * 0 
endevent

event wrz_tor2968-izo:free multiple 0 none //TDE wjechał na tor dodatkowy
eszelon:NR-Je endevent

event eszelon:NR-Je multiple 20 none //ESZ jedzie z NR do Je
nr_d_s2 je_a_s2 je_j_s5
nr_101+ nr_6+ je_40+ je_39+ 
zanik_pwr3 //10% szans że padnie zasilanie na chwile 
endevent



event TDE:Je_wj multiple 0 none //wjazd TDE do Je
je_a_s4 je_j_s13 
je_40- je_39- je_34- je_35- 
randomdelay 30 endevent

event TLE:Ku-Je multiple 0 none //poc. TLE630154 jedzie z Kujacina do Jerzynianki
kujacin_h_s2 kujacin_6+ kujacin_9+ 
je_e_s13 je_1- je_2- je_5+ je_9- je_8- je_12- je_13- je_14+ 
r2_jerz1
endevent

event wrz_tor2553-izo:free multiple 0 none //poc. TLE w stacji, ruszamy EIC z Kujacina do Jerzynianki
kujacin_j_s10 kujacin_8- kujacin_9- 
je_e_s2 
je_1+ je_2+ je_22+ je_18+ je_u_s5 je_45+ 
zanik_pwr3 //10% szans że padnie zasilanie na chwile
r2_jerz2
r2_jerz4
endevent

event wrz_tor2935:event2 multiple 0 none //poc. 34002 w stacji, jedziemy TDE po LEWYM do Kujacina, przelot Ku, wjazd Ryciny:
je_k3_s10 je_k3_w24 
je_13+ je_12+ je_8- je_9- je_2- je_1- 
kujacin_r_s10 
kujacin_8- kujacin_9- kujacin_7+ kujacin_6+ kujacin_d_s2 ryciny_x_s5 
ogranicz:1 ogranicz:2 ogranicz:3 ogranicz:4 ogranicz:5
r2_jerz3
randomdelay 25 endevent

//Zgodnie z rozkazem "o" ograniczam przedkosc w torze nr 1
 event ogranicz:1 trackvel 0 wrz_tor2287 50 endevent
  event ogranicz:2 trackvel 0 wrz_tor2286 50 endevent
   event ogranicz:3 trackvel 0 wrz_tor2285 50 endevent
    event ogranicz:4 trackvel 0 wrz_tor2284 50 endevent
	 event ogranicz:5 trackvel 0 wrz_tor2283 50 endevent







//TDE opuszcza Kujacin:
event wrz_tor1752-izo:free multiple 0 none
IC:8410:Wrz-Kuj 
kujacin_6+ kujacin_7+ kujacin_8+ kujacin_9+ 
zanik_cala_scn
endevent


event IC:8410:Wrz-Kuj multiple 10 none //8410 z Wrzosów do Kujacina
ter_L_s2 hipolit_a_s2 ryciny_a_s2 ryciny_k_s2 kujacin_a_s5 randomdelay 60 endevent

event wrz_tor1539:event1 multiple 0 none //przelot przez Ryciny TDE
ryciny_x_s2 ryciny_d_s2 TDE:hipolit_c
randomdelay 10 endevent

event TDE:hipolit_c multiple 150 none hipolit_c_s2 ter_c_s5 randomdelay 70 endevent


event TDE2:Deb-Wrz multiple 0 none //TDE2 drugi Innof jedzie z Debicy po lewym do Wrzosow:
debica_c_s2 debica_c_w24 ter_b_s10 
t_zwr1- t_zwr003- ter_L_s2 endevent

event wrz_tor841:event1 multiple 0 none //TDE przed Azorami uruchamia ruch w Debicy:
TDE2:Deb-Wrz
randomdelay 60
endevent

event wrz_tor061-62-63-izo:free multiple 15 none //TDE2 wyjechal ruszamy TDE do Debicy+DTowarowa:
ter_h_s2 t_zwr1+ t_zwr003+ debica_b_s4 debica_L_S10 
zwr020- zwr019- zwr018- anglik01ac zwr014- 
Dtowarowa_a_s13
andebtow01bd debtow_zwr2- andebtow02ad
randomdelay 30 endevent

event tor2479:event2 multiple 0 none
dtowarowa_n_s13 andebtow07bc andebtow05ad
endevent
