Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gateBalcony_left = {pos = Vector(-719,3139,-6023), ang = Angle(0,90,0)}
- local gateBalcony_right = {pos = Vector(801,3139,-6023), ang = Angle(0,90,0)}
- local gateEntranceLean = {pos = Vector(-991,3565,-6335), ang = Angle(0,0,0)}
- local gateCrates_s = {pos = Vector(-803,3729,-6335), ang = Angle(0,90,0)}
- local gateInsideLean = {pos = Vector(-1218,3212,-6127), ang = Angle(0,180,0)}
- local gateInside_Console01 = {pos = Vector(-1098,3164,-6127), ang = Angle(0,90,0)}
- local gateInside_Console02 = {pos = Vector(-1191,3100,-6127), ang = Angle(0,-90,0)}
- local boilerRoom_Shelf = {pos = Vector(-2785,3063,-6127), ang = Angle(0,-90,0)}
- local boilerRoom_Locker = {pos = Vector(-2922,3135,-6127), ang = Angle(0,90,0)}
- local generatorRoomLean = {pos = Vector(1779,3554,-6255), ang = Angle(0,-180,0)}
- local longElevator_Crates = {pos = Vector(1123,2853,-6575), ang = Angle(0,0,0)}
- local longElevator_Console = {pos = Vector(796,2887,-6575), ang = Angle(0,180,0)}
- local cave_Generator = {pos = Vector(818,5694,-6572), ang = Angle(0,90,0)}
- local cave_Console = {pos = Vector(1693,5795,-6575), ang = Angle(0,90,0)}
- local cave_Pipe = {pos = Vector(750,5460,-6577), ang = Angle(0,-180,0)}
- local cave_Silos = {pos = Vector(685,4762,-6575), ang = Angle(0,90,0)}
- local pipeRoom_Console = {pos = Vector(1363,4140,-6255), ang = Angle(0,0,0)}
- local pipeRoom_Table = {pos = Vector(1341,4052,-6255), ang = Angle(0,-90,0)}
- local pipeRoom_PipeCorner = {pos = Vector(1212,4090,-6255), ang = Angle(0,180,0)}
- local rocketRoom_Balcony = {pos = Vector(-620,4822,-5247), ang = Angle(0,125,0)}
- local rocketRoom_Console = {pos = Vector(-670,4682,-5247), ang = Angle(0,-10,0)}
- local rocketRoom_Computer = {pos = Vector(-903,5022,-5247), ang = Angle(0,160,0)}
- local rocketRoom_ConsoleB = {pos = Vector(-817,5121,-5247), ang = Angle(0,130,0)}
- local launchRoom_Server = {pos = Vector(-357,4801,-5247), ang = Angle(0,-90,0)}
- local launchRoom_Window = {pos = Vector(-383,4919,-5247), ang = Angle(0,-180,0)}
- local launchRoom_Readings = {pos = Vector(-109,5040,-5271), ang = Angle(0,-40,0)}
- local launchRoom_Console = {pos = Vector(-164,4768,-5271), ang = Angle(0,0,0)}
- local jobid = Jobs.Add({
- spawnpos = Vector(-988,3114,-6127),
- [1] = {
- goto = gateBalcony_left,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("barrelpushidle")
- timer.Simple(5,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = gateBalcony_right,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("barrelpushidle")
- timer.Simple(5,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- [1] = {
- goto = gateEntranceLean,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazalean")
- timer.Simple(45,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = gateCrates_s,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(5,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- spawnpos = Vector(-1368,3171,-6127),
- [1] = {
- goto = gateInsideLean,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("apcidle")
- timer.Simple(65,function()
- sound.Play("survival/info_tips_01.wav",gateInside_Console01.pos)
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = gateInside_Console01,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("buttonfront")
- sound.Play("survival/paradrop_idle_01.wav",gateInside_Console01.pos)
- timer.Simple(5,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [3] = {
- goto = gateInside_Console02,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(5,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- [1] = {
- goto = boilerRoom_Locker,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("stopwomanpre")
- timer.Simple(15,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = boilerRoom_Shelf,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("spreadwall")
- timer.Simple(5,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- spawnpos = Vector(1713,3452,-6255),
- [1] = {
- goto = generatorRoomLean,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("busyidle1")
- end,
- },
- })
- local jobid = Jobs.Add({
- spawnpos = Vector(939,2786,-6575),
- [1] = {
- goto = longElevator_Console,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(5,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = longElevator_Crates,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(5,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- [1] = {
- goto = {pos = Vector(1668,5629,-6584), ang = Angle(0,0,0)},
- OnArrive = function(ent, jobid)
- Jobs.Continue(jobid)
- end,
- },
- [2] = {
- goto = cave_Console,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(25,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [3] = {
- goto = cave_Generator,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("adoorknock")
- timer.Simple(8,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- [1] = {
- goto = cave_Pipe,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("barrelpushidle")
- timer.Simple(25,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = cave_Silos,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(15,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- spawnpos = Vector(1476,4339,-6255),
- [1] = {
- goto = pipeRoom_Console,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(5,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = pipeRoom_Table,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(5,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [3] = {
- goto = pipeRoom_PipeCorner,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(5,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- [1] = {
- goto = rocketRoom_Balcony,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("busyidle2")
- timer.Simple(25,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = rocketRoom_Console,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(5,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- spawnpos = Vector(-741,5077,-5247),
- [1] = {
- goto = rocketRoom_Computer,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("harassfront1")
- ent:QueueSequence("barrelpushidle")
- sound.Play("survival/breach_defuse_01.wav",rocketRoom_Computer.pos)
- local count = 2
- for i = 0,15 do
- count = count + 1
- timer.Simple(count + math.Rand(-.85,0),function()
- sound.Play("survival/breach_activate_01.wav",rocketRoom_Computer.pos,75,math.random(90,110))
- end)
- end
- timer.Simple(20,function()
- ent:QueueSequence("harassfront1")
- sound.Play("survival/tablet_pickup_sdcard_01.wav",rocketRoom_Computer.pos)
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = rocketRoom_ConsoleB,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("harassfront1")
- sound.Play("survival/tablet_upgradesuccess_02.wav",rocketRoom_ConsoleB.pos)
- ent:QueueSequence("plazathreat2")
- timer.Simple(10,function()
- ent:QueueSequence("harassfront1")
- sound.Play("survival/tablet_upgradestart_01.wav",rocketRoom_ConsoleB.pos)
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- local jobid = Jobs.Add({
- spawnpos = Vector(-189,4941,-5271),
- [1] = {
- goto = launchRoom_Server,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("buttonfront")
- sound.Play("survival/turret_idle_01.wav",launchRoom_Server.pos)
- timer.Simple(5,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [2] = {
- goto = launchRoom_Window,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("barrelpushidle")
- timer.Simple(15,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [3] = {
- goto = launchRoom_Readings,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("plazathreat2")
- timer.Simple(15,function()
- Jobs.Continue(jobid)
- end)
- end,
- },
- [4] = {
- goto = launchRoom_Console,
- OnArrive = function(ent, jobid)
- ent:QueueSequence("adoorknock")
- timer.Simple(8,function()
- Jobs.Restart(jobid)
- Jobs.Continue(jobid)
- end)
- end,
- },
- })
- for i,job in pairs(Jobs.jobs) do
- local cop = ents.Create("npc_tigerkriid_police")
- cop:SetPos(job.tasks.spawnpos or job.tasks[1].goto.pos)
- cop:Spawn()
- timer.Simple(.1,function()
- Jobs.Assign(job.jobid, cop)
- Jobs.Continue(job.jobid)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement