Advertisement
KoalRobertson

SHAR Love Burns v1.0.2

Feb 16th, 2019
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.94 KB | None | 0 0
  1. --THE SIMPSONS HIT AND RUN
  2. --LOVE BURNS
  3. --BY KOAL ROBERTSON
  4. --BETA v1.0.2 (this version is slightly more stomachable)
  5. --17/02/19
  6.  
  7. function LoveBurnsInit()
  8.     SetDynaLoadData("l3r2.p3d;l3z2.p3d;l3z3.p3d;");
  9.     InitLevelPlayerVehicle("smith_v","BFY_carstart","OTHER")
  10.     SetMissionResetPlayerInCar("BFY_carstart")
  11.     UsePedGroup( 0 )
  12.     SetForcedCar()
  13.     SetMissionCharacter("smitnb")
  14.  
  15.  
  16. end
  17.  
  18. --Smithers dismember the corpse
  19. --From hell heart I stab at thee
  20. --just add more Burns dialog for stuff
  21. --have Smithers go to say something before Homer interrupts
  22. --fix pathfinding for destroy
  23. --fix destroy con file
  24. --fix smith_v con file, just make it work better for what I'm trying to do
  25. --lighthouse dialog stage find dialog idk
  26. --fix HUD icons and make one for WORKERS
  27. --probably more but I just want to go to bed right now
  28.  
  29. SkipToDest = true --for testing the destroy stage
  30. SkipToAvoid1 = false
  31. SkipToLighthouse = false
  32. ThisMissionFuckingSucks = true
  33.  
  34. function LoveBurnsNormal()
  35.  
  36. if SkipToLighthouse == false then
  37. if SkipToDest == false then
  38. if SkipToAvoid1 == false then
  39.     --COLLECT THE TUXEDO
  40.         AddStage()
  41.         SetStageCharacterModel("sminb")
  42.         SetStageMessageIndex(100)
  43.         SetHUDIcon("tuxedo")
  44.         ShowStageComplete()
  45.        
  46.  
  47.         ObjectiveDelivery("tuxedo", "tux", 1)
  48.         AddFinalNPC("smithers", "hide")
  49.         SetMaxTraffic(0)
  50.  
  51.         ConditionTimeOut("set", 10)
  52.        
  53.  
  54.         CloseStage()
  55.  
  56.     --COLLECT ALL THE CHOCOLATES
  57.         AddStage()
  58.         SetStageMessageIndex(101)
  59.         SetHUDIcon("22_choco")
  60.         ShowStageComplete()
  61.  
  62.         ObjectiveDelivery("chocolate", "22_choc", 10)
  63.  
  64.         ConditionTimeOut("add", 30)
  65.         SetMaxTraffic(2)
  66.  
  67.         CloseStage()
  68.  
  69.     --DRIVE TO THE CASINO
  70.         AddStage()
  71.         SetStageMessageIndex(102)
  72.         SetHUDIcon("casino")
  73.  
  74.         ObjectiveGoTo("casino", "carsphere", 1)
  75.         TurnGotoDialogOff()
  76.         AddNPC("burns", "burns")
  77.         AddFinalNPC("smithers", "hide")
  78.         ConditionTimeOut("set", 15)
  79.         SetMaxTraffic(3)
  80.  
  81.         CloseStage()
  82.  
  83.     --PICK UP MR BURNS
  84.         AddStage()
  85.         SetStageMessageIndex(103)
  86.         SetHUDIcon("22_burns")
  87.         ShowStageComplete()
  88.  
  89.         ObjectiveGoTo("burns_pickup")
  90.         SetCompletionDialog("fun-fun-fun")
  91.  
  92.        
  93.  
  94.         CloseStage()
  95. end
  96.     --DRIVE MR BURNS TO THE BEACH
  97.         AddStage()
  98.         SetStageCharacterModel("smitux")
  99.         SetStageMessageIndex(104)
  100.         SetHUDIcon("squidp")
  101.         AddStageVehicleCharacter("smith_v", "burns")
  102.         --PutMFPlayerInCar()
  103.         AddStageVehicle("homer_v", "workers_start1", "NULL", "Missions\\BFY\\3\\workers1.con", "homer")
  104.         AddStageVehicleCharacter("homer_v", "lenny")
  105.         AddStageVehicleCharacter("homer_v", "carl", "backseat")
  106.         --AddStageCharacter("lisa", "", "", "current", "respawn")
  107.         ObjectiveGoTo("beach", "carsphere", 1)
  108.         AddNPC("burns", "hide")
  109.         AddFinalNPC("smithers", "hide")
  110.         ConditionTimeOut("set", 15)
  111.         SetCompletionDialog("hey-mr-smithers")
  112.         CloseStage()
  113.  
  114.     --GET AWAY FROM THE POWER PLANT WORKERS (these losetail objectives are the worst fucking things)
  115.         AddStage()
  116.         SetStageCharacterModel("smitux")
  117.         SetStageMessageIndex(105)
  118.         SetHUDIcon("homer")
  119.         ShowStageComplete()
  120.  
  121.         ActivateVehicle("homer_v", "NULL", "chase")
  122.  
  123.         ObjectiveLoseTail("homer_v", 200)
  124.  
  125.         ConditionTimeOut("set", 30)
  126.         CloseStage()
  127.  
  128.     --DRIVE MR BURNS TO THE SPRINGFIELD SIGN
  129.         AddStage()
  130.         SetStageCharacterModel("smitux")
  131.         SetStageMessageIndex(106)
  132.         SetHUDIcon("spsign")
  133.  
  134.         AddStageVehicle("homer_v2", "workers_start2", "NULL", "Missions\\BFY\\3\\workers2.con", "homer")
  135.         AddStageVehicleCharacter("homer_v2", "lenny")
  136.         AddStageVehicleCharacter("homer_v2", "carl", "backseat")
  137.         SetCompletionDialog("look-out-smithers")
  138.         ObjectiveGoTo("spsign")
  139.         ConditionTimeOut("add", 30)
  140.         SetMaxTraffic(2)
  141.         CloseStage()
  142.  
  143.  
  144.     --GET AWAY FROM THE POWER PLANT WORKERS
  145.         AddStage()
  146.         SetStageCharacterModel("smitux")
  147.         SetStageMessageIndex(105)
  148.         SetHUDIcon("homer")
  149.         ShowStageComplete()
  150.  
  151.         ActivateVehicle("homer_v2", "NULL", "chase")
  152.  
  153.         ObjectiveLoseTail("homer_v2", 200)
  154.         SetMaxTraffic(5)
  155.        
  156.  
  157.         ConditionTimeOut("set", 30)
  158.         CloseStage()
  159.  
  160.         end
  161.  
  162.     --DRIVE MR BURNS TO THE ROMANTIC RESTARAUNT
  163.         AddStage()
  164.         SetStageCharacterModel("smitux")
  165.         SetStageMessageIndex(107)
  166.         SetHUDIcon("22_eatery")
  167.  
  168.         if SkipToDest == true then AddStageVehicleCharacter("smith_v", "burns") end
  169.  
  170.         AddStageVehicle("homer_v3", "workers_start3", "NULL", "Missions\\BFY\\3\\workers3.con", "homer")
  171.         AddStageVehicleCharacter("homer_v3", "lenny")
  172.         AddStageVehicleCharacter("homer_v3", "carl", "backseat")
  173.         SetCompletionDialog("destroy-him")
  174.         ObjectiveGoTo("eatery")
  175.         ConditionTimeOut("add", 30)
  176.         SetMaxTraffic(3)
  177.         CloseStage()
  178.  
  179.  
  180.     --DESTROY THE POWER PLANT WORKERS (this destroy objective is so idiotic, luckily you can't tell how awful it is just from the mission script alone)
  181.     --I thouhgt I figured out how to do good destroy stages in Red Dead Detention but apparently not cause this is abhorrent
  182.         AddStage()
  183.         SetStageCharacterModel("smitux")
  184.         SetStageMessageIndex(108)
  185.         SetHUDIcon("homer")
  186.         ShowStageComplete()
  187.  
  188.         ActivateVehicle("homer_v3", "NULL", "race")
  189.         SetVehicleAIParams("homer_v3", 50, 51)
  190.         AddStageWaypoints("destpath", 10) --(this path is fucked oh boy I hate it)
  191.  
  192.         ObjectiveDestroyAndCollect("homer_v3", "22_nothing", "22_nothing")
  193.        
  194.         ConditionTimeOut("set", 60)
  195.         ConditionFollow("homer_v3", 200)
  196.         SetMaxTraffic(2)
  197.         CloseStage()
  198.  
  199.        
  200. end
  201.     --DRIVE MR BURNS TO THE LIGHTHOUSE
  202.         AddStage()
  203.         SetStageCharacterModel("smitux")
  204.         SetStageMessageIndex(109)
  205.         SetHUDIcon("22_lighthouse")
  206.         ObjectiveGoTo("lighthouse")
  207.         ConditionTimeOut("add", 30)
  208.         SetIrisWipe(0.1)
  209.         CloseStage()
  210.  
  211.  
  212.  
  213.         AddStage()
  214.         SetStageCharacterModel("smitux")
  215.  
  216.         AddObjective("talkto")
  217.         SetTalkToTarget("burns")
  218.         AddNPC("burns", "burns_end")
  219.        
  220.         CloseObjective()
  221.         CloseStage()
  222.        
  223.  
  224.  
  225.     CloseMission()
  226. end
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233. function LoveBurns()
  234.  
  235.     LoveBurnsInit()
  236.  
  237.         LoveBurnsNormal()
  238.  
  239.  
  240. end
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308. --motherfucker I hate this mission
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement