Altamurenza

Bully SE: Cutscene Explorer

May 9th, 2018
828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 44.63 KB | None | 0 0
  1. -- Cutscene Explorer Mod
  2. -- Using free camera mod by derpy54320 A.K.A DaBOSS54320
  3.  
  4. -- LIB_Table.lua :
  5.  
  6. local psx,psy,psz = GetPointList(POINTLIST._PLAYER_START)
  7. gCutsData = {
  8.     FOptions = 1,AOptions = 1,SOptions = 1,
  9.     Cuts = {
  10.         {name = "1-1-1",a = 0,x = psx,y = psy,time = 61666.66015625},
  11.         {name = "1-1-2",a = 5,x = -705.90899658203,y = 227.98100280762,time = 96600},
  12.         {name = "1-01",a = 0,x = 368.5,y = 142.34399414063,time = 96666.65625},
  13.         {name = "1-02B",a = 14,x = -501.58401489258,y = 324.11099243164,time = 40666.6640625},
  14.         {name = "1-02D",a = 2,x = -636.3759765625,y = -285.5119934082,time = 51800},
  15.         {name = "1-02E",a = 14,x = -501.58401489258,y = 324.11099243164,time = 81666.65625},
  16.         {name = "1-03",a = 0,x = 212.48100280762,y = -71.041999816895,time = 47700},
  17.         {name = "1-04",a = 14,x = -502.4700012207,y = 309.60598754883,time = 92600},
  18.         {name = "1-05",a = 9, x = -784.875, y = 203.09800720215,time = 61200},
  19.         {name = "1-06",a = 14,x = -502.4700012207,y = 309.60598754883,time = 86666.65625},
  20.         {name = "1-06B",a = 0,x = 158.4109954834,y = 25.486000061035,time = 90833.328125},
  21.         {name = "1-07",a = 14,x = -501.58401489258,y = 324.11099243164,time = 97733.328125},
  22.         {name = "1-08",a = 35,x = -454,y = 311,time = 66666.6640625},
  23.         {name = "1-09",a = 2,x = -672.17901611328,y = -307.40200805664,time = 81833.328125},
  24.         {name = "1-10",a = 14,x = -502.4700012207,y = 309.60598754883,time = 63833.328125},
  25.         {name = "1-11",a = 14,x = -502.4700012207,y = 309.60598754883,time = 45666.66015625},
  26.         {name = "1-11",a = 14,x = -502.4700012207,y = 309.60598754883,time = 45666.66015625},
  27.         {name = "1-B",a = 8,x = -772.45501708984,y = -134.55299377441,time = 67666.6640625},
  28.         {name = "1-BB",a = 8,x = -772.45501708984,y = -134.55299377441,time = 9666.66015625},
  29.         {name = "1-BC",a = 8,x = -772.45501708984,y = -134.55299377441,time = 62333.328125},
  30.         {name = "2-01",a = 2,x = -631.53900146484,y = -278.09600830078,time = 79033.328125},
  31.         {name = "2-02",a = 0,x = 516.62902832031,y = -58.715000152588,time = 32666.66015625},
  32.         {name = "2-03",a = 27,x = -730.99401855469,y = 386.32699584961,time = 63000},
  33.         {name = "2-03b",a = 0,x = 447.99099731445,y = 487.78399658203,time = 56833.328125},
  34.         {name = "2-04",a = 14,x = -502.4700012207,y = 309.60598754883,time = 50666.66015625},
  35.         {name = "2-05",a = 0,x = 351.4280090332,y = 148.63400268555,time = 43500},
  36.         {name = "2-06",a = 0,x = 345.94799804688,y = 216.2140045166,time = 58000},
  37.         {name = "2-07",a = 29,x = -784.88897705078,y = 382.10699462891,time = 70000},
  38.         {name = "2-08",a = 6,x = -709.7490234375,y = 312.35998535156,time = 81733},
  39.         {name = "2-09",a = 0,x = 225.64300537109,y = 247.10699462891,time = 37500},
  40.         {name = "2-09B",a = 27,x = -704.57000732422,y = 374.90798950195,time = 20666.66015625},
  41.         {name = "3-01",a = 0,x = 502.70001220703,y = -213.19999694824,time = 67400},
  42.         {name = "3-02",a = 0,x = 502.70001220703,y = -213.19999694824,time = 37000},
  43.         {name = "3-03",a = 0,x = 506.13598632813,y = -434.27600097656,time = 51200},
  44.         {name = "3-04",a = 9,x = -784.875,y = 203.09800720215,time = 54666.671875},
  45.         {name = "3-04B",a = 0,x = 506.13598632813,y = -434.27600097656,time = 54833.328125},
  46.         {name = "3-05",a = 0,x = 502.70001220703,y = -213.19999694824,time = 63333.328125},
  47.         {name = "3-06",a = 0,x = 508.59201049805,y = -207.97200012207,time = 48333.328125},
  48.         {name = "4-01",a = 40,x = -696.45300292969,y = 74.391998291016,time = 49666.66015625},
  49.         {name = "4-02",a = 9,x = -784.875,y = 203.09800720215,time = 59000},
  50.         {name = "4-03",a = 40,x = -696.61499023438,y = 61.632999420166,time = 70633},
  51.         {name = "4-04",a = 9,x = -784.875,y = 203.09800720215,time = 66800},
  52.         {name = "4-05",a = 40,x = -696.61499023438,y = 61.632999420166,time = 87233.3359375},
  53.         {name = "4-06",a = 40,x = -696.61499023438,y = 61.632999420166,time = 80333},
  54.         {name = "5-01",a = 0,x = 187.9700012207,y = -151.28700256348,time = 52666},
  55.         {name = "5-02",a = 27,x = -734.97900390625,y = 383.66000366211,time = 76666},
  56.         {name = "5-02B",a = 0,x = 383.66000366211,y = 147.36099243164,time = 71500},
  57.         {name = "5-03",a = 0,x = 502.70001220703,y = -213.19999694824,time = 58666},
  58.         {name = "5-04",a = 0,x = 59.303001403809,y = -61.304000854492,time = 69000},
  59.         {name = "5-05",a = 0,x = 250.96000671387,y = -353.98999023438,time = 50666},
  60.         {name = "5-06",a = 0,x = 268.70001220703,y = -107.19999694824,time = 68000},
  61.         {name = "5-07",a = 0,x = 237.38200378418,y = -70.333999633789,time = 21000},
  62.         {name = "5-09",a = 14,x = -502.4700012207,y = 309.60598754883,time = 60333},
  63.         {name = "5-09B",a = 14,x = -483.99600219727,y = 312.70999145508,time = 27066},
  64.         {name = "6-02",a = 0,x = 250.81399536133,y = -352.8450012207,time = 40000},
  65.         {name = "6-02B",a = 0,x = 301.84201049805,y = 2.4170000553131,time = 44333},
  66.         {name = "1-G1",a = 0,x = 246.56799316406, y = -19,time = 70900},
  67.         {name = "1-S01",a = 15,x = -563.08197021484,y = 316.98999023438,time = 118666},
  68.         {name = "2-B",a = 27,x = -702.44500732422,y = 372.79598999023,time = 57666},
  69.         {name = "2-BB",a = 27,x = -702.44500732422,y = 372.79598999023,time = 22666},
  70.         {name = "2-0",a = 2,x = -626.38897705078,y = -295.35998535156,time = 46666},
  71.         {name = "2-S02",a = 15,x = -563.08197021484,y = 316.98999023438,time = 72333},
  72.         {name = "2-S04",a = 0,x = 187.94500732422,y = -151.41000366211,time = 56333},
  73.         {name = "2-S05",a = 2,x = -631.53900146484,y = -278.09600830078,time = 75633},
  74.         {name = "2-S05B",a = 2,x = -631.53900146484,y = -278.09600830078,time = 77500},
  75.         {name = "2-S05C",a = 0,x = 446.21600341797,y = 198.39399719238,time = 24333},
  76.         {name = "2-S06",a = 0,x = 530.31402587891,y = -130.64199829102,time = 98333},
  77.         {name = "2-S06",a = 0,x = 530.31402587891,y = -130.64199829102,time = 98333},
  78.         {name = "2-G2",a = 0,x = 345.94799804688,y = 216.2140045166,time = 70000},
  79.         {name = "3-B",a = 0,x = 543.59997558594,y = -469.46899414063,time = 43833},
  80.         {name = "3-BB",a = 43,x = -735.98101806641,y = -656.30401611328,time = 12666},
  81.         {name = "3-BC",a = 43,x = -745.77301025391,y = -610.74499511719,time = 9000},
  82.         {name = "3-0",a = 14,x = -505.625,y = 329.79598999023,time = 55166},
  83.         {name = "3-G3",a = 0,x = 505.37799072266,y = -434.79000854492,time = 60333},
  84.         {name = "3-S03",a = 0,x = 181.7140045166,y = -19.496999740601,time = 43666},
  85.         {name = "3-S10",a = 32,x = -565.89501953125,y = 133.71499633789,time = 50000},
  86.         {name = "3-S11",a = 17,x = -536.58599853516,y = 385.2200012207,time = 83666},
  87.         {name = "3-S11C",a = 38,x = -725.29602050781,y = 459.46701049805,time = 48666},
  88.         {name = "4-B1",a = 40,x = -696.61499023438,y = 61.632999420166,time = 23333},
  89.         {name = "4-B1B",a = 40,x = -696.61499023438,y = 61.632999420166,time = 11933},
  90.         {name = "4-B1C",a = 40,x = -696.61499023438,y = 61.632999420166,time = 11933},
  91.         {name = "4-B1D",a = 40,x = -695.80700683594,y = 73.694999694824,time = 32333},
  92.         {name = "4-B2",a = 0,x = -28.530000686646,y = -74.935997009277,time = 14333},
  93.         {name = "4-B2B",a = 0,x = -28.530000686646,y = -74.935997009277,time = 15666},
  94.         {name = "4-G4",a = 13,x = -633.61297607422,y = -69.106002807617,time = 72666},
  95.         {name = "4-S12",a = 17,x = -536.99798583984,y = 376.58401489258,time = 95000},
  96.         {name = "4-S12B",a = 2,x = -671.79998779297,y = -293.10000610352,time = 78000},
  97.         {name = "4-0",a = 0,x = 237.38200378418,y = -70.333999633789,time = 8000},
  98.         {name = "5-0",a = 0,x = 237.38200378418,y = -70.333999633789,time = 58333},
  99.         {name = "5-05B",a = 0,x = 471.46499633789,y = 258.79000854492,time = 24833},
  100.         {name = "5-B",a = 20,x = -732.95501708984,y = 80.830001831055,time = 24333},
  101.         {name = "5-G5",a = 0,x = 250, y = -355,time = 34333},
  102.         {name = "6-0",a = 5,x = -705.90899658203,y = 227.98100280762,time = 106033},
  103.         {name = "6-B",a = 0,x = 194.42999267578,y = -65.057998657227,time = 29666},
  104.         {name = "6-BB",a = 0,x = 181.38600158691,y = -72.320999145508,time = 53833},
  105.         {name = "6-BC",a = 5,x = -705.90899658203,y = 227.98100280762,time = 72666},
  106.         {name = "5-BC",a = 20,x = -732.95501708984,y = 80.830001831055,time = 40833},
  107.         {name = "3-BD",a = 43,x = -745.77301025391,y = -610.74499511719,time = 33500},
  108.         {name = "3-01AA",a = 0,x = 552.86297607422,y = -372.85000610352,time = 123033.328125},
  109.         {name = "3-01AB",a = 0,x = 552.93103027344,y = -372.7200012207,time = 18633.330078125},
  110.         {name = "3-01BA",a = 0,x = 505.35501098633,y = -114.18299865723,time = 72866.65625},
  111.         {name = "3-01CA",a = 2,x = -769.51000976563,y = -298.51800537109,time = 132733.328125},
  112.         {name = "3-01CB",a = 19,x = -618.73297119141,y = 309.03399658203,time = 32266.66015625},
  113.         {name = "3-01DA",a = 0,x = 490.27600097656,y = -115.9700012207,time = 55333.328125},
  114.         {name = "3-01DB",a = 0,x = 490.09698486328,y = -115.89800262451,time = 38066.66015625},
  115.         {name = "3-01DC",a = 0,x = 496.62399291992,y = -116.89399719238,time = 29500},
  116.         {name = "2-S07",a = 50,x = -791.50897216797,y = 49.139999389648,time = 33533.328125},
  117.         {name = "3-R05A",a = 4,x = -595.01098632813,y = 325.74798583984,time = 66833},
  118.         {name = "3-R05B",a = 4,x = -595.01098632813,y = 325.74798583984,time = 9000},
  119.         {name = "3-R07",a = 0,x = 498.0830078125,y = -391.82901000977,time = 58333.328125},
  120.         {name = "3-S08",a = 0,x = 283.34298706055,y = -460.46701049805,time = 63166.66015625},
  121.         {name = "CS_COUNTER",a = 14,x = -501.58401489258,y = 324.11099243164,time = 59166.66015625},
  122.         {name = "FX-TEST",a = 2,x = -631.53900146484, y = -278.09600830078,time = 33333},
  123.     },
  124.     MOptions = 1,
  125.     Music = {
  126.         "DEFAULT",
  127.         "MS_MisbehavingLow.rsm",
  128.         "EX_XmasTreeEmitter04.rsm",
  129.         "MS_CarnivalFunhouseAmbient.rsm",
  130.         "MS_Somower.rsm",
  131.         "MS_RomanceHigh.rsm",
  132.         "MS_MusicClass_Turkey.rsm",
  133.         "MS_WIldstyleHigh.rsm",
  134.         "ArcRaceMXmidi02SPLASHBED01.rsm",
  135.         "MS_5-05_MeetZoe_NIS.rsm",
  136.         "MS_RunningMid.rsm",
  137.         "MS_Candidate.rsm",
  138.         "MS_EpicConfrontationHighPart2.rsm",
  139.         "ArcRaceMXmidi02SPLASH.rsm",
  140.         "MS_EnglishClassEnd.rsm",
  141.         "EX_BikeShopMX.rsm",
  142.         "MS_FinalShowdown03Low.rsm",
  143.         "ArcRaceMXmidi02SPLASHBED05.rsm",
  144.         "MS_EpicConfrontationLow.rsm",
  145.         "MS_StealthHigh.rsm",
  146.         "E_TatooTrailerMX.rsm",
  147.         "MS_FriendshipAllyHigh.rsm",
  148.         "MS_OnFootFailure.rsm",
  149.         "MS_MusicClass_Washing.rsm",
  150.         "MS_CarnivalFunhouseMaze.rsm",
  151.         "MS_BikeFunMid.rsm",
  152.         "FIGHT01EndFade.rsm",
  153.         "MS_RussellInTheHole.rsm",
  154.         "MS_ChaseAdult.rsm",
  155.         "MS_3-B_ENDTAG.rsm",
  156.         "MS_ActionLow.rsm",
  157.         "MS_MiniStingSuccess.rsm",
  158.         "MS_Misbehaving_NISPrankInfo.rsm",
  159.         "MS_StreetFightLargeLow_Boxing.rsm",
  160.         "MS_XmasBellsRudylow.rsm",
  161.         "MS_MusicClass_MasterP.rsm",
  162.         "MS_FinalShowdownMid.rsm",
  163.         "MS_Misbehaving_NISPrankSucess.rsm",
  164.         "E_HQMX_Dropouts.rsm",
  165.         "MS_TenementsLow.rsm",
  166.         "MS_BikeDay.rsm",
  167.         "MS_ActionMid.rsm",
  168.         "FIGHT01EFade.rsm",
  169.         "MS_InTroubleHigh.rsm",
  170.         "MS_PhotographyClass.rsm",
  171.         "MS_FinalShowdown03Mid.rsm",
  172.         "MS_RunningHigh.rsm",
  173.         "MS_XmasJingleMiracleMid.rsm",
  174.         "EX_XmasTreeEmitter03.rsm",
  175.         "MS_MusicClass_Carols01.rsm",
  176.         "MS_TenementsHigh.rsm",
  177.         "MS_XmasJingleMiracle.rsm",
  178.         "MS_NerdFight.rsm",
  179.         "MS_GoKart02.rsm",
  180.         "MS_BiologyClass.rsm",
  181.         "MS_EnglishClass.rsm",
  182.         "MS_FootStealthLow.rsm",
  183.         "ArcRaceMXmidi02Drive02.rsm",
  184.         "FIGHT01D.rsm",
  185.         "MS_XmasBellsRudyHigh.rsm",
  186.         "MS_HalloweenMid.rsm",
  187.         "E_HQMX_Jocks.rsm",
  188.         "MS_Ambient01.rsm",
  189.         "Arc_MonkeyFlingGame01.rsm",
  190.         "MS_SearchingHigh.rsm",
  191.         "MS_FightMid01.rsm",
  192.         "ArcRaceMXmidi02SPLASHBED06.rsm",
  193.         "MS_DestructionVandalismMid.rsm",
  194.         "MS_BoxingBossFight.rsm",
  195.         "MS_ShowdownAtThePlantLow.rsm",
  196.         "MS_ActionHigh.rsm",
  197.         "MS_BikeFailure.rsm",
  198.         "E_HairSaloonPoorMX.rsm",
  199.         "MS_SneakDate_Romantic.rsm",
  200.         "MS_FightingNerds.rsm",
  201.         "MS_Tired.rsm",
  202.         "ArcRaceMXmidi02LOSE01.rsm",
  203.         "MS_RunningLow02.rsm",
  204.         "MS_NerdPassStinger.rsm",
  205.         "ArcRaceMXmidi02LOSE02.rsm",
  206.         "MS_5-05_BurtonPee_NIS.rsm",
  207.         "MS_XmasComeRudyMid.rsm",
  208.         "ArcRaceMXmidi02SPLASHBED02.rsm",
  209.         "EX_ClothingStoreRichMX.rsm",
  210.         "MS_RomanceFailStinger.rsm",
  211.         "E_HairSaloonRichMX.rsm",
  212.         "MS_FightHigh02.rsm",
  213.         "MS_XmasFavoriteBallsHigh.rsm",
  214.         "MS_ChaseMid.rsm",
  215.         "MS_BikeChaseMid.rsm",
  216.         "5-06_HarleyLeavesExplode_NIS.rsm",
  217.         "MS_FearTensionMid.rsm",
  218.         "MS_ChaseLow.rsm",
  219.         "MS_FinalShowdown03High.rsm",
  220.         "MS_GenericStingFail.rsm",
  221.         "MS_BikeRace01.rsm",
  222.         "MS_FightingJohnnyVincentBikeRide.rsm",
  223.         "Arc_MonkeyFlingWin.rsm",
  224.         "MS_RomanceLow.rsm",
  225.         "MS_EpicConfrontationMid.rsm",
  226.         "MS_Carnival02.rsm",
  227.         "MS_BikeActionMid.rsm",
  228.         "ArcRaceMXmidi02WIN.rsm",
  229.         "MS_Confrontation_NIS.rsm",
  230.         "MS_XmasComeRudyHigh.rsm",
  231.         "MS_BikeRace02.rsm",
  232.         "MS_FightingJohnnyVincentFight.rsm",
  233.         "MS_MusicClass_Coming.rsm",
  234.         "MS_SearchingLow.rsm",
  235.         "EX_TatooTrailerMX.rsm",
  236.         "MS_InTroubleLow.rsm",
  237.         "Arc_SUMO_Win.rsm",
  238.         "MS_MathClass.rsm",
  239.         "ArcRaceMXmidi02SPLASHBED03.rsm",
  240.         "MS_StealthLow.rsm",
  241.         "MS_ClassSuccessStinger.rsm",
  242.         "FIGHT01F.rsm",
  243.         "MS_BikePractice.rsm",
  244.         "EX_ComicShopMX.rsm",
  245.         "Arc_FlyingSquirrelWin.rsm",
  246.         "MS_FinalShowdownHigh.rsm",
  247.         "MS_BiologyClassEnd.rsm",
  248.         "EX_XmasTreeEmitter01.rsm",
  249.         "1-06_HoboNIS.rsm",
  250.         "MS_RomancePassStinger.rsm",
  251.         "MS_HalloweenLow.rsm",
  252.         "Arc_MonkeyFlingMenu01.rsm",
  253.         "Arc_FlyingSquirrelGameMx01.rsm",
  254.         "MS_FightingPreps.rsm",
  255.         "MS_BikeFunHigh.rsm",
  256.         "MS_GoKarts01A.rsm",
  257.         "MS_FootStealthHigh.rsm",
  258.         "MS_FightingGeneric.rsm",
  259.         "MS_ClassFailureStinger.rsm",
  260.         "MS_JockBossBattle.rsm",
  261.         "MS_GoKart 01.rsm",
  262.         "MS_StreetFightLargeMid_Boxing.rsm",
  263.         "MS_FightingBullies.rsm",
  264.         "MS_BikeChaseHigh.rsm",
  265.         "FIGHT01C.rsm",
  266.         "Arc_MonkeyFlingGame02.rsm",
  267.         "MS_PrepFight.rsm",
  268.         "ArcRaceMXmidi02SPLASHBED04.rsm",
  269.         "MS_FightingJocks.rsm",
  270.         "EX_HairSaloonRichMX.rsm",
  271.         "MS_NerdBossBattle.rsm",
  272.         "MS_EnglishClassShort.rsm",
  273.         "Arc_MonkeyFlingGame03.rsm",
  274.         "MS_MusicClassTestDrum.rsm",
  275.         "MS_Gobble.rsm",
  276.         "5-05_NIS_PottyFall.rsm",
  277.         "MS_Fighting01.rsm",
  278.         "MS_TournySuccessStinger.rsm",
  279.         "Arc_FlyingSquirrelGameMx03.rsm",
  280.         "EX_JanitorRoomMX.rsm",
  281.         "EX_HairSalonPoorMX.rsm",
  282.         "MS_ArtClass.rsm",
  283.         "Arc_FlyingSquirrelLose.rsm",
  284.         "MS_KidsPlay.rsm",
  285.         "MS_MisbehavingHigh.rsm",
  286.         "MS_NerdFailStinger.rsm",
  287.         "MS_StealthMidA.rsm",
  288.         "MS_FightingPrepsLow.rsm",
  289.         "E_JanitorRoomMX.rsm",
  290.         "MS_EpicConfrontationHigh.rsm",
  291.         "MS_XmasJingleMiracleHigh.rsm",
  292.         "MS_ChaseHigh.rsm",
  293.         "MS_FightLow03.rsm",
  294.         "EX_ClothingStorePoorMX.rsm",
  295.         "MS_SneakDate_SexyGirl.rsm",
  296.         "MS_FootStealthMid.rsm",
  297.         "MS_FightMid03.rsm",
  298.         "MS_3B_JohhnyV_NIS.rsm",
  299.         "MS_BikeFastMid.rsm",
  300.         "MS_FriendshipAllyMid.rsm",
  301.         "Arc_FlyingSquirrelGameMx02.rsm",
  302.         "E_BoxClub_DownstairsMX.rsm",
  303.         "MS_GymClass.rsm",
  304.         "MS_5-09_CrowdNIS.rsm",
  305.         "MS_XmasComeRudyLow.rsm",
  306.         "MS_ActionBeatBreak.rsm",
  307.         "MS_FunHigh.rsm",
  308.         "MS_FightMid02.rsm",
  309.         "MS_FunLow.rsm",
  310.         "E_ComicShopMX.rsm",
  311.         "MS_FinalShowdownLow.rsm",
  312.         "5-06_Garage_NIS.rsm",
  313.         "MS_PunishmentDetention.rsm",
  314.         "MS_ChasePrefect.rsm",
  315.         "MS_BikeNight.rsm",
  316.         "Arc_SUMO_Menu.rsm",
  317.         "MS_FightingGreasers.rsm",
  318.         "MS_MusicClass_Liberty.rsm",
  319.         "MS_GoKarts02.rsm",
  320.         "MS_ActionHigh_NISReturn.rsm",
  321.         "MS_MisbehavingHigh_NIS03.rsm",
  322.         "MS_BikeFunLow.rsm",
  323.         "FIGHT01B.rsm",
  324.         "MS_GoKarts01B.rsm",
  325.         "MS_BikeFastLow.rsm",
  326.         "MS_FightingJohnnyVincentBossFight.rsm",
  327.         "E_BikeShopMX.rsm",
  328.         "E_HQMX_Nerds.rsm",
  329.         "MS_FightingDropouts.rsm",
  330.         "MS_GenericStingSuccess.rsm",
  331.         "MS_LockPicking.rsm",
  332.         "MS_MisbehavingHigh_NIS02.rsm",
  333.         "MS_6B_EndlessSummerCreditsNIS.rsm",
  334.         "MS_XmasJingleMiracleLow.rsm",
  335.         "MS_BoxingReg.rsm",
  336.         "Arc_MonkeyFlingMenu02.rsm",
  337.         "EX_XmasTreeEmitter02.rsm",
  338.         "MS_GeographyClass.rsm",
  339.         "MS_ShowdownAtThePlantHigh.rsm",
  340.         "Arc_MonkeyFlingLose.rsm",
  341.         "MS_MisbehavingMid.rsm",
  342.         "MS_StealthMid.rsm",
  343.         "MS_XmasBellsRudyMid.rsm",
  344.         "MS_DestructionVandalismHigh.rsm",
  345.         "MS_ChasePolice.rsm",
  346.         "MS_FriendshipAllyLow.rsm",
  347.         "MS_ChemistryClassMulti.rsm",
  348.         "ArcRaceMXmidi02Drive01.rsm",
  349.         "E_GeneralStoreMX.rsm",
  350.         "MS_TournySuccessStinger2.rsm",
  351.         "FIGHT01A.rsm",
  352.         "MS_TenementsMid.rsm",
  353.         "MS_HalloweenHigh.rsm",
  354.         "MS_BikeActionHigh.rsm",
  355.         "MS_OnFootVictory.rsm",
  356.         "E_ClothingStorePoorMX.rsm",
  357.         "MS_Carnival01.rsm",
  358.         "MS_SearchingMid.rsm",
  359.         "MS_MathClassEnd.rsm",
  360.         "MS_EpicConfrantation_NIS.rsm",
  361.         "MS_EpicConfrontationEnding.rsm",
  362.         "MS_MovieTixRomance.rsm",
  363.         "MS_XmasFavoriteBallsMed.rsm",
  364.         "MS_ShopClass.rsm",
  365.         "MS_MissionEnd01.rsm",
  366.         "MS_XmasFavoriteBallsLow.rsm",
  367.         "MS_WIldstyleLow.rsm",
  368.         "MS_CarnivalFunhouseMiner.rsm",
  369.         "MS_BikeChaseLow.rsm",
  370.         "MS_WIldstyleMid.rsm",
  371.         "MS_RomanceMid.rsm",
  372.         "E_ClothingStoreRichMX.rsm",
  373.         "MS_ChemistryClass.rsm",
  374.         "MS_DishonorableFight.rsm",
  375.         "Arc_SUMO_Lose.rsm",
  376.         "MS_BikeFastHigh.rsm",
  377.         "MS_BikeVictory.rsm",
  378.         "MS_RunningFight-2 MIX TR.rsm",
  379.         "Arc_SUMO_Game01.rsm",
  380.         "MS_MisbehavingHigh_NIS01.rsm",
  381.         "Arc_FlyingSquirrelMenu.rsm",
  382.         "MS_TensionBuilder01.rsm",
  383.         "MS_RunningLow.rsm",
  384.         "MS_BikeFun_NIS.rsm",
  385.         "E_HQMX_Preppies.rsm",
  386.         "MS_StreetFightLargeHigh_Boxing.rsm",
  387.         "MS_FunMid.rsm",
  388.         "EX_GeneralStoreMX.rsm",
  389.         "ArcRaceMXmidi02Drive03.rsm",
  390.     }
  391. }
  392.  
  393. -- LIB_Function.lua :
  394.  
  395. CCutsceneMgr_ImportTemporarilyXML = function(xml,head,body)
  396. end
  397. CCutsceneMgr_Play = function(Files,Action,Sound,AreaCode,xpos,ypos,Music,Time,Timer,Validation,Cleanup)
  398.     local Playable,Cuts6B = nil,false
  399.    
  400.     if Validation then
  401.         Playable = CCutsceneMgr_CheckData(Sound,AreaCode)
  402.     else Playable = true end
  403.    
  404.     if Playable then
  405.         local a,x,y,z = AreaGetVisible(),PlayerGetPosXYZ()
  406.         if Files == "6-B" or Files == "6-BB" then
  407.             ForceStartMission("6_B")
  408.             DATLoad("6_Ba.DAT",2)
  409.             DATInit()
  410.             PedSetEffectedByGravity(gPlayer,false)
  411.             Cuts6B = true
  412.         end
  413.         CameraFade(500,0)
  414.         Wait(501)
  415.         if type(AreaCode) == "number" then
  416.             AreaForceLoadAreaByAreaTransition(true)
  417.             AreaDisableCameraControlForTransition(true)
  418.             AreaTransitionXYZ(AreaCode,xpos,ypos,gHeightFixer(AreaCode))
  419.             AreaDisableCameraControlForTransition(false)
  420.             AreaForceLoadAreaByAreaTransition(false)
  421.             if Cuts6B then
  422.                 CameraFade(1,0)
  423.             end
  424.         end
  425.         LoadCutscene(Files,false)
  426.         if Music ~= "DEFAULT" then
  427.             MusicAllowPlayDuringCutscenes(true)
  428.             SoundPlayStream(Music,1.0)
  429.         end
  430.         CutSceneSetActionNode(Action)
  431.         LoadCutsceneSound(Sound)
  432.         CameraDefaultFOV()
  433.         repeat
  434.             Wait(0)
  435.         until IsCutsceneLoaded()
  436.         CCutsceneMgr_StartNow()
  437.         if Timer then
  438.             repeat
  439.                 Wait(0)
  440.             until GetCutsceneTime() > Time or IsButtonBeingPressed(3,0)
  441.         else
  442.             repeat
  443.                 Wait(0)
  444.             until GetCutsceneRunning() == 0 or IsButtonBeingPressed(3,0)
  445.         end
  446.         CCutsceneMgr_CleanupCutscene(a,x,y,z,Cleanup,Cuts6B)
  447.     else
  448.         Wait(math.random(1000,4000))
  449.     end
  450. end
  451. CCutsceneMgr_StartNow = function()
  452.     StartCutscene()
  453.     CameraFade(1000,1)
  454.     Wait(1000)
  455. end
  456. CCutsceneMgr_CleanupCutscene = function(a,x,y,z,c,b)
  457.     SoundFadeWithCamera(true)
  458.     MusicFadeWithCamera(true)
  459.     CameraFade(1000,0)
  460.     Wait(1001)
  461.     StopCutscene()
  462.     CutsceneFadeWithCamera(false)
  463.     CameraSetWidescreen(false)
  464.     AreaDisableCameraControlForTransition(true)
  465.     if b then
  466.         DATUnload(2)
  467.         MissionForceShutdown("6_B")
  468.     end
  469.     MusicAllowPlayDuringCutscenes(false)
  470.     SoundStopStream()
  471.     AreaRemoveExtraScene()
  472.     if c then
  473.         AreaTransitionXYZ(13,-619.0,-59.5,59.6)
  474.         while IsStreamingBusy() do
  475.             Wait(0)
  476.         end
  477.         AreaTransitionXYZ(a,x,y,z)
  478.     else
  479.         AreaTransitionXYZ(a,x,y,z)
  480.     end
  481.     AreaDisableCameraControlForTransition(false)
  482.     CameraReturnToPlayer()
  483.     CameraFade(1000,1)
  484.     Wait(500)
  485. end
  486. CCutsceneMgr_CheckData = function(Sound,AreaCode)
  487.     local Error_Dat = {
  488.         "CS_COUNTER","FX-TEST"
  489.     }
  490.     if Sound == Error_Dat[1] or Sound == Error_Dat[2] then
  491.         TextPrintString("ERROR: AUDIO DATA IS MISSING",4,1)
  492.         return false
  493.     else
  494.         local AreaDat = {
  495.             {6,"AreaScripts/Bio_Lab.lua"},{50,"SSTores.lua"},{43,"AreaScripts/Junkyard.lua"},
  496.             {45,"AreaScripts/Midway.lua"},{2,"AreaScripts/SchoolHallways.lua"},
  497.             {0,"AreaScripts/MainMap.lua"},{26,"SStores.lua"},{16,"AreaScripts/Tattoos.lua"},
  498.             {29,"SStores.lua"},{30,"SStores.lua"},{36,"AreaScripts/Tenements.lua"},
  499.             {14,"AreaScripts/Bdorm.lua"},{35,"AreaScripts/Gdorm.lua"},{37,"AreaScripts/Funhouse.lua"},
  500.             {27,"AreaScripts/Boxing.lua"},{32,"AreaScripts/PrepHouse.lua"},{8,"AreaScripts/Janitors.lua"},
  501.             {13,"AreaScripts/GymAndPool.lua"},{39,"AreaScripts/StyleStores.lua"},
  502.             {34,"AreaScripts/StyleStores.lua"},{38,"AreaScripts/Asylum.lua"},
  503.             {9,"AreaScripts/Library.lua"},{54,"AreaScripts/Warehouse.lua"},
  504.             {23,"AreaScripts/StaffRoom.lua"},{5,"AreaScripts/PrincipalOffice.lua"},
  505.             {40,"AreaScripts/Observatory.lua"},{4,"AreaScripts/Chem_Lab.lua"},
  506.             {20,"AreaScripts/ChemPlant.lua"},{17,"AreaScripts/ArtRoom.lua"},
  507.             {18,"AreaScripts/AutoShop.lua"},{19,"AreaScripts/Auditorium.lua"},
  508.             {33,"AreaScripts/StyleStores.lua"},{15,"AreaScripts/Classroom.lua"},
  509.             {46,"AreaScripts/StyleStores.lua"},{56,"AreaScripts/StyleStores.lua"},
  510.             {57,"AreaScripts/SaveZones.lua"},{60,"AreaScripts/SaveZones.lua"},
  511.             {61,"AreaScripts/SaveZones.lua"},{59,"AreaScripts/SaveZones.lua"},
  512.             {42,"AreaScripts/TGokart.lua"},{51,"AreaScripts/ImgRaceA.lua"},{52,"AreaScripts/ImgRaceB.lua"},
  513.             {53,"AreaScripts/ImgRaceC.lua"},{17,"AreaScripts/ArtRoom.lua"},
  514.             {55,"AreaScripts/FreakShow.lua"},{62,"AreaScripts/BMXTrack.lua"},
  515.         }
  516.         for i = 1,table.getn(AreaDat) do
  517.             if AreaCode == AreaDat[i][1] then
  518.                 return true
  519.             end
  520.         end
  521.     end
  522.     TextPrintString("ERROR: AREA CODE IS NOT EXIST",4,1)
  523.     return false
  524. end
  525. CCutsceneMgr_RemoveEverythingBecauseCutsceneDoesntFitInMemory = function()
  526. end
  527. CCutsceneMgr_DeleteCutsceneData = function()
  528. end
  529. CCutsceneMgr_LoadCutsceneData = function()
  530. end
  531. MissionForceShutdown = function(mission)
  532.     local break_xml,attempt = false,0
  533.     MissionSetAutoRestart(false)
  534.     repeat
  535.         repeat
  536.             Wait(0)
  537.         until not IsStreamingBusy()
  538.         if not break_xml and DoRemoteXmlHeapDump ~= nil then
  539.             DoRemoteXmlHeapDump(mission..".xml")
  540.             break_xml = true
  541.         end
  542.         MissionFail()
  543.         Wait(250)
  544.         attempt = attempt + 1
  545.     until attempt >= 4
  546.     PedSetEffectedByGravity(gPlayer,true)
  547. end
  548. gForceDelay = function(b)
  549.     while not IsButtonBeingReleased(b,0) do
  550.         Wait(0)
  551.     end
  552. end
  553. gHeightFixer = function(a)
  554.     local area = {
  555.         {0,math.random(6,10)},{14,32.3},{2,6},{8,7.3},{50,7.8},{29,1},
  556.         {32,47.2},{5,32.5},{40,23},{19,78.5},{15,-1.0},{6,34.5},{20,1.0},
  557.         {43,math.random(4,6)},{27,299.0},
  558.     }
  559.     for i = 1,table.getn(area) do
  560.         if a == area[i][1] then
  561.             return area[i][2]
  562.         end
  563.     end
  564.     return 10
  565. end
  566. gController = function(b)
  567.     if not IsButtonPressed(7,0) and IsButtonBeingPressed(b,0) then
  568.         if b == 1 or b == 0 then SoundPlay2D("NavUp")
  569.         elseif b == 3 then
  570.             SoundPlay2D("RightBtn")
  571.         elseif b == 2 then
  572.             SoundPlay2D("Erand")
  573.         end
  574.         return true
  575.     elseif IsButtonPressed(7,0) and IsButtonPressed(b,0) then
  576.         if b == 1 or b == 0 or b == 3 then SoundPlay2D("ButtonUp") end
  577.         return true
  578.     end
  579.     return false
  580. end
  581. gProcessString = function(title,data,o1,o2,o3,stored,select)
  582.     local text = ""
  583.    
  584.     if select == 1 then
  585.         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]
  586.     elseif select == 2 then
  587.         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]
  588.     elseif select == 3 then
  589.         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]
  590.     elseif select == 4 then
  591.         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]
  592.     elseif select == 5 then
  593.         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]
  594.     elseif select == 6 then
  595.         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]
  596.     elseif select == 7 then
  597.         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].." <"
  598.     end
  599.     TextPrintString(text,0.1,1)
  600. end
  601. gPropInteraction = function(x,y,z)
  602.     local prop = {
  603.         door = {
  604.             -- BDorm:
  605.             {-502.385010, 306.834991, 31.398701},{-517.804016, 315.747986, 31.415001},
  606.             {-507.493011, 315.806000, 31.415001},{-488.197998, 315.829987, 31.415001},
  607.             {-516.554993, 321.075989, 31.415001},{-511.307007, 321.052002, 31.415001},
  608.             {-490.471008, 321.096008, 31.415001},{-486.895996, 321.097992, 31.415001},
  609.            
  610.             {-1256.040039, -575.872009, -0.000645},{-1275.430054, -575.877014, -0.000645},
  611.             {208.375000, -73.300301, 8.578850},{-1265.619995, -611.486023, -1.498550},
  612.             {-1225.890015, -595.565002, 5.387500},{-711.322021, 312.213989, 33.381199},
  613.             {-1225.420044, -577.242981, -0.047479},{-565.073975, 316.872986, -1.972810},
  614.             {138.811996, -17.127800, 6.580230},{-428.800995, 364.941986, 80.210602},
  615.             {48.680000, -91.492798, 4.141750},{-623.072998, -74.561897, 56.659000},
  616.             {-1302.290039, -582.729980, -0.119496},{-599.179993, 327.419006, 34.188999},
  617.             {-1231.469971, -578.757996, 10.940700},
  618.             {-1270.900024, -575.693970, 5.440910},{-696.729004, 229.707001, 31.410500},
  619.             {480.794006, -78.883301, 5.455490},{533.846985, -81.076897, 4.582570},
  620.             {-575.734985, 386.285004, -0.048748},{-785.656982, 375.809998, -0.026335},
  621.             -- Firework store:
  622.             {-611.296997, 383.428009, 18.386900},{510.692993, -263.549988, 1.084110},
  623.            
  624.             {399.868988, 144.638000, 5.398680},{-723.791992, 367.665009, 293.830994},
  625.             {103.605003, -134.162003, 6.403370},{271.101990, -121.035004, 7.767510},
  626.             {-502.450012, 306.928986, 31.415001},{-789.257996, 202.921997, 90.083199},
  627.             {-647.632996, 255.014999, 0.002418},{-655.885986, 229.764999, -1.000000},
  628.             {117.129997, 432.510986, 6.325420},{-528.510986, 325.539001, 39.300800},
  629.             {291.817993, -133.128006, 11.777100},
  630.             -- GDorm:
  631.             {294.707001, -17.786200, 16.655500},{-462.220001, 310.041992, 3.359250},
  632.             -- School Doors:
  633.             {-674.716980, -309.580994, 7.824080},{-613.288025, -313.191010, -0.154999},
  634.             {-626.724976, -302.882996, 0.824315},{-630.523987, -302.954987, 0.618483},
  635.             {-623.669983, -300.377014, 3.096210},{-633.603027, -300.209991, 3.222830},
  636.             {-609.922974, -311.117004, 0.007792},{-654.713013, -291.688995, -0.022400},
  637.             {-672.888000, -291.675995, -0.022400},{-664.879028, -300.007996, -0.022400},
  638.             {-642.676025, -323.628998, -0.022400},{-654.468018, -315.667999, -0.022400},
  639.             {-654.471985, -315.419006, 5.480890},{-664.882996, -300.181000, 5.480890},
  640.             {-671.481995, -291.666992, 5.480890},{-650.838013, -291.679993, 5.480890},
  641.             {-610.674011, -308.084015, -0.019108},{-612.877014, -323.619995, -0.019108},
  642.             {-590.057007, -313.536987, -0.019108},{-588.007019, -294.519989, -0.019108},
  643.             {-600.554993, -299.601990, -0.019108},{-604.880981, -291.682007, -0.019108},
  644.             {-608.715027, -290.917999, 5.480890},{-589.343018, -314.266998, 5.480890},
  645.             {-588.286011, -293.337006, 5.480890},{-601.049011, -298.838013, 5.480890},
  646.             {-619.375977, -293.114014, 5.493050},{-628.643982, -328.214996, -0.017000},
  647.             {-599.111023, -331.710999, 0.001764},{-597.622009, -283.654999, 0.001764},
  648.             {-660.344971, -283.654999, -0.018236},{-619.010010, -293.291992, 0.043852},
  649.             {-619.008972, -293.291992, 0.044000},{-628.643005, -328.212006, -0.014000},
  650.             {-618.974976, -285.700012, 14.615400},{-606.841003, -322.794006, 5.505000},
  651.             {178.501007, 10.052900, 6.090270},{30.158501, -134.052002, 2.796750},
  652.             {168.647995, -75.060204, 17.246700},{248.832001, -18.454100, 7.081840},
  653.             {208.039001, -73.229698, 8.571680},{271.118988, -122.431999, 7.917360},
  654.             {271.157990, -25.408001, 7.925920},{187.098999, -156.785995, 8.244160},
  655.             {139.587006, -16.585400, 6.609120},{103.505997, -135.197006, 6.843250},
  656.             {45.925900, -91.487297, 4.911870},{47.358799, -53.552700, 5.059350},
  657.             {-22.269699, -19.189400, 2.597300},{210.408005, -51.091801, 8.536170},
  658.             {210.408005, -94.189003, 8.536170},{161.906998, -95.493896, 8.535610},
  659.             {161.906998, -52.346802, 8.535610},{208.039001, -73.229698, 8.571680},
  660.             {271.118988, -122.431999, 7.917360},{271.157990, -25.408001, 7.925920},
  661.             {187.098999, -156.785995, 8.244160},{103.505997, -135.197006, 6.843250},
  662.             {45.925900, -91.487297, 4.911870},{47.358799, -53.552700, 5.059350},
  663.             {-22.269699, -19.189400, 2.597300},{185.414993, -42.808399, 4.215590},
  664.             {181.511002, -67.975800, 26.112900},
  665.             -- Asylum:
  666.             {-785.085999, 511.067993, 1.999960},{-735.364014, 419.773010, 2.000010},
  667.             {-735.364014, 419.773010, 2.000010},{-726.719971, 429.903992, 2.000010},
  668.             {-691.838989, 482.475006, 2.000010},{-686.116028, 485.217010, 2.000010},
  669.             {-714.270996, 494.204987, 2.000010},{-714.270996, 502.364014, 2.000010},
  670.             {-701.831970, 506.782013, 2.000010},{-773.161011, 502.355988, 1.999990},
  671.             {-776.888000, 508.087006, 1.999980},{-735.364014, 429.976990, 2.000010},
  672.             {-735.364014, 438.321014, 2.000010},{-735.364014, 464.640015, 2.000010},
  673.             {-735.364014, 472.950989, 2.000010},{-752.653015, 487.113007, 2.002030},
  674.             {-726.333984, 487.113007, 2.002030},{-718.085022, 487.118011, 2.000010},
  675.             {-728.317993, 442.783997, 2.000010},{-728.317993, 450.781006, 2.000010},
  676.             {-728.317993, 458.777008, 2.000010},{-742.409973, 460.164001, 2.000010},
  677.             {-742.409973, 452.165985, 2.000010},{-742.409973, 444.170013, 2.000010},
  678.             {-713.609009, 480.072998, 2.000010},{-705.611023, 480.072998, 2.000010},
  679.             {-697.614990, 480.072998, 2.000010},{-696.228027, 494.165009, 2.000010},
  680.             {-704.226013, 494.165009, 2.000010},{-744.393982, 487.113007, 2.002030},
  681.             -- ChemPlant:
  682.             {-768.572998, 65.268700, 6.396050},{-766.961975, 79.862801, 0.373133},
  683.             {-759.812012, 98.454201, 30.861700},
  684.         },
  685.         locker = {
  686.             {TRIGGER._NLOCK01A,-603.677002, -304.854004, -0.007887},
  687.             {TRIGGER._NLOCK01B04,-662.898987, -310.677002, -0.011205},
  688.             {TRIGGER._NLOCK01B05,-659.593994, -304.697998, -0.011205},
  689.             {TRIGGER._NLOCK01B06,-674.526001, -317.821991, -0.011205},
  690.             {TRIGGER._NLOCK01B07,-599.843994, -316.678009, -0.007884},
  691.             {TRIGGER._NLOCK01A01,-658.039978, -316.662994, 0.002991},
  692.             {TRIGGER._NLOCK01A02,-674.510010, -299.606995, -0.013469},
  693.             {TRIGGER._NLOCK01B,-603.677002, -311.140991, -0.007884},
  694.             {TRIGGER._NLOCK01B01,-595.257996, -307.117004, -0.007913},
  695.             {TRIGGER._NLOCK01B02,-647.281006, -307.406006, -0.011205},
  696.             {TRIGGER._NLOCK02A,-601.434998, -291.773010, 5.492070},
  697.             {TRIGGER._NLOCK02A01,-674.515991, -299.742004, 5.492040},
  698.             {TRIGGER._NLOCK02A02,-640.377014, -313.148987, 5.492070},
  699.             {TRIGGER._NLOCK02A03,-616.914001, -314.345001, 5.492070},
  700.             {TRIGGER._NLOCK02B10,-594.280029, -316.645996, 5.492120},
  701.             {TRIGGER._NLOCK02B08,-662.057983, -304.708008, 5.492070},
  702.             {TRIGGER._NLOCK02B09,-661.541016, -292.553009, 5.492070},
  703.             {TRIGGER._NLOCK02B,-603.892029, -299.835999, 5.492120},
  704.             {TRIGGER._NLOCK02B01,-603.890991, -309.256012, 5.492070},
  705.             {TRIGGER._NLOCK02B02,-595.258972, -302.786011, 5.492090},
  706.             {TRIGGER._NLOCK02B03,-595.466003, -322.761993, 5.492120},
  707.             {TRIGGER._NLOCK02B04,-662.898010, -316.648010, 5.492080},
  708.             {TRIGGER._NLOCK02B05,-657.554993, -310.664001, 5.492070},
  709.             {TRIGGER._NLOCK02B06,-656.390015, -298.743988, 5.492080},
  710.             {TRIGGER._NLOCK02B07,-647.338013, -310.247009, 5.492130},
  711.         },
  712.         scaffold = {
  713.             {"Scaffold", 178.17300415039, -73.16130065918, 30.519399642944},
  714.             {"Scaffold", 178.17300415039, -73.16130065918, 40.140300750732},
  715.             {"Scaffold", 178.17300415039, -73.16130065918, 35.276298522949},
  716.         },
  717.         bell = {
  718.             {197.15899658203, -75.72029876709, 46.459701538086,"BELLSTHREE"},
  719.             {191.72500610352, -75.72029876709, 46.459701538086,"BELLSTWO"},
  720.             {186.27499389648, -71.16429901123, 46.459701538086,"BELLSONE"},
  721.         },
  722.         tv = {
  723.             {-499.9,329.1,31.4}
  724.         },
  725.        
  726.     }
  727.     for i = 1,table.getn(prop.door) do
  728.         local p = prop.door[i]
  729.         local a,b,c = p[1],p[2],p[3]
  730.         if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) <= 4 then
  731.             TextPrintString("~LOOK_BACK~ Open",0.5,2)
  732.             if IsButtonBeingPressed(14,0) then
  733.                 PAnimOpenDoors(x,y,z,4)
  734.             end
  735.         end
  736.     end
  737.     for l = 1,table.getn(prop.locker) do
  738.         local o = prop.locker[l]
  739.         local a,b,c = o[2],o[3],o[4]
  740.         if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) <= 3 then
  741.             TextPrintString("~LOOK_BACK~ Break",0.5,2)
  742.             if IsButtonBeingPressed(14,0) then
  743.                 PAnimSetActionNode(o[1],"/Global/NLockA/Unlocked/Scripted/SaveAlgieBooks","Act/Props/NLockA.act")
  744.             end
  745.         end
  746.     end
  747.     for l = 1,table.getn(prop.tv) do
  748.         local t = prop.tv[l]
  749.         local a,b,c = t[1],t[2],t[3]
  750.         if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) < 3 then
  751.             TextPrintString("~LOOK_BACK~ Turn On",0.5,2)
  752.             if IsButtonBeingPressed(14,0) then
  753.                 TaggingSetTVsState(true)
  754.             end
  755.         end
  756.     end
  757.     for l = 1,table.getn(prop.scaffold) do
  758.         local sc = prop.scaffold[l]
  759.         local a,b,c = sc[2],sc[3],sc[4]
  760.         if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) < 3 then
  761.             TextPrintString("~LOOK_BACK~ Destroy",0.5,2)
  762.             if IsButtonBeingPressed(14,0) then
  763.                 PAnimApplyDamage(sc[1],a,b,c,251)
  764.             end
  765.         end
  766.     end
  767.     for l = 1,table.getn(prop.bell) do
  768.         local b = prop.bell[l]
  769.         local a,b,c = b[1],b[2],b[3]
  770.         if math.abs(x - a) + math.abs(y - b) + math.abs(z - c) < 3 then
  771.             TextPrintString("~LOOK_BACK~ Destroy",0.5,2)
  772.             if IsButtonBeingPressed(14,0) then
  773.                 PAnimSetActionNode("SCBell",a,b,c,1,"/Global/SCBELL/Idle/DoDamage","Act/Props/SCBell.act")
  774.             end
  775.         end
  776.     end
  777. end
  778. gForceExplore = function()
  779.     -- Free Camera:
  780.     local on,loaded,cp,ch,dist,fcx,fcy,fcz = false,false,0,0,100,0,0,0
  781.     local plx,ply,plz = PlayerGetPosXYZ()
  782.     F_GetForwardDir2D = function(h,dist)
  783.         return -math.sin(h)*dist,math.cos(h)*dist
  784.     end
  785.     F_GetForwardDir3D = function(p,h,dist)
  786.         return math.cos(p)*-math.sin(h)*dist,math.cos(p)*math.cos(h)*dist,math.sin(p)*dist
  787.     end
  788.     repeat
  789.         if GetCutsceneTime() > 1 and not on then
  790.             on = true
  791.         end
  792.         if on then
  793.             PlayerSetControl(0)
  794.             dist = dist + (GetStickValue(0,0)-GetStickValue(1,0))
  795.             cp = cp + GetStickValue(19,0)/20
  796.             ch = ch + GetStickValue(18,0)/20
  797.             local px,py,pz = PlayerGetPosXYZ()
  798.             local speed = IsButtonPressed(7,0) and 7 or IsButtonPressed(6,0) and 0.05 or 1
  799.             local x1,y1 = F_GetForwardDir2D(ch,GetStickValue(17,0)/10*speed)
  800.             local x2,y2 = F_GetForwardDir2D(ch+math.pi/2,GetStickValue(16,0)/10*speed)
  801.             local z = (GetStickValue(12,0)-GetStickValue(10,0))/10*speed
  802.             if not loaded then
  803.                 local cx,cy,cz = F_GetForwardDir3D(cp,ch,-dist*0.04)
  804.                 fcx,fcy,fcz = px+cx,py+cy,pz+cz+1.5
  805.                 loaded = true
  806.             end
  807.             if loaded then
  808.                 fcx,fcy,fcz = fcx+x1+x2,fcy+y1+y2,fcz+z
  809.             end
  810.             local cx,cy,cz = F_GetForwardDir3D(cp,ch,-dist*0.04)
  811.             -- Camera XYZ:
  812.             local camx,camy,camz = fcx or px+cx,fcy or py+cy,fcz or pz+cz+1.5
  813.             -- Look at XYZ:
  814.             local lookx,looky,lookz = fcx and fcx - cx,fcy and fcy - cy,fcz and fcz - cz
  815.             CameraSetXYZ(camx,camy,camz,lookx,looky,lookz)
  816.             gPropInteraction(camx,camy,camz)
  817.         end
  818.         Wait(0)
  819.     until GetCutsceneRunning() == 0
  820.     PlayerSetControl(1)
  821. end
  822. function LoadAllAnimation()
  823.     local Important = {
  824.         "Do not add too much, that will be cause of crashes in Anniversary Edition"
  825.     }
  826.     local AnimGroup = {
  827.         "Authority",
  828.         "Boxing",
  829.         "B_Striker",
  830.         "CV_Female",
  831.         "CV_Male",
  832.         "DO_Edgar",
  833.         "DO_Grap",
  834.         "DO_StrikeCombo",
  835.         "DO_Striker",
  836.         "F_Adult",
  837.         "F_BULLY",
  838.         "F_Douts",
  839.         "F_Girls",
  840.         "F_Greas",
  841.         "F_Jocks",
  842.         "F_Nerds",
  843.         "F_OldPeds",
  844.         "F_Pref",
  845.         "F_Preps",
  846.         "G_Grappler",
  847.         "G_Johnny",
  848.         "G_Striker",
  849.         "Grap",
  850.         "J_Damon",
  851.         "J_Grappler",
  852.         "J_Melee",
  853.         "J_Ranged",
  854.         "J_Striker",
  855.         "LE_Orderly",
  856.         "N_Ranged",
  857.         "N_Striker",
  858.         "N_Striker_A",
  859.         "N_Striker_B",
  860.         "Nemesis",
  861.         "P_Grappler",
  862.         "P_Striker",
  863.         "PunchBag",
  864.         "Qped",
  865.         "Rat_Ped",
  866.         "Russell_Pbomb",
  867.         "Straf_Dout",
  868.         "Straf_Fat",
  869.         "Straf_Female",
  870.         "Straf_Male",
  871.         "Straf_Nerd",
  872.         "Straf_Prep",
  873.         "Straf_Savage",
  874.         "Straf_Wrest",
  875.         "TE_Female",
  876.         "3_05TheTenements",
  877.         "BROCKETL",
  878.         "C_Wrestling",
  879.         "Px_Rail",
  880.         "6B_PARA",
  881.         "MINI_React",
  882.     }
  883.     for i = 1,table.getn(AnimGroup) do
  884.         if not HasAnimGroupLoaded(AnimGroup[i]) then
  885.             LoadAnimationGroup(AnimGroup[i])
  886.         else TextPrintString(AnimGroup[i].." has been loaded!",2--[[,1]]) end
  887.     end
  888. end
  889. ReturnTF = function(t)
  890.     if t then
  891.         return "T"
  892.     end
  893.     return "F"
  894. end
  895.  
  896. -- STimeCycle.lua :
  897.  
  898. -- System Data
  899. gData = {
  900.     SystemIsLoaded = false,
  901.     RELOAD = false,
  902.     TapTimer = GetTimer(),
  903.     Stored = {
  904.         -- (Files,a,x,y),Action,Sound
  905.         {"1-01",0,368,142,96666,"DEFAULT"},"nil","nil"
  906.     },
  907.     MenuActive = false,
  908.     Settings = {
  909.         {"FILE","1-1-1"},
  910.         {"ACTION","1-1-1"},
  911.         {"AUDIO","1-1-1"},
  912.         {"USE TIMER",false},
  913.         {"VALIDATION",true},
  914.         {"CLEANUP AREA",true},
  915.         {"PLAY CUTSCENE",false},
  916.     },
  917.     Explore = false,
  918.     Select = 1,
  919. }
  920. function main()
  921.     while true do
  922.         if not gData.SystemIsLoaded then
  923.             while not SystemIsReady() or AreaIsLoading() do
  924.                 Wait(0)
  925.             end
  926.            
  927.             gData.SystemIsLoaded,gData.RELOAD = true,true
  928.         else
  929.             if gData.RELOAD then
  930.                 if T_Cuts then
  931.                     TerminateThread(T_Cuts)
  932.                     TerminateThread(T_Selector)
  933.                 end
  934.                 LoadAllAnimation()
  935.                
  936.                 T_Cuts,T_Selector = CreateThread("MONITOR_CUTSCENE"),CreateThread("CUTSCENE_SELECTOR")
  937.                 gData.RELOAD = false
  938.             else
  939.                 if type(error_message) == "string" then
  940.                     TextPrintString(error_message..'',4,1)
  941.                     error_message = nil
  942.                 end
  943.  
  944.                 Wait(0)
  945.             end
  946.         end
  947.     end
  948. end
  949. function MONITOR_CUTSCENE()
  950.     while true do
  951.         if GetCutsceneRunning() ~= 0 then
  952.             if IsButtonBeingPressed(8,0) then
  953.                 gData.Explore = true
  954.                 if gData.Explore then gForceExplore() end
  955.             end
  956.         else
  957.             if gData.Explore then
  958.                 gData.Explore = not gData.Explore
  959.             end
  960.         end
  961.         Wait(0)
  962.     end
  963.     -- RELOAD THREAD:
  964.     gData.RELOAD = true
  965. end
  966. function CUTSCENE_SELECTOR()
  967.     while true do
  968.         if IsButtonBeingReleased(14,0) then
  969.             if gData.TapTimer + 500 < GetTimer() then
  970.                 gData.MenuActive = not gData.MenuActive
  971.                 gData.TapTimer = GetTimer()
  972.             end
  973.         end
  974.         if gData.MenuActive then
  975.             if gController(1) then
  976.                 gData.Select = gData.Select + 1
  977.                 if gData.Select > table.getn(gData.Settings) then gData.Select = 1 end
  978.             elseif gController(0) then
  979.                 gData.Select = gData.Select - 1
  980.                 if gData.Select < 1 then gData.Select = table.getn(gData.Settings) end
  981.             end
  982.             if gController(3) then
  983.                 if gData.Select == 1 then
  984.                     gCutsData.FOptions = gCutsData.FOptions + 1
  985.                     if gCutsData.FOptions > table.getn(gCutsData.Cuts) then
  986.                         gCutsData.FOptions = 1
  987.                     end
  988.                     gData.Settings[1][2] = gCutsData.Cuts[gCutsData.FOptions].name
  989.                     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
  990.                 elseif gData.Select == 2 then
  991.                     gCutsData.AOptions = gCutsData.AOptions + 1
  992.                     if gCutsData.AOptions > table.getn(gCutsData.Cuts) then
  993.                         gCutsData.AOptions = 1
  994.                     end
  995.                     gData.Settings[2][2] = gCutsData.Cuts[gCutsData.AOptions].name
  996.                 elseif gData.Select == 3 then
  997.                     gCutsData.SOptions = gCutsData.SOptions + 1
  998.                     if gCutsData.SOptions > table.getn(gCutsData.Cuts) then
  999.                         gCutsData.SOptions = 1
  1000.                     end
  1001.                     gData.Settings[3][2] = gCutsData.Cuts[gCutsData.SOptions].name
  1002.                 elseif gData.Select == 4 then
  1003.                     gData.Settings[4][2] = not gData.Settings[4][2]
  1004.                 elseif gData.Select == 5 then
  1005.                     gData.Settings[5][2] = not gData.Settings[5][2]
  1006.                 elseif gData.Select == 6 then
  1007.                     gData.Settings[6][2] = not gData.Settings[6][2]
  1008.                 elseif gData.Select == 7 then
  1009.                     local file = gData.Stored
  1010.                     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])
  1011.                 end
  1012.             elseif gController(2) then
  1013.                 gForceDelay(2)
  1014.                 repeat
  1015.                     if gController(1) then
  1016.                         gCutsData.MOptions = gCutsData.MOptions + 1
  1017.                         if gCutsData.MOptions > table.getn(gCutsData.Music) then gCutsData.MOptions = 1 end
  1018.                     elseif gController(0) then
  1019.                         gCutsData.MOptions = gCutsData.MOptions - 1
  1020.                         if gCutsData.MOptions < 1 then gCutsData.MOptions = table.getn(gCutsData.Music) end
  1021.                     end
  1022.                     TextPrintString("MUSIC\n\n"..gCutsData.Music[gCutsData.MOptions].."\n("..gCutsData.MOptions..")",0,1)
  1023.                     Wait(0)
  1024.                 until IsButtonBeingPressed(3,0) or IsButtonBeingPressed(2,0)
  1025.                 if IsButtonBeingPressed(2,0) then
  1026.                     gForceDelay(2)
  1027.                 else
  1028.                     gData.Stored[1][6] = gCutsData.Music[gCutsData.MOptions]
  1029.                     gForceDelay(3)
  1030.                 end
  1031.             end
  1032.             --TextPrintString("TEST",0,1)
  1033.             gProcessString("EXPLORER 2.0",gCutsData.Cuts,gCutsData.FOptions,gCutsData.AOptions,gCutsData.SOptions,gData.Settings,gData.Select)
  1034.             if gData.Stored[1][6] ~= "DEFAULT" then
  1035.                 TextPrintString("Music:\n"..gData.Stored[1][6],0,2)
  1036.             end
  1037.         else
  1038.             TextPrintString("~LOOK_BACK~ to open",0,2)
  1039.         end
  1040.         Wait(0)
  1041.     end
  1042.     -- RELOAD THREAD:
  1043.     gData.RELOAD = true
  1044. end
  1045.  
  1046. -- STimeCycle Functions:
  1047.  
  1048. function F_AttendedClass()
  1049.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  1050.         return
  1051.     end
  1052.     SetSkippedClass(false)
  1053.     PlayerSetPunishmentPoints(0)
  1054. end
  1055. function F_MissedClass()
  1056.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  1057.         return
  1058.     end
  1059.     SetSkippedClass(true)
  1060.     StatAddToInt(166)
  1061. end
  1062. function F_AttendedCurfew()
  1063.     if not PedInConversation(gPlayer) and not MissionActive() then
  1064.         TextPrintString("You got home in time for curfew", 4)
  1065.     end
  1066. end
  1067. function F_MissedCurfew()
  1068.     if not PedInConversation(gPlayer) and not MissionActive() then
  1069.         TextPrint("TM_TIRED5", 4, 2)
  1070.     end
  1071. end
  1072. function F_StartClass()
  1073.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  1074.         return
  1075.     end
  1076. end
  1077. function F_EndClass()
  1078.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  1079.         return
  1080.     end
  1081. end
  1082. function F_StartMorning()
  1083.     F_UpdateTimeCycle()
  1084. end
  1085. function F_EndMorning()
  1086.     F_UpdateTimeCycle()
  1087. end
  1088. function F_StartLunch()
  1089.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  1090.         F_UpdateTimeCycle()
  1091.         return
  1092.     end
  1093.     F_UpdateTimeCycle()
  1094. end
  1095. function F_EndLunch()
  1096.     F_UpdateTimeCycle()
  1097. end
  1098. function F_StartAfternoon()
  1099.     F_UpdateTimeCycle()
  1100. end
  1101. function F_EndAfternoon()
  1102.     F_UpdateTimeCycle()
  1103. end
  1104. function F_StartEvening()
  1105.     F_UpdateTimeCycle()
  1106. end
  1107. function F_EndEvening()
  1108.     F_UpdateTimeCycle()
  1109. end
  1110. function F_StartCurfew_SlightlyTired()
  1111.     F_UpdateTimeCycle()
  1112. end
  1113. function F_StartCurfew_Tired()
  1114.     F_UpdateTimeCycle()
  1115. end
  1116. function F_StartCurfew_MoreTired()
  1117.     F_UpdateTimeCycle()
  1118. end
  1119. function F_StartCurfew_TooTired()
  1120.     F_UpdateTimeCycle()
  1121. end
  1122. function F_EndCurfew_TooTired()
  1123.     F_UpdateTimeCycle()
  1124. end
  1125. function F_EndTired()
  1126.     F_UpdateTimeCycle()
  1127. end
  1128. function F_Nothing()
  1129. end
  1130. function F_ClassWarning()
  1131.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  1132.         return
  1133.     end
  1134.     local l_23_0 = math.random(1, 2)
  1135. end
  1136. function F_UpdateTimeCycle()
  1137.     if not IsMissionCompleated("1_B") then
  1138.         local l_24_0 = GetCurrentDay(false)
  1139.         if l_24_0 < 0 or l_24_0 > 2 then
  1140.             SetCurrentDay(0)
  1141.         end
  1142.     end
  1143.     F_UpdateCurfew()
  1144. end
  1145. function F_UpdateCurfew()
  1146.     local l_25_0 = shared.gCurfewRules
  1147.     if not l_25_0 then
  1148.         l_25_0 = F_CurfewDefaultRules
  1149.     end
  1150.     l_25_0()
  1151. end
  1152. function F_CurfewDefaultRules()
  1153.     local l_26_0 = ClockGet()
  1154.     if l_26_0 >= 23 or l_26_0 < 7 then
  1155.         shared.gCurfew = true
  1156.     else
  1157.         shared.gCurfew = false
  1158.     end
  1159. end
Advertisement
Add Comment
Please, Sign In to add comment