Advertisement
Toastur

Toast's Holo EMD Dash 2 Stand [Gmod E2]

Apr 9th, 2017
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.47 KB | None | 0 0
  1. @name Holo EMD Dash 2 Stand [v0.4]
  2. @inputs MU_Master RLCPT:entity Override:entity Horn BellToggle LightToggle MiscToggle Sanding
  3. @outputs Bell Light Misc
  4. @persist RLCPTWlk:wirelink E:entity AirBrakeType
  5. @trigger
  6. @model models/magtrainslocos/controlstands/stand_dash2.mdl
  7. #[
  8. _________ ________ ________ ________ _________ ___ ___ ________
  9. |\___ ___\\ __ \|\ __ \|\ ____\|\___ ___\\ \|\ \|\ __ \
  10. \|___ \ \_\ \ \|\ \ \ \|\ \ \ \___|\|___ \ \_\ \ \\\ \ \ \|\ \
  11. \ \ \ \ \ \\\ \ \ __ \ \_____ \ \ \ \ \ \ \\\ \ \ _ _\
  12. \ \ \ \ \ \\\ \ \ \ \ \|____|\ \ \ \ \ \ \ \\\ \ \ \\ \|
  13. \ \__\ \ \_______\ \__\ \__\____\_\ \ \ \__\ \ \_______\ \__\\ _\
  14. \|__| \|_______|\|__|\|__|\_________\ \|__| \|_______|\|__|\|__|
  15. \|_________|
  16. ]#
  17.  
  18. if(first() | dupefinished() | ~Override){
  19.  
  20. AirBrakeType = 0 #0 for 16M, 1 for 26L
  21.  
  22. BaseMaterial = "models/magtrainslocos/cabmetal_gray"
  23. BaseColor = vec(255,255,255)
  24.  
  25. LeverMaterial = "models/magtrainslocos/train_metal2"
  26. LeverColor = vec(255,255,255)
  27.  
  28.  
  29. if(Override){E = Override Override:setAlpha(0) entity():setAlpha(255)}else{Override = entity() E = entity() E:setAlpha(0)}
  30.  
  31.  
  32. A = 1
  33. holoCreate(A, E:toWorld(vec(8,4,24)), vec(1),
  34. E:toWorld(ang(90,90,0)))
  35. holoColor(A, BaseColor)
  36. holoModel(A, "models/sprops/cuboids/height06/size_3/cube_18x48x6.mdl")
  37. holoScale(A, vec(1,0.9,1.3))
  38. holoParent(A,E)
  39. holoMaterial(A,BaseMaterial)
  40.  
  41. A = 2
  42. holoCreate(A, E:toWorld(vec(-12,7.1,30.2)), vec(1),
  43. E:toWorld(ang(90,76,0)))
  44. holoColor(A, BaseColor)
  45. holoModel(A, "models/sprops/cuboids/height06/size_4/cube_24x24x6.mdl")
  46. holoScale(A, vec(0.83,1.1,1.3))
  47. holoParent(A, E)
  48. holoMaterial(A,BaseMaterial)
  49.  
  50. A = 3
  51. holoCreate(A, holoEntity(2):toWorld(vec(-13.9,0,-1.5)), vec(1),
  52. holoEntity(2):toWorld(ang(0,90,90)))
  53. holoColor(A, BaseColor)
  54. holoModel(A, "models/sprops/cuboids/height06/size_1/cube_6x24x6.mdl")
  55. holoScale(A, vec(1.1,0.8,1.3))
  56. holoParent(A, holoEntity(2))
  57. holoMaterial(A,BaseMaterial)
  58.  
  59. A = 4
  60. holoCreate(A, holoEntity(2):toWorld(vec(-13,0,0.21)), vec(1),
  61. holoEntity(2):toWorld(ang(0,90,70)))
  62. holoColor(A, BaseColor)
  63. holoModel(A, "models/sprops/cuboids/height06/size_1/cube_6x24x6.mdl")
  64. holoScale(A, vec(1.1,0.8,1.4))
  65. holoParent(A, holoEntity(2))
  66. holoMaterial(A,BaseMaterial)
  67.  
  68. A = 5
  69. holoCreate(A, holoEntity(2):toWorld(vec(18.2,-3,-1.8)), vec(1),
  70. holoEntity(2):toWorld(ang(0,90,0)))
  71. holoColor(A, BaseColor)
  72. holoModel(A, "models/sprops/cuboids/height06/size_4/cube_24x24x6.mdl")
  73. holoScale(A, vec(1,1,0.7))
  74. holoParent(A, holoEntity(2))
  75. holoMaterial(A,BaseMaterial)
  76.  
  77. #Brakes
  78.  
  79. #Indipendent
  80. A = 6
  81. holoCreate(A, holoEntity(1):toWorld(vec(0,0,3)), vec(1),
  82. holoEntity(1):toWorld(ang(0,90,0)))
  83. holoColor(A, BaseColor)
  84. holoModel(A, "models/sprops/rectangles/size_1_5/rect_6x18x3.mdl")
  85. holoScale(A, vec(0.8,1,1))
  86. holoParent(A, holoEntity(1))
  87. holoMaterial(A,BaseMaterial)
  88.  
  89. A = 7
  90. holoCreate(A, holoEntity(1):toWorld(vec(1,0,7)), vec(1),
  91. holoEntity(1):toWorld(ang(0,90,0)))
  92. holoColor(A, LeverColor)
  93. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  94. holoScale(A, vec(0.4,0.4,0.4))
  95. holoParent(A, holoEntity(1))
  96. holoMaterial(A,LeverMaterial)
  97.  
  98. A = 8
  99. holoCreate(A, holoEntity(1):toWorld(vec(-1,0,7)), vec(1),
  100. holoEntity(1):toWorld(ang(0,90,0)))
  101. holoColor(A, LeverColor)
  102. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  103. holoScale(A, vec(0.4,0.4,0.4))
  104. holoParent(A, holoEntity(1))
  105. holoMaterial(A,LeverMaterial)
  106.  
  107. A = 9
  108. holoCreate(A, holoEntity(1):toWorld(vec(0,-0.9,6.1)), vec(1),
  109. holoEntity(1):toWorld(ang(-135,90,0)))
  110. holoColor(A, LeverColor)
  111. holoModel(A, "models/sprops/misc/tubes/size_1/h_tube_12x6.mdl")
  112. holoScale(A, vec(0.4,0.4,0.4))
  113. holoParent(A, holoEntity(1))
  114. holoMaterial(A,LeverMaterial)
  115.  
  116. A = 10
  117. holoCreate(A, holoEntity(1):toWorld(vec(0,0,7)), vec(1),
  118. holoEntity(1):toWorld(ang(90,0,0)))
  119. holoColor(A, LeverColor)
  120. holoModel(A, "models/sprops/cylinders/size_3/cylinder_6x6.mdl")
  121. holoScale(A, vec(0.4,0.4,0.4))
  122. holoParent(A, holoEntity(1))
  123. holoMaterial(A,LeverMaterial)
  124.  
  125. A = 11
  126. holoCreate(A, holoEntity(10):toWorld(vec(1,0,0)), vec(1),
  127. holoEntity(10):toWorld(ang(0,90,0)))
  128. holoColor(A, LeverColor)
  129. holoModel(A, "models/monkcabdetailpack/alco/alco_rs3_reverser.mdl")
  130. holoScale(A, vec(1,1,1))
  131. holoParent(A, holoEntity(10))
  132. holoMaterial(A,LeverMaterial)
  133.  
  134. #Automatic Brake
  135.  
  136. A = 12
  137. holoCreate(A, holoEntity(1):toWorld(vec(-10,-1.15,3.8)), vec(1),
  138. holoEntity(1):toWorld(ang(0,90,0)))
  139. holoColor(A, BaseColor)
  140. holoModel(A, "models/sprops/rectangles_thin/size_2/rect_12x12x1_5.mdl")
  141. holoScale(A, vec(1,1,1))
  142. holoParent(A, holoEntity(1))
  143. holoMaterial(A,LeverMaterial)
  144.  
  145. A = 13
  146. holoCreate(A, holoEntity(1):toWorld(vec(-16,-1.15,3.8)), vec(1),
  147. holoEntity(1):toWorld(ang(0,90,0)))
  148. holoColor(A, BaseColor)
  149. holoModel(A, "models/sprops/rectangles_thin/size_1/rect_3x6x1_5.mdl")
  150. holoScale(A, vec(1.16,0.6,1))
  151. holoParent(A, holoEntity(1))
  152. holoMaterial(A,LeverMaterial)
  153.  
  154. A = 14
  155. holoCreate(A, holoEntity(1):toWorld(vec(-15.59,-5.55,3.8)), vec(1),
  156. holoEntity(1):toWorld(ang(0,-70,0)))
  157. holoColor(A, BaseColor)
  158. holoModel(A, "models/sprops/rectangles_thin/size_1/rect_3x3x1_5.mdl")
  159. holoScale(A, vec(0.9,0.6,1))
  160. holoParent(A, holoEntity(1))
  161. holoMaterial(A,LeverMaterial)
  162.  
  163. A = 15
  164. holoCreate(A, holoEntity(1):toWorld(vec(-15.59,3.35,3.8)), vec(1),
  165. holoEntity(1):toWorld(ang(0,70,0)))
  166. holoColor(A, BaseColor)
  167. holoModel(A, "models/sprops/rectangles_thin/size_1/rect_3x3x1_5.mdl")
  168. holoScale(A, vec(0.9,0.6,1))
  169. holoParent(A, holoEntity(1))
  170. holoMaterial(A,LeverMaterial)
  171.  
  172. A = 16
  173. holoCreate(A, holoEntity(12):toWorld(vec(0,-2,2.9)), vec(1),
  174. holoEntity(12):toWorld(ang(0,0,90)))
  175. holoColor(A, BaseColor)
  176. holoModel(A, "models/sprops/cylinders/size_5/cylinder_12x6.mdl")
  177. holoScale(A, vec(0.4,0.4,1.3))
  178. holoParent(A, holoEntity(12))
  179. holoMaterial(A,LeverMaterial)
  180.  
  181. A = 17
  182. holoCreate(A, holoEntity(12):toWorld(vec(0,-1.6,2.9)), vec(1),
  183. holoEntity(12):toWorld(ang(0,0,90)))
  184. holoColor(A, BaseColor)
  185. holoModel(A, "models/sprops/cylinders/size_4/cylinder_9x6.mdl")
  186. holoScale(A, vec(0.4,0.4,1.3))
  187. holoParent(A, holoEntity(12))
  188. holoMaterial(A,LeverMaterial)
  189.  
  190. A = 18
  191. holoCreate(A, holoEntity(12):toWorld(vec(0,-5.59,1)), vec(1),
  192. holoEntity(12):toWorld(ang(0,0,0)))
  193. holoColor(A, BaseColor)
  194. holoModel(A, "models/sprops/rectangles/size_1_5/rect_6x12x3.mdl")
  195. holoScale(A, vec(0.4,0.1,1.3))
  196. holoParent(A, holoEntity(12))
  197. holoMaterial(A,LeverMaterial)
  198.  
  199. A = 19
  200. holoCreate(A, holoEntity(12):toWorld(vec(0,2.5,2)), vec(1),
  201. holoEntity(12):toWorld(ang(180,0,0)))
  202. holoColor(A, BaseColor)
  203. holoModel(A, "models/sprops/misc/tubes/size_1/h_tube_12x6.mdl")
  204. holoScale(A, vec(0.3,0.3,0.3))
  205. holoParent(A, holoEntity(12))
  206. holoMaterial(A,LeverMaterial)
  207.  
  208. A = 20
  209. holoCreate(A, holoEntity(12):toWorld(vec(0,4,2.9)), vec(1),
  210. holoEntity(12):toWorld(ang(0,0,-90)))
  211. holoColor(A, BaseColor)
  212. holoModel(A, "models/sprops/misc/fittings/cred_9_6_short.mdl")
  213. holoScale(A, vec(0.4,0.4,0.2))
  214. holoParent(A, holoEntity(12))
  215. holoMaterial(A,LeverMaterial)
  216.  
  217. A = 21
  218. holoCreate(A, holoEntity(12):toWorld(vec(0,3,2.9)), vec(1),
  219. holoEntity(12):toWorld(ang(0,0,90)))
  220. holoColor(A, BaseColor)
  221. holoModel(A, "models/sprops/cylinders/size_3/cylinder_6x12.mdl")
  222. holoScale(A, vec(0.3,0.3,0.3))
  223. holoParent(A, holoEntity(12))
  224. holoMaterial(A,LeverMaterial)
  225.  
  226. A = 22
  227. holoCreate(A, holoEntity(21):toWorld(vec(0,1.1,0.15)), vec(1),
  228. holoEntity(21):toWorld(ang(0,90,0)))
  229. holoColor(A, BaseColor)
  230. holoModel(A, "models/sprops/rectangles_thin/size_1/rect_3x6x1_5.mdl")
  231. holoScale(A, vec(0.4,0.3,0.5))
  232. holoParent(A, holoEntity(21))
  233. holoMaterial(A,LeverMaterial)
  234.  
  235. A = 23
  236. holoCreate(A, holoEntity(21):toWorld(vec(0,3,0.51)), vec(1),
  237. holoEntity(21):toWorld(ang(180,90,0)))
  238. holoColor(A, BaseColor)
  239. holoModel(A, "models/sprops/geometry/qring_12.mdl")
  240. holoScale(A, vec(0.25,0.3,0.25))
  241. holoParent(A, holoEntity(21))
  242. holoMaterial(A,LeverMaterial)
  243.  
  244. A = 24
  245. holoCreate(A, holoEntity(21):toWorld(vec(0,3.2,0.7)), vec(1),
  246. holoEntity(21):toWorld(ang(0,90,0)))
  247. holoColor(A, BaseColor)
  248. holoModel(A, "models/sprops/rectangles/size_1/rect_3x3x3.mdl")
  249. holoScale(A, vec(0.4,0.3,0.4))
  250. holoParent(A, holoEntity(21))
  251. holoMaterial(A,LeverMaterial)
  252.  
  253. A = 25
  254. holoCreate(A, holoEntity(21):toWorld(vec(0,3.2,0.7)), vec(1),
  255. holoEntity(21):toWorld(ang(0,90,0)))
  256. holoColor(A, BaseColor)
  257. holoModel(A, "models/sprops/rectangles/size_1/rect_3x3x3.mdl")
  258. holoScale(A, vec(0.4,0.3,0.4))
  259. holoParent(A, holoEntity(21))
  260. holoMaterial(A,LeverMaterial)
  261.  
  262. A = 26
  263. holoCreate(A, holoEntity(21):toWorld(vec(0,3.8,0.7)), vec(1),
  264. holoEntity(21):toWorld(ang(0,0,0)))
  265. holoColor(A, BaseColor)
  266. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  267. holoScale(A, vec(0.2,0.1,0.2))
  268. holoParent(A, holoEntity(21))
  269. holoMaterial(A,LeverMaterial)
  270.  
  271. A = 27
  272. holoCreate(A, holoEntity(21):toWorld(vec(0,-0.7,0.7)), vec(1),
  273. holoEntity(21):toWorld(ang(0,0,0)))
  274. holoColor(A, vec(150,0,0))
  275. holoModel(A, "models/monkcabdetailpack/alco/alco_rs3_reverser.mdl")
  276. holoScale(A, vec(1,1,1))
  277. holoParent(A, holoEntity(21))
  278. holoMaterial(A,"WTP/metal_2")
  279. holoClipEnabled(A,1,1)
  280. holoClip(A,1,vec(0,4.5,0),vec(0,1,0),0)
  281.  
  282. #Guages
  283. #Loadmeter
  284. A = 28
  285. holoCreate(A, holoEntity(4):toWorld(vec(8,2.5,0)), vec(1),
  286. holoEntity(4):toWorld(ang(0,90,180)))
  287. holoColor(A, vec(255))
  288. holoModel(A, "models/gsgtrainprops/parts/cab/gauge_01.mdl")
  289. holoScale(A, vec(1))
  290. holoParent(A, holoEntity(4))
  291. holoMaterial(A,"")
  292. #Loadmeter Needle
  293.  
  294. A = 29
  295. holoCreate(A, holoEntity(28):toWorld(vec(0,0,0)), vec(1),
  296. holoEntity(28):toWorld(ang(0,0,0)))
  297. holoColor(A, vec(255))
  298. holoModel(A, "models/gsgtrainprops/parts/cab/needle_load.mdl")
  299. holoScale(A, vec(1))
  300. holoParent(A, holoEntity(28))
  301. holoMaterial(A,"")
  302.  
  303. #Air Gauges
  304. #Air Guage 1
  305. A = 30
  306. holoCreate(A, holoEntity(4):toWorld(vec(-8,2.5,0)), vec(1),
  307. holoEntity(4):toWorld(ang(0,90,180)))
  308. holoColor(A, vec(255))
  309. holoModel(A, "models/gsgtrainprops/parts/cab/gauge_01.mdl")
  310. holoSkin(A,1)
  311. holoScale(A, vec(1))
  312. holoParent(A, holoEntity(4))
  313. holoMaterial(A,"")
  314. #Needles
  315. A = 31
  316. holoCreate(A, holoEntity(30):toWorld(vec(0,0,0)), vec(1),
  317. holoEntity(30):toWorld(ang(0,0,145)))
  318. holoColor(A, vec(255))
  319. holoModel(A, "models/gsgtrainprops/parts/cab/needle_brake_white.mdl")
  320. holoSkin(A,1)
  321. holoScale(A, vec(1))
  322. holoParent(A, holoEntity(30))
  323. holoMaterial(A,"")
  324.  
  325. A = 32
  326. holoCreate(A, holoEntity(30):toWorld(vec(-0.05,0,0)), vec(1),
  327. holoEntity(30):toWorld(ang(0,0,145)))
  328. holoColor(A, vec(255))
  329. holoModel(A, "models/gsgtrainprops/parts/cab/needle_brake_red.mdl")
  330. holoSkin(A,1)
  331. holoScale(A, vec(1))
  332. holoParent(A, holoEntity(30))
  333. holoMaterial(A,"")
  334.  
  335. #Air Guage 2
  336. A = 33
  337. holoCreate(A, holoEntity(4):toWorld(vec(-2,2.5,0)), vec(1),
  338. holoEntity(4):toWorld(ang(0,90,180)))
  339. holoColor(A, vec(255))
  340. holoModel(A, "models/gsgtrainprops/parts/cab/gauge_01.mdl")
  341. holoSkin(A,1)
  342. holoScale(A, vec(1))
  343. holoParent(A, holoEntity(4))
  344. holoMaterial(A,"")
  345.  
  346. #Needles
  347. A = 34
  348. holoCreate(A, holoEntity(33):toWorld(vec(0,0,0)), vec(1),
  349. holoEntity(33):toWorld(ang(0,0,145)))
  350. holoColor(A, vec(255))
  351. holoModel(A, "models/gsgtrainprops/parts/cab/needle_brake_white.mdl")
  352. holoSkin(A,1)
  353. holoScale(A, vec(1))
  354. holoParent(A, holoEntity(33))
  355. holoMaterial(A,"")
  356.  
  357. A = 35
  358. holoCreate(A, holoEntity(33):toWorld(vec(-0.05,0,0)), vec(1),
  359. holoEntity(33):toWorld(ang(0,0,145)))
  360. holoColor(A, vec(255))
  361. holoModel(A, "models/gsgtrainprops/parts/cab/needle_brake_red.mdl")
  362. holoSkin(A,1)
  363. holoScale(A, vec(1))
  364. holoParent(A, holoEntity(33))
  365. holoMaterial(A,"")
  366.  
  367. #Power Levers
  368. A = 36
  369. holoCreate(A, holoEntity(2):toWorld(vec(0,0,3)), vec(1),
  370. holoEntity(2):toWorld(ang(0,0,0)))
  371. holoColor(A, BaseColor)
  372. holoModel(A, "models/sprops/rectangles/size_2_5/rect_18x18x3.mdl")
  373. holoScale(A, vec(1,1,1))
  374. holoParent(A, holoEntity(2))
  375. holoMaterial(A,BaseMaterial)
  376.  
  377. A = 37
  378. holoCreate(A, holoEntity(36):toWorld(vec(-6,-2.9,0.3)), vec(1),
  379. holoEntity(36):toWorld(ang(0,90,0)))
  380. holoColor(A, BaseColor)
  381. holoModel(A, "models/sprops/rectangles/size_1_5/rect_6x12x3.mdl")
  382. holoScale(A, vec(1,0.6,1))
  383. holoParent(A, holoEntity(36))
  384. holoMaterial(A,LeverMaterial)
  385.  
  386. A = 38
  387. holoCreate(A, holoEntity(36):toWorld(vec(-2.2,2.9,0.3)), vec(1),
  388. holoEntity(36):toWorld(ang(0,90,0)))
  389. holoColor(A, BaseColor)
  390. holoModel(A, "models/sprops/rectangles/size_1_5/rect_6x12x3.mdl")
  391. holoScale(A, vec(1,0.6,1))
  392. holoParent(A, holoEntity(36))
  393. holoMaterial(A,LeverMaterial)
  394.  
  395. A = 39
  396. holoCreate(A, holoEntity(36):toWorld(vec(2,2.9,0.3)), vec(1),
  397. holoEntity(36):toWorld(ang(0,90,0)))
  398. holoColor(A, BaseColor)
  399. holoModel(A, "models/sprops/rectangles/size_1_5/rect_6x12x3.mdl")
  400. holoScale(A, vec(0.7,0.6,1))
  401. holoParent(A, holoEntity(36))
  402. holoMaterial(A,LeverMaterial)
  403.  
  404. #Dynamics
  405. A = 40
  406. holoCreate(A, holoEntity(37):toWorld(vec(0,1.2,1.3)), vec(1),
  407. holoEntity(37):toWorld(ang(-15,0,0)))
  408. holoColor(A, BaseColor)
  409. holoModel(A, "models/sprops/rectangles/size_1/rect_3x6x3.mdl")
  410. holoScale(A, vec(1,0.4,0.4))
  411. holoParent(A, holoEntity(37))
  412. holoMaterial(A,LeverMaterial)
  413.  
  414. A = 41
  415. holoCreate(A, holoEntity(40):toWorld(vec(1,0.1,0.6)), vec(1),
  416. holoEntity(40):toWorld(ang(0,180,0)))
  417. holoColor(A, BaseColor)
  418. holoModel(A, "models/sprops/rectangles_thin/size_5/rect_48x48x1_5.mdl")
  419. holoScale(A, vec(0.02,0.02,0.1))
  420. holoParent(A, holoEntity(40))
  421. holoMaterial(A,"models/magtrainslocos/notch0")
  422.  
  423. A = 42
  424. holoCreate(A, holoEntity(37):toWorld(vec(0,0.7,0)), vec(1),
  425. holoEntity(37):toWorld(ang(0,0,0)))
  426. holoColor(A, BaseColor)
  427. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  428. holoScale(A, vec(0.7,0.2,0.7))
  429. holoParent(A, holoEntity(37))
  430. holoMaterial(A,LeverMaterial)
  431.  
  432. A = 43
  433. holoCreate(A, holoEntity(37):toWorld(vec(0,-0.8,0)), vec(1),
  434. holoEntity(37):toWorld(ang(0,0,0)))
  435. holoColor(A, BaseColor)
  436. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  437. holoScale(A, vec(0.7,0.2,0.7))
  438. holoParent(A, holoEntity(37))
  439. holoMaterial(A,LeverMaterial)
  440.  
  441. A = 44
  442. holoCreate(A, holoEntity(37):toWorld(vec(0,-0.1,0)), vec(1),
  443. holoEntity(37):toWorld(ang(-50,0,90)))
  444. holoColor(A, BaseColor)
  445. holoModel(A, "models/sprops/cylinders/size_4/cylinder_9x3.mdl")
  446. holoScale(A, vec(0.8,0.8,0.5))
  447. holoParent(A, holoEntity(37))
  448. holoMaterial(A,LeverMaterial)
  449.  
  450. A = 45
  451. holoCreate(A, holoEntity(44):toWorld(vec(0,0,0)), vec(1),
  452. holoEntity(44):toWorld(ang(0,0,0)))
  453. holoColor(A, BaseColor)
  454. holoModel(A, "models/monkcabdetailpack/alco/alco_rs3_reverser.mdl")
  455. holoScale(A, vec(0.8,1,1))
  456. holoParent(A, holoEntity(44))
  457. holoMaterial(A,LeverMaterial)
  458.  
  459. A = 46
  460. holoCreate(A, holoEntity(44):toWorld(vec(0,4.3,0)), vec(1),
  461. holoEntity(44):toWorld(ang(0,0,90)))
  462. holoColor(A, BaseColor)
  463. holoModel(A, "models/sprops/rectangles_thin/size_1/rect_3x3x1_5.mdl")
  464. holoScale(A, vec(0.6,0.6,0.1))
  465. holoParent(A, holoEntity(44))
  466. holoMaterial(A,LeverMaterial)
  467.  
  468. #Throttle
  469. A = 47
  470. holoCreate(A, holoEntity(38):toWorld(vec(0,1.2,1.3)), vec(1),
  471. holoEntity(38):toWorld(ang(-15,0,0)))
  472. holoColor(A, BaseColor)
  473. holoModel(A, "models/sprops/rectangles/size_1/rect_3x6x3.mdl")
  474. holoScale(A, vec(1,0.4,0.4))
  475. holoParent(A, holoEntity(38))
  476. holoMaterial(A,LeverMaterial)
  477.  
  478. A = 48
  479. holoCreate(A, holoEntity(47):toWorld(vec(1,0.1,0.6)), vec(1),
  480. holoEntity(47):toWorld(ang(0,180,0)))
  481. holoColor(A, BaseColor)
  482. holoModel(A, "models/sprops/rectangles_thin/size_5/rect_48x48x1_5.mdl")
  483. holoScale(A, vec(0.02,0.02,0.1))
  484. holoParent(A, holoEntity(47))
  485. holoMaterial(A,"models/magtrainslocos/notch0a")
  486.  
  487. A = 49
  488. holoCreate(A, holoEntity(38):toWorld(vec(0,0.7,0)), vec(1),
  489. holoEntity(38):toWorld(ang(0,0,0)))
  490. holoColor(A, BaseColor)
  491. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  492. holoScale(A, vec(0.7,0.2,0.7))
  493. holoParent(A, holoEntity(38))
  494. holoMaterial(A,LeverMaterial)
  495.  
  496. A = 50
  497. holoCreate(A, holoEntity(38):toWorld(vec(0,-0.8,0)), vec(1),
  498. holoEntity(38):toWorld(ang(0,0,0)))
  499. holoColor(A, BaseColor)
  500. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  501. holoScale(A, vec(0.7,0.2,0.7))
  502. holoParent(A, holoEntity(38))
  503. holoMaterial(A,LeverMaterial)
  504.  
  505. A = 51
  506. holoCreate(A, holoEntity(38):toWorld(vec(0,-0.1,0)), vec(1),
  507. holoEntity(38):toWorld(ang(50,0,90)))
  508. holoColor(A, BaseColor)
  509. holoModel(A, "models/sprops/cylinders/size_4/cylinder_9x3.mdl")
  510. holoScale(A, vec(0.8,0.8,0.5))
  511. holoParent(A, holoEntity(38))
  512. holoMaterial(A,LeverMaterial)
  513.  
  514. A = 52
  515. holoCreate(A, holoEntity(51):toWorld(vec(0,0,0)), vec(1),
  516. holoEntity(51):toWorld(ang(0,0,0)))
  517. holoColor(A, BaseColor)
  518. holoModel(A, "models/monkcabdetailpack/alco/alco_rs3_reverser.mdl")
  519. holoScale(A, vec(1,1,0.8))
  520. holoParent(A, holoEntity(51))
  521. holoMaterial(A,LeverMaterial)
  522.  
  523. A = 53
  524. holoCreate(A, holoEntity(51):toWorld(vec(0,4.3,0)), vec(1),
  525. holoEntity(51):toWorld(ang(0,0,90)))
  526. holoColor(A, BaseColor)
  527. holoModel(A, "models/sprops/rectangles_thin/size_1/rect_3x3x1_5.mdl")
  528. holoScale(A, vec(0.6,0.6,0.1))
  529. holoParent(A, holoEntity(51))
  530. holoMaterial(A,LeverMaterial)
  531.  
  532. #Reverser
  533. A = 54
  534. holoCreate(A, holoEntity(39):toWorld(vec(0,0.7,0)), vec(1),
  535. holoEntity(39):toWorld(ang(0,0,0)))
  536. holoColor(A, BaseColor)
  537. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  538. holoScale(A, vec(0.6,0.2,0.6))
  539. holoParent(A, holoEntity(39))
  540. holoMaterial(A,LeverMaterial)
  541.  
  542. A = 55
  543. holoCreate(A, holoEntity(39):toWorld(vec(0,-0.8,0)), vec(1),
  544. holoEntity(39):toWorld(ang(0,0,0)))
  545. holoColor(A, BaseColor)
  546. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  547. holoScale(A, vec(0.6,0.2,0.6))
  548. holoParent(A, holoEntity(39))
  549. holoMaterial(A,LeverMaterial)
  550.  
  551. A = 56
  552. holoCreate(A, holoEntity(39):toWorld(vec(0,-0.1,0)), vec(1),
  553. holoEntity(39):toWorld(ang(0,0,90)))
  554. holoColor(A, BaseColor)
  555. holoModel(A, "models/sprops/cylinders/size_4/cylinder_9x3.mdl")
  556. holoScale(A, vec(0.7,0.7,0.5))
  557. holoParent(A, holoEntity(39))
  558. holoMaterial(A,LeverMaterial)
  559.  
  560. A = 57
  561. holoCreate(A, holoEntity(56):toWorld(vec(0,0.2,0)), vec(1),
  562. holoEntity(56):toWorld(ang(0,0,0)))
  563. holoColor(A, BaseColor)
  564. holoModel(A, "models/monkcabdetailpack/alco/alco_rs3_reverser.mdl")
  565. holoScale(A, vec(0.8))
  566. holoParent(A, holoEntity(56))
  567. holoMaterial(A,LeverMaterial)
  568.  
  569. A = 58
  570. holoCreate(A, holoEntity(56):toWorld(vec(0,3.7,0)), vec(1),
  571. holoEntity(56):toWorld(ang(0,0,90)))
  572. holoColor(A, BaseColor)
  573. holoModel(A, "models/sprops/rectangles_thin/size_1/rect_3x3x1_5.mdl")
  574. holoScale(A, vec(0.5,0.5,0.1))
  575. holoParent(A, holoEntity(56))
  576. holoMaterial(A,LeverMaterial)
  577.  
  578. #Horn
  579. A = 59
  580. holoCreate(A, holoEntity(1):toWorld(vec(-21,6,4)), vec(1),
  581. holoEntity(1):toWorld(ang(0,0,90)))
  582. holoColor(A, BaseColor)
  583. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  584. holoScale(A, vec(0.2,0.1,0.2))
  585. holoParent(A, holoEntity(1))
  586. holoMaterial(A,LeverMaterial)
  587.  
  588. A = 60
  589. holoCreate(A, holoEntity(1):toWorld(vec(-21,6,4)), vec(1),
  590. holoEntity(1):toWorld(ang(0,0,90)))
  591. holoColor(A, BaseColor)
  592. holoModel(A, "models/sprops/cylinders/size_2/cylinder_3x6.mdl")
  593. holoScale(A, vec(0.4,0.4,0.2))
  594. holoParent(A, holoEntity(1))
  595. holoMaterial(A,LeverMaterial)
  596.  
  597. A = 61
  598. holoCreate(A, holoEntity(60):toWorld(vec(0,0.6,0)), vec(1),
  599. holoEntity(60):toWorld(ang(0,90,0)))
  600. holoColor(A, BaseColor)
  601. holoModel(A, "models/sprops/rectangles/size_1/rect_3x12x3.mdl")
  602. holoScale(A, vec(0.2,0.2,0.2))
  603. holoParent(A, holoEntity(60))
  604. holoMaterial(A,LeverMaterial)
  605.  
  606. A = 62
  607. holoCreate(A, holoEntity(60):toWorld(vec(-0.3,1.5,0)), vec(1),
  608. holoEntity(60):toWorld(ang(0,0,0)))
  609. holoColor(A, BaseColor)
  610. holoModel(A, "models/sprops/rectangles/size_1/rect_3x6x3.mdl")
  611. holoScale(A, vec(0.2,0.2,0.2))
  612. holoParent(A, holoEntity(60))
  613. holoMaterial(A,LeverMaterial)
  614.  
  615. A = 63
  616. holoCreate(A, holoEntity(60):toWorld(vec(-1,1.5,0)), vec(1),
  617. holoEntity(60):toWorld(ang(0,90,0)))
  618. holoColor(A, BaseColor)
  619. holoModel(A, "models/sprops/geometry/t_fdisc_12.mdl")
  620. holoScale(A, vec(0.15,0.1,0.15))
  621. holoParent(A, holoEntity(60))
  622. holoMaterial(A,LeverMaterial)
  623.  
  624. A = 64
  625. holoCreate(A, holoEntity(60):toWorld(vec(3.5,1.5,0)), vec(1),
  626. holoEntity(60):toWorld(ang(0,90,0)))
  627. holoColor(A,vec(30,30,30))
  628. holoModel(A, "models/monkcabdetailpack/alco/alco_rs3_reverser.mdl")
  629. holoScale(A, vec(0.8,1,0.8))
  630. holoParent(A, holoEntity(60))
  631. holoMaterial(A,"wtp/metal_2")
  632. holoClipEnabled(A,1,1)
  633. holoClip(A,1,vec(0,4.5,0),vec(0,1,0),0)
  634.  
  635. #Indicator Board
  636.  
  637. A = 65
  638. holoCreate(A, E:toWorld(vec(9,8,45)), vec(1),
  639. E:toWorld(ang(0,0,0)))
  640. holoColor(A, vec4(255,255,255,255))
  641. holoModel(A, "models/monkcabdetailpack/misc/ind_waffle.mdl")
  642. holoScale(A, vec(1,1,1))
  643. holoParent(A, E)
  644. holoMaterial(A,"")
  645.  
  646. holoEntity(65):setSubMaterial(2,"models/monkcabdetailpack/indwaffle/ind_brk_unlit")
  647. holoEntity(65):setSubMaterial(3,"models/monkcabdetailpack/indwaffle/ind_PCS_unlit")
  648. holoEntity(65):setSubMaterial(4,"models/monkcabdetailpack/indwaffle/ind_WS_unlit")
  649. holoEntity(65):setSubMaterial(7,"models/monkcabdetailpack/indwaffle/ind_sd_unlit")
  650.  
  651.  
  652. function void setControlAng(
  653. IndipendentIndex,IndipendentAng,LocoBrakePressure,
  654. AutomaticIndex,AutomaticAng,TrainBrakePressure,
  655. LoadNeedleIndex,LoadNeedleAng,
  656. Air1Needle1Index,Air1Needle1Ang,
  657. Air1Needle2Index,Air1Needle2Ang,
  658. Air2Needle1Index,Air2Needle1Ang,
  659. Air2Needle2Index,Air2Needle2Ang,
  660. DynamicIndex,DynamicAng,
  661. ThrottleIndex,ThrottleAng,Dynamics,
  662. ReverserIndex,ReverserAng,
  663. HornIndex,HornAng
  664. ){
  665.  
  666. holoAng(IndipendentIndex,E:toWorld(ang(0,AirBrakeType ? -90+LocoBrakePressure : -60+IndipendentAng*40,0)))
  667. holoAng(AutomaticIndex,E:toWorld(ang(180,AirBrakeType ? -TrainBrakePressure : -10+AutomaticAng*40,0)))
  668. holoAng(LoadNeedleIndex,holoEntity(28):toWorld(ang(0,0,-LoadNeedleAng)))
  669. holoAng(Air1Needle1Index,holoEntity(30):toWorld(ang(0,0,145-Air1Needle1Ang*1.75)))
  670. holoAng(Air1Needle2Index,holoEntity(30):toWorld(ang(0,0,145-Air1Needle2Ang*1.75)))
  671. holoAng(Air2Needle1Index,holoEntity(30):toWorld(ang(0,0,145-Air2Needle1Ang*1.75)))
  672. holoAng(Air2Needle2Index,holoEntity(30):toWorld(ang(0,0,145-Air2Needle2Ang*1.75)))
  673. holoAng(DynamicIndex,holoEntity(37):toWorld(ang(-35+DynamicAng*10,0,90)))
  674. holoAng(ThrottleIndex,holoEntity(38):toWorld(ang(50-(Dynamics > 0 ? ThrottleAng*0 : ThrottleAng*12.5),0,90)))
  675. holoAng(ReverserIndex,holoEntity(39):toWorld(ang(ReverserAng*45,0,90)))
  676. holoAng(HornIndex,holoEntity(1):toWorld(ang(Horn*10,0,90)))
  677. }
  678. }
  679.  
  680.  
  681. if(MU_Master){
  682.  
  683. timer("refresh",100)
  684. local RLCPTWlk = RLCPT:wirelink()
  685. local Reverser = RLCPTWlk["Reverser",number]
  686. local Notch = RLCPTWlk["Notch",number]
  687. local Dynamics = RLCPTWlk["Dynamics",number]
  688. local AB16M_Notch = RLCPTWlk["AB16M_Notch",number]
  689. local LB16M_Notch = RLCPTWlk["LB16M_Notch",number]
  690. local AB26L = RLCPTWlk["AB26L",number]
  691. local LB26L = RLCPTWlk["LB26L",number]
  692. local Emergency = RLCPTWlk["Emergency",number]
  693. local BrakeInfo = RLCPTWlk["BrakeInfo",array]
  694. local Load = RLCPTWlk["Load",number]
  695. local DynaNotch = RLCPTWlk["DynaNotch",number]
  696. local RealNotch = RLCPTWlk["RealNoth",number]
  697. local WheelSlip = RLCPTWlk["WheelSlip",number]
  698. local Emergency = RLCPTWlk["Emergency",number]
  699. local Sanding = RLCPTWlk["Sanding",number]
  700. setControlAng(
  701. 10,LB16M_Notch,BrakeInfo[4,number],
  702. 21,AB16M_Notch,BrakeInfo[2,number],
  703. 29,Load > 0 ? Load : Load/2,
  704. 31,BrakeInfo[2,number],
  705. 32,BrakeInfo[1,number],
  706. 34,BrakeInfo[3,number],
  707. 35,BrakeInfo[5,number],
  708. 44,DynaNotch,
  709. 51,Notch,Dynamics,
  710. 56,Reverser,
  711. 60,Horn)
  712.  
  713. ThrottleArray = array(
  714. "models/magtrainslocos/notch0a",
  715. "models/magtrainslocos/notch1",
  716. "models/magtrainslocos/notch2",
  717. "models/magtrainslocos/notch3",
  718. "models/magtrainslocos/notch4",
  719. "models/magtrainslocos/notch5",
  720. "models/magtrainslocos/notch6",
  721. "models/magtrainslocos/notch7",
  722. "models/magtrainslocos/notch8"
  723. )
  724.  
  725. DynamicArray = array(
  726. "models/magtrainslocos/notch0",
  727. "models/magtrainslocos/notch0b",
  728. "models/magtrainslocos/notch1",
  729. "models/magtrainslocos/notch2",
  730. "models/magtrainslocos/notch3",
  731. "models/magtrainslocos/notch4",
  732. "models/magtrainslocos/notch5",
  733. "models/magtrainslocos/notch6",
  734. "models/magtrainslocos/notch7",
  735. "models/magtrainslocos/notch8"
  736. )
  737. holoMaterial(41,Dynamics ? DynamicArray[DynaNotch+2,string] : "models/magtrainslocos/notch0")
  738. holoMaterial(48,Dynamics ? "models/magtrainslocos/notch0a" : ThrottleArray[Notch+1,string])
  739.  
  740. holoEntity(65):setSubMaterial(2,Load <-35 ? "models/monkcabdetailpack/indwaffle/ind_brk_lit" : "models/monkcabdetailpack/indwaffle/ind_brk_unlit")
  741. holoEntity(65):setSubMaterial(3,Emergency ? "models/monkcabdetailpack/indwaffle/ind_PCS_lit" : "models/monkcabdetailpack/indwaffle/ind_PCS_unlit")
  742. holoEntity(65):setSubMaterial(4,WheelSlip ? "models/monkcabdetailpack/indwaffle/ind_WS_lit" : "models/monkcabdetailpack/indwaffle/ind_WS_unlit")
  743. holoEntity(65):setSubMaterial(7,Sanding ? "models/monkcabdetailpack/indwaffle/ind_sd_unlit" : "models/monkcabdetailpack/indwaffle/ind_sd_unlit")
  744. }
  745.  
  746. if(LightToggle & ~LightToggle){
  747. Light = !Light
  748. E:soundPlay(0,1,"buttons/lightswitch2.wav")
  749. }
  750. if(BellToggle & ~BellToggle){
  751. Bell = !Bell
  752. E:soundPlay(0,1,Bell ? "gsgtrainsounds/misc/air_on.wav" : "gsgtrainsounds/misc/air_off.wav")
  753. }
  754. if(MiscToggle & ~MiscToggle){
  755. Misc = !Misc
  756. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement