// uproszczona tarcza ostrzegawcza swietlna odchylona: (p6) symbol tarczy (np. ToA) (p7) nazwa sygnalu powt.
// stosuje sie gdy sygnalizator moze podac tylko S1/Sz/S13 itp, czyli sa tylko os1 i os4.


origin (p2) (p3) (p4)
rotate 0 (p5) 0
// model tarczy ostrzegawczej:
node -1 0 (p1) model 0 0 0 0 sem/glowice/To1YPp_dd.t3d tabl/(p6) Lights  1 endmodel            //glowica 
node -1 0 none model 0 0 0 0 sem/slupy/ToSpTmYPbg.t3d sem/slupy.bmp endmodel       //slup
node -1 0 none model 0 0 0 0 sem/drabinki/D2YP.t3d sem/slupy.bmp endmodel
node -1 0 none model 0 0 0 0 sem/wskazniki/W1new_mz.t3d sem/slupy.bmp endmodel
node 800 50 none lines 80 80 80 100.0                                          //szara linia zeby byl maszt widoczny z daleka
0.0 0.0 0.0	0.0 4 0.0 
endline


rotate 0 0 0
endorigin

// ZDARZENA ZASADNICZE
event (p1)_os1 multiple 0.0 none (p1)_ligh1 (p1)_sem_distinfo_slow (p7)_sp1 endevent
event (p1)_os4 multiple 0.0 none (p1)_ligh4 (p1)_sem_distinfo_v40 (p7)_sp4 endevent

event (p1)_sem_distinfo getvalues 1.0 (p1)_sem_distmem endevent

node -1 0 (p1)_sem_distmem memcell (p2) (p3) (p4) SetProximityVelocity 500.0 0.0 none endmemcell

//zdarzenia okreslajace przyblizona predkosc przy nastepnym semaforze
event (p1)_sem_distinfo_slow updatevalues 0.0 (p1)_sem_distmem SetProximityVelocity 500 0 endevent
event (p1)_sem_distinfo_v40 updatevalues 0.0 (p1)_sem_distmem SetProximityVelocity 500 40 endevent

// przelaczanie swiatel
event (p1)_ligh1 lights 0.0 (p1) 1 endevent
event (p1)_ligh4 lights 0.0 (p1) 2 endevent

