Guest User

Untitled

a guest
Aug 30th, 2014
545
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export = {}
  2. function export:LuaDependencies()
  3. return {}
  4. end
  5. function export:Create(cbox)
  6. cbox:RegisterBox("Domino/System/BreakableEntityController.lua")
  7. cbox:RegisterBox("Domino/System/DBStimEmitterController.lua")
  8. cbox:RegisterBox("Domino/System/LightController.lua")
  9. cbox:RegisterBox("Domino/System/ParticleFxController_v2.lua")
  10. cbox:RegisterBox("Domino/System/PlaySound_v2.lua")
  11. cbox:RegisterBox("Domino/System/Timer_v2.lua")
  12. cbox:LoadResource("sndres0x000235e0", "CSoundResource")
  13. cbox:LoadResource("sndres0x000235e1", "CSoundResource")
  14. cbox:LoadResource("sndres0x000235df", "CSoundResource")
  15. end
  16. function export:Init(cbox)
  17. local l0
  18. self.BigExplosionFX = "2076459883833590435"
  19. self.RoofBlackSmokeFX = "2076459883833590436"
  20. self.GasPumpExplosionFX_1 = "2076459883833590438"
  21. self.GasPumpExplosionFX_2 = "2076459883833590439"
  22. self.GasStationRoofBreakable = "2076458368316211891"
  23. self.GasPumpFireOmniLight_02 = "2076459872257311310"
  24. self.GasPumpFireOmniLight_01 = "2076459872257311311"
  25. self.OverheadLightBreakable_02 = "2076458742840295661"
  26. self.OverheadLightBreakable_01 = "2076458742840295660"
  27. self.OverheadLightBreakable_03 = "2076458742834004202"
  28. self.OverheadLightBreakable_04 = "2076458742842392814"
  29. self.ExplosionStimEmitter = "2076459883833590433"
  30. self.BigExplosionOmniLight_02 = "2076459872257311307"
  31. self.GasStationCapsuleLight_02 = "2076459407446639075"
  32. self.GasStationCapsuleLight_01 = "2076459407446639074"
  33. self.GasStationSpotLight_02 = "2076459407446639072"
  34. self.GasStationSpotLight_01 = "2076459407446639073"
  35. self.BigExplosionOmniLight_03 = "2076459872257311308"
  36. self.BigExplosionOmniLight_01 = "2076459872257311309"
  37. self.BigFireStimEmitter = "2076459883833590434"
  38. self.PumpFireStimEmitter = "2076459883833590432"
  39. self.GasPumpSoundPoint_01 = "2076459883833590431"
  40. self.GasPumpSoundPoint_02 = "2076459883833590428"
  41. self.GasStationLoopingFireSoundPoint = "2076459883833590429"
  42. self.BigExplosionSoundPoint = "2076459883833590430"
  43. self.FireFX_State03 = "2076461235582271895"
  44. self.FireFX_State02 = "2076461288682160699"
  45. self.FireFX_State04 = "2076461235582271894"
  46. self[28] = cbox:CreateBox("Domino/System/PlaySound_v2.lua")
  47. l0 = self[28]
  48. l0._graph = self
  49. l0.Out = self.f_28_Out
  50. l0.Started = DummyFunction
  51. l0.Finished = DummyFunction
  52. self[32] = cbox:CreateBox("Domino/System/Timer_v2.lua")
  53. l0 = self[32]
  54. l0._graph = self
  55. l0.Out = DummyFunction
  56. l0.Started = DummyFunction
  57. l0.Stopped = DummyFunction
  58. l0.Paused = DummyFunction
  59. l0.Resumed = DummyFunction
  60. l0.TimeElapsed = self.f_32_TimeElapsed
  61. l0.LoopingEnded = DummyFunction
  62. l0.GotTime = DummyFunction
  63. self[33] = cbox:CreateBox("Domino/System/Timer_v2.lua")
  64. l0 = self[33]
  65. l0._graph = self
  66. l0.Out = DummyFunction
  67. l0.Started = DummyFunction
  68. l0.Stopped = DummyFunction
  69. l0.Paused = DummyFunction
  70. l0.Resumed = DummyFunction
  71. l0.TimeElapsed = self.f_33_TimeElapsed
  72. l0.LoopingEnded = DummyFunction
  73. l0.GotTime = DummyFunction
  74. self[6] = cbox:CreateBox("Domino/System/Timer_v2.lua")
  75. l0 = self[6]
  76. l0._graph = self
  77. l0.Out = DummyFunction
  78. l0.Started = DummyFunction
  79. l0.Stopped = DummyFunction
  80. l0.Paused = DummyFunction
  81. l0.Resumed = DummyFunction
  82. l0.TimeElapsed = self.f_6_TimeElapsed
  83. l0.LoopingEnded = DummyFunction
  84. l0.GotTime = DummyFunction
  85. self[26] = cbox:CreateBox("Domino/System/PlaySound_v2.lua")
  86. l0 = self[26]
  87. l0._graph = self
  88. l0.Out = self.f_26_Out
  89. l0.Started = DummyFunction
  90. l0.Finished = DummyFunction
  91. self[8] = cbox:CreateBox("Domino/System/Timer_v2.lua")
  92. l0 = self[8]
  93. l0._graph = self
  94. l0.Out = DummyFunction
  95. l0.Started = DummyFunction
  96. l0.Stopped = DummyFunction
  97. l0.Paused = DummyFunction
  98. l0.Resumed = DummyFunction
  99. l0.TimeElapsed = self.f_8_TimeElapsed
  100. l0.LoopingEnded = DummyFunction
  101. l0.GotTime = DummyFunction
  102. self[29] = cbox:CreateBox("Domino/System/PlaySound_v2.lua")
  103. l0 = self[29]
  104. l0._graph = self
  105. l0.Out = self.f_29_Out
  106. l0.Started = DummyFunction
  107. l0.Finished = DummyFunction
  108. self[27] = cbox:CreateBox("Domino/System/PlaySound_v2.lua")
  109. l0 = self[27]
  110. l0._graph = self
  111. l0.Out = self.f_27_Out
  112. l0.Started = DummyFunction
  113. l0.Finished = DummyFunction
  114. end
  115. function export:ShutDown()
  116. for k, v in pairs(self) do
  117. if type(v) == "table" and v.ShutDown ~= self.ShutDown and v ~= self._graph and v.ShutDown ~= nil then
  118. v:ShutDown()
  119. end
  120. end
  121. end
  122. function export:State01()
  123. local l0
  124. l0 = Boxes[PathID("Domino/System/ParticleFxController_v2.lua")]
  125. l0.ParticleEmitter = self.GasPumpExplosionFX_1
  126. l0._graph = self
  127. l0.Started = self.f_1_Started
  128. l0.Paused = DummyFunction
  129. l0.Stopped = DummyFunction
  130. l0.Cleaned = DummyFunction
  131. l0:Start()
  132. end
  133. function export:f_28_Out()
  134. local l0
  135. self = self._graph
  136. l0 = Boxes[PathID("Domino/System/DBStimEmitterController.lua")]
  137. l0.StimEmitter = self.PumpFireStimEmitter
  138. l0._graph = self
  139. l0.Out = DummyFunction
  140. l0.Enabled = self.f_17_Enabled
  141. l0.Disabled = DummyFunction
  142. l0:SetEnabled()
  143. end
  144. function export:f_10_Enabled()
  145. local l0
  146. self = self._graph
  147. l0 = Boxes[PathID("Domino/System/LightController.lua")]
  148. l0.LightEntity = self.GasStationSpotLight_02
  149. l0.SetEnabled = nil
  150. l0._graph = self
  151. l0.Enabled = DummyFunction
  152. l0.Disabled = self.f_22_Disabled
  153. l0.IsSet = DummyFunction
  154. l0.Toggled = DummyFunction
  155. l0.Out = DummyFunction
  156. l0:Disable()
  157. end
  158. function export:f_32_TimeElapsed()
  159. local l0
  160. self = self._graph
  161. l0 = Boxes[PathID("Domino/System/ParticleFxController_v2.lua")]
  162. l0.ParticleEmitter = self.FireFX_State02
  163. l0._graph = self
  164. l0.Started = self.f_30_Started
  165. l0.Paused = DummyFunction
  166. l0.Stopped = DummyFunction
  167. l0.Cleaned = DummyFunction
  168. l0:Start()
  169. end
  170. function export:f_17_Enabled()
  171. local l0
  172. self = self._graph
  173. l0 = Boxes[PathID("Domino/System/LightController.lua")]
  174. l0.LightEntity = self.GasPumpFireOmniLight_01
  175. l0.SetEnabled = nil
  176. l0._graph = self
  177. l0.Enabled = self.f_9_Enabled
  178. l0.Disabled = DummyFunction
  179. l0.IsSet = DummyFunction
  180. l0.Toggled = DummyFunction
  181. l0.Out = DummyFunction
  182. l0:Enable()
  183. end
  184. function export:f_33_TimeElapsed()
  185. local l0
  186. self = self._graph
  187. l0 = Boxes[PathID("Domino/System/ParticleFxController_v2.lua")]
  188. l0.ParticleEmitter = self.FireFX_State03
  189. l0._graph = self
  190. l0.Started = self.f_31_Started
  191. l0.Paused = DummyFunction
  192. l0.Stopped = DummyFunction
  193. l0.Cleaned = DummyFunction
  194. l0:Start()
  195. end
  196. function export:f_9_Enabled()
  197. local l0
  198. self = self._graph
  199. l0 = Boxes[PathID("Domino/System/LightController.lua")]
  200. l0.LightEntity = self.GasStationSpotLight_01
  201. l0.SetEnabled = nil
  202. l0._graph = self
  203. l0.Enabled = DummyFunction
  204. l0.Disabled = self.f_19_Disabled
  205. l0.IsSet = DummyFunction
  206. l0.Toggled = DummyFunction
  207. l0.Out = DummyFunction
  208. l0:Disable()
  209. end
  210. function export:f_6_TimeElapsed()
  211. local l0
  212. self = self._graph
  213. l0 = Boxes[PathID("Domino/System/ParticleFxController_v2.lua")]
  214. l0.ParticleEmitter = self.GasPumpExplosionFX_2
  215. l0._graph = self
  216. l0.Started = self.f_7_Started
  217. l0.Paused = DummyFunction
  218. l0.Stopped = DummyFunction
  219. l0.Cleaned = DummyFunction
  220. l0:Start()
  221. end
  222. function export:f_11_Enabled()
  223. local l0
  224. self = self._graph
  225. l0 = Boxes[PathID("Domino/System/LightController.lua")]
  226. l0.LightEntity = self.BigExplosionOmniLight_02
  227. l0.SetEnabled = nil
  228. l0._graph = self
  229. l0.Enabled = self.f_20_Enabled
  230. l0.Disabled = DummyFunction
  231. l0.IsSet = DummyFunction
  232. l0.Toggled = DummyFunction
  233. l0.Out = DummyFunction
  234. l0:Enable()
  235. end
  236. function export:f_20_Enabled()
  237. local l0
  238. self = self._graph
  239. l0 = Boxes[PathID("Domino/System/LightController.lua")]
  240. l0.LightEntity = self.BigExplosionOmniLight_03
  241. l0.SetEnabled = nil
  242. l0._graph = self
  243. l0.Enabled = self.f_21_Enabled
  244. l0.Disabled = DummyFunction
  245. l0.IsSet = DummyFunction
  246. l0.Toggled = DummyFunction
  247. l0.Out = DummyFunction
  248. l0:Enable()
  249. end
  250. function export:f_30_Started()
  251. local l0
  252. self = self._graph
  253. l0 = self[33]
  254. l0.Seconds = 5
  255. l0:Start()
  256. end
  257. function export:f_1_Started()
  258. local l0
  259. self = self._graph
  260. l0 = self[26]
  261. l0.Entity = self.GasPumpSoundPoint_01
  262. l0.SoundId = "0x000235df"
  263. l0:Play()
  264. end
  265. function export:f_24_Disabled()
  266. local l0
  267. self = self._graph
  268. l0 = self[8]
  269. l0.Seconds = 2
  270. l0:Start()
  271. end
  272. function export:f_7_Started()
  273. local l0
  274. self = self._graph
  275. l0 = self[27]
  276. l0.Entity = self.GasPumpSoundPoint_02
  277. l0.SoundId = "0x000235df"
  278. l0:Play()
  279. end
  280. function export:f_23_Disabled()
  281. local l0
  282. self = self._graph
  283. l0 = self[32]
  284. l0.Seconds = 3
  285. l0:Start()
  286. end
  287. function export:f_25_Enabled()
  288. local l0
  289. self = self._graph
  290. l0 = Boxes[PathID("Domino/System/LightController.lua")]
  291. l0.LightEntity = self.BigExplosionOmniLight_01
  292. l0.SetEnabled = nil
  293. l0._graph = self
  294. l0.Enabled = self.f_11_Enabled
  295. l0.Disabled = DummyFunction
  296. l0.IsSet = DummyFunction
  297. l0.Toggled = DummyFunction
  298. l0.Out = DummyFunction
  299. l0:Enable()
  300. end
  301. function export:f_19_Disabled()
  302. local l0
  303. self = self._graph
  304. l0 = Boxes[PathID("Domino/System/LightController.lua")]
  305. l0.LightEntity = self.GasStationCapsuleLight_01
  306. l0.SetEnabled = nil
  307. l0._graph = self
  308. l0.Enabled = DummyFunction
  309. l0.Disabled = self.f_23_Disabled
  310. l0.IsSet = DummyFunction
  311. l0.Toggled = DummyFunction
  312. l0.Out = DummyFunction
  313. l0:Disable()
  314. end
  315. function export:f_18_Enabled()
  316. local l0
  317. self = self._graph
  318. l0 = Boxes[PathID("Domino/System/DBStimEmitterController.lua")]
  319. l0.StimEmitter = self.BigFireStimEmitter
  320. l0._graph = self
  321. l0.Out = DummyFunction
  322. l0.Enabled = self.f_25_Enabled
  323. l0.Disabled = DummyFunction
  324. l0:SetEnabled()
  325. end
  326. function export:f_31_Started()
  327. local l0
  328. self = self._graph
  329. l0 = self[6]
  330. l0.Seconds = 7
  331. l0:Start()
  332. end
  333. function export:f_21_Enabled()
  334. local l0
  335. self = self._graph
  336. l0 = Boxes[PathID("Domino/System/ParticleFxController_v2.lua")]
  337. l0.ParticleEmitter = self.FireFX_State04
  338. l0._graph = self
  339. l0.Started = self.f_4_Started
  340. l0.Paused = DummyFunction
  341. l0.Stopped = DummyFunction
  342. l0.Cleaned = DummyFunction
  343. l0:Start()
  344. end
  345. function export:f_22_Disabled()
  346. local l0
  347. self = self._graph
  348. l0 = Boxes[PathID("Domino/System/LightController.lua")]
  349. l0.LightEntity = self.GasStationCapsuleLight_02
  350. l0.SetEnabled = nil
  351. l0._graph = self
  352. l0.Enabled = DummyFunction
  353. l0.Disabled = self.f_24_Disabled
  354. l0.IsSet = DummyFunction
  355. l0.Toggled = DummyFunction
  356. l0.Out = DummyFunction
  357. l0:Disable()
  358. end
  359. function export:f_26_Out()
  360. local l0
  361. self = self._graph
  362. l0 = self[28]
  363. l0.Entity = self.GasStationLoopingFireSoundPoint
  364. l0.SoundId = "0x000235e0"
  365. l0:Play()
  366. end
  367. function export:f_8_TimeElapsed()
  368. local l0
  369. self = self._graph
  370. l0 = Boxes[PathID("Domino/System/ParticleFxController_v2.lua")]
  371. l0.ParticleEmitter = self.BigExplosionFX
  372. l0._graph = self
  373. l0.Started = self.f_3_Started
  374. l0.Paused = DummyFunction
  375. l0.Stopped = DummyFunction
  376. l0.Cleaned = DummyFunction
  377. l0:Start()
  378. end
  379. function export:f_3_Started()
  380. local l0
  381. self = self._graph
  382. l0 = self[29]
  383. l0.Entity = self.BigExplosionSoundPoint
  384. l0.SoundId = "0x000235e1"
  385. l0:Play()
  386. end
  387. function export:f_4_Started()
  388. local l0
  389. self = self._graph
  390. l0 = Boxes[PathID("Domino/System/BreakableEntityController.lua")]
  391. l0.BreakableEntity = self.GasStationRoofBreakable
  392. l0._graph = self
  393. l0.Broken = DummyFunction
  394. l0:Break()
  395. end
  396. function export:f_29_Out()
  397. local l0
  398. self = self._graph
  399. l0 = Boxes[PathID("Domino/System/DBStimEmitterController.lua")]
  400. l0.StimEmitter = self.ExplosionStimEmitter
  401. l0._graph = self
  402. l0.Out = DummyFunction
  403. l0.Enabled = self.f_18_Enabled
  404. l0.Disabled = DummyFunction
  405. l0:SetEnabled()
  406. end
  407. function export:f_27_Out()
  408. local l0
  409. self = self._graph
  410. l0 = Boxes[PathID("Domino/System/LightController.lua")]
  411. l0.LightEntity = self.GasPumpFireOmniLight_02
  412. l0.SetEnabled = nil
  413. l0._graph = self
  414. l0.Enabled = self.f_10_Enabled
  415. l0.Disabled = DummyFunction
  416. l0.IsSet = DummyFunction
  417. l0.Toggled = DummyFunction
  418. l0.Out = DummyFunction
  419. l0:Enable()
  420. end
  421. _compilerVersion = 4
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×