Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Cutscene Explorer Mod
- -- Using free camera mod by derpy54320 A.K.A DaBOSS54320
- -- LIB_Table.lua :
- local psx,psy,psz = GetPointList(POINTLIST._PLAYER_START)
- gCutsData = {
- FOptions = 1,AOptions = 1,SOptions = 1,
- Cuts = {
- {name = "1-1-1",a = 0,x = psx,y = psy,time = 61666.66015625},
- {name = "1-1-2",a = 5,x = -705.90899658203,y = 227.98100280762,time = 96600},
- {name = "1-01",a = 0,x = 368.5,y = 142.34399414063,time = 96666.65625},
- {name = "1-02B",a = 14,x = -501.58401489258,y = 324.11099243164,time = 40666.6640625},
- {name = "1-02D",a = 2,x = -636.3759765625,y = -285.5119934082,time = 51800},
- {name = "1-02E",a = 14,x = -501.58401489258,y = 324.11099243164,time = 81666.65625},
- {name = "1-03",a = 0,x = 212.48100280762,y = -71.041999816895,time = 47700},
- {name = "1-04",a = 14,x = -502.4700012207,y = 309.60598754883,time = 92600},
- {name = "1-05",a = 9, x = -784.875, y = 203.09800720215,time = 61200},
- {name = "1-06",a = 14,x = -502.4700012207,y = 309.60598754883,time = 86666.65625},
- {name = "1-06B",a = 0,x = 158.4109954834,y = 25.486000061035,time = 90833.328125},
- {name = "1-07",a = 14,x = -501.58401489258,y = 324.11099243164,time = 97733.328125},
- {name = "1-08",a = 35,x = -454,y = 311,time = 66666.6640625},
- {name = "1-09",a = 2,x = -672.17901611328,y = -307.40200805664,time = 81833.328125},
- {name = "1-10",a = 14,x = -502.4700012207,y = 309.60598754883,time = 63833.328125},
- {name = "1-11",a = 14,x = -502.4700012207,y = 309.60598754883,time = 45666.66015625},
- {name = "1-11",a = 14,x = -502.4700012207,y = 309.60598754883,time = 45666.66015625},
- {name = "1-B",a = 8,x = -772.45501708984,y = -134.55299377441,time = 67666.6640625},
- {name = "1-BB",a = 8,x = -772.45501708984,y = -134.55299377441,time = 9666.66015625},
- {name = "1-BC",a = 8,x = -772.45501708984,y = -134.55299377441,time = 62333.328125},
- {name = "2-01",a = 2,x = -631.53900146484,y = -278.09600830078,time = 79033.328125},
- {name = "2-02",a = 0,x = 516.62902832031,y = -58.715000152588,time = 32666.66015625},
- {name = "2-03",a = 27,x = -730.99401855469,y = 386.32699584961,time = 63000},
- {name = "2-03b",a = 0,x = 447.99099731445,y = 487.78399658203,time = 56833.328125},
- {name = "2-04",a = 14,x = -502.4700012207,y = 309.60598754883,time = 50666.66015625},
- {name = "2-05",a = 0,x = 351.4280090332,y = 148.63400268555,time = 43500},
- {name = "2-06",a = 0,x = 345.94799804688,y = 216.2140045166,time = 58000},
- {name = "2-07",a = 29,x = -784.88897705078,y = 382.10699462891,time = 70000},
- {name = "2-08",a = 6,x = -709.7490234375,y = 312.35998535156,time = 81733},
- {name = "2-09",a = 0,x = 225.64300537109,y = 247.10699462891,time = 37500},
- {name = "2-09B",a = 27,x = -704.57000732422,y = 374.90798950195,time = 20666.66015625},
- {name = "3-01",a = 0,x = 502.70001220703,y = -213.19999694824,time = 67400},
- {name = "3-02",a = 0,x = 502.70001220703,y = -213.19999694824,time = 37000},
- {name = "3-03",a = 0,x = 506.13598632813,y = -434.27600097656,time = 51200},
- {name = "3-04",a = 9,x = -784.875,y = 203.09800720215,time = 54666.671875},
- {name = "3-04B",a = 0,x = 506.13598632813,y = -434.27600097656,time = 54833.328125},
- {name = "3-05",a = 0,x = 502.70001220703,y = -213.19999694824,time = 63333.328125},
- {name = "3-06",a = 0,x = 508.59201049805,y = -207.97200012207,time = 48333.328125},
- {name = "4-01",a = 40,x = -696.45300292969,y = 74.391998291016,time = 49666.66015625},
- {name = "4-02",a = 9,x = -784.875,y = 203.09800720215,time = 59000},
- {name = "4-03",a = 40,x = -696.61499023438,y = 61.632999420166,time = 70633},
- {name = "4-04",a = 9,x = -784.875,y = 203.09800720215,time = 66800},
- {name = "4-05",a = 40,x = -696.61499023438,y = 61.632999420166,time = 87233.3359375},
- {name = "4-06",a = 40,x = -696.61499023438,y = 61.632999420166,time = 80333},
- {name = "5-01",a = 0,x = 187.9700012207,y = -151.28700256348,time = 52666},
- {name = "5-02",a = 27,x = -734.97900390625,y = 383.66000366211,time = 76666},
- {name = "5-02B",a = 0,x = 383.66000366211,y = 147.36099243164,time = 71500},
- {name = "5-03",a = 0,x = 502.70001220703,y = -213.19999694824,time = 58666},
- {name = "5-04",a = 0,x = 59.303001403809,y = -61.304000854492,time = 69000},
- {name = "5-05",a = 0,x = 250.96000671387,y = -353.98999023438,time = 50666},
- {name = "5-06",a = 0,x = 268.70001220703,y = -107.19999694824,time = 68000},
- {name = "5-07",a = 0,x = 237.38200378418,y = -70.333999633789,time = 21000},
- {name = "5-09",a = 14,x = -502.4700012207,y = 309.60598754883,time = 60333},
- {name = "5-09B",a = 14,x = -483.99600219727,y = 312.70999145508,time = 27066},
- {name = "6-02",a = 0,x = 250.81399536133,y = -352.8450012207,time = 40000},
- {name = "6-02B",a = 0,x = 301.84201049805,y = 2.4170000553131,time = 44333},
- {name = "1-G1",a = 0,x = 246.56799316406, y = -19,time = 70900},
- {name = "1-S01",a = 15,x = -563.08197021484,y = 316.98999023438,time = 118666},
- {name = "2-B",a = 27,x = -702.44500732422,y = 372.79598999023,time = 57666},
- {name = "2-BB",a = 27,x = -702.44500732422,y = 372.79598999023,time = 22666},
- {name = "2-0",a = 2,x = -626.38897705078,y = -295.35998535156,time = 46666},
- {name = "2-S02",a = 15,x = -563.08197021484,y = 316.98999023438,time = 72333},
- {name = "2-S04",a = 0,x = 187.94500732422,y = -151.41000366211,time = 56333},
- {name = "2-S05",a = 2,x = -631.53900146484,y = -278.09600830078,time = 75633},
- {name = "2-S05B",a = 2,x = -631.53900146484,y = -278.09600830078,time = 77500},
- {name = "2-S05C",a = 0,x = 446.21600341797,y = 198.39399719238,time = 24333},
- {name = "2-S06",a = 0,x = 530.31402587891,y = -130.64199829102,time = 98333},
- {name = "2-S06",a = 0,x = 530.31402587891,y = -130.64199829102,time = 98333},
- {name = "2-G2",a = 0,x = 345.94799804688,y = 216.2140045166,time = 70000},
- {name = "3-B",a = 0,x = 543.59997558594,y = -469.46899414063,time = 43833},
- {name = "3-BB",a = 43,x = -735.98101806641,y = -656.30401611328,time = 12666},
- {name = "3-BC",a = 43,x = -745.77301025391,y = -610.74499511719,time = 9000},
- {name = "3-0",a = 14,x = -505.625,y = 329.79598999023,time = 55166},
- {name = "3-G3",a = 0,x = 505.37799072266,y = -434.79000854492,time = 60333},
- {name = "3-S03",a = 0,x = 181.7140045166,y = -19.496999740601,time = 43666},
- {name = "3-S10",a = 32,x = -565.89501953125,y = 133.71499633789,time = 50000},
- {name = "3-S11",a = 17,x = -536.58599853516,y = 385.2200012207,time = 83666},
- {name = "3-S11C",a = 38,x = -725.29602050781,y = 459.46701049805,time = 48666},
- {name = "4-B1",a = 40,x = -696.61499023438,y = 61.632999420166,time = 23333},
- {name = "4-B1B",a = 40,x = -696.61499023438,y = 61.632999420166,time = 11933},
- {name = "4-B1C",a = 40,x = -696.61499023438,y = 61.632999420166,time = 11933},
- {name = "4-B1D",a = 40,x = -695.80700683594,y = 73.694999694824,time = 32333},
- {name = "4-B2",a = 0,x = -28.530000686646,y = -74.935997009277,time = 14333},
- {name = "4-B2B",a = 0,x = -28.530000686646,y = -74.935997009277,time = 15666},
- {name = "4-G4",a = 13,x = -633.61297607422,y = -69.106002807617,time = 72666},
- {name = "4-S12",a = 17,x = -536.99798583984,y = 376.58401489258,time = 95000},
- {name = "4-S12B",a = 2,x = -671.79998779297,y = -293.10000610352,time = 78000},
- {name = "4-0",a = 0,x = 237.38200378418,y = -70.333999633789,time = 8000},
- {name = "5-0",a = 0,x = 237.38200378418,y = -70.333999633789,time = 58333},
- {name = "5-05B",a = 0,x = 471.46499633789,y = 258.79000854492,time = 24833},
- {name = "5-B",a = 20,x = -732.95501708984,y = 80.830001831055,time = 24333},
- {name = "5-G5",a = 0,x = 250, y = -355,time = 34333},
- {name = "6-0",a = 5,x = -705.90899658203,y = 227.98100280762,time = 106033},
- {name = "6-B",a = 0,x = 194.42999267578,y = -65.057998657227,time = 29666},
- {name = "6-BB",a = 0,x = 181.38600158691,y = -72.320999145508,time = 53833},
- {name = "6-BC",a = 5,x = -705.90899658203,y = 227.98100280762,time = 72666},
- {name = "5-BC",a = 20,x = -732.95501708984,y = 80.830001831055,time = 40833},
- {name = "3-BD",a = 43,x = -745.77301025391,y = -610.74499511719,time = 33500},
- {name = "3-01AA",a = 0,x = 552.86297607422,y = -372.85000610352,time = 123033.328125},
- {name = "3-01AB",a = 0,x = 552.93103027344,y = -372.7200012207,time = 18633.330078125},
- {name = "3-01BA",a = 0,x = 505.35501098633,y = -114.18299865723,time = 72866.65625},
- {name = "3-01CA",a = 2,x = -769.51000976563,y = -298.51800537109,time = 132733.328125},
- {name = "3-01CB",a = 19,x = -618.73297119141,y = 309.03399658203,time = 32266.66015625},
- {name = "3-01DA",a = 0,x = 490.27600097656,y = -115.9700012207,time = 55333.328125},
- {name = "3-01DB",a = 0,x = 490.09698486328,y = -115.89800262451,time = 38066.66015625},
- {name = "3-01DC",a = 0,x = 496.62399291992,y = -116.89399719238,time = 29500},
- {name = "2-S07",a = 50,x = -791.50897216797,y = 49.139999389648,time = 33533.328125},
- {name = "3-R05A",a = 4,x = -595.01098632813,y = 325.74798583984,time = 66833},
- {name = "3-R05B",a = 4,x = -595.01098632813,y = 325.74798583984,time = 9000},
- {name = "3-R07",a = 0,x = 498.0830078125,y = -391.82901000977,time = 58333.328125},
- {name = "3-S08",a = 0,x = 283.34298706055,y = -460.46701049805,time = 63166.66015625},
- {name = "CS_COUNTER",a = 14,x = -501.58401489258,y = 324.11099243164,time = 59166.66015625},
- {name = "FX-TEST",a = 2,x = -631.53900146484, y = -278.09600830078,time = 33333},
- },
- MOptions = 1,
- Music = {
- "DEFAULT",
- "MS_MisbehavingLow.rsm",
- "EX_XmasTreeEmitter04.rsm",
- "MS_CarnivalFunhouseAmbient.rsm",
- "MS_Somower.rsm",
- "MS_RomanceHigh.rsm",
- "MS_MusicClass_Turkey.rsm",
- "MS_WIldstyleHigh.rsm",
- "ArcRaceMXmidi02SPLASHBED01.rsm",
- "MS_5-05_MeetZoe_NIS.rsm",
- "MS_RunningMid.rsm",
- "MS_Candidate.rsm",
- "MS_EpicConfrontationHighPart2.rsm",
- "ArcRaceMXmidi02SPLASH.rsm",
- "MS_EnglishClassEnd.rsm",
- "EX_BikeShopMX.rsm",
- "MS_FinalShowdown03Low.rsm",
- "ArcRaceMXmidi02SPLASHBED05.rsm",
- "MS_EpicConfrontationLow.rsm",
- "MS_StealthHigh.rsm",
- "E_TatooTrailerMX.rsm",
- "MS_FriendshipAllyHigh.rsm",
- "MS_OnFootFailure.rsm",
- "MS_MusicClass_Washing.rsm",
- "MS_CarnivalFunhouseMaze.rsm",
- "MS_BikeFunMid.rsm",
- "FIGHT01EndFade.rsm",
- "MS_RussellInTheHole.rsm",
- "MS_ChaseAdult.rsm",
- "MS_3-B_ENDTAG.rsm",
- "MS_ActionLow.rsm",
- "MS_MiniStingSuccess.rsm",
- "MS_Misbehaving_NISPrankInfo.rsm",
- "MS_StreetFightLargeLow_Boxing.rsm",
- "MS_XmasBellsRudylow.rsm",
- "MS_MusicClass_MasterP.rsm",
- "MS_FinalShowdownMid.rsm",
- "MS_Misbehaving_NISPrankSucess.rsm",
- "E_HQMX_Dropouts.rsm",
- "MS_TenementsLow.rsm",
- "MS_BikeDay.rsm",
- "MS_ActionMid.rsm",
- "FIGHT01EFade.rsm",
- "MS_InTroubleHigh.rsm",
- "MS_PhotographyClass.rsm",
- "MS_FinalShowdown03Mid.rsm",
- "MS_RunningHigh.rsm",
- "MS_XmasJingleMiracleMid.rsm",
- "EX_XmasTreeEmitter03.rsm",
- "MS_MusicClass_Carols01.rsm",
- "MS_TenementsHigh.rsm",
- "MS_XmasJingleMiracle.rsm",
- "MS_NerdFight.rsm",
- "MS_GoKart02.rsm",
- "MS_BiologyClass.rsm",
- "MS_EnglishClass.rsm",
- "MS_FootStealthLow.rsm",
- "ArcRaceMXmidi02Drive02.rsm",
- "FIGHT01D.rsm",
- "MS_XmasBellsRudyHigh.rsm",
- "MS_HalloweenMid.rsm",
- "E_HQMX_Jocks.rsm",
- "MS_Ambient01.rsm",
- "Arc_MonkeyFlingGame01.rsm",
- "MS_SearchingHigh.rsm",
- "MS_FightMid01.rsm",
- "ArcRaceMXmidi02SPLASHBED06.rsm",
- "MS_DestructionVandalismMid.rsm",
- "MS_BoxingBossFight.rsm",
- "MS_ShowdownAtThePlantLow.rsm",
- "MS_ActionHigh.rsm",
- "MS_BikeFailure.rsm",
- "E_HairSaloonPoorMX.rsm",
- "MS_SneakDate_Romantic.rsm",
- "MS_FightingNerds.rsm",
- "MS_Tired.rsm",
- "ArcRaceMXmidi02LOSE01.rsm",
- "MS_RunningLow02.rsm",
- "MS_NerdPassStinger.rsm",
- "ArcRaceMXmidi02LOSE02.rsm",
- "MS_5-05_BurtonPee_NIS.rsm",
- "MS_XmasComeRudyMid.rsm",
- "ArcRaceMXmidi02SPLASHBED02.rsm",
- "EX_ClothingStoreRichMX.rsm",
- "MS_RomanceFailStinger.rsm",
- "E_HairSaloonRichMX.rsm",
- "MS_FightHigh02.rsm",
- "MS_XmasFavoriteBallsHigh.rsm",
- "MS_ChaseMid.rsm",
- "MS_BikeChaseMid.rsm",
- "5-06_HarleyLeavesExplode_NIS.rsm",
- "MS_FearTensionMid.rsm",
- "MS_ChaseLow.rsm",
- "MS_FinalShowdown03High.rsm",
- "MS_GenericStingFail.rsm",
- "MS_BikeRace01.rsm",
- "MS_FightingJohnnyVincentBikeRide.rsm",
- "Arc_MonkeyFlingWin.rsm",
- "MS_RomanceLow.rsm",
- "MS_EpicConfrontationMid.rsm",
- "MS_Carnival02.rsm",
- "MS_BikeActionMid.rsm",
- "ArcRaceMXmidi02WIN.rsm",
- "MS_Confrontation_NIS.rsm",
- "MS_XmasComeRudyHigh.rsm",
- "MS_BikeRace02.rsm",
- "MS_FightingJohnnyVincentFight.rsm",
- "MS_MusicClass_Coming.rsm",
- "MS_SearchingLow.rsm",
- "EX_TatooTrailerMX.rsm",
- "MS_InTroubleLow.rsm",
- "Arc_SUMO_Win.rsm",
- "MS_MathClass.rsm",
- "ArcRaceMXmidi02SPLASHBED03.rsm",
- "MS_StealthLow.rsm",
- "MS_ClassSuccessStinger.rsm",
- "FIGHT01F.rsm",
- "MS_BikePractice.rsm",
- "EX_ComicShopMX.rsm",
- "Arc_FlyingSquirrelWin.rsm",
- "MS_FinalShowdownHigh.rsm",
- "MS_BiologyClassEnd.rsm",
- "EX_XmasTreeEmitter01.rsm",
- "1-06_HoboNIS.rsm",
- "MS_RomancePassStinger.rsm",
- "MS_HalloweenLow.rsm",
- "Arc_MonkeyFlingMenu01.rsm",
- "Arc_FlyingSquirrelGameMx01.rsm",
- "MS_FightingPreps.rsm",
- "MS_BikeFunHigh.rsm",
- "MS_GoKarts01A.rsm",
- "MS_FootStealthHigh.rsm",
- "MS_FightingGeneric.rsm",
- "MS_ClassFailureStinger.rsm",
- "MS_JockBossBattle.rsm",
- "MS_GoKart 01.rsm",
- "MS_StreetFightLargeMid_Boxing.rsm",
- "MS_FightingBullies.rsm",
- "MS_BikeChaseHigh.rsm",
- "FIGHT01C.rsm",
- "Arc_MonkeyFlingGame02.rsm",
- "MS_PrepFight.rsm",
- "ArcRaceMXmidi02SPLASHBED04.rsm",
- "MS_FightingJocks.rsm",
- "EX_HairSaloonRichMX.rsm",
- "MS_NerdBossBattle.rsm",
- "MS_EnglishClassShort.rsm",
- "Arc_MonkeyFlingGame03.rsm",
- "MS_MusicClassTestDrum.rsm",
- "MS_Gobble.rsm",
- "5-05_NIS_PottyFall.rsm",
- "MS_Fighting01.rsm",
- "MS_TournySuccessStinger.rsm",
- "Arc_FlyingSquirrelGameMx03.rsm",
- "EX_JanitorRoomMX.rsm",
- "EX_HairSalonPoorMX.rsm",
- "MS_ArtClass.rsm",
- "Arc_FlyingSquirrelLose.rsm",
- "MS_KidsPlay.rsm",
- "MS_MisbehavingHigh.rsm",
- "MS_NerdFailStinger.rsm",
- "MS_StealthMidA.rsm",
- "MS_FightingPrepsLow.rsm",
- "E_JanitorRoomMX.rsm",
- "MS_EpicConfrontationHigh.rsm",
- "MS_XmasJingleMiracleHigh.rsm",
- "MS_ChaseHigh.rsm",
- "MS_FightLow03.rsm",
- "EX_ClothingStorePoorMX.rsm",
- "MS_SneakDate_SexyGirl.rsm",
- "MS_FootStealthMid.rsm",
- "MS_FightMid03.rsm",
- "MS_3B_JohhnyV_NIS.rsm",
- "MS_BikeFastMid.rsm",
- "MS_FriendshipAllyMid.rsm",
- "Arc_FlyingSquirrelGameMx02.rsm",
- "E_BoxClub_DownstairsMX.rsm",
- "MS_GymClass.rsm",
- "MS_5-09_CrowdNIS.rsm",
- "MS_XmasComeRudyLow.rsm",
- "MS_ActionBeatBreak.rsm",
- "MS_FunHigh.rsm",
- "MS_FightMid02.rsm",
- "MS_FunLow.rsm",
- "E_ComicShopMX.rsm",
- "MS_FinalShowdownLow.rsm",
- "5-06_Garage_NIS.rsm",
- "MS_PunishmentDetention.rsm",
- "MS_ChasePrefect.rsm",
- "MS_BikeNight.rsm",
- "Arc_SUMO_Menu.rsm",
- "MS_FightingGreasers.rsm",
- "MS_MusicClass_Liberty.rsm",
- "MS_GoKarts02.rsm",
- "MS_ActionHigh_NISReturn.rsm",
- "MS_MisbehavingHigh_NIS03.rsm",
- "MS_BikeFunLow.rsm",
- "FIGHT01B.rsm",
- "MS_GoKarts01B.rsm",
- "MS_BikeFastLow.rsm",
- "MS_FightingJohnnyVincentBossFight.rsm",
- "E_BikeShopMX.rsm",
- "E_HQMX_Nerds.rsm",
- "MS_FightingDropouts.rsm",
- "MS_GenericStingSuccess.rsm",
- "MS_LockPicking.rsm",
- "MS_MisbehavingHigh_NIS02.rsm",
- "MS_6B_EndlessSummerCreditsNIS.rsm",
- "MS_XmasJingleMiracleLow.rsm",
- "MS_BoxingReg.rsm",
- "Arc_MonkeyFlingMenu02.rsm",
- "EX_XmasTreeEmitter02.rsm",
- "MS_GeographyClass.rsm",
- "MS_ShowdownAtThePlantHigh.rsm",
- "Arc_MonkeyFlingLose.rsm",
- "MS_MisbehavingMid.rsm",
- "MS_StealthMid.rsm",
- "MS_XmasBellsRudyMid.rsm",
- "MS_DestructionVandalismHigh.rsm",
- "MS_ChasePolice.rsm",
- "MS_FriendshipAllyLow.rsm",
- "MS_ChemistryClassMulti.rsm",
- "ArcRaceMXmidi02Drive01.rsm",
- "E_GeneralStoreMX.rsm",
- "MS_TournySuccessStinger2.rsm",
- "FIGHT01A.rsm",
- "MS_TenementsMid.rsm",
- "MS_HalloweenHigh.rsm",
- "MS_BikeActionHigh.rsm",
- "MS_OnFootVictory.rsm",
- "E_ClothingStorePoorMX.rsm",
- "MS_Carnival01.rsm",
- "MS_SearchingMid.rsm",
- "MS_MathClassEnd.rsm",
- "MS_EpicConfrantation_NIS.rsm",
- "MS_EpicConfrontationEnding.rsm",
- "MS_MovieTixRomance.rsm",
- "MS_XmasFavoriteBallsMed.rsm",
- "MS_ShopClass.rsm",
- "MS_MissionEnd01.rsm",
- "MS_XmasFavoriteBallsLow.rsm",
- "MS_WIldstyleLow.rsm",
- "MS_CarnivalFunhouseMiner.rsm",
- "MS_BikeChaseLow.rsm",
- "MS_WIldstyleMid.rsm",
- "MS_RomanceMid.rsm",
- "E_ClothingStoreRichMX.rsm",
- "MS_ChemistryClass.rsm",
- "MS_DishonorableFight.rsm",
- "Arc_SUMO_Lose.rsm",
- "MS_BikeFastHigh.rsm",
- "MS_BikeVictory.rsm",
- "MS_RunningFight-2 MIX TR.rsm",
- "Arc_SUMO_Game01.rsm",
- "MS_MisbehavingHigh_NIS01.rsm",
- "Arc_FlyingSquirrelMenu.rsm",
- "MS_TensionBuilder01.rsm",
- "MS_RunningLow.rsm",
- "MS_BikeFun_NIS.rsm",
- "E_HQMX_Preppies.rsm",
- "MS_StreetFightLargeHigh_Boxing.rsm",
- "MS_FunMid.rsm",
- "EX_GeneralStoreMX.rsm",
- "ArcRaceMXmidi02Drive03.rsm",
- }
- }
- -- LIB_Function.lua :
- CCutsceneMgr_ImportTemporarilyXML = function(xml,head,body)
- end
- CCutsceneMgr_Play = function(Files,Action,Sound,AreaCode,xpos,ypos,Music,Time,Timer,Validation,Cleanup)
- local Playable,Cuts6B = nil,false
- if Validation then
- Playable = CCutsceneMgr_CheckData(Sound,AreaCode)
- else Playable = true end
- if Playable then
- local a,x,y,z = AreaGetVisible(),PlayerGetPosXYZ()
- if Files == "6-B" or Files == "6-BB" then
- ForceStartMission("6_B")
- DATLoad("6_Ba.DAT",2)
- DATInit()
- PedSetEffectedByGravity(gPlayer,false)
- Cuts6B = true
- end
- CameraFade(500,0)
- Wait(501)
- if type(AreaCode) == "number" then
- AreaForceLoadAreaByAreaTransition(true)
- AreaDisableCameraControlForTransition(true)
- AreaTransitionXYZ(AreaCode,xpos,ypos,gHeightFixer(AreaCode))
- AreaDisableCameraControlForTransition(false)
- AreaForceLoadAreaByAreaTransition(false)
- if Cuts6B then
- CameraFade(1,0)
- end
- end
- LoadCutscene(Files,false)
- if Music ~= "DEFAULT" then
- MusicAllowPlayDuringCutscenes(true)
- SoundPlayStream(Music,1.0)
- end
- CutSceneSetActionNode(Action)
- LoadCutsceneSound(Sound)
- CameraDefaultFOV()
- repeat
- Wait(0)
- until IsCutsceneLoaded()
- CCutsceneMgr_StartNow()
- if Timer then
- repeat
- Wait(0)
- until GetCutsceneTime() > Time or IsButtonBeingPressed(3,0)
- else
- repeat
- Wait(0)
- until GetCutsceneRunning() == 0 or IsButtonBeingPressed(3,0)
- end
- CCutsceneMgr_CleanupCutscene(a,x,y,z,Cleanup,Cuts6B)
- else
- Wait(math.random(1000,4000))
- end
- end
- CCutsceneMgr_StartNow = function()
- StartCutscene()
- CameraFade(1000,1)
- Wait(1000)
- end
- CCutsceneMgr_CleanupCutscene = function(a,x,y,z,c,b)
- SoundFadeWithCamera(true)
- MusicFadeWithCamera(true)
- CameraFade(1000,0)
- Wait(1001)
- StopCutscene()
- CutsceneFadeWithCamera(false)
- CameraSetWidescreen(false)
- AreaDisableCameraControlForTransition(true)
- if b then
- DATUnload(2)
- MissionForceShutdown("6_B")
- end
- MusicAllowPlayDuringCutscenes(false)
- SoundStopStream()
- AreaRemoveExtraScene()
- if c then
- AreaTransitionXYZ(13,-619.0,-59.5,59.6)
- while IsStreamingBusy() do
- Wait(0)
- end
- AreaTransitionXYZ(a,x,y,z)
- else
- AreaTransitionXYZ(a,x,y,z)
- end
- AreaDisableCameraControlForTransition(false)
- CameraReturnToPlayer()
- CameraFade(1000,1)
- Wait(500)
- end
- CCutsceneMgr_CheckData = function(Sound,AreaCode)
- local Error_Dat = {
- "CS_COUNTER","FX-TEST"
- }
- if Sound == Error_Dat[1] or Sound == Error_Dat[2] then
- TextPrintString("ERROR: AUDIO DATA IS MISSING",4,1)
- return false
- else
- local AreaDat = {
- {6,"AreaScripts/Bio_Lab.lua"},{50,"SSTores.lua"},{43,"AreaScripts/Junkyard.lua"},
- {45,"AreaScripts/Midway.lua"},{2,"AreaScripts/SchoolHallways.lua"},
- {0,"AreaScripts/MainMap.lua"},{26,"SStores.lua"},{16,"AreaScripts/Tattoos.lua"},
- {29,"SStores.lua"},{30,"SStores.lua"},{36,"AreaScripts/Tenements.lua"},
- {14,"AreaScripts/Bdorm.lua"},{35,"AreaScripts/Gdorm.lua"},{37,"AreaScripts/Funhouse.lua"},
- {27,"AreaScripts/Boxing.lua"},{32,"AreaScripts/PrepHouse.lua"},{8,"AreaScripts/Janitors.lua"},
- {13,"AreaScripts/GymAndPool.lua"},{39,"AreaScripts/StyleStores.lua"},
- {34,"AreaScripts/StyleStores.lua"},{38,"AreaScripts/Asylum.lua"},
- {9,"AreaScripts/Library.lua"},{54,"AreaScripts/Warehouse.lua"},
- {23,"AreaScripts/StaffRoom.lua"},{5,"AreaScripts/PrincipalOffice.lua"},
- {40,"AreaScripts/Observatory.lua"},{4,"AreaScripts/Chem_Lab.lua"},
- {20,"AreaScripts/ChemPlant.lua"},{17,"AreaScripts/ArtRoom.lua"},
- {18,"AreaScripts/AutoShop.lua"},{19,"AreaScripts/Auditorium.lua"},
- {33,"AreaScripts/StyleStores.lua"},{15,"AreaScripts/Classroom.lua"},
- {46,"AreaScripts/StyleStores.lua"},{56,"AreaScripts/StyleStores.lua"},
- {57,"AreaScripts/SaveZones.lua"},{60,"AreaScripts/SaveZones.lua"},
- {61,"AreaScripts/SaveZones.lua"},{59,"AreaScripts/SaveZones.lua"},
- {42,"AreaScripts/TGokart.lua"},{51,"AreaScripts/ImgRaceA.lua"},{52,"AreaScripts/ImgRaceB.lua"},
- {53,"AreaScripts/ImgRaceC.lua"},{17,"AreaScripts/ArtRoom.lua"},
- {55,"AreaScripts/FreakShow.lua"},{62,"AreaScripts/BMXTrack.lua"},
- }
- for i = 1,table.getn(AreaDat) do
- if AreaCode == AreaDat[i][1] then
- return true
- end
- end
- end
- TextPrintString("ERROR: AREA CODE IS NOT EXIST",4,1)
- return false
- end
- CCutsceneMgr_RemoveEverythingBecauseCutsceneDoesntFitInMemory = function()
- end
- CCutsceneMgr_DeleteCutsceneData = function()
- end
- CCutsceneMgr_LoadCutsceneData = function()
- end
- MissionForceShutdown = function(mission)
- local break_xml,attempt = false,0
- MissionSetAutoRestart(false)
- repeat
- repeat
- Wait(0)
- until not IsStreamingBusy()
- if not break_xml and DoRemoteXmlHeapDump ~= nil then
- DoRemoteXmlHeapDump(mission..".xml")
- break_xml = true
- end
- MissionFail()
- Wait(250)
- attempt = attempt + 1
- until attempt >= 4
- PedSetEffectedByGravity(gPlayer,true)
- end
- gForceDelay = function(b)
- while not IsButtonBeingReleased(b,0) do
- Wait(0)
- end
- end
- gHeightFixer = function(a)
- local area = {
- {0,math.random(6,10)},{14,32.3},{2,6},{8,7.3},{50,7.8},{29,1},
- {32,47.2},{5,32.5},{40,23},{19,78.5},{15,-1.0},{6,34.5},{20,1.0},
- {43,math.random(4,6)},{27,299.0},
- }
- for i = 1,table.getn(area) do
- if a == area[i][1] then
- return area[i][2]
- end
- end
- return 10
- end
- gController = function(b)
- if not IsButtonPressed(7,0) and IsButtonBeingPressed(b,0) then
- if b == 1 or b == 0 then SoundPlay2D("NavUp")
- elseif b == 3 then
- SoundPlay2D("RightBtn")
- elseif b == 2 then
- SoundPlay2D("Erand")
- end
- return true
- elseif IsButtonPressed(7,0) and IsButtonPressed(b,0) then
- if b == 1 or b == 0 or b == 3 then SoundPlay2D("ButtonUp") end
- return true
- end
- return false
- end
- gProcessString = function(title,data,o1,o2,o3,stored,select)
- local text = ""
- if select == 1 then
- text = title.."\n\n> "..stored[1][1].." = "..data[o1].name.." <\n"..stored[2][1].." = "..data[o2].name.."\n"..stored[3][1].." = "..data[o3].name.."\n"..stored[4][1].." = "..ReturnTF(stored[4][2]).."\n"..stored[5][1].." = "..ReturnTF(stored[5][2]).."\n"..stored[6][1].." = "..ReturnTF(stored[6][2]).."\n"..stored[7][1]
- elseif select == 2 then
- text = title.."\n\n"..stored[1][1].." = "..data[o1].name.."\n> "..stored[2][1].." = "..data[o2].name.." <\n"..stored[3][1].." = "..data[o3].name.."\n"..stored[4][1].." = "..ReturnTF(stored[4][2]).."\n"..stored[5][1].." = "..ReturnTF(stored[5][2]).."\n"..stored[6][1].." = "..ReturnTF(stored[6][2]).."\n"..stored[7][1]
- elseif select == 3 then
- text = title.."\n\n"..stored[1][1].." = "..data[o1].name.."\n"..stored[2][1].." = "..data[o2].name.."\n> "..stored[3][1].." = "..data[o3].name.." <\n"..stored[4][1].." = "..ReturnTF(stored[4][2]).."\n"..stored[5][1].." = "..ReturnTF(stored[5][2]).."\n"..stored[6][1].." = "..ReturnTF(stored[6][2]).."\n"..stored[7][1]
- elseif select == 4 then
- text = title.."\n\n"..stored[1][1].." = "..data[o1].name.."\n"..stored[2][1].." = "..data[o2].name.."\n"..stored[3][1].." = "..data[o3].name.."\n> "..stored[4][1].." = "..ReturnTF(stored[4][2]).." <\n"..stored[5][1].." = "..ReturnTF(stored[5][2]).."\n"..stored[6][1].." = "..ReturnTF(stored[6][2]).."\n"..stored[7][1]
- elseif select == 5 then
- text = title.."\n\n"..stored[1][1].." = "..data[o1].name.."\n"..stored[2][1].." = "..data[o2].name.."\n"..stored[3][1].." = "..data[o3].name.."\n"..stored[4][1].." = "..ReturnTF(stored[4][2]).."\n> "..stored[5][1].." = "..ReturnTF(stored[5][2]).." <\n"..stored[6][1].." = "..ReturnTF(stored[6][2]).."\n"..stored[7][1]
- elseif select == 6 then
- text = title.."\n\n"..stored[1][1].." = "..data[o1].name.."\n"..stored[2][1].." = "..data[o2].name.."\n"..stored[3][1].." = "..data[o3].name.."\n"..stored[4][1].." = "..ReturnTF(stored[4][2]).."\n"..stored[5][1].." = "..ReturnTF(stored[5][2]).."\n> "..stored[6][1].." = "..ReturnTF(stored[6][2]).." <\n"..stored[7][1]
- elseif select == 7 then
- text = title.."\n\n"..stored[1][1].." = "..data[o1].name.."\n"..stored[2][1].." = "..data[o2].name.."\n"..stored[3][1].." = "..data[o3].name.."\n"..stored[4][1].." = "..ReturnTF(stored[4][2]).."\n"..stored[5][1].." = "..ReturnTF(stored[5][2]).."\n"..stored[6][1].." = "..ReturnTF(stored[6][2]).."\n> "..stored[7][1].." <"
- end
- TextPrintString(text,0.1,1)
- end
- gPropInteraction = function(x,y,z)
- local prop = {
- door = {
- -- BDorm:
- {-502.385010, 306.834991, 31.398701},{-517.804016, 315.747986, 31.415001},
- {-507.493011, 315.806000, 31.415001},{-488.197998, 315.829987, 31.415001},
- {-516.554993, 321.075989, 31.415001},{-511.307007, 321.052002, 31.415001},
- {-490.471008, 321.096008, 31.415001},{-486.895996, 321.097992, 31.415001},
- {-1256.040039, -575.872009, -0.000645},{-1275.430054, -575.877014, -0.000645},
- {208.375000, -73.300301, 8.578850},{-1265.619995, -611.486023, -1.498550},
- {-1225.890015, -595.565002, 5.387500},{-711.322021, 312.213989, 33.381199},
- {-1225.420044, -577.242981, -0.047479},{-565.073975, 316.872986, -1.972810},
- {138.811996, -17.127800, 6.580230},{-428.800995, 364.941986, 80.210602},
- {48.680000, -91.492798, 4.141750},{-623.072998, -74.561897, 56.659000},
- {-1302.290039, -582.729980, -0.119496},{-599.179993, 327.419006, 34.188999},
- {-1231.469971, -578.757996, 10.940700},
- {-1270.900024, -575.693970, 5.440910},{-696.729004, 229.707001, 31.410500},
- {480.794006, -78.883301, 5.455490},{533.846985, -81.076897, 4.582570},
- {-575.734985, 386.285004, -0.048748},{-785.656982, 375.809998, -0.026335},
- -- Firework store:
- {-611.296997, 383.428009, 18.386900},{510.692993, -263.549988, 1.084110},
- {399.868988, 144.638000, 5.398680},{-723.791992, 367.665009, 293.830994},
- {103.605003, -134.162003, 6.403370},{271.101990, -121.035004, 7.767510},
- {-502.450012, 306.928986, 31.415001},{-789.257996, 202.921997, 90.083199},
- {-647.632996, 255.014999, 0.002418},{-655.885986, 229.764999, -1.000000},
- {117.129997, 432.510986, 6.325420},{-528.510986, 325.539001, 39.300800},
- {291.817993, -133.128006, 11.777100},
- -- GDorm:
- {294.707001, -17.786200, 16.655500},{-462.220001, 310.041992, 3.359250},
- -- School Doors:
- {-674.716980, -309.580994, 7.824080},{-613.288025, -313.191010, -0.154999},
- {-626.724976, -302.882996, 0.824315},{-630.523987, -302.954987, 0.618483},
- {-623.669983, -300.377014, 3.096210},{-633.603027, -300.209991, 3.222830},
- {-609.922974, -311.117004, 0.007792},{-654.713013, -291.688995, -0.022400},
- {-672.888000, -291.675995, -0.022400},{-664.879028, -300.007996, -0.022400},
- {-642.676025, -323.628998, -0.022400},{-654.468018, -315.667999, -0.022400},
- {-654.471985, -315.419006, 5.480890},{-664.882996, -300.181000, 5.480890},
- {-671.481995, -291.666992, 5.480890},{-650.838013, -291.679993, 5.480890},
- {-610.674011, -308.084015, -0.019108},{-612.877014, -323.619995, -0.019108},
- {-590.057007, -313.536987, -0.019108},{-588.007019, -294.519989, -0.019108},
- {-600.554993, -299.601990, -0.019108},{-604.880981, -291.682007, -0.019108},
- {-608.715027, -290.917999, 5.480890},{-589.343018, -314.266998, 5.480890},
- {-588.286011, -293.337006, 5.480890},{-601.049011, -298.838013, 5.480890},
- {-619.375977, -293.114014, 5.493050},{-628.643982, -328.214996, -0.017000},
- {-599.111023, -331.710999, 0.001764},{-597.622009, -283.654999, 0.001764},
- {-660.344971, -283.654999, -0.018236},{-619.010010, -293.291992, 0.043852},
- {-619.008972, -293.291992, 0.044000},{-628.643005, -328.212006, -0.014000},
- {-618.974976, -285.700012, 14.615400},{-606.841003, -322.794006, 5.505000},
- {178.501007, 10.052900, 6.090270},{30.158501, -134.052002, 2.796750},
- {168.647995, -75.060204, 17.246700},{248.832001, -18.454100, 7.081840},
- {208.039001, -73.229698, 8.571680},{271.118988, -122.431999, 7.917360},
- {271.157990, -25.408001, 7.925920},{187.098999, -156.785995, 8.244160},
- {139.587006, -16.585400, 6.609120},{103.505997, -135.197006, 6.843250},
- {45.925900, -91.487297, 4.911870},{47.358799, -53.552700, 5.059350},
- {-22.269699, -19.189400, 2.597300},{210.408005, -51.091801, 8.536170},
- {210.408005, -94.189003, 8.536170},{161.906998, -95.493896, 8.535610},
- {161.906998, -52.346802, 8.535610},{208.039001, -73.229698, 8.571680},
- {271.118988, -122.431999, 7.917360},{271.157990, -25.408001, 7.925920},
- {187.098999, -156.785995, 8.244160},{103.505997, -135.197006, 6.843250},
- {45.925900, -91.487297, 4.911870},{47.358799, -53.552700, 5.059350},
- {-22.269699, -19.189400, 2.597300},{185.414993, -42.808399, 4.215590},
- {181.511002, -67.975800, 26.112900},
- -- Asylum:
- {-785.085999, 511.067993, 1.999960},{-735.364014, 419.773010, 2.000010},
- {-735.364014, 419.773010, 2.000010},{-726.719971, 429.903992, 2.000010},
- {-691.838989, 482.475006, 2.000010},{-686.116028, 485.217010, 2.000010},
- {-714.270996, 494.204987, 2.000010},{-714.270996, 502.364014, 2.000010},
- {-701.831970, 506.782013, 2.000010},{-773.161011, 502.355988, 1.999990},
- {-776.888000, 508.087006, 1.999980},{-735.364014, 429.976990, 2.000010},
- {-735.364014, 438.321014, 2.000010},{-735.364014, 464.640015, 2.000010},
- {-735.364014, 472.950989, 2.000010},{-752.653015, 487.113007, 2.002030},
- {-726.333984, 487.113007, 2.002030},{-718.085022, 487.118011, 2.000010},
- {-728.317993, 442.783997, 2.000010},{-728.317993, 450.781006, 2.000010},
- {-728.317993, 458.777008, 2.000010},{-742.409973, 460.164001, 2.000010},
- {-742.409973, 452.165985, 2.000010},{-742.409973, 444.170013, 2.000010},
- {-713.609009, 480.072998, 2.000010},{-705.611023, 480.072998, 2.000010},
- {-697.614990, 480.072998, 2.000010},{-696.228027, 494.165009, 2.000010},
- {-704.226013, 494.165009, 2.000010},{-744.393982, 487.113007, 2.002030},
- -- ChemPlant:
- {-768.572998, 65.268700, 6.396050},{-766.961975, 79.862801, 0.373133},
- {-759.812012, 98.454201, 30.861700},
- },
- locker = {
- {TRIGGER._NLOCK01A,-603.677002, -304.854004, -0.007887},
- {TRIGGER._NLOCK01B04,-662.898987, -310.677002, -0.011205},
- {TRIGGER._NLOCK01B05,-659.593994, -304.697998, -0.011205},
- {TRIGGER._NLOCK01B06,-674.526001, -317.821991, -0.011205},
- {TRIGGER._NLOCK01B07,-599.843994, -316.678009, -0.007884},
- {TRIGGER._NLOCK01A01,-658.039978, -316.662994, 0.002991},
- {TRIGGER._NLOCK01A02,-674.510010, -299.606995, -0.013469},
- {TRIGGER._NLOCK01B,-603.677002, -311.140991, -0.007884},
- {TRIGGER._NLOCK01B01,-595.257996, -307.117004, -0.007913},
- {TRIGGER._NLOCK01B02,-647.281006, -307.406006, -0.011205},
- {TRIGGER._NLOCK02A,-601.434998, -291.773010, 5.492070},
- {TRIGGER._NLOCK02A01,-674.515991, -299.742004, 5.492040},
- {TRIGGER._NLOCK02A02,-640.377014, -313.148987, 5.492070},
- {TRIGGER._NLOCK02A03,-616.914001, -314.345001, 5.492070},
- {TRIGGER._NLOCK02B10,-594.280029, -316.645996, 5.492120},
- {TRIGGER._NLOCK02B08,-662.057983, -304.708008, 5.492070},
- {TRIGGER._NLOCK02B09,-661.541016, -292.553009, 5.492070},
- {TRIGGER._NLOCK02B,-603.892029, -299.835999, 5.492120},
- {TRIGGER._NLOCK02B01,-603.890991, -309.256012, 5.492070},
- {TRIGGER._NLOCK02B02,-595.258972, -302.786011, 5.492090},
- {TRIGGER._NLOCK02B03,-595.466003, -322.761993, 5.492120},
- {TRIGGER._NLOCK02B04,-662.898010, -316.648010, 5.492080},
- {TRIGGER._NLOCK02B05,-657.554993, -310.664001, 5.492070},
- {TRIGGER._NLOCK02B06,-656.390015, -298.743988, 5.492080},
- {TRIGGER._NLOCK02B07,-647.338013, -310.247009, 5.492130},
- },
- scaffold = {
- {"Scaffold", 178.17300415039, -73.16130065918, 30.519399642944},
- {"Scaffold", 178.17300415039, -73.16130065918, 40.140300750732},
- {"Scaffold", 178.17300415039, -73.16130065918, 35.276298522949},
- },
- bell = {
- {197.15899658203, -75.72029876709, 46.459701538086,"BELLSTHREE"},
- {191.72500610352, -75.72029876709, 46.459701538086,"BELLSTWO"},
- {186.27499389648, -71.16429901123, 46.459701538086,"BELLSONE"},
- },
- tv = {
- {-499.9,329.1,31.4}
- },
- }
- for i = 1,table.getn(prop.door) do
- local p = prop.door[i]
- local a,b,c = p[1],p[2],p[3]
- if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) <= 4 then
- TextPrintString("~LOOK_BACK~ Open",0.5,2)
- if IsButtonBeingPressed(14,0) then
- PAnimOpenDoors(x,y,z,4)
- end
- end
- end
- for l = 1,table.getn(prop.locker) do
- local o = prop.locker[l]
- local a,b,c = o[2],o[3],o[4]
- if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) <= 3 then
- TextPrintString("~LOOK_BACK~ Break",0.5,2)
- if IsButtonBeingPressed(14,0) then
- PAnimSetActionNode(o[1],"/Global/NLockA/Unlocked/Scripted/SaveAlgieBooks","Act/Props/NLockA.act")
- end
- end
- end
- for l = 1,table.getn(prop.tv) do
- local t = prop.tv[l]
- local a,b,c = t[1],t[2],t[3]
- if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) < 3 then
- TextPrintString("~LOOK_BACK~ Turn On",0.5,2)
- if IsButtonBeingPressed(14,0) then
- TaggingSetTVsState(true)
- end
- end
- end
- for l = 1,table.getn(prop.scaffold) do
- local sc = prop.scaffold[l]
- local a,b,c = sc[2],sc[3],sc[4]
- if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) < 3 then
- TextPrintString("~LOOK_BACK~ Destroy",0.5,2)
- if IsButtonBeingPressed(14,0) then
- PAnimApplyDamage(sc[1],a,b,c,251)
- end
- end
- end
- for l = 1,table.getn(prop.bell) do
- local b = prop.bell[l]
- local a,b,c = b[1],b[2],b[3]
- if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) < 3 then
- TextPrintString("~LOOK_BACK~ Destroy",0.5,2)
- if IsButtonBeingPressed(14,0) then
- PAnimSetActionNode("SCBell",a,b,c,1,"/Global/SCBELL/Idle/DoDamage","Act/Props/SCBell.act")
- end
- end
- end
- end
- gForceExplore = function()
- -- Free Camera:
- local on,loaded,cp,ch,dist,fcx,fcy,fcz = false,false,0,0,100,0,0,0
- local plx,ply,plz = PlayerGetPosXYZ()
- F_GetForwardDir2D = function(h,dist)
- return -math.sin(h)*dist,math.cos(h)*dist
- end
- F_GetForwardDir3D = function(p,h,dist)
- return math.cos(p)*-math.sin(h)*dist,math.cos(p)*math.cos(h)*dist,math.sin(p)*dist
- end
- repeat
- if GetCutsceneTime() > 1 and not on then
- on = true
- end
- if on then
- PlayerSetControl(0)
- dist = dist + (GetStickValue(0,0)-GetStickValue(1,0))
- cp = cp + GetStickValue(19,0)/20
- ch = ch + GetStickValue(18,0)/20
- local px,py,pz = PlayerGetPosXYZ()
- local speed = IsButtonPressed(7,0) and 7 or IsButtonPressed(6,0) and 0.05 or 1
- local x1,y1 = F_GetForwardDir2D(ch,GetStickValue(17,0)/10*speed)
- local x2,y2 = F_GetForwardDir2D(ch+math.pi/2,GetStickValue(16,0)/10*speed)
- local z = (GetStickValue(12,0)-GetStickValue(10,0))/10*speed
- if not loaded then
- local cx,cy,cz = F_GetForwardDir3D(cp,ch,-dist*0.04)
- fcx,fcy,fcz = px+cx,py+cy,pz+cz+1.5
- loaded = true
- end
- if loaded then
- fcx,fcy,fcz = fcx+x1+x2,fcy+y1+y2,fcz+z
- end
- local cx,cy,cz = F_GetForwardDir3D(cp,ch,-dist*0.04)
- -- Camera XYZ:
- local camx,camy,camz = fcx or px+cx,fcy or py+cy,fcz or pz+cz+1.5
- -- Look at XYZ:
- local lookx,looky,lookz = fcx and fcx - cx,fcy and fcy - cy,fcz and fcz - cz
- CameraSetXYZ(camx,camy,camz,lookx,looky,lookz)
- gPropInteraction(camx,camy,camz)
- end
- Wait(0)
- until GetCutsceneRunning() == 0
- PlayerSetControl(1)
- end
- function LoadAllAnimation()
- local Important = {
- "Do not add too much, that will be cause of crashes in Anniversary Edition"
- }
- local AnimGroup = {
- "Authority",
- "Boxing",
- "B_Striker",
- "CV_Female",
- "CV_Male",
- "DO_Edgar",
- "DO_Grap",
- "DO_StrikeCombo",
- "DO_Striker",
- "F_Adult",
- "F_BULLY",
- "F_Douts",
- "F_Girls",
- "F_Greas",
- "F_Jocks",
- "F_Nerds",
- "F_OldPeds",
- "F_Pref",
- "F_Preps",
- "G_Grappler",
- "G_Johnny",
- "G_Striker",
- "Grap",
- "J_Damon",
- "J_Grappler",
- "J_Melee",
- "J_Ranged",
- "J_Striker",
- "LE_Orderly",
- "N_Ranged",
- "N_Striker",
- "N_Striker_A",
- "N_Striker_B",
- "Nemesis",
- "P_Grappler",
- "P_Striker",
- "PunchBag",
- "Qped",
- "Rat_Ped",
- "Russell_Pbomb",
- "Straf_Dout",
- "Straf_Fat",
- "Straf_Female",
- "Straf_Male",
- "Straf_Nerd",
- "Straf_Prep",
- "Straf_Savage",
- "Straf_Wrest",
- "TE_Female",
- "3_05TheTenements",
- "BROCKETL",
- "C_Wrestling",
- "Px_Rail",
- "6B_PARA",
- "MINI_React",
- }
- for i = 1,table.getn(AnimGroup) do
- if not HasAnimGroupLoaded(AnimGroup[i]) then
- LoadAnimationGroup(AnimGroup[i])
- else TextPrintString(AnimGroup[i].." has been loaded!",2--[[,1]]) end
- end
- end
- ReturnTF = function(t)
- if t then
- return "T"
- end
- return "F"
- end
- -- STimeCycle.lua :
- -- System Data
- gData = {
- SystemIsLoaded = false,
- RELOAD = false,
- TapTimer = GetTimer(),
- Stored = {
- -- (Files,a,x,y),Action,Sound
- {"1-01",0,368,142,96666,"DEFAULT"},"nil","nil"
- },
- MenuActive = false,
- Settings = {
- {"FILE","1-1-1"},
- {"ACTION","1-1-1"},
- {"AUDIO","1-1-1"},
- {"USE TIMER",false},
- {"VALIDATION",true},
- {"CLEANUP AREA",true},
- {"PLAY CUTSCENE",false},
- },
- Explore = false,
- Select = 1,
- }
- function main()
- while true do
- if not gData.SystemIsLoaded then
- while not SystemIsReady() or AreaIsLoading() do
- Wait(0)
- end
- gData.SystemIsLoaded,gData.RELOAD = true,true
- else
- if gData.RELOAD then
- if T_Cuts then
- TerminateThread(T_Cuts)
- TerminateThread(T_Selector)
- end
- LoadAllAnimation()
- T_Cuts,T_Selector = CreateThread("MONITOR_CUTSCENE"),CreateThread("CUTSCENE_SELECTOR")
- gData.RELOAD = false
- else
- if type(error_message) == "string" then
- TextPrintString(error_message..'',4,1)
- error_message = nil
- end
- Wait(0)
- end
- end
- end
- end
- function MONITOR_CUTSCENE()
- while true do
- if GetCutsceneRunning() ~= 0 then
- if IsButtonBeingPressed(8,0) then
- gData.Explore = true
- if gData.Explore then gForceExplore() end
- end
- else
- if gData.Explore then
- gData.Explore = not gData.Explore
- end
- end
- Wait(0)
- end
- -- RELOAD THREAD:
- gData.RELOAD = true
- end
- function CUTSCENE_SELECTOR()
- while true do
- if IsButtonBeingReleased(14,0) then
- if gData.TapTimer + 500 < GetTimer() then
- gData.MenuActive = not gData.MenuActive
- gData.TapTimer = GetTimer()
- end
- end
- if gData.MenuActive then
- if gController(1) then
- gData.Select = gData.Select + 1
- if gData.Select > table.getn(gData.Settings) then gData.Select = 1 end
- elseif gController(0) then
- gData.Select = gData.Select - 1
- if gData.Select < 1 then gData.Select = table.getn(gData.Settings) end
- end
- if gController(3) then
- if gData.Select == 1 then
- gCutsData.FOptions = gCutsData.FOptions + 1
- if gCutsData.FOptions > table.getn(gCutsData.Cuts) then
- gCutsData.FOptions = 1
- end
- gData.Settings[1][2] = gCutsData.Cuts[gCutsData.FOptions].name
- gData.Stored[1][1],gData.Stored[1][2],gData.Stored[1][3],gData.Stored[1][4],gData.Stored[1][5] = gCutsData.Cuts[gCutsData.FOptions].name,gCutsData.Cuts[gCutsData.FOptions].a,gCutsData.Cuts[gCutsData.FOptions].x,gCutsData.Cuts[gCutsData.FOptions].y,gCutsData.Cuts[gCutsData.FOptions].time
- elseif gData.Select == 2 then
- gCutsData.AOptions = gCutsData.AOptions + 1
- if gCutsData.AOptions > table.getn(gCutsData.Cuts) then
- gCutsData.AOptions = 1
- end
- gData.Settings[2][2] = gCutsData.Cuts[gCutsData.AOptions].name
- elseif gData.Select == 3 then
- gCutsData.SOptions = gCutsData.SOptions + 1
- if gCutsData.SOptions > table.getn(gCutsData.Cuts) then
- gCutsData.SOptions = 1
- end
- gData.Settings[3][2] = gCutsData.Cuts[gCutsData.SOptions].name
- elseif gData.Select == 4 then
- gData.Settings[4][2] = not gData.Settings[4][2]
- elseif gData.Select == 5 then
- gData.Settings[5][2] = not gData.Settings[5][2]
- elseif gData.Select == 6 then
- gData.Settings[6][2] = not gData.Settings[6][2]
- elseif gData.Select == 7 then
- local file = gData.Stored
- CCutsceneMgr_Play(file[1][1],gData.Settings[2][2],gData.Settings[3][2],file[1][2],file[1][3],file[1][4],file[1][6],file[1][5],gData.Settings[4][2],gData.Settings[5][2],gData.Settings[6][2])
- end
- elseif gController(2) then
- gForceDelay(2)
- repeat
- if gController(1) then
- gCutsData.MOptions = gCutsData.MOptions + 1
- if gCutsData.MOptions > table.getn(gCutsData.Music) then gCutsData.MOptions = 1 end
- elseif gController(0) then
- gCutsData.MOptions = gCutsData.MOptions - 1
- if gCutsData.MOptions < 1 then gCutsData.MOptions = table.getn(gCutsData.Music) end
- end
- TextPrintString("MUSIC\n\n"..gCutsData.Music[gCutsData.MOptions].."\n("..gCutsData.MOptions..")",0,1)
- Wait(0)
- until IsButtonBeingPressed(3,0) or IsButtonBeingPressed(2,0)
- if IsButtonBeingPressed(2,0) then
- gForceDelay(2)
- else
- gData.Stored[1][6] = gCutsData.Music[gCutsData.MOptions]
- gForceDelay(3)
- end
- end
- --TextPrintString("TEST",0,1)
- gProcessString("EXPLORER 2.0",gCutsData.Cuts,gCutsData.FOptions,gCutsData.AOptions,gCutsData.SOptions,gData.Settings,gData.Select)
- if gData.Stored[1][6] ~= "DEFAULT" then
- TextPrintString("Music:\n"..gData.Stored[1][6],0,2)
- end
- else
- TextPrintString("~LOOK_BACK~ to open",0,2)
- end
- Wait(0)
- end
- -- RELOAD THREAD:
- gData.RELOAD = true
- end
- -- STimeCycle Functions:
- function F_AttendedClass()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- SetSkippedClass(false)
- PlayerSetPunishmentPoints(0)
- end
- function F_MissedClass()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- SetSkippedClass(true)
- StatAddToInt(166)
- end
- function F_AttendedCurfew()
- if not PedInConversation(gPlayer) and not MissionActive() then
- TextPrintString("You got home in time for curfew", 4)
- end
- end
- function F_MissedCurfew()
- if not PedInConversation(gPlayer) and not MissionActive() then
- TextPrint("TM_TIRED5", 4, 2)
- end
- end
- function F_StartClass()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- end
- function F_EndClass()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- end
- function F_StartMorning()
- F_UpdateTimeCycle()
- end
- function F_EndMorning()
- F_UpdateTimeCycle()
- end
- function F_StartLunch()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- F_UpdateTimeCycle()
- return
- end
- F_UpdateTimeCycle()
- end
- function F_EndLunch()
- F_UpdateTimeCycle()
- end
- function F_StartAfternoon()
- F_UpdateTimeCycle()
- end
- function F_EndAfternoon()
- F_UpdateTimeCycle()
- end
- function F_StartEvening()
- F_UpdateTimeCycle()
- end
- function F_EndEvening()
- F_UpdateTimeCycle()
- end
- function F_StartCurfew_SlightlyTired()
- F_UpdateTimeCycle()
- end
- function F_StartCurfew_Tired()
- F_UpdateTimeCycle()
- end
- function F_StartCurfew_MoreTired()
- F_UpdateTimeCycle()
- end
- function F_StartCurfew_TooTired()
- F_UpdateTimeCycle()
- end
- function F_EndCurfew_TooTired()
- F_UpdateTimeCycle()
- end
- function F_EndTired()
- F_UpdateTimeCycle()
- end
- function F_Nothing()
- end
- function F_ClassWarning()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- local l_23_0 = math.random(1, 2)
- end
- function F_UpdateTimeCycle()
- if not IsMissionCompleated("1_B") then
- local l_24_0 = GetCurrentDay(false)
- if l_24_0 < 0 or l_24_0 > 2 then
- SetCurrentDay(0)
- end
- end
- F_UpdateCurfew()
- end
- function F_UpdateCurfew()
- local l_25_0 = shared.gCurfewRules
- if not l_25_0 then
- l_25_0 = F_CurfewDefaultRules
- end
- l_25_0()
- end
- function F_CurfewDefaultRules()
- local l_26_0 = ClockGet()
- if l_26_0 >= 23 or l_26_0 < 7 then
- shared.gCurfew = true
- else
- shared.gCurfew = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment