Advertisement
KoalRobertson

22SMAS - Red Dead Detention

Feb 9th, 2019
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.65 KB | None | 0 0
  1. --THE SIMPSONS HIT AND RUN - 22 SHORT MSSIONS ABOUT SPRINGFIELD
  2. --RED DEAD DETENTION
  3. --BY KOAL ROBERTSON
  4. --BETA v2.0
  5. --10/02/19
  6.  
  7. --THIS MISSION IS A MESS RIGHT NOW, THERE IS A DISABLED CUTSCENE AT THE END,
  8. --THERE IS A WHOLE LOT OF DEBUGGING OPTIONS WITH DISABLED CODE THAT DOESN'T EVEN WORK AND
  9. --THERE IS AN EXPERIMENTAL RANDOMIZED ENEMIES VERSION THAT WILL PROBABLY BECOME PART OF THE FINAL VERSION
  10.  
  11.  
  12. function RedDeadDetentionInit()
  13. InitLevelPlayerVehicle("skinn_v", "m4_carstart", "OTHER")
  14. SetForcedCar()
  15. SetMissionResetPlayerInCar("m4_carstart")
  16. SetDynaLoadData("l2z1.p3dl2r1.p3dl2r4.p3d")
  17. UsePedGroup(6)
  18. SetMissionCharacter("skinner")
  19. SkipToOtto = false
  20. DebugDialog = false
  21. Dist = 200
  22. ExtendedEnding = false
  23. DialogNotCamera = true
  24. Camera1Debug = false
  25. Camera2Debug = true
  26. end
  27.  
  28.  
  29.  
  30.  
  31.  
  32. --MUSIC NOT STOPPING WHEN OUT OF CAR
  33. --FIX DIALOG CAMERA
  34. --REBALANCE AUDIO VOLUMES
  35.  
  36.     function RedDeadDetentionNormal()
  37.         if SkipToOtto == false then
  38.  
  39.             AddStage(20) --DRIVE TO JIMBO
  40.                 SetHUDIcon("22_jimbo")
  41.                 SetStageMessageIndex(100)
  42.        
  43.                 SetMaxTraffic(3)
  44.                 AddStageVehicle("fPurple", "jimbo_carstart", "NULL", "Missions\\level02\\m4_jimbo.con" , "jimbo")
  45.                
  46.                 ObjectiveGoTo("jimbo_trigger", "carsphere")
  47.                
  48.                 ConditionTimeOut("set", 300)
  49.                
  50.                 CloseStage()
  51.    
  52.             AddStage(42069) --DESTROY JIMBO
  53.                 SetHUDIcon("22_jimbo")
  54.                 SetStageMessageIndex(101)
  55.  
  56.                 SetCompletionDialog("jimbo-busted")
  57.                 ShowStageComplete()
  58.                 SetMaxTraffic(4)
  59.  
  60.                 ActivateVehicle("fPurple", "NULL", "evade")
  61.                 AddStageWaypoints("jimbo_p", 6)
  62.  
  63.                 ObjectiveDestroyAndCollect("fPurple", "student", "22_nothing")
  64.  
  65.                 ConditionTimeOut("carry")
  66.                 ConditionFollow("fPurple", Dist)
  67.    
  68.                 CloseStage()
  69.  
  70.             AddStage(20) --DRIVE TO DOLPH
  71.                 SetHUDIcon("22_dolph")
  72.                 SetStageMessageIndex(102)
  73.        
  74.                 SetMaxTraffic(3)
  75.                 AddStageVehicle("fGreen", "dolph_carstart", "NULL", "Missions\\level02\\m4_dolph.con" , "dolph")
  76.                 AddStageVehicleCharacter("current", "jimbo", "backseat1")
  77.                
  78.                 ObjectiveGoTo("dolph_trigger", "carsphere", 1)
  79.                 RemoveDriver("jimbo")
  80.                 CloseObjective()
  81.  
  82.                 ConditionTimeOut("carry")  
  83.                
  84.                 CloseStage()
  85.  
  86.             AddStage(42069) --DESTROY DOLPH
  87.                 SetHUDIcon("22_dolph")
  88.                 SetStageMessageIndex(101)
  89.  
  90.                 SetCompletionDialog("dolph-busted")
  91.                 ShowStageComplete()
  92.                 SetMaxTraffic(3)
  93.  
  94.                 ActivateVehicle("fGreen", "NULL", "evade")
  95.                 AddStageWaypoints("dolph_p", 5)
  96.  
  97.                 ObjectiveDestroyAndCollect("fGreen", "student", "22_nothing")
  98.  
  99.                 ConditionTimeOut("carry")  
  100.                 ConditionFollow("fGreen", Dist)
  101.                
  102.                 CloseStage()
  103.  
  104.             AddStage(20) --DRIVE TO KEARNEY
  105.                 SetHUDIcon("22_kearney")
  106.                 SetStageMessageIndex(102)
  107.  
  108.                 SetMaxTraffic(4)       
  109.                 AddStageVehicle("fOrange", "kearney_carstart", "NULL", "Missions\\level02\\m4_kearney.con" , "kearney")
  110.                 AddStageVehicleCharacter("current", "dolph", "backseat2")
  111.  
  112.                 ObjectiveGoTo("kearney_trigger", "carsphere", 1)
  113.                 RemoveDriver("dolph")
  114.                 CloseObjective()
  115.  
  116.                 ConditionTimeOut("carry")
  117.                 CloseStage()
  118.  
  119.             AddStage(42069) --DESTROY KEARNEY
  120.                 SetHUDIcon("22_kearney")
  121.                 SetStageMessageIndex(101)
  122.  
  123.                 SetCompletionDialog("kearney-busted")
  124.                 ShowStageComplete()
  125.                 SetMaxTraffic(4)
  126.  
  127.                 ActivateVehicle("fOrange", "NULL", "evade")
  128.                 AddStageWaypoints("k_p", 4)
  129.  
  130.                 ObjectiveDestroyAndCollect("fOrange", "student", "22_nothing")
  131.  
  132.                 ConditionTimeOut("carry")  
  133.                 ConditionFollow("fOrange", Dist)
  134.                 CloseStage()
  135.                    
  136.             AddStage(20) --DRIVE TO BART
  137.                 SetHUDIcon("22_bart_2")
  138.                 SetStageMessageIndex(102)
  139.        
  140.                 SetMaxTraffic(5)
  141.                 AddStageVehicle("fRed", "bart_carstart", "NULL", "Missions\\level02\\m4_bart.con" , "bart")
  142.                 AddStageVehicleCharacter("current", "kearney", "backseat3")
  143.  
  144.                 ObjectiveGoTo("bart_trigger", "carsphere", 1)
  145.                 RemoveDriver("kearney")
  146.                 CloseObjective()
  147.            
  148.                 ConditionTimeOut("carry")
  149.                 CloseStage()
  150.  
  151.             AddStage(42069) --DESTROY BART
  152.                 SetHUDIcon("22_bart_2")
  153.                 SetStageMessageIndex(101)
  154.  
  155.                 SetCompletionDialog("bart-busted")
  156.                 ShowStageComplete()
  157.                 SetMaxTraffic(2)
  158.        
  159.                 ActivateVehicle("fRed", "NULL", "evade")
  160.                 SetVehicleAIParams( "fRed", 100, 101 )     
  161.                 AddStageWaypoints("b_p", 11)
  162.    
  163.                 ObjectiveDestroyAndCollect("fRed", "student", "22_nothing")
  164.  
  165.                 ConditionTimeOut("carry")
  166.                 ConditionFollow("fRed", Dist)
  167.                 CloseStage()
  168.         end
  169.         if Camera1Debug == false then
  170.             AddStage(20) --DRIVE TO OTTO
  171.                 SetHUDIcon("otto")
  172.                 SetStageMessageIndex(103)
  173.        
  174.                 AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
  175.                 SetMaxTraffic(3)
  176.                 AddStageVehicleCharacter("current", "bart", "backseat4")
  177.            
  178.  
  179.                     ObjectiveGoTo("bus_trigger", "carsphere", 1)
  180.                     if SkipToOtto == false then RemoveDriver("bart") end
  181.                     AddFinalNPC("otto", "otto")
  182.                 CloseStage()
  183.  
  184.             AddStage(25) --SPEAK TO OTTO
  185.                 SetStageMessageIndex(104)
  186.                 SetHUDIcon("otto")
  187.            
  188.                 AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
  189.            
  190.  
  191.                 ObjectiveTalkTo("otto")
  192.                 --SetSwapPlayerLocator("skndialog")
  193.        
  194.                 SetMaxTraffic(3)
  195.                 SetCompletionDialog("rddend1")
  196.                 CloseStage()
  197.         end
  198.  
  199.  
  200.             if ExtendedEnding == false then
  201.             AddStage("final"); --REMEBER OTTO, WE'RE TRUSTING YOU WITH OUR MOST VALUABLE NATURAL RESOURCE
  202.                 else
  203.                 AddStage()
  204.                 end
  205.                 --SetStageCharacterModel("invis")
  206.  
  207.                 if SkipToOtto == false then
  208.                     RemoveStageVehicleCharacter("current", "dolph")
  209.                     RemoveStageVehicleCharacter("current", "kearney")
  210.                     RemoveStageVehicleCharacter("current", "jimbo")
  211.                     end
  212.  
  213.                     if Camera1Debug == false then RemoveStageVehicleCharacter("current", "bart") end
  214.                 msPlacePlayerCarAtLocatorName("hide")
  215.                 SetMaxTraffic(0)
  216.  
  217.                 AddStageVehicle("skinn_v", "stolen", "NULL", "Missions\\level02\\m4_end.con" , "jimbo")
  218.  
  219.                 AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
  220.  
  221.                 if DebugDialog == false then
  222.                     if DialogNotCamera == true then
  223.                         AddObjective("dialogue");  
  224.                         SetDialogueInfo("bart","otto","rddend1",0);
  225.                         SetDialoguePositions("ottodialog2","cutscene_skinner_1","bart_carstart");
  226.  
  227.                         AddStageVehicleCharacter("otto_v", "bart", "s1")
  228.                         AddStageVehicleCharacter("otto_v", "dolph", "s2")
  229.                         AddStageVehicleCharacter("otto_v", "jimbo", "s3")
  230.                         AddStageVehicleCharacter("otto_v", "kearney", "s4")
  231.  
  232.                    
  233.                     else
  234.                         AddObjective("camera")
  235.                         AddStageCharacter("bart", "cutscene_skinner_1", "", "current", "fullotto_load");
  236.                         SetStageCharacterModel("skinner")
  237.                         SetObjCameraName("mission1camShape");
  238.                         SetObjMulticontName("mission1cam");
  239.                         --AddNPC("skinner", "cutscene_skinner_1")
  240.                         AddNPC("otto", "hide")
  241.                         AddNPC("otto", "cutscene_otto_1")
  242.                    
  243.                    
  244.  
  245.                     end
  246.  
  247.                     CloseObjective();      
  248.                 else
  249.                     ObjectiveTalkTo("otto")
  250.                     end
  251.                 CloseStage();
  252.  
  253.             if ExtendedEnding == true then
  254.             --I REFUSE TO SPEND ANY MORE TIME WORKING ON THIS STUPID CUTSCENE, I HATE IT I HATE IT I HATE IT
  255.  
  256.             AddStage()
  257.             AddObjective("timer")
  258.             SetDurationTime(0.01)
  259.             SetIrisWipe(0.1)
  260.             CloseObjective()
  261.             CloseStage()
  262.  
  263.                 AddStage(); --YO PRINCIPAL S, THERE GOES YOUR RIDE
  264.  
  265.                     SetMaxTraffic(0)
  266.                     --SetStageCharacterModel("invis")
  267.                     ActivateVehicle("skinn_v", "NULL", "race")
  268.                     AddStageWaypoints("sp", 1)
  269.                     SetVehicleAIParams("cVan", -51, -50)
  270.  
  271.                     if DialogNotCamera == true then
  272.  
  273.                     if DebugDialog == false then
  274.                         AddObjective("dialogue");
  275.                         SetDialogueInfo("bart","otto","rddend2",0);
  276.                         --AddNPC("skinner", "skndialog")
  277.                         AddNPC("otto", "ottodialog")
  278.                         SetDialoguePositions("cutaway_otto","cutaway_skinner","bart_carstart");
  279.                         CloseObjective();
  280.                     else
  281.                         ObjectiveTalkTo("otto")
  282.                     end
  283.  
  284.                     else
  285.  
  286.                     AddObjective("camera")
  287.                     AddStageCharacter("bart", "cutscene_skinner_1", "", "current", "fullotto_load");
  288.                         SetStageCharacterModel("skinner")
  289.                         SetObjCameraName("mission1camShape");
  290.                         SetObjMulticontName("mission1cam");
  291.                         AddNPC("otto", "hide")
  292.                         AddNPC("otto", "cutscene_otto_1")
  293.                    
  294.                    
  295.  
  296.                     end
  297.  
  298.                     CloseStage();
  299.  
  300.  
  301.                 AddStage("final"); --UGH, I'M GIVING MYSELF DETENTION
  302.                     SetMaxTraffic(0)
  303.  
  304.                     if DebugDialog == false then
  305.                         AddObjective("dialogue");
  306.                         AddNPC("npd", "ottolook")
  307.                         AddNPC("otto", "hide")
  308.                         AddNPC("otto", "ottodialog")
  309.                         AddNPC("skinner", "hide")
  310.                         SetDialogueInfo("bart","npd","rddend3",0);
  311.                         --SetDialoguePositions("skndialog","ottolook","bart_carstart");
  312.                         CloseObjective();
  313.                     else
  314.                         ObjectiveTalkTo("otto")
  315.                     end
  316.                 CloseStage();
  317.                 end
  318.             CloseMission() 
  319.             end
  320.  
  321.  
  322.     function RedDeadDetentionRandom()
  323.  
  324.  
  325.  
  326.     Jimbo = {}
  327.     Jimbo.Car = "fPurple"
  328.     Jimbo.HUDIcon = "22_jimbo"
  329.     Jimbo.CompletionDialog = "jimbo-busted"
  330.     Jimbo.Character = "jimbo"
  331.     Jimbo.AI = "Missions\\level02\\m4_jimbo.con"
  332.  
  333.     Kearney = {}
  334.     Kearney.Car = "fOrange"
  335.     Kearney.HUDIcon = "22_kearney"
  336.     Kearney.CompletionDialog = "kearney-busted"
  337.     Kearney.Character = "kearney"
  338.     Kearney.AI = "Missions\\level02\\m4_kearney.con"
  339.  
  340.     Dolph = {}
  341.     Dolph.Car = "fGreen"
  342.     Dolph.HUDIcon = "22_dolph"
  343.     Dolph.CompletionDialog = "dolph-busted"
  344.     Dolph.Character = "dolph"
  345.     Dolph.AI = "Missions\\level02\\m4_Dolph.con"
  346.  
  347.  
  348.     Orders = {123, 132, 213, 231, 312, 321}
  349.  
  350.     i = math.random(0, 5)
  351.     Order = Orders[i]
  352.     --Alert(Order)
  353.  
  354.     if Order == 123 then
  355.     Char1 = Jimbo; Char2 = Dolph; Char3 = Kearney
  356.     elseif Order == 132 then
  357.     Char1 = Jimbo; Char2 = Kearney; Char3 = Dolph
  358.     elseif Order == 213 then
  359.     Char1 = Dolph; Char2 = Jimbo; Char3 = Kearney
  360.     elseif Order == 231 then
  361.     Char1 = Dolph; Char2 = Kearney; Char3 = Jimbo
  362.     elseif Order == 312 then
  363.     Char1 = Kearney; Char2 = Jimbo; Char3 = Dolph
  364.     elseif Order == 321 then
  365.     Char1 = Kearney; Char2 = Dolph; Char3 = JIMBO
  366.     end
  367.  
  368.  
  369.         if SkipToOtto == false then
  370.  
  371.             AddStage(20) --DRIVE TO JIMBO
  372.                 SetHUDIcon(Char1.HUDIcon)
  373.                 SetStageMessageIndex(100)
  374.        
  375.                 SetMaxTraffic(3)
  376.                 AddStageVehicle(Char1.Car, "jimbo_carstart", "NULL", Char1.AI, Char1.Character)
  377.                
  378.                 ObjectiveGoTo("jimbo_trigger", "carsphere")
  379.                
  380.                 ConditionTimeOut("set", 300)
  381.                
  382.                 CloseStage()
  383.    
  384.             AddStage(42069) --DESTROY JIMBO
  385.                 SetHUDIcon(Char1.HUDIcon)
  386.                 SetStageMessageIndex(101)
  387.  
  388.                 SetCompletionDialog(Char1.CompletionDialog)
  389.                 ShowStageComplete()
  390.                 SetMaxTraffic(4)
  391.  
  392.                 ActivateVehicle(Char1.Car, "NULL", "evade")
  393.                 AddStageWaypoints("jimbo_p", 6)
  394.  
  395.                 ObjectiveDestroyAndCollect(Char1.Car, "student", "22_nothing")
  396.  
  397.                 ConditionTimeOut("carry")
  398.                 ConditionFollow(Char1.Car, Dist)
  399.    
  400.                 CloseStage()
  401.  
  402.             AddStage(20) --DRIVE TO DOLPH
  403.                 SetHUDIcon(Char2.HUDIcon)
  404.                 SetStageMessageIndex(102)
  405.        
  406.                 SetMaxTraffic(3)
  407.                 AddStageVehicle(Char2.Car, "dolph_carstart", "NULL", Char2.AI , Char2.Character)
  408.                 AddStageVehicleCharacter("current", Char1.Character, "backseat1")
  409.                
  410.                 ObjectiveGoTo("dolph_trigger", "carsphere", 1)
  411.                 RemoveDriver(Char1.Character)
  412.                 CloseObjective()
  413.  
  414.                 ConditionTimeOut("carry")  
  415.                
  416.                 CloseStage()
  417.  
  418.             AddStage(42069) --DESTROY DOLPH
  419.                 SetHUDIcon(Char2.HUDIcon)
  420.                 SetStageMessageIndex(101)
  421.  
  422.                 SetCompletionDialog(Char2.CompletionDialog)
  423.                 ShowStageComplete()
  424.                 SetMaxTraffic(3)
  425.  
  426.                 ActivateVehicle(Char2.Car, "NULL", "evade")
  427.                 AddStageWaypoints("dolph_p", 5)
  428.  
  429.                 ObjectiveDestroyAndCollect(Char2.Car, "student", "22_nothing")
  430.  
  431.                 ConditionTimeOut("carry")  
  432.                 ConditionFollow(Char2.Car, Dist)
  433.                
  434.                 CloseStage()
  435.  
  436.             AddStage(20) --DRIVE TO KEARNEY
  437.                 SetHUDIcon(Char3.HUDIcon)
  438.                 SetStageMessageIndex(102)
  439.  
  440.                 SetMaxTraffic(4)       
  441.                 AddStageVehicle(Char3.Car, "kearney_carstart", "NULL",Char3.AI, Char3.Character)
  442.                 AddStageVehicleCharacter("current", Char2.Character, "backseat2")
  443.  
  444.                 ObjectiveGoTo("kearney_trigger", "carsphere", 1)
  445.                 RemoveDriver(Char2.Character)
  446.                 CloseObjective()
  447.  
  448.                 ConditionTimeOut("carry")
  449.                 CloseStage()
  450.  
  451.             AddStage(42069) --DESTROY KEARNEY
  452.                 SetHUDIcon(Char3.HUDIcon)
  453.                 SetStageMessageIndex(101)
  454.  
  455.                 SetCompletionDialog(Char3.CompletionDialog)
  456.                 ShowStageComplete()
  457.                 SetMaxTraffic(4)
  458.  
  459.                 ActivateVehicle(Char3.Car, "NULL", "evade")
  460.                 AddStageWaypoints("k_p", 4)
  461.  
  462.                 ObjectiveDestroyAndCollect(Char3.Car, "student", "22_nothing")
  463.  
  464.                 ConditionTimeOut("carry")  
  465.                 ConditionFollow(Char3.Car, Dist)
  466.                 CloseStage()
  467.                    
  468.             AddStage(20) --DRIVE TO BART
  469.                 SetHUDIcon("22_bart_2")
  470.                 SetStageMessageIndex(102)
  471.        
  472.                 SetMaxTraffic(5)
  473.                 AddStageVehicle("fRed", "bart_carstart", "NULL", "Missions\\level02\\m4_bart.con" , "bart")
  474.                 AddStageVehicleCharacter("current",Char3.Character, "backseat3")
  475.  
  476.                 ObjectiveGoTo("bart_trigger", "carsphere", 1)
  477.                 RemoveDriver(Char3.Character)
  478.                 CloseObjective()
  479.            
  480.                 ConditionTimeOut("carry")
  481.                 CloseStage()
  482.  
  483.             AddStage(42069) --DESTROY BART
  484.                 SetHUDIcon("22_bart_2")
  485.                 SetStageMessageIndex(101)
  486.  
  487.                 SetCompletionDialog("bart-busted")
  488.                 ShowStageComplete()
  489.                 SetMaxTraffic(2)
  490.        
  491.                 ActivateVehicle("fRed", "NULL", "evade")
  492.                 SetVehicleAIParams( "fRed", 100, 101 )     
  493.                 AddStageWaypoints("b_p", 11)
  494.    
  495.                 ObjectiveDestroyAndCollect("fRed", "student", "22_nothing")
  496.  
  497.                 ConditionTimeOut("carry")
  498.                 ConditionFollow("fRed", Dist)
  499.                 CloseStage()
  500.         end
  501.         if Camera1Debug == false then
  502.             AddStage(20) --DRIVE TO OTTO
  503.                 SetHUDIcon("otto")
  504.                 SetStageMessageIndex(103)
  505.        
  506.                 AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
  507.                 SetMaxTraffic(3)
  508.                 AddStageVehicleCharacter("current", "bart", "backseat4")
  509.            
  510.  
  511.                     ObjectiveGoTo("bus_trigger", "carsphere", 1)
  512.                     if SkipToOtto == false then RemoveDriver("bart") end
  513.                     AddFinalNPC("otto", "otto")
  514.                 CloseStage()
  515.  
  516.             AddStage(25) --SPEAK TO OTTO
  517.                 SetStageMessageIndex(104)
  518.                 SetHUDIcon("otto")
  519.            
  520.                 AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
  521.            
  522.  
  523.                 ObjectiveTalkTo("otto")
  524.                 --SetSwapPlayerLocator("skndialog")
  525.        
  526.                 SetMaxTraffic(3)
  527.                 SetCompletionDialog("rddend1")
  528.                 CloseStage()
  529.         end
  530.  
  531.  
  532.             if ExtendedEnding == false then
  533.             AddStage("final"); --REMEBER OTTO, WE'RE TRUSTING YOU WITH OUR MOST VALUABLE NATURAL RESOURCE
  534.                 else
  535.                 AddStage()
  536.                 end
  537.                 --SetStageCharacterModel("invis")
  538.  
  539.                 if SkipToOtto == false then
  540.                     RemoveStageVehicleCharacter("current", "dolph")
  541.                     RemoveStageVehicleCharacter("current", "kearney")
  542.                     RemoveStageVehicleCharacter("current", "jimbo")
  543.                     end
  544.  
  545.                     if Camera1Debug == false then RemoveStageVehicleCharacter("current", "bart") end
  546.                 msPlacePlayerCarAtLocatorName("hide")
  547.                 SetMaxTraffic(0)
  548.  
  549.                 AddStageVehicle("skinn_v", "stolen", "NULL", "Missions\\level02\\m4_end.con" , "jimbo")
  550.  
  551.                 AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
  552.  
  553.                 if DebugDialog == false then
  554.                     if DialogNotCamera == true then
  555.                         AddObjective("dialogue");  
  556.                         SetDialogueInfo("bart","otto","rddend1",0);
  557.                         SetDialoguePositions("ottodialog2","cutscene_skinner_1","bart_carstart");
  558.  
  559.                         AddStageVehicleCharacter("otto_v", "bart", "s1")
  560.                         AddStageVehicleCharacter("otto_v", "dolph", "s2")
  561.                         AddStageVehicleCharacter("otto_v", "jimbo", "s3")
  562.                         AddStageVehicleCharacter("otto_v", "kearney", "s4")
  563.  
  564.                    
  565.                     else
  566.                         AddObjective("camera")
  567.                         AddStageCharacter("bart", "cutscene_skinner_1", "", "current", "fullotto_load");
  568.                         SetStageCharacterModel("skinner")
  569.                         SetObjCameraName("mission1camShape");
  570.                         SetObjMulticontName("mission1cam");
  571.                         --AddNPC("skinner", "cutscene_skinner_1")
  572.                         AddNPC("otto", "hide")
  573.                         AddNPC("otto", "cutscene_otto_1")
  574.                    
  575.                    
  576.  
  577.                     end
  578.  
  579.                     CloseObjective();      
  580.                 else
  581.                     ObjectiveTalkTo("otto")
  582.                     end
  583.                 CloseStage();
  584.  
  585.             if ExtendedEnding == true then
  586.             --I REFUSE TO SPEND ANY MORE TIME WORKING ON THIS STUPID CUTSCENE, I HATE IT I HATE IT I HATE IT
  587.  
  588.             AddStage()
  589.             AddObjective("timer")
  590.             SetDurationTime(0.01)
  591.             SetIrisWipe(0.1)
  592.             CloseObjective()
  593.             CloseStage()
  594.  
  595.                 AddStage(); --YO PRINCIPAL S, THERE GOES YOUR RIDE
  596.  
  597.                     SetMaxTraffic(0)
  598.                     --SetStageCharacterModel("invis")
  599.                     ActivateVehicle("skinn_v", "NULL", "race")
  600.                     AddStageWaypoints("sp", 1)
  601.                     SetVehicleAIParams("cVan", -51, -50)
  602.  
  603.                     if DialogNotCamera == true then
  604.  
  605.                     if DebugDialog == false then
  606.                         AddObjective("dialogue");
  607.                         SetDialogueInfo("bart","otto","rddend2",0);
  608.                         --AddNPC("skinner", "skndialog")
  609.                         AddNPC("otto", "ottodialog")
  610.                         SetDialoguePositions("cutaway_otto","cutaway_skinner","bart_carstart");
  611.                         CloseObjective();
  612.                     else
  613.                         ObjectiveTalkTo("otto")
  614.                     end
  615.  
  616.                     else
  617.  
  618.                     AddObjective("camera")
  619.                     AddStageCharacter("bart", "cutscene_skinner_1", "", "current", "fullotto_load");
  620.                         SetStageCharacterModel("skinner")
  621.                         SetObjCameraName("mission1camShape");
  622.                         SetObjMulticontName("mission1cam");
  623.                         AddNPC("otto", "hide")
  624.                         AddNPC("otto", "cutscene_otto_1")
  625.                    
  626.                    
  627.  
  628.                     end
  629.  
  630.                     CloseStage();
  631.  
  632.  
  633.                 AddStage("final"); --UGH, I'M GIVING MYSELF DETENTION
  634.                     SetMaxTraffic(0)
  635.  
  636.                     if DebugDialog == false then
  637.                         AddObjective("dialogue");
  638.                         AddNPC("npd", "ottolook")
  639.                         AddNPC("otto", "hide")
  640.                         AddNPC("otto", "ottodialog")
  641.                         AddNPC("skinner", "hide")
  642.                         SetDialogueInfo("bart","npd","rddend3",0);
  643.                         --SetDialoguePositions("skndialog","ottolook","bart_carstart");
  644.                         CloseObjective();
  645.                     else
  646.                         ObjectiveTalkTo("otto")
  647.                     end
  648.                 CloseStage();
  649.                 end
  650.             CloseMission() 
  651.             end
  652.  
  653.  
  654.  
  655.  
  656. function RedDeadDetention()
  657.     RedDeadDetentionInit()
  658.     RedDeadDetentionRandom()
  659. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement