Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.00 KB | None | 0 0
  1. local gateBalcony_left = {pos = Vector(-719,3139,-6023), ang = Angle(0,90,0)}
  2. local gateBalcony_right = {pos = Vector(801,3139,-6023), ang = Angle(0,90,0)}
  3.  
  4. local gateEntranceLean = {pos = Vector(-991,3565,-6335), ang = Angle(0,0,0)}
  5. local gateCrates_s = {pos = Vector(-803,3729,-6335), ang = Angle(0,90,0)}
  6.  
  7. local gateInsideLean = {pos = Vector(-1218,3212,-6127), ang = Angle(0,180,0)}
  8. local gateInside_Console01 = {pos = Vector(-1098,3164,-6127), ang = Angle(0,90,0)}
  9. local gateInside_Console02 = {pos = Vector(-1191,3100,-6127), ang = Angle(0,-90,0)}
  10.  
  11. local boilerRoom_Shelf = {pos = Vector(-2785,3063,-6127), ang = Angle(0,-90,0)}
  12. local boilerRoom_Locker = {pos = Vector(-2922,3135,-6127), ang = Angle(0,90,0)}
  13.  
  14. local generatorRoomLean = {pos = Vector(1779,3554,-6255), ang = Angle(0,-180,0)}
  15.  
  16. local longElevator_Crates = {pos = Vector(1123,2853,-6575), ang = Angle(0,0,0)}
  17. local longElevator_Console = {pos = Vector(796,2887,-6575), ang = Angle(0,180,0)}
  18.  
  19. local cave_Generator = {pos = Vector(818,5694,-6572), ang = Angle(0,90,0)}
  20. local cave_Console = {pos = Vector(1693,5795,-6575), ang = Angle(0,90,0)}
  21. local cave_Pipe = {pos = Vector(750,5460,-6577), ang = Angle(0,-180,0)}
  22. local cave_Silos = {pos = Vector(685,4762,-6575), ang = Angle(0,90,0)}
  23.  
  24. local pipeRoom_Console = {pos = Vector(1363,4140,-6255), ang = Angle(0,0,0)}
  25. local pipeRoom_Table = {pos = Vector(1341,4052,-6255), ang = Angle(0,-90,0)}
  26. local pipeRoom_PipeCorner = {pos = Vector(1212,4090,-6255), ang = Angle(0,180,0)}
  27.  
  28. local rocketRoom_Balcony = {pos = Vector(-620,4822,-5247), ang = Angle(0,125,0)}
  29. local rocketRoom_Console = {pos = Vector(-670,4682,-5247), ang = Angle(0,-10,0)}
  30. local rocketRoom_Computer = {pos = Vector(-903,5022,-5247), ang = Angle(0,160,0)}
  31. local rocketRoom_ConsoleB = {pos = Vector(-817,5121,-5247), ang = Angle(0,130,0)}
  32.  
  33. local launchRoom_Server = {pos = Vector(-357,4801,-5247), ang = Angle(0,-90,0)}
  34. local launchRoom_Window = {pos = Vector(-383,4919,-5247), ang = Angle(0,-180,0)}
  35. local launchRoom_Readings = {pos = Vector(-109,5040,-5271), ang = Angle(0,-40,0)}
  36. local launchRoom_Console = {pos = Vector(-164,4768,-5271), ang = Angle(0,0,0)}
  37. local jobid = Jobs.Add({
  38.  
  39. spawnpos = Vector(-988,3114,-6127),
  40.  
  41. [1] = {
  42.  
  43. goto = gateBalcony_left,
  44.  
  45. OnArrive = function(ent, jobid)
  46.  
  47. ent:QueueSequence("barrelpushidle")
  48.  
  49. timer.Simple(5,function()
  50.  
  51. Jobs.Continue(jobid)
  52.  
  53. end)
  54.  
  55. end,
  56.  
  57. },
  58.  
  59. [2] = {
  60.  
  61. goto = gateBalcony_right,
  62.  
  63. OnArrive = function(ent, jobid)
  64.  
  65. ent:QueueSequence("barrelpushidle")
  66.  
  67. timer.Simple(5,function()
  68.  
  69. Jobs.Restart(jobid)
  70. Jobs.Continue(jobid)
  71.  
  72. end)
  73.  
  74. end,
  75.  
  76. },
  77.  
  78. })
  79.  
  80.  
  81. local jobid = Jobs.Add({
  82.  
  83. [1] = {
  84.  
  85. goto = gateEntranceLean,
  86.  
  87. OnArrive = function(ent, jobid)
  88.  
  89. ent:QueueSequence("plazalean")
  90.  
  91. timer.Simple(45,function()
  92.  
  93. Jobs.Continue(jobid)
  94.  
  95. end)
  96.  
  97. end,
  98.  
  99. },
  100.  
  101. [2] = {
  102.  
  103. goto = gateCrates_s,
  104.  
  105. OnArrive = function(ent, jobid)
  106.  
  107. ent:QueueSequence("plazathreat2")
  108.  
  109. timer.Simple(5,function()
  110.  
  111. Jobs.Restart(jobid)
  112. Jobs.Continue(jobid)
  113.  
  114. end)
  115.  
  116. end,
  117.  
  118. },
  119.  
  120. })
  121.  
  122.  
  123. local jobid = Jobs.Add({
  124.  
  125. spawnpos = Vector(-1368,3171,-6127),
  126.  
  127. [1] = {
  128.  
  129. goto = gateInsideLean,
  130.  
  131. OnArrive = function(ent, jobid)
  132.  
  133. ent:QueueSequence("apcidle")
  134.  
  135. timer.Simple(65,function()
  136.  
  137. sound.Play("survival/info_tips_01.wav",gateInside_Console01.pos)
  138. Jobs.Continue(jobid)
  139.  
  140. end)
  141.  
  142. end,
  143.  
  144. },
  145.  
  146. [2] = {
  147.  
  148. goto = gateInside_Console01,
  149.  
  150. OnArrive = function(ent, jobid)
  151.  
  152. ent:QueueSequence("buttonfront")
  153. sound.Play("survival/paradrop_idle_01.wav",gateInside_Console01.pos)
  154.  
  155. timer.Simple(5,function()
  156. Jobs.Continue(jobid)
  157. end)
  158.  
  159. end,
  160.  
  161. },
  162.  
  163. [3] = {
  164.  
  165. goto = gateInside_Console02,
  166.  
  167. OnArrive = function(ent, jobid)
  168.  
  169. ent:QueueSequence("plazathreat2")
  170.  
  171. timer.Simple(5,function()
  172.  
  173. Jobs.Restart(jobid)
  174. Jobs.Continue(jobid)
  175.  
  176. end)
  177.  
  178. end,
  179.  
  180. },
  181.  
  182. })
  183.  
  184.  
  185. local jobid = Jobs.Add({
  186.  
  187. [1] = {
  188.  
  189. goto = boilerRoom_Locker,
  190.  
  191. OnArrive = function(ent, jobid)
  192.  
  193. ent:QueueSequence("stopwomanpre")
  194.  
  195. timer.Simple(15,function()
  196.  
  197. Jobs.Continue(jobid)
  198.  
  199. end)
  200.  
  201. end,
  202.  
  203. },
  204.  
  205. [2] = {
  206.  
  207. goto = boilerRoom_Shelf,
  208.  
  209. OnArrive = function(ent, jobid)
  210.  
  211. ent:QueueSequence("spreadwall")
  212.  
  213. timer.Simple(5,function()
  214.  
  215. Jobs.Restart(jobid)
  216. Jobs.Continue(jobid)
  217.  
  218. end)
  219.  
  220. end,
  221.  
  222. },
  223.  
  224. })
  225.  
  226.  
  227. local jobid = Jobs.Add({
  228.  
  229. spawnpos = Vector(1713,3452,-6255),
  230.  
  231. [1] = {
  232.  
  233. goto = generatorRoomLean,
  234.  
  235. OnArrive = function(ent, jobid)
  236. ent:QueueSequence("busyidle1")
  237. end,
  238.  
  239. },
  240.  
  241. })
  242.  
  243.  
  244. local jobid = Jobs.Add({
  245.  
  246. spawnpos = Vector(939,2786,-6575),
  247.  
  248. [1] = {
  249.  
  250. goto = longElevator_Console,
  251.  
  252. OnArrive = function(ent, jobid)
  253.  
  254. ent:QueueSequence("plazathreat2")
  255.  
  256. timer.Simple(5,function()
  257.  
  258. Jobs.Continue(jobid)
  259.  
  260. end)
  261.  
  262. end,
  263.  
  264. },
  265.  
  266. [2] = {
  267.  
  268. goto = longElevator_Crates,
  269.  
  270. OnArrive = function(ent, jobid)
  271.  
  272. ent:QueueSequence("plazathreat2")
  273.  
  274. timer.Simple(5,function()
  275.  
  276. Jobs.Restart(jobid)
  277. Jobs.Continue(jobid)
  278.  
  279. end)
  280.  
  281. end,
  282.  
  283. },
  284.  
  285. })
  286.  
  287.  
  288. local jobid = Jobs.Add({
  289.  
  290. [1] = {
  291.  
  292. goto = {pos = Vector(1668,5629,-6584), ang = Angle(0,0,0)},
  293.  
  294. OnArrive = function(ent, jobid)
  295. Jobs.Continue(jobid)
  296. end,
  297.  
  298. },
  299.  
  300. [2] = {
  301.  
  302. goto = cave_Console,
  303.  
  304. OnArrive = function(ent, jobid)
  305.  
  306. ent:QueueSequence("plazathreat2")
  307.  
  308. timer.Simple(25,function()
  309.  
  310. Jobs.Continue(jobid)
  311.  
  312. end)
  313.  
  314. end,
  315.  
  316. },
  317.  
  318. [3] = {
  319.  
  320. goto = cave_Generator,
  321.  
  322. OnArrive = function(ent, jobid)
  323.  
  324. ent:QueueSequence("adoorknock")
  325.  
  326. timer.Simple(8,function()
  327.  
  328. Jobs.Restart(jobid)
  329. Jobs.Continue(jobid)
  330.  
  331. end)
  332.  
  333. end,
  334.  
  335. },
  336.  
  337. })
  338.  
  339.  
  340. local jobid = Jobs.Add({
  341.  
  342. [1] = {
  343.  
  344. goto = cave_Pipe,
  345.  
  346. OnArrive = function(ent, jobid)
  347.  
  348. ent:QueueSequence("barrelpushidle")
  349.  
  350. timer.Simple(25,function()
  351.  
  352. Jobs.Continue(jobid)
  353.  
  354. end)
  355.  
  356. end,
  357.  
  358. },
  359.  
  360. [2] = {
  361.  
  362. goto = cave_Silos,
  363.  
  364. OnArrive = function(ent, jobid)
  365.  
  366. ent:QueueSequence("plazathreat2")
  367.  
  368. timer.Simple(15,function()
  369.  
  370. Jobs.Restart(jobid)
  371. Jobs.Continue(jobid)
  372.  
  373. end)
  374.  
  375. end,
  376.  
  377. },
  378.  
  379. })
  380.  
  381.  
  382. local jobid = Jobs.Add({
  383.  
  384. spawnpos = Vector(1476,4339,-6255),
  385.  
  386. [1] = {
  387.  
  388. goto = pipeRoom_Console,
  389.  
  390. OnArrive = function(ent, jobid)
  391.  
  392. ent:QueueSequence("plazathreat2")
  393.  
  394. timer.Simple(5,function()
  395.  
  396. Jobs.Continue(jobid)
  397.  
  398. end)
  399.  
  400. end,
  401.  
  402. },
  403.  
  404. [2] = {
  405.  
  406. goto = pipeRoom_Table,
  407.  
  408. OnArrive = function(ent, jobid)
  409.  
  410. ent:QueueSequence("plazathreat2")
  411.  
  412. timer.Simple(5,function()
  413. Jobs.Continue(jobid)
  414. end)
  415.  
  416. end,
  417.  
  418. },
  419.  
  420. [3] = {
  421.  
  422. goto = pipeRoom_PipeCorner,
  423.  
  424. OnArrive = function(ent, jobid)
  425.  
  426. ent:QueueSequence("plazathreat2")
  427.  
  428. timer.Simple(5,function()
  429.  
  430. Jobs.Restart(jobid)
  431. Jobs.Continue(jobid)
  432.  
  433. end)
  434.  
  435. end,
  436.  
  437. },
  438.  
  439. })
  440.  
  441.  
  442. local jobid = Jobs.Add({
  443.  
  444. [1] = {
  445.  
  446. goto = rocketRoom_Balcony,
  447.  
  448. OnArrive = function(ent, jobid)
  449.  
  450. ent:QueueSequence("busyidle2")
  451.  
  452. timer.Simple(25,function()
  453.  
  454. Jobs.Continue(jobid)
  455.  
  456. end)
  457.  
  458. end,
  459.  
  460. },
  461.  
  462. [2] = {
  463.  
  464. goto = rocketRoom_Console,
  465.  
  466. OnArrive = function(ent, jobid)
  467.  
  468. ent:QueueSequence("plazathreat2")
  469.  
  470. timer.Simple(5,function()
  471.  
  472. Jobs.Restart(jobid)
  473. Jobs.Continue(jobid)
  474.  
  475. end)
  476.  
  477. end,
  478.  
  479. },
  480.  
  481. })
  482.  
  483.  
  484. local jobid = Jobs.Add({
  485.  
  486. spawnpos = Vector(-741,5077,-5247),
  487.  
  488. [1] = {
  489.  
  490. goto = rocketRoom_Computer,
  491.  
  492. OnArrive = function(ent, jobid)
  493.  
  494. ent:QueueSequence("harassfront1")
  495. ent:QueueSequence("barrelpushidle")
  496. sound.Play("survival/breach_defuse_01.wav",rocketRoom_Computer.pos)
  497.  
  498. local count = 2
  499.  
  500. for i = 0,15 do
  501.  
  502. count = count + 1
  503.  
  504. timer.Simple(count + math.Rand(-.85,0),function()
  505. sound.Play("survival/breach_activate_01.wav",rocketRoom_Computer.pos,75,math.random(90,110))
  506. end)
  507.  
  508. end
  509.  
  510. timer.Simple(20,function()
  511.  
  512. ent:QueueSequence("harassfront1")
  513. sound.Play("survival/tablet_pickup_sdcard_01.wav",rocketRoom_Computer.pos)
  514. Jobs.Continue(jobid)
  515.  
  516. end)
  517.  
  518. end,
  519.  
  520. },
  521.  
  522. [2] = {
  523.  
  524. goto = rocketRoom_ConsoleB,
  525.  
  526. OnArrive = function(ent, jobid)
  527.  
  528. ent:QueueSequence("harassfront1")
  529. sound.Play("survival/tablet_upgradesuccess_02.wav",rocketRoom_ConsoleB.pos)
  530.  
  531. ent:QueueSequence("plazathreat2")
  532.  
  533. timer.Simple(10,function()
  534.  
  535. ent:QueueSequence("harassfront1")
  536. sound.Play("survival/tablet_upgradestart_01.wav",rocketRoom_ConsoleB.pos)
  537.  
  538. Jobs.Restart(jobid)
  539. Jobs.Continue(jobid)
  540.  
  541. end)
  542.  
  543. end,
  544.  
  545. },
  546.  
  547. })
  548.  
  549.  
  550. local jobid = Jobs.Add({
  551.  
  552. spawnpos = Vector(-189,4941,-5271),
  553.  
  554. [1] = {
  555.  
  556. goto = launchRoom_Server,
  557.  
  558. OnArrive = function(ent, jobid)
  559.  
  560. ent:QueueSequence("buttonfront")
  561. sound.Play("survival/turret_idle_01.wav",launchRoom_Server.pos)
  562.  
  563. timer.Simple(5,function()
  564. Jobs.Continue(jobid)
  565. end)
  566.  
  567. end,
  568.  
  569. },
  570.  
  571. [2] = {
  572.  
  573. goto = launchRoom_Window,
  574.  
  575. OnArrive = function(ent, jobid)
  576.  
  577. ent:QueueSequence("barrelpushidle")
  578.  
  579. timer.Simple(15,function()
  580. Jobs.Continue(jobid)
  581. end)
  582.  
  583. end,
  584.  
  585. },
  586.  
  587. [3] = {
  588.  
  589. goto = launchRoom_Readings,
  590.  
  591. OnArrive = function(ent, jobid)
  592.  
  593. ent:QueueSequence("plazathreat2")
  594.  
  595. timer.Simple(15,function()
  596. Jobs.Continue(jobid)
  597. end)
  598.  
  599. end,
  600.  
  601. },
  602.  
  603. [4] = {
  604.  
  605. goto = launchRoom_Console,
  606.  
  607. OnArrive = function(ent, jobid)
  608.  
  609. ent:QueueSequence("adoorknock")
  610.  
  611. timer.Simple(8,function()
  612.  
  613. Jobs.Restart(jobid)
  614. Jobs.Continue(jobid)
  615.  
  616. end)
  617.  
  618. end,
  619.  
  620. },
  621.  
  622. })
  623.  
  624. for i,job in pairs(Jobs.jobs) do
  625.  
  626. local cop = ents.Create("npc_tigerkriid_police")
  627. cop:SetPos(job.tasks.spawnpos or job.tasks[1].goto.pos)
  628. cop:Spawn()
  629.  
  630. timer.Simple(.1,function()
  631.  
  632. Jobs.Assign(job.jobid, cop)
  633. Jobs.Continue(job.jobid)
  634.  
  635. end)
  636.  
  637. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement