;Az FVV 1949-es psz.-ú "V" típusú acélvázasított motorkocsija
;Készítette: Bzmot332
;Készült: 2013. október

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;ALAP OBJEKTUMOK

[Object]
States = 1900.b3d
[Object]
States = v_mtabla_8.b3d
[Object]
States = psz_1949.b3d
[Object]
States = v_utaster_s.b3d
[Object]
States = v_uveg.b3d
[Object]
States = v_kapaszkodok_s.b3d
[Object]
States = v_lyukaszto.b3d

;ÜLÉSEK
[Object]
States = v_ules_1.b3d
Position = 0, 0, 3.52
[Object]
States = v_ules_2.b3d
Position = 0, 0, 2.139
[Object]
States = v_ules_2.b3d
Position = 0, 0, 0.713
[Object]
States = v_ules_2.b3d
Position = 0, 0, -0.713
[Object]
States = v_ules_2.b3d
Position = 0, 0, -2.139
[Object]
States = v_ules_1.b3d
RotateYFunction = 3.141592654
Position = 0, 0, -3.52

[Object]
States = v_vezules.b3d
Position = 0, -0.2, 4.8
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;VÁLTOZÓ OBJEKTUMOK

[Object]
States = v_fenysz_0.b3d, v_fenysz_1.b3d
Statefunction = pluginstate[21]

[Object]
States = v_plampa_ki.b3d, v_plampa_be.b3d
Statefunction = if[or[leftdoors != 1 & leftdoors != 0, rightdoors != 1 & rightdoors != 0], if[or[leftdoorstarget == 0 & leftdoors != 0, rightdoorstarget == 0 & rightdoors != 0] == 1, 1,0],0]

[Object]
States = v_tengely.b3d
Position = 0,0.45,2.5
RotateXFunction = value + delta * speedometer / 0.45

[Object]
States = v_tengely.b3d
Position = 0,0.45,-2.5
RotateXFunction = value + delta * speedometer / 0.45

;AJTÓK
[Object]
States = v_ajto_R1.b3d
Position = 1.09, 0, 3.565
TranslateXFunction = -0.1025 * rightdoors[0]
TranslateZFunction = 0.825 * rightdoors[0]
[Object]
States = v_ajto_R2.b3d
Position = 1.09, 0, -3.565
TranslateXFunction = -0.1025 * rightdoors[0]
TranslateZFunction = -0.825 * rightdoors[0]

[Object]
States = v_ajto_L1.b3d
Position = -1.09, 0, 3.565
TranslateXFunction = 0.1025 * leftdoors[0]
TranslateZFunction = 0.825 * leftdoors[0]
[Object]
States = v_ajto_L2.b3d
Position = -1.09, 0, -3.565
TranslateXFunction = 0.1025 * leftdoors[0]
TranslateZFunction = -0.825 * leftdoors[0]

;ABLAKTÖRLŐK
[Object]
States = v_ablaktorlo.b3d
Position = 0, 2.95, 5.49
RotateXDirection = 0,0,1
RotateYDirection = -1,0,0
RotateXFunction = if[pluginstate[198] > 0, power[1 - abs[cos[time]], 0.5] * 0.698131701, value]
RotateYFunction = 0.052359878

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;VEZETŐÁLLÁS

;alapobjektumok
[Object]
States = v_fulke_s.b3d


;irányváltó kar
[Object]
States = v_iranyvalto_s.b3d
Position = -0.4025, 2.1, 5.13
RotateXFunction = 1.57 * reverserNotch
RotateXDirection = 0, -1, 0
RotateXDamping = 20, 0.5

;menetszabályzó kar
[Object]
States = v_menetszabalyzo_s.b3d
Position = -0.45, 2.1, 4.987
RotateYFunction = (powerNotch / powerNotches) * 0.6
;RotateYFunction = if[brakenotchlinear == 8,0,((powernotch - brakenotchlinear) / 3)*0.6]
RotateYDirection = 0, 1, 0
RotateYDamping = 20, 0.5

;Böcker fék
[Object]
States = v_fek_s.b3d
Position = 0.15, 2.04, 5.31
RotateXFunction = 1.2 * brakeNotch
RotateXDirection = 0, 1, 0
RotateXDamping = 15, 0.8

;kerekes rögzítőfék
[Object]
States = v_fulke_kezifek_s.b3d
Position = 0.455, 1.775, 5.18

;csengők
[Object]
States = v_csengo_s.b3d
TranslateYFunction = if[pluginstate[24],0.02,0  ]


;ajtónyitó kapcsolók
[Object]
States = v_ajtokapcs_z.b3d, v_ajtokapcs_ny.b3d
Position = -0.04, 0, 5.415
StateFunction = Ceiling[rightdoors[0]]
[Object]
States = v_ajtokapcs_z.b3d, v_ajtokapcs_ny.b3d
Position = -0.09, 0, 5.415
StateFunction = Ceiling[leftdoors[0]]