C4M02Scene04 = { SoundTrack = function() SoundManager.StopMusic( "CRU_13_Boniface" ) SoundManager.PlayMusic( "C4M02_SCENE03b_MUSIC" ) CutSceneManager.PlaySoundFX( "DATA:/SOUNDS/CINEMATIQUE/C4M02_THEODOSIUSFORUM/C4M02_SCENE03b_SON.PAF" ) end, VoiceTrack = function() i_wait = CutScene.WaitForFrame(8) CutSceneManager.PlayVoice( "C5M02_SCENE04_BONIFACE_01_alt3", "Boniface" ) i_wait = CutScene.WaitForFrame(379 - i_wait) CutSceneManager.PlayVoice( "C4M02_SCENE03_BONIFACE_01", "Boniface" ) i_wait = CutScene.WaitForFrame(293 - i_wait) CutSceneManager.PlayVoice( "C4M02_SCENE03_BONIFACE_02", "Boniface" ) i_wait = CutScene.WaitForFrame(276- i_wait) CutSceneManager.PlayVoice( "C4M02_SCENE03_DENZ_06", "Player" ) i_wait = CutScene.WaitForFrame(104- i_wait) CutSceneManager.PlayVoice( "C4M02_SCENE03_ESTEBAN_05", "Mercs01" ) end, CamTrack = function() CutSceneManager.SetCameraFov( 54.43 ) CutSceneManager.SetCameraDof( "CSStandard", "Boniface", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam01.PAN" ) CutSceneManager.SetCameraFov( 39.59 ) CutSceneManager.SetCameraDof( "CSStandard", "Boniface", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam02.PAN" ) CutSceneManager.SetCameraFov( 23.91 ) CutSceneManager.SetCameraDof( "CSStandard", "Boniface", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam03.PAN" ) CutSceneManager.SetCameraFov( 54.43 ) --CutSceneManager.SetCameraDof( "CSStandard", "Player", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam04.PAN" ) CutSceneManager.SetCameraFov( 39.59 ) CutSceneManager.SetCameraDof( "CSStandard", "Boniface", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam05.PAN" ) CutSceneManager.SetCameraFov( 73.74 ) CutSceneManager.SetCameraDof( "CSStandard", "Player", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam06.PAN" ) CutSceneManager.SetCameraFov( 23.91 ) CutSceneManager.SetCameraDof( "CSStandard", "Player", Vector3.New( { 0.0, 0.0, 16.0 } ) ) CutScene.WaitForCameraAnimation( "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam07.PAN" ) -- end, EffectTrack = function() PostProcess.Activate( "ColorToScreen", 3, 1, 1, Vector3.New( { 0.0, 0.0, 0.0 } ) ) CutScene.WaitForFrame(1140) PostProcess.Activate( "SmoothColor", 3, 2, 1, Vector3.New( { 0.0, 0.0, 0.0 } ) ) end, CharacterTrack = function() Crusaders.SetCutSceneObjectiveWithSkirt( "Player", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_DENZ.PAN", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_DENZ_SKIRT.PAN" ) Crusaders.SetCutSceneObjectiveWithSkirt( "Mercs01", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_ESTEBAN.PAN", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_ESTEBAN_SKIRT.PAN" ) Crusaders.SetCutSceneObjectiveWithSkirt( "Boniface", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_BONIFACE.PAN", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_BONIFACE_SKIRT.PAN" ) end, TCTrack = function() i_wait = CutScene.WaitForFrame(0) ObjectFactory.GetComponent( "Player", "CrPlayerController" ):Invoke( "Force", true ) ObjectFactory.GetComponent( "Mercs01", "CrPlayerController" ):Invoke( "Force", true ) i_fx_1 = HHFXManager.StartFXNode( 'KEEP_POWER_DENZ', "Boniface", "CBH L Hand" ) i_fx_2 = HHFXManager.StartFXNode( 'KEEP_POWER_DENZ', "Boniface", "CBH R Hand" ) i_wait = CutScene.WaitForFrame(240 - i_wait) ObjectFactory.GetComponent( "Door2_part1", 'KTURigidBodyComponent' ):Invoke( "Die" ) ObjectFactory.GetComponent( "Door2_part2", 'KTURigidBodyComponent' ):Invoke( "Die" ) 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 --i_wait = CutScene.WaitForFrame(480 - i_wait) i_wait = CutScene.WaitForFrame(240 - i_wait) ObjectFactory.GetComponent( "Colomn", "CrAnimProps" ):SetMemberValue( "PlayAnim", true ) -- i_wait = CutScene.WaitForFrame(169 - i_wait) ObjectFactory.GetComponent( "Le_toit", "CrAnimProps" ):SetMemberValue( "PlayAnim", true ) --i_wait = CutScene.WaitForFrame(390 - i_wait) --221 ObjectFactory.GetComponent( "Player", "CrPlayerController" ):Invoke( "Force", false ) ObjectFactory.GetComponent( "Mercs01", "CrPlayerController" ):Invoke( "Force", false ) end, Start = function() Crusaders.CinematicMode(true) ObjectFactory.EnterStep("Cine_4") 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" ) CutScene.AddTrack( "TC Track", C4M02Scene04.TCTrack ) CutScene.AddTrack( "Sound Track", C4M02Scene04.SoundTrack ) CutScene.AddTrack( "Camera Track", C4M02Scene04.CamTrack ) CutScene.AddTrack( "Character Track", C4M02Scene04.CharacterTrack ) CutScene.AddTrack( "Voice Track", C4M02Scene04.VoiceTrack ) CutScene.AddTrack( "Effect Track", C4M02Scene04.EffectTrack ) CutSceneManager.PreLoadCutScene( "Data:/Levels/C4M02_TheodosiusForum/CutScene05.lua", "C4M02Scene05" ) ObjectFactory.GetComponent( "Boniface", "CrArsenal" ):Invoke( "ForceSheathe" ) end, End = function() ObjectFactory.GetComponent( "Player", "CrCharacterArmor" ):SetMemberValue( "HideHelmet", false ) ObjectFactory.GetComponent( "Mercs01", "CrCharacterArmor" ):SetMemberValue( "HideHelmet", false ) Crusaders.CinematicMode(false) Level.Step_pillard() Level.Unfreeze_pillard() Crusaders.Freeze( ObjectFactory.GetActor( "Colomn" ) ) Crusaders.Unfreeze( ObjectFactory.GetActor( "Obj_Colonne_Break_Prop" ) ) Crusaders.Freeze( ObjectFactory.GetActor( "Le_toit" ) ) Crusaders.Unfreeze( ObjectFactory.GetActor( "Obj_Toit_Break_Prop" ) ) -- ObjectFactory.EnterStep("End_cine_4") SoundManager.StopMusic( "C4M02_SCENE03b_MUSIC" ) SoundManager.PlayMusic( "CRU_06_combat_orthodox" ) CutSceneManager.StopSoundFX( "DATA:/SOUNDS/CINEMATIQUE/C4M02_THEODOSIUSFORUM/C4M02_SCENE03b_SON.PAF" ) end, Cancel = function() PostProcess.Activate( "ColorToScreen", 3, 1, 1, Vector3.New( { 0.0, 0.0, 0.0 } ) ) 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 --excuté automatiquement quand la cut scene cancel (passer) Level.Colomn_active() Level.TC_off() C4M02Scene04.End() -- ObjectFactory.GetComponent( "Colomn", "CrAnimProps" ):SetMemberValue( "PlayAnim", true ) -- ObjectFactory.GetComponent( "Le_toit", "CrAnimProps" ):SetMemberValue( "PlayAnim", true ) 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/C4M02_Scene03b_Cam01.PAN", "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam02.PAN", "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam03.PAN", "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam04.PAN", "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam05.PAN", "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam06.PAN", "DATA:/ANIMATIONS/CAMERA/C4M02_Scene03b_Cam07.PAN", }, AnimationData = { -- Les autres animations (des characters par exemple),(en "DATA:/...") -- Elle ne sont que chargées "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_DENZ.PAN", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_DENZ_SKIRT.PAN", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_ESTEBAN.PAN", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_ESTEBAN_SKIRT.PAN", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_BONIFACE.PAN", "DATA:/Animations/Cutscenes/Forum_Theodosius/C4M02_SCENE03b_BONIFACE_SKIRT.PAN", }, SoundFXData = { "DATA:/SOUNDS/CINEMATIQUE/C4M02_THEODOSIUSFORUM/C4M02_SCENE03b_SON.PAF" }, SoundData = { }, Sound2DData = { "C5M02_SCENE04_BONIFACE_01_alt3", "C4M02_SCENE03_BONIFACE_01", "C4M02_SCENE03_BONIFACE_02", "C4M02_SCENE03_DENZ_06", "C4M02_SCENE03_ESTEBAN_05", }, FPS = 30, Skippable = true, }