Advertisement
marrecar

osc fajl

Oct 20th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. {trigger:cp_roof_hatch_0_turnswitch}
  2.  
  3. (L.L.roof_hatch_0_turnswitch_rot)
  4.  
  5. ' Positions:
  6. ' 0: Closed
  7. ' 1: Air intake
  8. ' 2: Parallel to air flow
  9. ' 3: Air outtake
  10.  
  11. l0 0.17 <
  12. {if}
  13. 0 (S.L.roof_hatch_0_turnswitch_rot_mode)
  14. {else}
  15. l0 0.5 <
  16. {if}
  17. 1 (S.L.roof_hatch_0_turnswitch_rot_mode)
  18. {endif}
  19. {endif}
  20.  
  21.  
  22. {end}
  23.  
  24. {trigger:cp_roof_hatch_0_toggle}
  25. (C.L.cockpit_has_roof_hatch_switches)
  26. {if}
  27. (L.L.roof_hatch_0_state) 0 =
  28. {if}
  29. (L.L.roof_hatch_0_state) 1 + (S.L.roof_hatch_0_state)
  30. {else}
  31. (L.L.roof_hatch_0_state) 1 =
  32. {if}
  33. (L.L.roof_hatch_0_state) 1 + (S.L.roof_hatch_0_state)
  34.  
  35. {endif}
  36. {endif}
  37.  
  38. 1 (S.L.roof_hatch_0_bttn) s1
  39. (M.L.kippschaltersound)
  40.  
  41. {endif}
  42.  
  43. {end}
  44.  
  45. '----------------------
  46. ' Init
  47. '----------------------
  48.  
  49. {macro:cockpit_init}
  50. 0 (S.L.roof_hatch_0_state) (S.L.roof_hatch_1_state) (S.L.roof_hatch_2_state)
  51.  
  52. 1000 random 500 / 1 - (C.L.roof_hatch_acc_var) * (C.L.roof_hatch_acc) + (S.L.roof_hatch_0_anm_0_Acc) (S.L.roof_hatch_0_anm_1_Acc) (S.L.roof_hatch_1_anm_0_Acc) (S.L.roof_hatch_1_anm_1_Acc)
  53. 1000 random 500 / 1 - (C.L.roof_hatch_maxspeed_var) * (C.L.roof_hatch_maxspeed) + (S.L.roof_hatch_0_anm_0_MaxSpeed) (S.L.roof_hatch_0_anm_1_MaxSpeed) (S.L.roof_hatch_1_anm_0_MaxSpeed) (S.L.roof_hatch_1_anm_1_MaxSpeed)
  54. {end}
  55.  
  56.  
  57. '----------------------
  58. ' Frame
  59. '----------------------
  60. {macro:cockpit_frame}
  61. (M.L.roof_hatch_0_toggle_frame)
  62.  
  63. {macro:roof_hatch_0_toggle_frame}
  64.  
  65. (C.L.cockpit_has_roof_hatch_switches)
  66. {if}
  67. (L.L.roof_hatch_0_state) 0 =
  68. {if}
  69. 0 (S.L.roof_hatch_0_anm_0) (S.L.roof_hatch_0_anm_1)
  70. {else}
  71. (L.L.roof_hatch_0_state) 1 =
  72. {if}
  73. 1 (S.L.roof_hatch_0_anm_0)
  74. 0 (S.L.roof_hatch_0_anm_1)
  75.  
  76. {endif}
  77. {endif}
  78. {else}
  79. (L.L.roof_hatch_0_turnswitch_rot_mode) 0 =
  80. {if}
  81. 0 (S.L.roof_hatch_0_anm_0) (S.L.roof_hatch_0_anm_1)
  82. {endif}
  83.  
  84. (L.L.roof_hatch_0_anm_0) ! (L.L.roof_hatch_0_anm_0_Speed) s0 abs 0.05 > (L.L.roof_hatch_0_rot_0) 0 > || &&
  85. {if}
  86. l0 /-/ (L.L.roof_hatch_0_anm_0_MaxSpeed) <
  87. {if}
  88. (L.L.roof_hatch_0_anm_0_Speed) (L.L.roof_hatch_0_anm_0_Acc) (L.S.Timegap) * - (S.L.roof_hatch_0_anm_0_Speed)
  89. {endif}
  90. (L.L.roof_hatch_0_rot_0) (L.L.roof_hatch_0_anm_0_Speed) (L.S.Timegap) * + (S.L.roof_hatch_0_rot_0)
  91. {else}
  92. (L.L.roof_hatch_0_anm_0_Speed) abs 0.05 > (L.L.roof_hatch_0_rot_0) 1 < || (L.L.roof_hatch_0_anm_0) &&
  93. {if}
  94. l0 (L.L.roof_hatch_0_anm_0_MaxSpeed) <
  95. {if}
  96. (L.L.roof_hatch_0_anm_0_Speed) (L.L.roof_hatch_0_anm_0_Acc) (L.S.Timegap) * + (S.L.roof_hatch_0_anm_0_Speed)
  97. {endif}
  98. (L.L.roof_hatch_0_rot_0) (L.L.roof_hatch_0_anm_0_Speed) (L.S.Timegap) * + (S.L.roof_hatch_0_rot_0)
  99. {else}
  100. 0 (S.L.roof_hatch_0_anm_0_Speed)
  101. {endif}
  102. {endif}
  103.  
  104.  
  105. (L.L.roof_hatch_0_rot_0) 1 >
  106. {if}
  107. 1 (S.L.roof_hatch_0_rot_0)
  108. {else}
  109. (L.L.roof_hatch_0_rot_0) 0 <
  110. {if}
  111. 0 (S.L.roof_hatch_0_rot_0)
  112. {endif}
  113. {endif}
  114.  
  115. {end}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement