Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --THE SIMPSONS HIT AND RUN - 22 SHORT MSSIONS ABOUT SPRINGFIELD
- --RED DEAD DETENTION
- --BY KOAL ROBERTSON
- --BETA v2.0
- --10/02/19
- --THIS MISSION IS A MESS RIGHT NOW, THERE IS A DISABLED CUTSCENE AT THE END,
- --THERE IS A WHOLE LOT OF DEBUGGING OPTIONS WITH DISABLED CODE THAT DOESN'T EVEN WORK AND
- --THERE IS AN EXPERIMENTAL RANDOMIZED ENEMIES VERSION THAT WILL PROBABLY BECOME PART OF THE FINAL VERSION
- function RedDeadDetentionInit()
- InitLevelPlayerVehicle("skinn_v", "m4_carstart", "OTHER")
- SetForcedCar()
- SetMissionResetPlayerInCar("m4_carstart")
- SetDynaLoadData("l2z1.p3dl2r1.p3dl2r4.p3d")
- UsePedGroup(6)
- SetMissionCharacter("skinner")
- SkipToOtto = false
- DebugDialog = false
- Dist = 200
- ExtendedEnding = false
- DialogNotCamera = true
- Camera1Debug = false
- Camera2Debug = true
- end
- --MUSIC NOT STOPPING WHEN OUT OF CAR
- --FIX DIALOG CAMERA
- --REBALANCE AUDIO VOLUMES
- function RedDeadDetentionNormal()
- if SkipToOtto == false then
- AddStage(20) --DRIVE TO JIMBO
- SetHUDIcon("22_jimbo")
- SetStageMessageIndex(100)
- SetMaxTraffic(3)
- AddStageVehicle("fPurple", "jimbo_carstart", "NULL", "Missions\\level02\\m4_jimbo.con" , "jimbo")
- ObjectiveGoTo("jimbo_trigger", "carsphere")
- ConditionTimeOut("set", 300)
- CloseStage()
- AddStage(42069) --DESTROY JIMBO
- SetHUDIcon("22_jimbo")
- SetStageMessageIndex(101)
- SetCompletionDialog("jimbo-busted")
- ShowStageComplete()
- SetMaxTraffic(4)
- ActivateVehicle("fPurple", "NULL", "evade")
- AddStageWaypoints("jimbo_p", 6)
- ObjectiveDestroyAndCollect("fPurple", "student", "22_nothing")
- ConditionTimeOut("carry")
- ConditionFollow("fPurple", Dist)
- CloseStage()
- AddStage(20) --DRIVE TO DOLPH
- SetHUDIcon("22_dolph")
- SetStageMessageIndex(102)
- SetMaxTraffic(3)
- AddStageVehicle("fGreen", "dolph_carstart", "NULL", "Missions\\level02\\m4_dolph.con" , "dolph")
- AddStageVehicleCharacter("current", "jimbo", "backseat1")
- ObjectiveGoTo("dolph_trigger", "carsphere", 1)
- RemoveDriver("jimbo")
- CloseObjective()
- ConditionTimeOut("carry")
- CloseStage()
- AddStage(42069) --DESTROY DOLPH
- SetHUDIcon("22_dolph")
- SetStageMessageIndex(101)
- SetCompletionDialog("dolph-busted")
- ShowStageComplete()
- SetMaxTraffic(3)
- ActivateVehicle("fGreen", "NULL", "evade")
- AddStageWaypoints("dolph_p", 5)
- ObjectiveDestroyAndCollect("fGreen", "student", "22_nothing")
- ConditionTimeOut("carry")
- ConditionFollow("fGreen", Dist)
- CloseStage()
- AddStage(20) --DRIVE TO KEARNEY
- SetHUDIcon("22_kearney")
- SetStageMessageIndex(102)
- SetMaxTraffic(4)
- AddStageVehicle("fOrange", "kearney_carstart", "NULL", "Missions\\level02\\m4_kearney.con" , "kearney")
- AddStageVehicleCharacter("current", "dolph", "backseat2")
- ObjectiveGoTo("kearney_trigger", "carsphere", 1)
- RemoveDriver("dolph")
- CloseObjective()
- ConditionTimeOut("carry")
- CloseStage()
- AddStage(42069) --DESTROY KEARNEY
- SetHUDIcon("22_kearney")
- SetStageMessageIndex(101)
- SetCompletionDialog("kearney-busted")
- ShowStageComplete()
- SetMaxTraffic(4)
- ActivateVehicle("fOrange", "NULL", "evade")
- AddStageWaypoints("k_p", 4)
- ObjectiveDestroyAndCollect("fOrange", "student", "22_nothing")
- ConditionTimeOut("carry")
- ConditionFollow("fOrange", Dist)
- CloseStage()
- AddStage(20) --DRIVE TO BART
- SetHUDIcon("22_bart_2")
- SetStageMessageIndex(102)
- SetMaxTraffic(5)
- AddStageVehicle("fRed", "bart_carstart", "NULL", "Missions\\level02\\m4_bart.con" , "bart")
- AddStageVehicleCharacter("current", "kearney", "backseat3")
- ObjectiveGoTo("bart_trigger", "carsphere", 1)
- RemoveDriver("kearney")
- CloseObjective()
- ConditionTimeOut("carry")
- CloseStage()
- AddStage(42069) --DESTROY BART
- SetHUDIcon("22_bart_2")
- SetStageMessageIndex(101)
- SetCompletionDialog("bart-busted")
- ShowStageComplete()
- SetMaxTraffic(2)
- ActivateVehicle("fRed", "NULL", "evade")
- SetVehicleAIParams( "fRed", 100, 101 )
- AddStageWaypoints("b_p", 11)
- ObjectiveDestroyAndCollect("fRed", "student", "22_nothing")
- ConditionTimeOut("carry")
- ConditionFollow("fRed", Dist)
- CloseStage()
- end
- if Camera1Debug == false then
- AddStage(20) --DRIVE TO OTTO
- SetHUDIcon("otto")
- SetStageMessageIndex(103)
- AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
- SetMaxTraffic(3)
- AddStageVehicleCharacter("current", "bart", "backseat4")
- ObjectiveGoTo("bus_trigger", "carsphere", 1)
- if SkipToOtto == false then RemoveDriver("bart") end
- AddFinalNPC("otto", "otto")
- CloseStage()
- AddStage(25) --SPEAK TO OTTO
- SetStageMessageIndex(104)
- SetHUDIcon("otto")
- AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
- ObjectiveTalkTo("otto")
- --SetSwapPlayerLocator("skndialog")
- SetMaxTraffic(3)
- SetCompletionDialog("rddend1")
- CloseStage()
- end
- if ExtendedEnding == false then
- AddStage("final"); --REMEBER OTTO, WE'RE TRUSTING YOU WITH OUR MOST VALUABLE NATURAL RESOURCE
- else
- AddStage()
- end
- --SetStageCharacterModel("invis")
- if SkipToOtto == false then
- RemoveStageVehicleCharacter("current", "dolph")
- RemoveStageVehicleCharacter("current", "kearney")
- RemoveStageVehicleCharacter("current", "jimbo")
- end
- if Camera1Debug == false then RemoveStageVehicleCharacter("current", "bart") end
- msPlacePlayerCarAtLocatorName("hide")
- SetMaxTraffic(0)
- AddStageVehicle("skinn_v", "stolen", "NULL", "Missions\\level02\\m4_end.con" , "jimbo")
- AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
- if DebugDialog == false then
- if DialogNotCamera == true then
- AddObjective("dialogue");
- SetDialogueInfo("bart","otto","rddend1",0);
- SetDialoguePositions("ottodialog2","cutscene_skinner_1","bart_carstart");
- AddStageVehicleCharacter("otto_v", "bart", "s1")
- AddStageVehicleCharacter("otto_v", "dolph", "s2")
- AddStageVehicleCharacter("otto_v", "jimbo", "s3")
- AddStageVehicleCharacter("otto_v", "kearney", "s4")
- else
- AddObjective("camera")
- AddStageCharacter("bart", "cutscene_skinner_1", "", "current", "fullotto_load");
- SetStageCharacterModel("skinner")
- SetObjCameraName("mission1camShape");
- SetObjMulticontName("mission1cam");
- --AddNPC("skinner", "cutscene_skinner_1")
- AddNPC("otto", "hide")
- AddNPC("otto", "cutscene_otto_1")
- end
- CloseObjective();
- else
- ObjectiveTalkTo("otto")
- end
- CloseStage();
- if ExtendedEnding == true then
- --I REFUSE TO SPEND ANY MORE TIME WORKING ON THIS STUPID CUTSCENE, I HATE IT I HATE IT I HATE IT
- AddStage()
- AddObjective("timer")
- SetDurationTime(0.01)
- SetIrisWipe(0.1)
- CloseObjective()
- CloseStage()
- AddStage(); --YO PRINCIPAL S, THERE GOES YOUR RIDE
- SetMaxTraffic(0)
- --SetStageCharacterModel("invis")
- ActivateVehicle("skinn_v", "NULL", "race")
- AddStageWaypoints("sp", 1)
- SetVehicleAIParams("cVan", -51, -50)
- if DialogNotCamera == true then
- if DebugDialog == false then
- AddObjective("dialogue");
- SetDialogueInfo("bart","otto","rddend2",0);
- --AddNPC("skinner", "skndialog")
- AddNPC("otto", "ottodialog")
- SetDialoguePositions("cutaway_otto","cutaway_skinner","bart_carstart");
- CloseObjective();
- else
- ObjectiveTalkTo("otto")
- end
- else
- AddObjective("camera")
- AddStageCharacter("bart", "cutscene_skinner_1", "", "current", "fullotto_load");
- SetStageCharacterModel("skinner")
- SetObjCameraName("mission1camShape");
- SetObjMulticontName("mission1cam");
- AddNPC("otto", "hide")
- AddNPC("otto", "cutscene_otto_1")
- end
- CloseStage();
- AddStage("final"); --UGH, I'M GIVING MYSELF DETENTION
- SetMaxTraffic(0)
- if DebugDialog == false then
- AddObjective("dialogue");
- AddNPC("npd", "ottolook")
- AddNPC("otto", "hide")
- AddNPC("otto", "ottodialog")
- AddNPC("skinner", "hide")
- SetDialogueInfo("bart","npd","rddend3",0);
- --SetDialoguePositions("skndialog","ottolook","bart_carstart");
- CloseObjective();
- else
- ObjectiveTalkTo("otto")
- end
- CloseStage();
- end
- CloseMission()
- end
- function RedDeadDetentionRandom()
- Jimbo = {}
- Jimbo.Car = "fPurple"
- Jimbo.HUDIcon = "22_jimbo"
- Jimbo.CompletionDialog = "jimbo-busted"
- Jimbo.Character = "jimbo"
- Jimbo.AI = "Missions\\level02\\m4_jimbo.con"
- Kearney = {}
- Kearney.Car = "fOrange"
- Kearney.HUDIcon = "22_kearney"
- Kearney.CompletionDialog = "kearney-busted"
- Kearney.Character = "kearney"
- Kearney.AI = "Missions\\level02\\m4_kearney.con"
- Dolph = {}
- Dolph.Car = "fGreen"
- Dolph.HUDIcon = "22_dolph"
- Dolph.CompletionDialog = "dolph-busted"
- Dolph.Character = "dolph"
- Dolph.AI = "Missions\\level02\\m4_Dolph.con"
- Orders = {123, 132, 213, 231, 312, 321}
- i = math.random(0, 5)
- Order = Orders[i]
- --Alert(Order)
- if Order == 123 then
- Char1 = Jimbo; Char2 = Dolph; Char3 = Kearney
- elseif Order == 132 then
- Char1 = Jimbo; Char2 = Kearney; Char3 = Dolph
- elseif Order == 213 then
- Char1 = Dolph; Char2 = Jimbo; Char3 = Kearney
- elseif Order == 231 then
- Char1 = Dolph; Char2 = Kearney; Char3 = Jimbo
- elseif Order == 312 then
- Char1 = Kearney; Char2 = Jimbo; Char3 = Dolph
- elseif Order == 321 then
- Char1 = Kearney; Char2 = Dolph; Char3 = JIMBO
- end
- if SkipToOtto == false then
- AddStage(20) --DRIVE TO JIMBO
- SetHUDIcon(Char1.HUDIcon)
- SetStageMessageIndex(100)
- SetMaxTraffic(3)
- AddStageVehicle(Char1.Car, "jimbo_carstart", "NULL", Char1.AI, Char1.Character)
- ObjectiveGoTo("jimbo_trigger", "carsphere")
- ConditionTimeOut("set", 300)
- CloseStage()
- AddStage(42069) --DESTROY JIMBO
- SetHUDIcon(Char1.HUDIcon)
- SetStageMessageIndex(101)
- SetCompletionDialog(Char1.CompletionDialog)
- ShowStageComplete()
- SetMaxTraffic(4)
- ActivateVehicle(Char1.Car, "NULL", "evade")
- AddStageWaypoints("jimbo_p", 6)
- ObjectiveDestroyAndCollect(Char1.Car, "student", "22_nothing")
- ConditionTimeOut("carry")
- ConditionFollow(Char1.Car, Dist)
- CloseStage()
- AddStage(20) --DRIVE TO DOLPH
- SetHUDIcon(Char2.HUDIcon)
- SetStageMessageIndex(102)
- SetMaxTraffic(3)
- AddStageVehicle(Char2.Car, "dolph_carstart", "NULL", Char2.AI , Char2.Character)
- AddStageVehicleCharacter("current", Char1.Character, "backseat1")
- ObjectiveGoTo("dolph_trigger", "carsphere", 1)
- RemoveDriver(Char1.Character)
- CloseObjective()
- ConditionTimeOut("carry")
- CloseStage()
- AddStage(42069) --DESTROY DOLPH
- SetHUDIcon(Char2.HUDIcon)
- SetStageMessageIndex(101)
- SetCompletionDialog(Char2.CompletionDialog)
- ShowStageComplete()
- SetMaxTraffic(3)
- ActivateVehicle(Char2.Car, "NULL", "evade")
- AddStageWaypoints("dolph_p", 5)
- ObjectiveDestroyAndCollect(Char2.Car, "student", "22_nothing")
- ConditionTimeOut("carry")
- ConditionFollow(Char2.Car, Dist)
- CloseStage()
- AddStage(20) --DRIVE TO KEARNEY
- SetHUDIcon(Char3.HUDIcon)
- SetStageMessageIndex(102)
- SetMaxTraffic(4)
- AddStageVehicle(Char3.Car, "kearney_carstart", "NULL",Char3.AI, Char3.Character)
- AddStageVehicleCharacter("current", Char2.Character, "backseat2")
- ObjectiveGoTo("kearney_trigger", "carsphere", 1)
- RemoveDriver(Char2.Character)
- CloseObjective()
- ConditionTimeOut("carry")
- CloseStage()
- AddStage(42069) --DESTROY KEARNEY
- SetHUDIcon(Char3.HUDIcon)
- SetStageMessageIndex(101)
- SetCompletionDialog(Char3.CompletionDialog)
- ShowStageComplete()
- SetMaxTraffic(4)
- ActivateVehicle(Char3.Car, "NULL", "evade")
- AddStageWaypoints("k_p", 4)
- ObjectiveDestroyAndCollect(Char3.Car, "student", "22_nothing")
- ConditionTimeOut("carry")
- ConditionFollow(Char3.Car, Dist)
- CloseStage()
- AddStage(20) --DRIVE TO BART
- SetHUDIcon("22_bart_2")
- SetStageMessageIndex(102)
- SetMaxTraffic(5)
- AddStageVehicle("fRed", "bart_carstart", "NULL", "Missions\\level02\\m4_bart.con" , "bart")
- AddStageVehicleCharacter("current",Char3.Character, "backseat3")
- ObjectiveGoTo("bart_trigger", "carsphere", 1)
- RemoveDriver(Char3.Character)
- CloseObjective()
- ConditionTimeOut("carry")
- CloseStage()
- AddStage(42069) --DESTROY BART
- SetHUDIcon("22_bart_2")
- SetStageMessageIndex(101)
- SetCompletionDialog("bart-busted")
- ShowStageComplete()
- SetMaxTraffic(2)
- ActivateVehicle("fRed", "NULL", "evade")
- SetVehicleAIParams( "fRed", 100, 101 )
- AddStageWaypoints("b_p", 11)
- ObjectiveDestroyAndCollect("fRed", "student", "22_nothing")
- ConditionTimeOut("carry")
- ConditionFollow("fRed", Dist)
- CloseStage()
- end
- if Camera1Debug == false then
- AddStage(20) --DRIVE TO OTTO
- SetHUDIcon("otto")
- SetStageMessageIndex(103)
- AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
- SetMaxTraffic(3)
- AddStageVehicleCharacter("current", "bart", "backseat4")
- ObjectiveGoTo("bus_trigger", "carsphere", 1)
- if SkipToOtto == false then RemoveDriver("bart") end
- AddFinalNPC("otto", "otto")
- CloseStage()
- AddStage(25) --SPEAK TO OTTO
- SetStageMessageIndex(104)
- SetHUDIcon("otto")
- AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
- ObjectiveTalkTo("otto")
- --SetSwapPlayerLocator("skndialog")
- SetMaxTraffic(3)
- SetCompletionDialog("rddend1")
- CloseStage()
- end
- if ExtendedEnding == false then
- AddStage("final"); --REMEBER OTTO, WE'RE TRUSTING YOU WITH OUR MOST VALUABLE NATURAL RESOURCE
- else
- AddStage()
- end
- --SetStageCharacterModel("invis")
- if SkipToOtto == false then
- RemoveStageVehicleCharacter("current", "dolph")
- RemoveStageVehicleCharacter("current", "kearney")
- RemoveStageVehicleCharacter("current", "jimbo")
- end
- if Camera1Debug == false then RemoveStageVehicleCharacter("current", "bart") end
- msPlacePlayerCarAtLocatorName("hide")
- SetMaxTraffic(0)
- AddStageVehicle("skinn_v", "stolen", "NULL", "Missions\\level02\\m4_end.con" , "jimbo")
- AddStageVehicle("otto_v", "bus", "NULL", "Missions\\level02\\m4_kearney.con" , "none")
- if DebugDialog == false then
- if DialogNotCamera == true then
- AddObjective("dialogue");
- SetDialogueInfo("bart","otto","rddend1",0);
- SetDialoguePositions("ottodialog2","cutscene_skinner_1","bart_carstart");
- AddStageVehicleCharacter("otto_v", "bart", "s1")
- AddStageVehicleCharacter("otto_v", "dolph", "s2")
- AddStageVehicleCharacter("otto_v", "jimbo", "s3")
- AddStageVehicleCharacter("otto_v", "kearney", "s4")
- else
- AddObjective("camera")
- AddStageCharacter("bart", "cutscene_skinner_1", "", "current", "fullotto_load");
- SetStageCharacterModel("skinner")
- SetObjCameraName("mission1camShape");
- SetObjMulticontName("mission1cam");
- --AddNPC("skinner", "cutscene_skinner_1")
- AddNPC("otto", "hide")
- AddNPC("otto", "cutscene_otto_1")
- end
- CloseObjective();
- else
- ObjectiveTalkTo("otto")
- end
- CloseStage();
- if ExtendedEnding == true then
- --I REFUSE TO SPEND ANY MORE TIME WORKING ON THIS STUPID CUTSCENE, I HATE IT I HATE IT I HATE IT
- AddStage()
- AddObjective("timer")
- SetDurationTime(0.01)
- SetIrisWipe(0.1)
- CloseObjective()
- CloseStage()
- AddStage(); --YO PRINCIPAL S, THERE GOES YOUR RIDE
- SetMaxTraffic(0)
- --SetStageCharacterModel("invis")
- ActivateVehicle("skinn_v", "NULL", "race")
- AddStageWaypoints("sp", 1)
- SetVehicleAIParams("cVan", -51, -50)
- if DialogNotCamera == true then
- if DebugDialog == false then
- AddObjective("dialogue");
- SetDialogueInfo("bart","otto","rddend2",0);
- --AddNPC("skinner", "skndialog")
- AddNPC("otto", "ottodialog")
- SetDialoguePositions("cutaway_otto","cutaway_skinner","bart_carstart");
- CloseObjective();
- else
- ObjectiveTalkTo("otto")
- end
- else
- AddObjective("camera")
- AddStageCharacter("bart", "cutscene_skinner_1", "", "current", "fullotto_load");
- SetStageCharacterModel("skinner")
- SetObjCameraName("mission1camShape");
- SetObjMulticontName("mission1cam");
- AddNPC("otto", "hide")
- AddNPC("otto", "cutscene_otto_1")
- end
- CloseStage();
- AddStage("final"); --UGH, I'M GIVING MYSELF DETENTION
- SetMaxTraffic(0)
- if DebugDialog == false then
- AddObjective("dialogue");
- AddNPC("npd", "ottolook")
- AddNPC("otto", "hide")
- AddNPC("otto", "ottodialog")
- AddNPC("skinner", "hide")
- SetDialogueInfo("bart","npd","rddend3",0);
- --SetDialoguePositions("skndialog","ottolook","bart_carstart");
- CloseObjective();
- else
- ObjectiveTalkTo("otto")
- end
- CloseStage();
- end
- CloseMission()
- end
- function RedDeadDetention()
- RedDeadDetentionInit()
- RedDeadDetentionRandom()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement