C2M09_Scene03a = { SoundTrack = function() SoundManager.StopMusic( "CRU_12_nightmare" ) SoundManager.PlayMusic( "C2M09_SCENE03_MUSIC" ) CutSceneManager.PlaySoundFX( "DATA:/SOUNDS/CINEMATIQUE/C2M09_NIGHTMARE02/C2M09_SCENE03_SON.PAF" ) end, VoiceTrack = function() i_wait = CutScene.WaitForFrame(35) CutSceneManager.PlayVoice( "C2M09_SCENE03_DENZ_01", "Player" ) i_wait = CutScene.WaitForFrame(32 - i_wait) CutSceneManager.PlayVoice( "C2M09_SCENE03_ESTEBAN_01", "Mercs01" ) i_wait = CutScene.WaitForFrame(55 - i_wait) CutSceneManager.PlayVoice( "C2M09_SCENE03_DENZ_02", "Player" ) i_wait = CutScene.WaitForFrame(648 - i_wait) CutSceneManager.PlayVoice( "C2M09_SCENE03_HELLGATE_01", "" ) end, CamTrack = function() CutSceneManager.SetCameraFov( 54.43 ) --CutSceneManager.SetCameraDof( "CSStandard", "Player", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C2M09_Scene03_Cam01.PAN" ) CutSceneManager.SetCameraFov( 39.59 ) --CutSceneManager.SetCameraDof( "CSStandard", "Player", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C2M09_Scene03_Cam02.PAN" ) CutSceneManager.SetCameraFov( 23.91 ) --CutSceneManager.SetCameraDof( "CSStandard", "Mercs01", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C2M09_Scene03_Cam03.PAN" ) CutSceneManager.SetCameraFov( 54.43 ) --CutSceneManager.SetCameraDof( "CSStandard", "Player", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C2M09_Scene03_Cam04.PAN" ) -- end, EffectTrack = function() PostProcess.Activate( "ColorToScreen", 3, 1, 1, Vector3.New( { 0.0, 0.0, 0.0 } ) ) CutScene.WaitForFrame(940) PostProcess.Activate( "SmoothColor", 3, 2, 1, Vector3.New( { 0.0, 0.0, 0.0 } ) ) end, FXTrack = function() i_wait_fx = CutScene.WaitForFrame(175) ObjectFactory.GetComponent( "FX_BlueFire", "CrParticleFX" ):Invoke( "Play" ) i_wait_fx = CutScene.WaitForFrame(335 - i_wait_fx) i_fx_1 = HHFXManager.StartFXNode( 'KEEP_POWER_DENZ', "Player", "CBH L Hand" ) i_fx_2 = HHFXManager.StartFXNode( 'KEEP_POWER_DENZ', "Player", "CBH R Hand" ) i_fx_3 = HHFXManager.StartFXNode( 'KEEP_POWER_ESTEBAN', "Mercs01", "CBH L Hand" ) i_fx_4 = HHFXManager.StartFXNode( 'KEEP_POWER_ESTEBAN', "Mercs01", "CBH R Hand" ) end, CharacterTrack = function() Crusaders.SetCutSceneObjectiveWithSkirt( "Player", "DATA:/Animations/Cutscenes/Nightmare2/C2M09_SCENE03_DENZ.PAN", "DATA:/Animations/Cutscenes/Nightmare2/C2M09_SCENE03_DENZ_SKIRT.PAN" ) Crusaders.SetCutSceneObjectiveWithSkirt( "Mercs01", "DATA:/Animations/Cutscenes/Nightmare2/C2M09_SCENE03_ESTEBAN.PAN", "DATA:/Animations/Cutscenes/Nightmare2/C2M09_SCENE03_ESTEBAN_SKIRT.PAN" ) end, Start = function() ObjectFactory.EnterStep("CutScene03") ObjectFactory.GetComponent( "Player", "CrCharacterArmor" ):SetMemberValue( "HideHelmet", true ) ObjectFactory.GetComponent( "Mercs01", "CrCharacterArmor" ):SetMemberValue( "HideHelmet", true ) ObjectFactory.GetComponent( "Player", "CrArsenal" ):Invoke( "ForceSheathe" ) ObjectFactory.GetComponent( "Mercs01", "CrArsenal" ):Invoke( "ForceSheathe" ) -- ObjectFactory.GetComponent( "Player", "CrArsenal" ):Invoke( "ForceWeaponChange" , "1" ) -- ObjectFactory.GetComponent( "Mercs01", "CrArsenal" ):Invoke( "ForceWeaponChange" , "1" ) Crusaders.CinematicMode(true) CutScene.AddTrack( "Sound Track", C2M09_Scene03a.SoundTrack ) CutScene.AddTrack( "FX Track", C2M09_Scene03a.FXTrack ) CutScene.AddTrack( "Effect Track", C2M09_Scene03a.EffectTrack ) CutScene.AddTrack( "Camera Track", C2M09_Scene03a.CamTrack ) CutScene.AddTrack( "Character Track", C2M09_Scene03a.CharacterTrack ) CutScene.AddTrack( "Voice Track", C2M09_Scene03a.VoiceTrack ) CutSceneManager.PreLoadCutScene( "Data:/Levels/C2M09_NIGHTMARE02/CutScene04.lua", "C2M09Scene04" ) end, End = function() if( i_fx_1 ) then HHFXManager.StopFX(i_fx_1); i_fx_1 = nil end if( i_fx_2 ) then HHFXManager.StopFX(i_fx_2); i_fx_2 = nil end if( i_fx_3 ) then HHFXManager.StopFX(i_fx_3); i_fx_3 = nil end if( i_fx_4 ) then HHFXManager.StopFX(i_fx_4); i_fx_4 = nil end SoundManager.StopMusic( "C2M09_SCENE03_MUSIC" ) SoundManager.PlayMusic( "CRU_12_nightmare" ) ObjectFactory.GetComponent( "Player", "CrCharacterArmor" ):SetMemberValue( "HideHelmet", false ) ObjectFactory.GetComponent( "Mercs01", "CrCharacterArmor" ):SetMemberValue( "HideHelmet", false ) Crusaders.CinematicMode(false) CutSceneManager.StopSoundFX( "DATA:/SOUNDS/CINEMATIQUE/C2M09_NIGHTMARE02/C2M09_SCENE03_SON.PAF" ) Level.Step_fountain() end, Cancel = function() PostProcess.Activate( "ColorToScreen", 3, 1, 1, Vector3.New( { 0.0, 0.0, 0.0 } ) ) --excuté automatiquement quand la cut scene cancel (passer) C2M09_Scene03a.End() end, CameraData = { -- Les animations de la camera (en "DATA:/...") -- Lues automatiquement les unes à la suite des autres dans l'ordre du tableau "DATA:/ANIMATIONS/CAMERA/C2M09_Scene03_Cam01.PAN", "DATA:/ANIMATIONS/CAMERA/C2M09_Scene03_Cam02.PAN", "DATA:/ANIMATIONS/CAMERA/C2M09_Scene03_Cam03.PAN", "DATA:/ANIMATIONS/CAMERA/C2M09_Scene03_Cam04.PAN", }, AnimationData = { -- Les autres animations (des characters par exemple),(en "DATA:/...") -- Elle ne sont que chargées "DATA:/Animations/Cutscenes/Nightmare2/C2M09_SCENE03_DENZ.PAN", "DATA:/Animations/Cutscenes/Nightmare2/C2M09_SCENE03_DENZ_SKIRT.PAN", "DATA:/Animations/Cutscenes/Nightmare2/C2M09_SCENE03_ESTEBAN.PAN", "DATA:/Animations/Cutscenes/Nightmare2/C2M09_SCENE03_ESTEBAN_SKIRT.PAN", }, SoundData = { }, SoundFXData = { "DATA:/SOUNDS/CINEMATIQUE/C2M09_NIGHTMARE02/C2M09_SCENE03_SON.PAF", }, Sound2DData = { "C2M09_SCENE03_DENZ_01", "C2M09_SCENE03_ESTEBAN_01", "C2M09_SCENE03_DENZ_02", "C2M09_SCENE03_HELLGATE_01", }, FPS = 30, Skippable = true, }