wtf does that mean?
and i just checked, i dont see a Camera.lua or .lur.
and if u wanna look in the photography class script:
local l_0_0 = 1
local l_0_1 = 1
local l_0_2 = 0
local l_0_3 = ""
local l_0_4 = -1
local l_0_5 = 2
local l_0_6 = {}
local l_0_7 = -1
local l_0_8 = 300
local l_0_9 = {}
local l_0_10 = {}
local l_0_11 = false
local l_0_12 = "C5_05"
local l_0_13 = "C5_06"
local l_0_14 = false
local l_0_15 = false
local l_0_16 = {}
MissionCleanup = function()
ClockSet(gHr, gMin)
SoundFadeWithCamera(true)
MusicFadeWithCamera(true)
SoundRestartPA()
MissionTimerStop()
CounterMakeHUDVisible(false)
SoundFadeoutStream()
SoundEnableInteractiveMusic(true)
PlayerSetControl(1)
AreaSetDoorLocked("DT_ischool_Art", true)
if shared.gMissionPhoto4 then
shared.gMissionPhoto4 = nil
end
if not gMissionSucceeded then
if l_0_0 == 1 then
ResetYearbookPhotos()
end
if l_0_0 == 3 then
HUDPhotographySetColourUpgrade(false)
PlayerSetWeapon(328, 1, false)
PedClearWeapon(gPlayer, 426)
end
elseif l_0_0 == 2 then
HUDPhotographySetSaveLevel1(true)
elseif l_0_0 == 1 then
F_UnlockPhotos()
elseif l_0_0 == 4 then
HUDPhotographySetSaveLevel2(true)
elseif l_0_0 == 3 then
elseif l_0_0 == 5 then
end
UnLoadAnimationGroup("WeaponUnlock")
UnLoadAnimationGroup("MINI_React")
F_MakePlayerSafeForNIS(false)
if l_0_7 then
BlipRemove(l_0_7)
end
WeaponSetRangeMultiplier(gPlayer, 328, 1)
CameraSetWidescreen(false)
DATUnload(2)
end
MissionSetup = function()
gMin =
gHr = ClockGet()
ClockSet(12, 0)
MissionDontFadeIn()
SoundEnableInteractiveMusic(false)
DATLoad("C5.DAT", 2)
DATInit()
PlayerSetControl(0)
WeaponRequestModel(328)
WeaponRequestModel(426)
LoadAnimationGroup("WeaponUnlock")
LoadAnimationGroup("MINI_React")
LoadActionTree("Act/Conv/C5.act")
SoundStopPA()
SoundStopCurrentSpeechEvent()
end
main = function()
repeat
Wait(0)
until gDoneSettingUp
AreaTransitionPoint(17, POINTLIST._C5_PLAYERSTART, nil, true)
F_MakePlayerSafeForNIS(true)
F_InitialCutscene()
AreaSetDoorLocked("DT_ischool_Art", true)
AreaTransitionPoint(l_0_5, l_0_4, 2, true)
SoundPlayStream("MS_PhotographyClass.rsm", 0.25, 2, 1)
if l_0_0 == 3 then
HUDPhotographySetColourUpgrade(true)
PedDestroyWeapon(gPlayer, 328)
PlayerSetWeapon(426, 1, false)
repeat
Wait(0)
until WeaponEquipped(426)
end
gClassSetupFunction()
gMissionRunning = true
if l_0_0 ~= 3 then
CreateThread("F_CheckThread")
end
F_MakePlayerSafeForNIS(false)
PlayerSetControl(1)
CameraFade(1000, 1)
TextPrint(l_0_3, 5, 1)
misObj = MissionObjectiveAdd(l_0_3)
F_Explain(l_0_0)
CounterClearIcon()
CounterClearText()
CounterSetCurrent(0)
CounterSetMax(l_0_1)
CounterMakeHUDVisible(true, true)
CounterSetIcon("HUDIcon_photos", "HUDIcon_photos_x")
Wait(600)
MissionTimerStart(l_0_8)
repeat
F_ClassLoop(l_0_0)
if l_0_2 >= l_0_1 then
gMissionRunning = false
AreaSetDoorLocked("DT_ischool_Art", true)
Wait(2000)
CounterMakeHUDVisible(false)
TextPrint("C5_02", 5, 1)
MissionObjectiveComplete(misObj)
misObj1 = MissionObjectiveAdd("C5_02")
Wait(1000)
shared.photoClass01 = nil
F_CleanupClass()
if l_0_7 then
BlipRemove(l_0_7)
l_0_7 = nil
end
l_0_7 = BlipAddPoint(POINTLIST._C5_CORONA, 0, 1, 1, 7)
end
Wait(0)
if MissionTimerHasFinished() then
gMissionRunning = false
gMissionFailed = true
end
until not gMissionRunning
local l_3_0, l_3_1, l_3_2 = GetPointList(POINTLIST._C5_CORONA)
repeat
if MissionTimerHasFinished() then
gMissionFailed = true
else
Wait(0)
until PlayerIsInAreaXYZ(l_3_0, l_3_1, l_3_2, 1, 0)
end
SoundFadeWithCamera(true)
MusicFadeWithCamera(true)
if gMissionFailed then
CameraReturnToPlayer()
MissionTimerStop()
PlayerSetControl(0)
PlayerUnequip()
MinigameSetGrades(7, gGrade - 1)
SoundFadeoutStream()
SoundPlayMissionEndMusic(false, 9)
repeat
Wait(0)
until not MinigameIsShowingGrades()
PlayerSetControl(1)
MissionFail(false, false)
else
PlayerSetControl(0)
CameraFade(1000, 0)
Wait(1000)
MissionTimerStop()
SoundPlayMissionEndMusic(true, 9)
PlayerSetGrade(7, gGrade)
F_EndingCutscene()
CameraReturnToPlayer()
F_EndCinematic()
gMissionSucceeded = true
MissionSucceed(false, false, false)
end
end
F_ClassLoop = function(l_4_0)
if l_4_0 == 1 then
if not l_0_15 then
TutorialStart("PHOTO2X")
l_0_15 = true
end
if not gFirstEvent and PlayerIsInTrigger(TRIGGER._C5_PEDEVENT01) then
gFirstEvent = true
gFirstEventPed = PedCreatePoint(69, POINTLIST._C5_PEDEVENT01)
PedSetActionNode(gFirstEventPed, "/Global/WProps/PropInteract", "Act/WProps.act")
Wait(0)
end
if not gSecondEvent and PlayerIsInTrigger(TRIGGER._C5_PEDEVENT02) then
gSecondEvent = true
gSecondEventPedA = PedCreatePoint(73, POINTLIST._C5_PEDEVENT02, 2)
Wait(0)
gSecondEventPedB = PedCreatePoint(74, POINTLIST._C5_PEDEVENT02, 1)
Wait(0)
PedLockTarget(gSecondEventPedA, gSecondEventPedB, 0)
PedSetActionNode(gSecondEventPedA, "/Global/Ambient/Scripted/Kiss_Me_Baby", "Act/Anim/Ambient.act")
PedMakeAmbient(gSecondEventPedA)
end
if not gThirdEvent and PlayerIsInTrigger(TRIGGER._C5_PEDEVENT03) then
gThirdEvent = true
gThirdEventPed = PedCreatePoint(71, POINTLIST._C5_PEDEVENT03)
PedSetActionNode(gThirdEventPed, "/Global/WProps/PropInteract", "Act/WProps.act")
Wait(0)
end
elseif l_4_0 == 2 then
if not l_0_14 then
TutorialStart("PHOTO1X")
l_0_14 = true
end
elseif l_4_0 == 3 then
for l_4_4 = l_0_6, nil, nil do
if not l_4_4.taken and PlayerIsInAreaXYZ(l_4_4.px, l_4_4.py, l_4_4.pz, 1, 0) then
TextPrint(l_4_4.text, 4, 1)
l_4_4.objective = MissionObjectiveAdd(l_4_4.text)
pLoc = l_4_3
else
Wait(0)
end
end
if pLoc then
cEntry = l_0_6[pLoc]
gInArea = true
repeat
validTarget = false
if PhotoTargetInFrame(cEntry.x, cEntry.y, cEntry.z) then
validTarget = true
end
PhotoSetValid(validTarget)
wasValid =
photohasbeentaken = PhotoHasBeenTaken()
if photohasbeentaken and wasValid and validTarget then
CounterIncrementCurrent(1)
MissionObjectiveComplete(l_0_6[pLoc].objective)
l_0_2 = l_0_2 + 1
gGoodPictureTaken = true
end
if gGoodPictureTaken then
gGoodPictureTaken = false
gInArea = false
MissionObjectiveComplete(l_0_6[pLoc].objective)
BlipRemove(l_0_6[pLoc].corona)
l_0_6[pLoc].corona = nil
PhotoSetValid(false)
l_0_6[pLoc].taken = true
elseif not PlayerIsInAreaXYZ(cEntry.px, cEntry.py, cEntry.pz, 3, 0) then
MissionObjectiveRemove(l_0_6[pLoc].objective)
TextPrint("C5_10", 4, 1)
gInArea = false
end
Wait(0)
until not gInArea
pLoc = nil
end
elseif l_4_0 == 4 then
if l_0_7 and PlayerIsInTrigger(TRIGGER._AMB_POOR_AREA) then
TextPrint("C5_13", 4, 1)
BlipRemove(l_0_7)
l_0_7 = nil
end
elseif l_4_0 == 5 and l_0_7 and AreaGetVisible() == 55 then
BlipRemove(l_0_7)
l_0_7 = nil
end
end
F_JockWorkout = function(l_5_0)
PedSetActionNode(l_5_0, "/Global/C5/Workout", "Act/Conv/C5.act")
PedMakeAmbient(l_5_0)
end
F_Explain = function(l_6_0)
if l_0_0 == 1 then
shared.photoClass01 = true
elseif l_0_0 == 2 then
CameraSetWidescreen(true)
PlayerSetControl(0)
CameraSetPath(PATH._C5_INTROCAMC02, true)
CameraSetSpeed(1.7999999523163, 1.7999999523163, 1.7999999523163)
CameraLookAtPath(PATH._C5_INTROLOOKATC02, true)
CameraLookAtPathSetSpeed(1.7999999523163, 1.7999999523163, 1.7999999523163)
Wait(6000)
CameraFade(500, 0)
Wait(550)
CameraSetWidescreen(false)
CameraReturnToPlayer()
CameraReset()
PlayerSetControl(1)
CameraFade(500, 1)
elseif l_0_0 == 4 then
local l_6_1, l_6_2, l_6_3 = GetAnchorPosition(TRIGGER._AMB_POOR_AREA)
l_0_7 = BlipAddXYZ(l_6_1, l_6_2, l_6_3, 0)
elseif l_0_0 == 5 then
l_0_7 = BlipAddPoint(POINTLIST._C5_FREAKHOUSE, 0)
end
end
F_ClassOne = function()
l_0_9 = {}
l_0_16 = {}
end
F_ClassTwo = function()
local l_8_0 = 0
WeaponSetRangeMultiplier(gPlayer, 328, 2)
-- Confused at declaration of local variable. (Assignments::declareLocals) -- Overwrote pending register. (Assignments::assign) -- Overwrote pending register. (Assignments::assign) -- Overwrote pending register. (Assignments::assign)
-- Confused at declaration of local variable. (Assignments::declareLocals) -- Overwrote pending register. (Assignments::assign)
-- Overwrote pending register. (Assignments::assign)
for l_8_8 = {trigger = TRIGGER._GLASSDOME, blipId = -1}, {trigger = TRIGGER._GDORMENTRANCE, blipId = -1}, nil do
-- Confused at declaration of local variable. (Assignments::declareLocals)
PAnimCreate(nil.trigger)
-- Overwrote pending register. (Assignments::assign)
-- Overwrote pending register. (Assignments::assign)
-- Overwrote pending register. (Assignments::assign)
-- Overwrote pending register. (Assignments::assign)
-- Confused at declaration of local variable. (Assignments::declareLocals) -- Overwrote pending register. (Assignments::assign)
-- Confused at declaration of local variable. (Assignments::declareLocals)
-- Overwrote pending register. (Assignments::assign)
-- Confused at declaration of local variable. (Assignments::declareLocals)
GetAnchorPosition(nil.trigger).insert(, )
.taken, .valid, .blipId = false, false, BlipAddXYZ({trigger = TRIGGER._SCHOOLENTRR2, blipId = -1}, {trigger = TRIGGER._LIBRARYL, blipId = -1}, 8.6000003814697, 0, 1)
end
-- Confused about usage of registers for local variables. (Assignments::releaseLocals)
-- Confused about usage of registers for local variables. (Assignments::releaseLocals)
-- Confused about usage of registers for local variables. (Assignments::releaseLocals)
end
F_ClassThree = function()
{text = "C5_3_01", corona = nil, x = 266.30920410156, y = -73.236892700195}.z = 7.5714673995972
{text = "C5_3_01", corona = nil, x = 266.30920410156, y = -73.236892700195}.px = 272.03143310547
{text = "C5_3_01", corona = nil, x = 266.30920410156, y = -73.236892700195}.py = -73.165672302246
{text = "C5_3_01", corona = nil, x = 266.30920410156, y = -73.236892700195}.pz = 6
{text = "C5_3_01", corona = nil, x = 266.30920410156, y = -73.236892700195}.taken = false
{text = "C5_3_03", corona = nil, x = 573.84808349609, y = 77.35595703125}.z = 15.02788066864
{text = "C5_3_03", corona = nil, x = 573.84808349609, y = 77.35595703125}.px = 568.263671875
{text = "C5_3_03", corona = nil, x = 573.84808349609, y = 77.35595703125}.py = 76.04305267334
{text = "C5_3_03", corona = nil, x = 573.84808349609, y = 77.35595703125}.pz = 13.967934608459
{text = "C5_3_03", corona = nil, x = 573.84808349609, y = 77.35595703125}.taken = false
{text = "C5_3_04", corona = nil, x = 267.06356811523, y = 307.17626953125}.z = 3.2196280956268
{text = "C5_3_04", corona = nil, x = 267.06356811523, y = 307.17626953125}.px = 269.25030517578
{text = "C5_3_04", corona = nil, x = 267.06356811523, y = 307.17626953125}.py = 304.56185913086
{text = "C5_3_04", corona = nil, x = 267.06356811523, y = 307.17626953125}.pz = 0.81963855028152
{text = "C5_3_04", corona = nil, x = 267.06356811523, y = 307.17626953125}.taken = false
{text = "C5_3_05", corona = nil, x = 247.57247924805, y = 394.64004516602}.z = 6.9025292396545
{text = "C5_3_05", corona = nil, x = 247.57247924805, y = 394.64004516602}.px = 250.00828552246
{text = "C5_3_05", corona = nil, x = 247.57247924805, y = 394.64004516602}.py = 392.58865356445
{text = "C5_3_05", corona = nil, x = 247.57247924805, y = 394.64004516602}.pz = 4.9627413749695
{text = "C5_3_05", corona = nil, x = 247.57247924805, y = 394.64004516602}.taken = false
{text = "C5_3_07", corona = nil, x = 635.17150878906, y = 166.17994689941}.z = 21.624156951904
{text = "C5_3_07", corona = nil, x = 635.17150878906, y = 166.17994689941}.px = 636.17346191406
{text = "C5_3_07", corona = nil, x = 635.17150878906, y = 166.17994689941}.py = 164.59558105469
{text = "C5_3_07", corona = nil, x = 635.17150878906, y = 166.17994689941}.pz = 19.945161819458
{text = "C5_3_07", corona = nil, x = 635.17150878906, y = 166.17994689941}.taken = false
l_0_6 = nil
for l_9_3 = l_0_6, nil, nil do
l_9_3.corona = BlipAddXYZ(l_9_3.px, l_9_3.py, l_9_3.pz, 0, 1, 7)
end
end
F_ClassFour = function()
{eType = 2, eId = -1, model = 141}.valid = false
{eType = 2, eId = -1, model = 141}.taken = false
{eType = 2, eId = -1, model = 141}.valid = false
{eType = 2, eId = -1, model = 141}.taken = false
{eType = 2, eId = -1, model = 219}.valid = false
{eType = 2, eId = -1, model = 219}.taken = false
{eType = 2, eId = -1, model = 219}.valid = false
{eType = 2, eId = -1, model = 219}.taken = false
{eType = 2, eId = -1, model = 220}.valid = false
{eType = 2, eId = -1, model = 220}.taken = false
{eType = 2, eId = -1, model = 220}.valid = false
{eType = 2, eId = -1, model = 220}.taken = false
{eType = 2, eId = -1, model = 116}.valid = false
{eType = 2, eId = -1, model = 116}.taken = false
{eType = 2, eId = -1, model = 116}.valid = false
{eType = 2, eId = -1, model = 116}.taken = false
{eType = 2, eId = -1, model = 116}.valid = false
{eType = 2, eId = -1, model = 116}.taken = false
{eType = 2, eId = -1, model = 116}.valid = false
{eType = 2, eId = -1, model = 116}.taken = false
{eType = 2, eId = -1, model = 157}.valid = false
{eType = 2, eId = -1, model = 157}.taken = false
{eType = 2, eId = -1, model = 157}.valid = false
{eType = 2, eId = -1, model = 157}.taken = false
{eType = 2, eId = -1, model = 157}.valid = false
{eType = 2, eId = -1, model = 157}.taken = false
{eType = 2, eId = -1, model = 157}.valid = false
{eType = 2, eId = -1, model = 157}.taken = false
{eType = 2, eId = -1, model = 87}.valid = false
{eType = 2, eId = -1, model = 87}.taken = false
{eType = 2, eId = -1, model = 87}.valid = false
{eType = 2, eId = -1, model = 87}.taken = false
{eType = 2, eId = -1, model = 131}.valid = false
{eType = 2, eId = -1, model = 131}.taken = false
{eType = 2, eId = -1, model = 131}.valid = false
{eType = 2, eId = -1, model = 131}.taken = false
l_0_10 = nil
end
F_ClassFive = function()
{eType = 2, eId = -1, model = 190}.valid = false
{eType = 2, eId = -1, model = 190}.taken = false
{eType = 2, eId = -1, model = 191}.valid = false
{eType = 2, eId = -1, model = 191}.taken = false
{eType = 2, eId = -1, model = 192}.valid = false
{eType = 2, eId = -1, model = 192}.taken = false
{eType = 2, eId = -1, model = 193}.valid = false
{eType = 2, eId = -1, model = 193}.taken = false
{eType = 2, eId = -1, model = 194}.valid = false
{eType = 2, eId = -1, model = 194}.taken = false
{eType = 2, eId = -1, model = 188}.valid = false
{eType = 2, eId = -1, model = 188}.taken = false
{eType = 2, eId = -1, model = 189}.valid = false
{eType = 2, eId = -1, model = 189}.taken = false
l_0_10 = nil
end
F_CleanupClass = function()
if l_0_0 == 3 then
for l_12_3 = l_0_6, nil, nil do
end
if l_12_3.corona then
BlipRemove(l_12_3.corona)
l_12_3.corona = nil
end
end
else
end
F_EndingCutscene = function()
AreaTransitionPoint(17, POINTLIST._C5_ENDINGPOINTS, 2, true)
teacher = PedCreatePoint(63, POINTLIST._C5_ENDINGPOINTS, 1)
PedIgnoreStimuli(teacher, true)
SoundDisableSpeech_ActionTree()
CameraSetWidescreen(true)
PlayerSetControl(0)
CameraLookAtXYZ(-536.29113769531, 394.74267578125, 15.509263038635, true)
CameraSetXYZ(-534.26922607422, 394.07669067383, 15.329271316528, -536.29113769531, 394.74267578125, 15.509263038635)
PedFaceObject(gPlayer, teacher, 2, 0, true)
CameraLookAtXYZ(-537.43609619141, 395.07305908203, 15.689620018005, true)
CameraSetXYZ(-535.05505371094, 393.89645385742, 15.029265403748, -537.43609619141, 395.07305908203, 15.689620018005)
CameraFade(1000, 1)
Wait(500)
if l_0_0 < 5 then
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 9, "large", true)
else
F_PlaySpeechAndWait(teacher, "PHOTOGRAPHY", 9, "large")
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 10, "large", true)
end
Wait(2000)
MinigameSetGrades(7, gGrade - 1)
SoundFadeoutStream()
repeat
Wait(0)
until not MinigameIsShowingGrades()
CameraFade(500, 0)
Wait(500)
PedDelete(teacher)
SoundEnableSpeech_ActionTree()
end
F_InitialCutscene = function()
teacher = PedCreatePoint(63, POINTLIST._C5_TEACHERSTART)
CameraSetWidescreen(true)
PlayerSetControl(0)
if not F_CheckIfPrefect() then
CameraFade(1000, 1)
end
CameraSetPath(PATH._C5_INTROCAM, true)
CameraSetSpeed(1.7999999523163, 1.7999999523163, 1.7999999523163)
CameraLookAtPath(PATH._C5_INTROLOOKAT, true)
CameraLookAtPathSetSpeed(1.7999999523163, 1.7999999523163, 1.7999999523163)
PedFollowPath(gPlayer, PATH._C5_PLAYERPATH, 0, 0)
SoundDisableSpeech_ActionTree()
Wait(500)
if l_0_0 == 2 then
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 1, "large", true)
Wait(3000)
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 3, "large", true)
elseif l_0_0 == 1 then
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 5, "large", true)
elseif l_0_0 == 3 then
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 6, "large", true)
Wait(1538)
elseif l_0_0 == 4 then
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 5, "large", true)
elseif l_0_0 == 5 then
SoundPlayScriptedSpeechEvent(teacher, "PHOTOGRAPHY", 8, "large", true)
Wait(1538)
end
Wait(3538)
SoundFadeWithCamera(false)
MusicFadeWithCamera(false)
CameraFade(1000, 0)
Wait(1050)
F_CleanPrefect()
SoundEnableSpeech_ActionTree()
PedStop(gPlayer)
PedClearObjectives(gPlayer)
PedDelete(teacher)
CameraSetWidescreen(false)
PlayerSetControl(1)
end
F_CheckThread = function()
local l_15_0 = false
local l_15_1 = 0
local l_15_2 = l_0_12
local l_15_3 = -1
repeat
if l_0_0 == 2 then
validTarget = false
for l_15_7 = l_0_6, nil, nil do
if not l_15_7.taken and PhotoTargetInFrame(l_15_7.x, l_15_7.y, l_15_7.z) then
l_0_6[l_15_6].valid = true
validTarget = true
l_15_3 = l_15_6
end
end
PhotoSetValid(validTarget)
wasValid =
photohasbeentaken = PhotoHasBeenTaken()
if photohasbeentaken and wasValid then
for l_15_11 = l_0_6, nil, nil do
end
if not l_15_11.taken and (l_15_11.valid == true or l_15_10 == l_15_3) then
l_15_11.taken = true
if l_15_11.blipId then
BlipRemove(l_15_11.blipId)
end
l_15_11.blipId = nil
CounterIncrementCurrent(1)
l_0_2 = l_0_2 + 1
targetFound = true
l_15_3 = -1
end
end
else
for l_15_15 = l_0_6, nil, nil do
if l_15_15.valid == true and not l_15_15.taken then
l_15_15.valid = false
end
end
elseif l_0_0 == 1 then
validTarget = false
l_15_1 = 0
PhotoGetEntityStart()
repeat
gType =
gEntity = PhotoGetEntityNext()
if F_CheckTargets(l_0_0, gEntity, gType) then
validTarget = true
l_15_1 = l_15_1 + 1
l_0_16[l_15_1] = gEntity
end
until if gEntity ~= -1 or l_15_1 > 1 then
l_15_2 = l_0_13
else
l_15_2 = l_0_12
end
if validTarget then
PhotoSetValid(validTarget, l_15_2)
else
PhotoSetValid(validTarget)
end
wasValid =
photohasbeentaken = PhotoHasBeenTaken()
if photohasbeentaken and wasValid then
for l_15_19 = l_0_16, nil, nil do
if l_15_19 then
l_0_2 = l_0_2 + 1
hashId = PedGetNameHashID(l_15_19)
table.insert(l_0_9, hashId)
l_0_16[l_15_18] = false
end
end
CounterIncrementCurrent(l_15_1)
end
else
if l_0_0 == 4 or l_0_0 == 5 then
validTarget = false
l_15_1 = 0
PhotoGetEntityStart()
repeat
gType =
gEntity = PhotoGetEntityNext()
if F_CheckTargets(l_0_0, gEntity, gType) then
validTarget = true
l_15_1 = l_15_1 + 1
end
until if gEntity ~= -1 or l_15_1 > 1 then
l_15_2 = l_0_13
else
l_15_2 = l_0_12
end
if validTarget then
PhotoSetValid(validTarget, l_15_2)
else
PhotoSetValid(validTarget)
end
wasValid =
photohasbeentaken = PhotoHasBeenTaken()
if photohasbeentaken and wasValid then
for l_15_23 = l_0_10, nil, nil do
if not l_15_23.taken and l_15_23.valid then
l_0_2 = l_0_2 + 1
table.insert(l_0_9, l_15_23.eId)
l_15_23.taken = true
end
end
CounterIncrementCurrent(l_15_1)
end
for l_15_27 = l_0_10, nil, nil do
end
if not l_15_27.taken then
l_15_27.valid = false
l_15_27.eId = -1
end
end
else
end
Wait(0)
until not gMissionRunning
end
F_CheckTargets = function(l_16_0, l_16_1, l_16_2, l_16_3)
local l_16_4 = true
local l_16_5 = nil
if l_16_0 == 1 then
if l_16_2 == 2 then
l_16_5 = PedGetNameHashID(l_16_1)
for l_16_9 = l_0_9, nil, nil do
if l_16_9 == l_16_5 then
l_16_4 = false
end
end
if l_16_4 and IsValidYearbookPhotoOfPed(l_16_1) then
return true
end
end
elseif l_16_0 == 4 or l_16_0 == 5 then
for l_16_13 = l_0_10, nil, nil do
if l_16_13.eId == -1 and l_16_13.eType == l_16_2 then
if PedIsModel(l_16_1, l_16_13.model) then
for l_16_17 = l_0_9, nil, nil do
if l_16_17 == l_16_1 then
l_16_4 = false
end
end
if l_16_4 then
l_16_13.eId = l_16_1
l_16_13.valid = true
return true
end
end
elseif l_16_13.eId == l_16_1 then
return false
end
end
return false
end
return false
end
F_SetupClass = function(l_17_0)
if l_17_0 == 1 then
l_0_0 = 1
l_0_3 = "C5_08"
l_0_4 = POINTLIST._C5_EXITPOINT
gClassSetupFunction = F_ClassOne
l_0_8 = 600
l_0_1 = 3
l_0_12 = "C5_03"
l_0_13 = "C5_04"
gGrade = 2
elseif l_17_0 == 2 then
l_0_0 = 2
l_0_3 = "C5_09"
l_0_4 = POINTLIST._C5_EXITPOINT02
l_0_5 = 0
gClassSetupFunction = F_ClassTwo
l_0_1 = 5
l_0_8 = 400
gGrade = 1
elseif l_17_0 == 3 then
l_0_0 = 3
l_0_3 = "C5_10"
l_0_4 = POINTLIST._C5_EXITPOINT02
l_0_5 = 0
gClassSetupFunction = F_ClassThree
l_0_1 = 5
l_0_8 = 600
gGrade = 4
elseif l_17_0 == 4 then
shared.gMissionPhoto4 = true
l_0_0 = 4
l_0_3 = "C5_11"
l_0_4 = POINTLIST._C5_EXITPOINT02
l_0_5 = 0
gClassSetupFunction = F_ClassFour
l_0_1 = 4
l_0_8 = 900
gGrade = 3
elseif l_17_0 >= 5 then
l_0_0 = 5
l_0_3 = "C5_12"
l_0_4 = POINTLIST._C5_EXITPOINT02
l_0_5 = 0
gClassSetupFunction = F_ClassFive
l_0_1 = 7
l_0_8 = 600
gGrade = 5
end
gDoneSettingUp = true
end
F_EndCinematic = function()
local l_18_0 = false
local l_18_1 = "C5_UNLK_1"
local l_18_2 = "P_UNLOCK1"
local l_18_3 = "/Global/C5/EarnC"
local l_18_4 = nil
if l_0_0 == 2 then
l_18_0 = 1
l_18_4 = "/Global/C5/PlayerVictory01"
elseif l_0_0 == 1 then
l_18_0 = 2
l_18_1 = "C5_UNLK_2"
l_18_2 = "P_UNLOCK2"
l_18_3 = "/Global/C5/Unlocks/SuccessHi2"
elseif l_0_0 == 4 then
l_18_1 = "C5_UNLK_3"
l_18_2 = "P_UNLOCK3"
l_18_3 = "/Global/C5/Unlocks/SuccessHi1"
l_18_0 = 3
elseif l_0_0 == 3 then
l_18_1 = "C5_UNLK_4"
l_18_2 = "P_UNLOCK4"
l_18_0 = 4
elseif l_0_0 == 5 then
l_18_1 = "C5_UNLK_5"
l_18_2 = "P_UNLOCK5"
l_18_0 = 5
l_18_3 = "/Global/C5/Unlocks/SuccessHi3"
end
if l_18_0 then
CameraFade(-1, 0)
Wait(FADE_OUT_TIME + 1000)
RestoredVisibility = true
AreaTransitionPoint(2, POINTLIST._C5_EXITPOINT, nil, true)
AreaClearAllPeds()
NonMissionPedGenerationDisable()
CameraAllowChange(true)
F_MakePlayerSafeForNIS(true)
Wait(1000)
local l_18_5, l_18_6, l_18_7 = GetPointList(POINTLIST._C5_CAMERALOOKAT)
CameraLookAtXYZ(l_18_5, l_18_6, l_18_7, true)
CameraSetPath(PATH._C5_CAMERAPATH, true)
SoundEnableSpeech_ActionTree()
CameraSetWidescreen(true)
if l_0_0 == 2 or l_0_0 == 1 or l_0_0 == 4 then
PedSetWeaponNow(gPlayer, 328, 1, false)
else
PedSetWeaponNow(gPlayer, 426, 1, false)
end
CameraFade(-1, 1)
MinigameSetCompletion("MEN_BLANK", true, 0, l_18_2)
TutorialShowMessage(l_18_1, -1, true)
Wait(1000)
SoundPlayScriptedSpeechEvent(gPlayer, "PLAYER_SUCCESS", 0, "jumbo")
PedSetActionNode(gPlayer, l_18_3, "Act/Conv/C5.act")
Wait(5000)
TutorialRemoveMessage()
CameraSetWidescreen(false)
F_MakePlayerSafeForNIS(false)
NonMissionPedGenerationEnable()
end
end
F_CheckIfPrefect = function()
if shared.bBustedClassLaunched then
-- Confused at declaration of local variable. (Assignments::declareLocals) -- Overwrote pending register. (Assignments::assign)
-- Overwrote pending register. (Assignments::assign)
-- Overwrote pending register. (Assignments::assign)
-- Confused at declaration of local variable. (Assignments::declareLocals)
-- Overwrote pending register. (Assignments::assign)
LoadModels(51)
-- Overwrote pending register. (Assignments::assign)
prefect = PedCreatePoint(shared.bBustedClassLaunched[49.random(50, 51)], 52._PREFECTLOC)
PedStop(prefect)
PedClearObjectives(prefect)
PedIgnoreStimuli(prefect, true)
PedFaceObject(gPlayer, prefect, 2, 0)
PedFaceObject(prefect, gPlayer, 3, 1, false)
PedSetInvulnerable(prefect, true)
PedSetPedToTypeAttitude(prefect, 3, 2)
CameraSetXYZ(-535.5673828125, 377.43469238281, 15.394889831543, -536.53723144531, 377.19128417969, 15.395476341248)
CameraFade(-1, 1)
SoundPlayScriptedSpeechEvent(prefect, "BUSTED_CLASS", 0, "speech")
PedSetActionNode(prefect, "/Global/Ambient/MissionSpec/Prefect/PrefectChew", "Act/Anim/Ambient.act")
PedSetActionNode(gPlayer, "/Global/C5/Failure", "Act/Conv/C5.act")
Wait(3000)
PedSetActionNode(gPlayer, "/Global/C5/Clear", "Act/Conv/C5.act")
shared.bBustedClassLaunched = false
return true
end
-- Confused about usage of registers for local variables. (Assignments::releaseLocals)
return false
end
F_CleanPrefect = function()
if prefect and PedIsValid(prefect) then
PedDelete(prefect)
end
end
F_UnlockPhotos = function()
UnlockYearbookPicture(134)
if IsMissionCompleated("1_B") then
UnlockYearbookPicture(75)
end
if IsMissionCompleated("2_B") then
UnlockYearbookPicture(37)
end
if IsMissionCompleated("3_B") then
UnlockYearbookPicture(23)
end
if IsMissionCompleated("4_B1") then
UnlockYearbookPicture(10)
end
if IsMissionCompleated("4_B2") then
UnlockYearbookPicture(110)
end
if IsMissionCompleated("5_B") then
UnlockYearbookPicture(91)
end
if IsMissionCompleated("6_B") then
UnlockYearbookPicture(130)
end
F_UnlockYearbookReward()
end
i looked in it, and i couldn't find anything.
(if i was not supposed to post that script, please delete this post)