/*Modele tylko dla scenariusza TLK43150
modele ludzi na remoncie, tarcze D1, D0, ograniczenie prekosci, klamoty, autka itd*/
node 2000 0 mod354061 model -9071.89 -0.00504295 -69377 270.25 pkp/d1_stojaca.t3d none endmodel
node 2000 0 mod936571 model -15334 -0.00518383 -69140.2 92 pkp/d1_stojaca.t3d none endmodel
node 2000 0 mod666770 model -16580.7 -0.00164141 -69227.4 73 ip/pkp/d0.t3d none endmodel
node 2000 0 mod156246 model -15204.4 -0.00286054 -69138.5 92.75 przemysl/zbiornik_1000l.t3d none endmodel
node 2000 0 mod329747 model -15201.7 -0.00424528 -69138.5 275.25 przemysl/zbiornik_1000l.t3d none endmodel
node 2000 0 mod339367 model -15197 -0.00353145 -69138.2 303.25 miejskie/wozek.t3d none endmodel
node 2000 0 mod753521 model -15198.4 -0.0031929 -69138 136.75 miejskie/wozek.t3d none endmodel
include linia053/scenariusz_os/sokista.inc robol2 -15183 -0.00232649 -69135.6 271 end
node 2000 0 mod369472 model -15185.8 -0.00156641 -69135.7 0 miejskie/toaleta_przenosna2.t3d none endmodel
node 2000 0 mod954860 model -15184.1 -0.00132704 -69135.9 272.75 miejskie/smietnik120l_otwarty.t3d miejskie/smietnik120l_zielony endmodel
node 2000 0 mod136901 model -15183.3 -0.00336742 -69136.8 218.75 edobre/robol.t3d none endmodel
include linia053/scenariusz_os/sokista.inc robol4 -15206.7 -0.00373745 -69138 135.5 end
include linia053/scenariusz_os/sokista.inc robol3 -15196.5 0.206767 -69141.3 245.5 end
node 2000 0 mod334312 model -15185.8 -0.0419956 -69136.5 0 posers/menel30_sit_floor.t3d none endmodel
node 2000 0 mod269608 model -15204.4 -0.00340611 -69136 175 przytorowe/sam_szafk_przek_i_tel.t3d none endmodel
node 2000 0 mod780365 model -15229.5 -0.00368125 -69139.5 89.75 pkp/wskaznik_zejscia_z_toru.t3d none endmodel
node 2000 0 mod897638 model -15195.2 -0.00342852 -69139.1 87.25 pkp/wskaznik_zejscia_z_toru.t3d none endmodel
node 2000 0 mod758889 model -15148.3 -0.00441081 -69138.5 85.5 pkp/wskaznik_zejscia_z_toru.t3d none endmodel
node 2000 0 mod403069 model -16065.9 1.27779 -69153.1 267 pkp/w7.t3d none endmodel
node 2000 0 mod897969 model -14327 1.3066 -69150.1 96.75 pkp/w7.t3d none endmodel
node 2000 0 mod158633 model -15217.6 -0.00457443 -69138.4 271.25 kolejowe/klamoty_naprawcze.t3d none endmodel
node 2000 0 mod816835 model -15165.7 -0.00643719 -69137.5 89 kolejowe/klamoty_naprawcze.t3d none endmodel
node 2000 0 mod694247 model -15148.3 -0.00536073 -69128.5 227.5 pojazdy/clio.t3d dynamic/road/clio/blue endmodel
node 2000 0 mod135171 model -15154.6 -0.00534929 -69127.6 45 pojazdy/audi80b2.t3d dynamic/road/audi80b2/black endmodel
node 2000 0 mod570153 model -15142.5 -0.0774409 -69123.9 97.75 pm/jelcz315.t3d pm/jelcz-pakaszaramis1 endmodel
node 2000 0 mod392133 model -16370.5 -0.115548 -69199.8 66.5 ip/pkp/w8.t3d pkp/w8_v2/d6_6 endmodel
node 2000 0 mod373353 model -13771.3 -0.00458523 -69149.8 279.25 ip/pkp/w8.t3d pkp/w8_v2/d6_6 endmodel
node 2000 0 mod206492 model -15065 0.555991 -69150.9 92.25 pkp/w14.t3d none endmodel
node 2000 0 mod438299 model -15348.4 0.615733 -69149.7 262 pkp/w14.t3d none endmodel
node 2000 0 mod573996 model -19769.6 5.68581 -68606.6 88 ip/pkp/we4a.t3d none endmodel
node 2000 0 mod005232 model -9077.8 4.50318 -69374.8 269.25 ip/pkp/we4a.t3d none endmodel


/*Eventy Pogodowe: - */
event weather1 updatevalues 0.0 __simulation.weather * 0.35 9900 endevent
event weather2 updatevalues 0.0 __simulation.weather * 0.55 8500 endevent
event weather3 updatevalues 0.0 __simulation.weather * 0.6 5200 endevent
event weather4 updatevalues 0.0 __simulation.weather * 0.8 4300 endevent
event weather5 updatevalues 0.0 __simulation.weather * 0.99 2800 endevent

event chmury_1 multiple 0 none weather1 randomdelay 180 endevent
event chmury_2 multiple 0 none weather2 randomdelay 180 endevent
event chmury_3 multiple 0 none weather3 randomdelay 180 endevent
event chmury_4 multiple 0 none weather4 randomdelay 180 endevent
event chmury_5 multiple 0 none weather5 randomdelay 180 endevent

//Dźwięki deklaracje:
node 1200 0 meg_wolica sound -22754 3 -68637 radiotelefon/wrzosy/tlk43150_wolica.wav endsound
event meg_wolica sound 40 meg_wolica 1 endevent

node 1200 0 meg_wolica2 sound -22755 2 -68637 radiotelefon/zapowiedz_osobowy.wav endsound
event meg_wolica2 sound 0 meg_wolica2 1 endevent

node 1000 0 meg_jerz sound 440 2 -37900 radiotelefon/zapowiedz2.wav endsound
event meg_jerz sound 3 meg_jerz 1 endevent

node -1 0 meg_debica1 sound -32 -1 -1200 radiotelefon/zapowiedz_zmiany.wav endsound
event meg_debica1 sound 8  meg_debica1 1  endevent

node -1 0 meg_tur1 sound -5000 5 22000 radiotelefon/zapowiedz6.wav endsound
event meg_tur1 sound 0  meg_tur1 1  endevent

//Radio deklaracje:=================================================
//Wolica-Arkadia: R1
//Arkadia-Nowa Ruda: R7
//Nowa Ruda-Dębica: R2
//Dębica-Turów: R5
//Turów-Sandomierz: R3

//Wolica - Arkadia R1
node -1 0 r1_przesz1 sound -22700 8 -68674 radiotelefon/przeszkadzajka7.wav endsound
event r1_przesz1 sound 2 r1_przesz1 1 1 endevent //r1

//Arkadia - Nowa Ruda R7
node -1 0 r7_groszex1 sound -5500 0 -60940 radiotelefon/wjezdza_na_bok.wav endsound
event r7_groszex1 sound 10  r7_groszex1 1 7 endevent  //r7

//N.Ruda - Debica R2

node -1 0 r2_jerz1 sound 470 0 -37150 radiotelefon/do_pol_godz.wav endsound
event r2_jerz1 sound 2  r2_jerz1 1 2 endevent  //r2


//Scenariusz TLK 43150 - Eventy:
event onstart_ruch multiple 0 none
wp_a_s2 wob_a_s2 wob_m_s2 wolica_r2_s2 //SKODA przelot
on_dalej
meg_wolica
ogranicz:1
endevent

 event ogranicz:1 trackvel 0 final_2t255 60 endevent //ograniczenie 60 km/h w okolic po Zdrojowa

event on_dalej multiple 8 none
woa_z1_s4 wolica_p_s13 w_zwr111- w_zwr112- 
randomdelay 20 
endevent

event woa_peron034:event2 multiple 25 none
woa_zwr113+ woa_zwr112+ woa_zwr101- wob_g_s2 wob_g_w24 wolica_s_s10a wp_d_s2 wp_d_w24
chmury_1
randomdelay 20 
endevent

event final_2t255:event1 multiple 15 none //przed Zdrojowa
zdroj_d_s2 ar_f_s10a arkadia_z5- arkadia_z4- arkadia_z2- arkadia_z1- 
dek_a_s2
randomdelay 60
endevent

event 1t_track654:event1 multiple 10 none //43150 opuszcza arkadie, przelot dla ic z naprzeciwka
ar_a_s2 arkadia_z5+ arkadia_z4+ arkadia_z2+ arkadia_z1+ zdroj_a_s2 wp_a_s2 wob_a_s5
randomdelay 10 
endevent

event grx112:event1 multiple 60 none
groszex_b_s2 m_a_s13 mokra_r2- mokra_r5- m_n_s5
randomdelay 35 
endevent

node -1 0 amp_nurzec-mokra eventlauncher 1 9 9 -1 none 1524 amp_nu-mk none  end //15:24 wyjeżdża z Nurzca AMP 


event amp_nu-mk multiple 0 none //AMP może wyjechac z Nurzca opóźniony max 2 minuty
nu_f_sr2
chmury_2
randomdelay 140
endevent

//Mokra: lokalizujemy oba pociągi w stacji
node -1 0 mokra_mem memcell 1 1 1 puste 0 0 none endmemcell
event up_tlk updatevalues 0.0 mokra_mem * * 1 endevent // * * 1 wjechał TLK
event up_apm updatevalues 0.0 mokra_mem * 1 * endevent // * 1 * wjechał AMP
event up_wyj updatevalues 1.0 mokra_mem * 21 37 endevent // * 21 37 po wyjezdzie


//Detekcja AMP:
event repair_track016:event2 multiple 0 none
up_apm
wyjazdy_mokra
endevent 

//Detekcja TLK:
event 1t_track360:event1 multiple 0 none
up_tlk
wyjazdy_mokra
endevent

//Główny event wyjazdu: wykona się tylko jak oba będą w stacji:
event wyjazdy_mokra multiple 20 mokra_mem
m_c_s2 mokra_r2+ mokra_r5+ 		//DLA TLK
apm_mokra_wyjazd				/*AMP opóźniamy*/
up_wyj 							//tylko raz
condition memcompare * 1 1 
endevent

event apm_mokra_wyjazd multiple 15 none
m_e_s10 mokra_r8- 				//DLA APM
randomdelay 20
endevent

//Nurzec wjazd:
event 1t_track271:event1 multiple 5 none
nu_tob_os2 nu_spb_sp2 nu_b_sr2 nu_toe_os1
chmury_3
randomdelay 20 
endevent

//Ruch Nurzec po wjeździe
event 1t_track192-izo:free multiple 27 mokra_mem //wykona sie tylko po wyjezdzie TLK z Mokrej (aby AMP nie wywołał)
nu_h_sr3 nurzec_r4- 
nu_tlk_wyjazd
condition memcompare * * 37
endevent

event nu_tlk_wyjazd multiple 20 none
nu_e_sr2 nurzec_r2+ nurzec_r1+
rakowice_f_s5
7400_go
randomdelay 30
endevent

//Rakowice + Nowa Ruda
event 1t_track079:event1 multiple 8 none
rakowice_f_s2 rakowice_a_s2
nr_e_s10a 
nr_101- nr_6- 
43150_je_wjazd
randomdelay 15
endevent

event 7400_go multiple 60 none //7400 z Kujacina do JErzynianki:
kujacin_a_s2 kujacin_h_s2 je_e_s2 je_u_s5
endevent

event 43150_je_wjazd multiple 200 none
je_a_s5 innof_je_portal1
randomdelay 60
endevent

event innof_je_portal1 multiple 0 none //Innof jedzie z Je do Portalu przez Nr
je_h3_s10 je_52+ je_51- 
nr_a_s2 nr_sklady_c_s2 dekoracja_zwr5- 
endevent

//Wyjazd z Jerzynianki:
event wrz_tor3165:event1 multiple 60 none
43150_je_kuj je_j_s5
endevent

event 43150_je_kuj multiple 12 none
je_j_s2 je_L2_s2 kujacin_s_s5 
chmury_4
randomdelay 20
endevent

event wrz_tor1921:event1 multiple 35 none
kujacin_d_s2
ryciny_x_s2 ryciny_d_s2 hipolit_c_s2
chmury_5
towar_wrz_ryc
randomdelay 30
endevent

event wrz_tor1539:event1 multiple 0 none
wyg_okej
ryciny_x_s5 ryciny_d_s1
condition propability 0.35
endevent

event wyg_okej multiple 3 none
ryciny_x_s2 ryciny_d_s2
randomdelay 7
endevent

event towar_wrz_ryc multiple 360 none
ryciny_007- ryciny_a_s13 hipolit_a_s2 ter_L_S2 ter_c_s5
randomdelay 60
endevent

event wrz_tor_wyjazd047:event1 multiple 5 none
ter_c_s2 ter_h_s2 
33800_wjazd
randomdelay 10
endevent

event 33800_wjazd multiple 0 none
ter_a_s13 t_zwr005- t_zwr008+ 
endevent

event tor4164:event2 multiple 10 none
debica_b_s13 
zwr050- zwr053- zwr052- test_zwr34- test_zwr35- anglik04ac
randomdelay 10 endevent
