-- Required for hurdle setup require("Minigame/RFL/Scripts/RunForYourLove.lua") -- B U N D L E S ------------------------------------------------------------------------------------------------------------------------------ FabBundle.Setup{ name = "EnvironmentFab", assetPath = "Minigame/RFL/RFL.fab" } -- L I G H T G R O U P S --------------------------------------------------------------------------------------------------------------------- LightGroup.Setup{ name = "DefaultLightGroup1", assetName = "LightGroup1" } LightGroup.Setup{ name = "DefaultLightGroup2", assetName = "LightGroup2" } LightGroup.Setup{ name = "DefaultLightGroup3", assetName = "LightGroup3" } LightGroup.Setup{ name = "DefaultLightGroup4", assetName = "LightGroup4" } -- ASSETS --SoundBanks SoundBank.Setup{ name = "TrackSoundBank", path = "SFX/R4YL_SFX.bnk" } SoundTarget.Setup{ name = "Bleachers", pos={3900, 0, -1500}, dir={1, 0, -1.0} } SoundTarget.Setup{ name = "Bleachers2", pos={-3900, 0, -1500}, dir={1, 0, -1.0} } SoundTarget.Setup{ name = "Bleachers3", pos={ 4200, 0.0,-4000 }, dir={1.0, 0, -1.0} } SoundTarget.Setup{ name = "T1_SoundTarget", pos={0, 0, 0}, dir={0.0, 0, -1.0} } SoundTarget.Setup{ name = "T2_SoundTarget", pos={0, 0, 0}, dir={0.0, 0, -1.0} } --AnimTriggers AnimTrigger.Setup{ name = "SoundAnimTrigger1", animationCmp = "T1 Run", frame = 2, script = "SoundScript1" } AnimTrigger.Setup{ name = "SoundAnimTrigger2", animationCmp = "T1 Run", frame = 11, script = "SoundScript2" } AnimTrigger.Setup{ name = "SoundAnimTrigger4", animationCmp = "T2 Run", frame = 2, script = "SoundScript4" } AnimTrigger.Setup{ name = "SoundAnimTrigger5", animationCmp = "T2 Run", frame = 11, script = "SoundScript5" } AnimTrigger.Setup{ name = "SoundAnimTrigger6", animationCmp = "T1 Stumble", frame = 0, script = "SoundScript6" } AnimTrigger.Setup{ name = "SoundAnimTrigger7", animationCmp = "T2 Stumble", frame = 0, script = "SoundScript7" } AnimTrigger.Setup{ name = "SoundAnimTrigger8", animationCmp = "T1 Jump", frame = 0, script = "SoundScript8" } AnimTrigger.Setup{ name = "SoundAnimTrigger9", animationCmp = "T2 Jump", frame = 0, script = "SoundScript9" } AnimTrigger.Setup{ name = "SoundAnimTrigger10", animationCmp = "T1 Go", frame = 0, script = "SoundScript10" } AnimTrigger.Setup{ name = "SoundAnimTrigger11", animationCmp = "T2 Go", frame = 0, script = "SoundScript11" } AnimTrigger.Setup{ name = "SoundAnimTrigger13", animationCmp = "T1 Change Lane Right", frame = 0, script = "SoundScript13" } AnimTrigger.Setup{ name = "SoundAnimTrigger14", animationCmp = "T1 Change Lane Left", frame = 0, script = "SoundScript14" } AnimTrigger.Setup{ name = "SoundAnimTrigger15", animationCmp = "T2 Change Lane Right", frame = 0, script = "SoundScript15" } AnimTrigger.Setup{ name = "SoundAnimTrigger16", animationCmp = "T2 Change Lane Left", frame = 0, script = "SoundScript16" } AnimTrigger.Setup{ name = "SoundAnimTrigger18", animationCmp = "T1 Jump", frame = 0, script = "SoundScript18" } AnimTrigger.Setup{ name = "SoundAnimTrigger19", animationCmp = "T2 Jump", frame = 0, script = "SoundScript19" } AnimTrigger.Setup{ name = "SoundAnimTrigger12", animationCmp = "IntroCam", frame = 0, script = "SoundScript12" } AnimTrigger.Setup{ name = "SoundAnimTrigger26", animationCmp = "T1 Win01", frame = 0, script = "SoundScript20" } AnimTrigger.Setup{ name = "SoundAnimTrigger33", animationCmp = "T2 Win01", frame = 0, script = "SoundScript21" } AnimTrigger.Setup{ name = "SoundAnimTrigger34", animationCmp = "T1 Barge Reaction Left", frame = 0, script = "SoundScript24" } AnimTrigger.Setup{ name = "SoundAnimTrigger35", animationCmp = "T1 Barge Reaction Right", frame = 0, script = "SoundScript24" } AnimTrigger.Setup{ name = "SoundAnimTrigger36", animationCmp = "T2 Barge Reaction Left", frame = 0, script = "SoundScript25" } AnimTrigger.Setup{ name = "SoundAnimTrigger37", animationCmp = "T2 Barge Reaction Right", frame = 0, script = "SoundScript25" } AnimTrigger.Setup{ name = "SoundAnimTrigger38", animationCmp = "T2 Win Outro", frame = 0, script = "SoundScript26" } AnimTrigger.Setup{ name = "SoundAnimTrigger39", animationCmp = "T1 Win Outro", frame = 0, script = "SoundScript27" } AnimTrigger.Setup{ name = "SoundAnimTrigger40", animationCmp = "T1_RunMeter_Heartbeat", frame = 2, script = "SoundScript28" } AnimTrigger.Setup{ name = "SoundAnimTrigger41", animationCmp = "T2_RunMeter_Heartbeat", frame = 2, script = "SoundScript29" } -- Post processing --Dof.Setup{ name = "DofCmp", assetName = "DOF", assetPath = "Microgame/DoF.brres", dist = "1284", range = "5172", blur = "0.9" } --Particle Effects ParticleEffect.Setup{ name = "Hurdle_Fall_Dust", effectName = "dustHurdle01", breffPath = "Minigame/RunForYourLove/R4YL_hurdleFall.breff", breftPath = "Minigame/RunForYourLove/R4YL_hurdleFall.breft" } -- Track Model.Setup{ name = "Track", assetName = "e02" } Model.Setup{ name = "Track_shadows", assetName = "e02_shadows" } --Animation.Setup{ name = "Clouds", modelCmp="Track", assetName = "Track_Environment" } Model.Setup{ name = "FinishLine", assetName = "e02_FinishLine", pos = { 3685.7, 0.0, -3093.0 } } Animation.Setup{ name = "FinishLine_Wave", modelCmp="FinishLine", assetName = "e02_FinishLine_Sway", isSkeletal=true } --Model.Setup{ name = "Crowd", assetName = "Track_Crowd" } --Animation.Setup{ name = "CrowdAnim", modelCmp="Crowd", assetName = "Track_Crowd" } Model.Setup{ name = "Football", assetName = "RFL_Football" } Animation.Setup{ name = "FootballThrow", modelCmp="Football", assetName = "Football" } -- Camera Nodes Animation.Setup{ name = "Camera_Tier1_Node_Run", assetName = "e02_CamLow" } Animation.Setup{ name = "Camera_Tier2_Node_Run", assetName = "e02_CamMid" } Animation.Setup{ name = "Camera_Tier3_Node_Run", assetName = "e02_CamHigh" } -- Hurdles local hurdleNum = 0 for raceIdx = 1, table.getn(MiniGame.raceList) do for hurdleIdx = 1, table.getn(MiniGame.raceList[raceIdx].hurdleList) do local hurdleName = "Hurdle" .. ( hurdleNum + 1 ) local hurdleAnimName = "Knock Down" .. ( hurdleNum + 1 ) local hurdlePosX = MiniGame.raceList[raceIdx].hurdleList[hurdleIdx].x local hurdlePosZ = MiniGame.raceList[raceIdx].hurdleList[hurdleIdx].z local hurdleRotation = MiniGame.raceList[raceIdx].hurdleList[hurdleIdx].rotation Model.Setup { name = hurdleName, assetName = "e02_NormalHurdle", pos = { hurdlePosX, 0.0, hurdlePosZ }, rot = { 0.0, hurdleRotation, 0.0 }, } Animation.Setup { name = hurdleAnimName, modelCmp=hurdleName, assetName = "e02_NormalHurdle_Fall", } hurdleNum = hurdleNum + 1 end end LYTLayout.Setup { name = "TeamTemperatures", archiveName = "OSD/RFYL_runMeter.arc", layoutName = "RFYL_runMeter.brlyt" } -- Invisible Front Runner Animation.Setup{ name = "FrontRacer_Lane1_Run", assetName = "e02_Lane01" } Animation.Setup{ name = "FrontRacer_Lane2_Run", assetName = "e02_Lane02" } Animation.Setup{ name = "FrontRacer_Lane3_Run", assetName = "e02_Lane03" } Animation.Setup{ name = "Shadow_Node_Run", assetName = "e02_Lane02" } -- Team 1 -- Danny Model Model.Setup{ name = "T1", assetName = "RFL_Danny", hasShapeAnim=true, blendAnims = true, blendDuration = 0.1, rawSkeletonData=true } Animation.Setup{ name = "T1 Intro", modelCmp="T1", assetName = "RFL_Danny_Intro", isSkeletal=true } Animation.Setup{ name = "T1 Jump", modelCmp="T1", assetName = "RFL_Danny_Jump02", isSkeletal=true } Animation.Setup{ name = "T1 Change Lane Left", modelCmp="T1", assetName = "RFL_Danny_ChangeLane_L", isSkeletal=true } Animation.Setup{ name = "T1 Change Lane Right", modelCmp="T1", assetName = "RFL_Danny_ChangeLane_R", isSkeletal=true } Animation.Setup{ name = "T1 Barge Left", modelCmp="T1", assetName = "RFL_Danny_Barge_L", isSkeletal=true } Animation.Setup{ name = "T1 Barge Left Forward", modelCmp="T1", assetName = "RFL_Danny_Barge_L_Forward", isSkeletal=true } Animation.Setup{ name = "T1 Barge Infront Left", modelCmp="T1", assetName = "RFL_Danny_Barge_Infront_L", isSkeletal=true } Animation.Setup{ name = "T1 Barge Right", modelCmp="T1", assetName = "RFL_Danny_Barge_R", isSkeletal=true } Animation.Setup{ name = "T1 Barge Right Forward", modelCmp="T1", assetName = "RFL_Danny_Barge_R_Forward", isSkeletal=true } Animation.Setup{ name = "T1 Barge Infront Right", modelCmp="T1", assetName = "RFL_Danny_Barge_Infront_R", isSkeletal=true } Animation.Setup{ name = "T1 Barge Reaction Left", modelCmp="T1", assetName = "RFL_Danny_Barge_Reaction_L", isSkeletal=true } Animation.Setup{ name = "T1 Barge Reaction Right", modelCmp="T1", assetName = "RFL_Danny_Barge_Reaction_R", isSkeletal=true } Animation.Setup{ name = "T1 Sprint", modelCmp="T1", assetName = "RFL_Danny_Sprint", isSkeletal=true } Animation.Setup{ name = "T1 Run", modelCmp="T1", assetName = "RFL_Danny_Run", isSkeletal=true } Animation.Setup{ name = "T1 Stumble", modelCmp="T1", assetName = "RFL_Danny_Stumble", isSkeletal=true } Animation.Setup{ name = "T1 On Your Marks", modelCmp="T1", assetName = "RFL_Danny_OnYourMarks", isSkeletal=true } Animation.Setup{ name = "T1 Go", modelCmp="T1", assetName = "RFL_Danny_OnYourMarks_Go", isSkeletal=true } Animation.Setup{ name = "T1 Idle", modelCmp="T1", assetName = "RFL_Danny_OnYourMarks_Idle", isSkeletal=true } Animation.Setup{ name = "T1 Win01", modelCmp="T1", assetName = "RFL_Danny_Win01", isSkeletal=true } Animation.Setup{ name = "T1 Lose01", modelCmp="T1", assetName = "RFL_Danny_Lose01", isSkeletal=true } Animation.Setup{ name = "T1 Win Outro", modelCmp="T1", assetName = "RFL_Danny_WinOutro", isSkeletal=true } Animation.Setup{ name = "T1 Lose Outro", modelCmp="T1", assetName = "RFL_Danny_LoseOutro", isSkeletal=true } Animation.Setup{ name = "T1 Finish Lose", modelCmp="T1", assetName = "RFL_Danny_SprintFinishLose", isSkeletal=true } Animation.Setup{ name = "T1 Finish Lose Idle", modelCmp="T1", assetName = "RFL_Danny_SprintFinishLoseIdle", isSkeletal=true } Animation.Setup{ name = "T1 Finish Win", modelCmp="T1", assetName = "RFL_Danny_SprintFinishWin", isSkeletal=true } Animation.Setup{ name = "T1 Finish Win Idle", modelCmp="T1", assetName = "RFL_Danny_SprintFinishWinIdle", isSkeletal=true } ParticleEffect.Setup{ name = "T1_Sprint_Dust", attachToCmp = "T1", effectName = "DustTrail01", breffPath = "Minigame/RunForYourLove/RFYL_sprintDust.breff", breftPath = "Minigame/RunForYourLove/RFYL_sprintDust.breft" } -- Track Route Animation.Setup{ name = "T1_TrackNode01_Run", assetName = "e02_Lane01" } Animation.Setup{ name = "T1_TrackNode02_Run", assetName = "e02_Lane02" } Animation.Setup{ name = "T1_TrackNode03_Run", assetName = "e02_Lane03" } -- Temperature Meter LYTPane.Setup{ name = "T1_MeterPos", paneName = "player1", layoutCmp = "TeamTemperatures" } LYTPane.Setup{ name = "T1_RunMeter", paneName = "P1_runMeter", layoutCmp = "TeamTemperatures" } LYTPane.Setup{ name = "T1_RunMeter_FillBase", paneName = "P1_fillbase", layoutCmp = "TeamTemperatures" } LYTPane.Setup{ name = "T1_RunMeter_Heart", paneName = "P1_heart", layoutCmp = "TeamTemperatures" } LYTAnimation.Setup { name = "T1_RunMeter_Entry", animName = "RFYL_runMeter_P1runMeter_entry.brlan", paneCmp = "T1_RunMeter", layoutCmp = "TeamTemperatures" } LYTAnimation.Setup { name = "T1_RunMeter_Exit", animName = "RFYL_runMeter_P1runMeter_exit.brlan", paneCmp = "T1_RunMeter", layoutCmp = "TeamTemperatures" } LYTAnimation.Setup { name = "T1_RunMeter_Heartbeat", animName = "RFYL_runMeter_P1heartbeat.brlan", paneCmp = "T1_RunMeter_Heart", layoutCmp = "TeamTemperatures" } LYTAnimation.Setup { name = "T1_RunMeter_FillUp", animName = "RFYL_runMeter_P1meterFillUp.brlan", paneCmp = "T1_RunMeter_FillBase", layoutCmp = "TeamTemperatures" } -- Team 2 -- Tom Model Model.Setup{ name = "T2", assetName = "RFL_Tom", hasShapeAnim=true, blendAnims = true, blendDuration = 0.1, rawSkeletonData=true } Animation.Setup{ name = "T2 Intro", modelCmp="T2", assetName = "RFL_Tom_Intro", isSkeletal=true } Animation.Setup{ name = "T2 Jump", modelCmp="T2", assetName = "RFL_Tom_Jump02", isSkeletal=true } Animation.Setup{ name = "T2 Change Lane Left", modelCmp="T2", assetName = "RFL_Tom_ChangeLane_L", isSkeletal=true } Animation.Setup{ name = "T2 Change Lane Right", modelCmp="T2", assetName = "RFL_Tom_ChangeLane_R", isSkeletal=true } Animation.Setup{ name = "T2 Barge Left", modelCmp="T2", assetName = "RFL_Tom_Barge_L", isSkeletal=true } Animation.Setup{ name = "T2 Barge Left Forward", modelCmp="T2", assetName = "RFL_Tom_Barge_L_Forward", isSkeletal=true } Animation.Setup{ name = "T2 Barge Infront Left", modelCmp="T2", assetName = "RFL_Tom_Barge_Infront_L", isSkeletal=true } Animation.Setup{ name = "T2 Barge Right", modelCmp="T2", assetName = "RFL_Tom_Barge_R", isSkeletal=true } Animation.Setup{ name = "T2 Barge Right Forward", modelCmp="T2", assetName = "RFL_Tom_Barge_R_Forward", isSkeletal=true } Animation.Setup{ name = "T2 Barge Infront Right", modelCmp="T2", assetName = "RFL_Tom_Barge_Infront_R", isSkeletal=true } Animation.Setup{ name = "T2 Barge Reaction Left", modelCmp="T2", assetName = "RFL_Tom_Barge_Reaction_L", isSkeletal=true } Animation.Setup{ name = "T2 Barge Reaction Right", modelCmp="T2", assetName = "RFL_Tom_Barge_Reaction_R", isSkeletal=true } Animation.Setup{ name = "T2 Sprint", modelCmp="T2", assetName = "RFL_Tom_Sprint", isSkeletal=true } Animation.Setup{ name = "T2 Run", modelCmp="T2", assetName = "RFL_Tom_Run", isSkeletal=true } Animation.Setup{ name = "T2 Stumble", modelCmp="T2", assetName = "RFL_Tom_Stumble", isSkeletal=true } Animation.Setup{ name = "T2 On Your Marks", modelCmp="T2", assetName = "RFL_Tom_OnYourMarks", isSkeletal=true } Animation.Setup{ name = "T2 Idle", modelCmp="T2", assetName = "RFL_Tom_OnYourMarks_Idle", isSkeletal=true } Animation.Setup{ name = "T2 Go", modelCmp="T2", assetName = "RFL_Tom_OnYourMarks_Go", isSkeletal=true } Animation.Setup{ name = "T2 Win01", modelCmp="T2", assetName = "RFL_Tom_Win01", isSkeletal=true } Animation.Setup{ name = "T2 Lose01", modelCmp="T2", assetName = "RFL_Tom_Lose01", isSkeletal=true } Animation.Setup{ name = "T2 Lose Outro", modelCmp="T2", assetName = "RFL_Tom_LoseOutro", isSkeletal=true } Animation.Setup{ name = "T2 Win Outro", modelCmp="T2", assetName = "RFL_Tom_WinOutro", isSkeletal=true } Animation.Setup{ name = "T2 Finish Lose", modelCmp="T2", assetName = "RFL_Tom_SprintFinishLose", isSkeletal=true } Animation.Setup{ name = "T2 Finish Lose Idle", modelCmp="T2", assetName = "RFL_Tom_SprintFinishLoseIdle", isSkeletal=true } Animation.Setup{ name = "T2 Finish Win", modelCmp="T2", assetName = "RFL_Tom_SprintFinishWin", isSkeletal=true } Animation.Setup{ name = "T2 Finish Win Idle", modelCmp="T2", assetName = "RFL_Tom_SprintFinishWinIdle", isSkeletal=true } ParticleEffect.Setup{ name = "T2_Sprint_Dust", attachToCmp = "T2", effectName = "DustTrail01", breffPath = "Minigame/RunForYourLove/RFYL_sprintDust.breff", breftPath = "Minigame/RunForYourLove/RFYL_sprintDust.breft" } -- Track Route Animation.Setup{ name = "T2_TrackNode01_Run", assetName = "e02_Lane01" } Animation.Setup{ name = "T2_TrackNode02_Run", assetName = "e02_Lane02" } Animation.Setup{ name = "T2_TrackNode03_Run", assetName = "e02_Lane03" } -- Temperature Meter LYTPane.Setup{ name = "T2_MeterPos", paneName = "player2", layoutCmp = "TeamTemperatures" } LYTPane.Setup{ name = "T2_RunMeter", paneName = "P2_runMeter", layoutCmp = "TeamTemperatures" } LYTPane.Setup{ name = "T2_RunMeter_FillBase", paneName = "P2_fillbase", layoutCmp = "TeamTemperatures" } LYTPane.Setup{ name = "T2_RunMeter_Heart", paneName = "P2_heart", layoutCmp = "TeamTemperatures" } LYTAnimation.Setup { name = "T2_RunMeter_Entry", animName = "RFYL_runMeter_P2runMeter_entry.brlan", paneCmp = "T2_RunMeter", layoutCmp = "TeamTemperatures" } LYTAnimation.Setup { name = "T2_RunMeter_Exit", animName = "RFYL_runMeter_P2runMeter_exit.brlan", paneCmp = "T2_RunMeter", layoutCmp = "TeamTemperatures" } LYTAnimation.Setup { name = "T2_RunMeter_Heartbeat", animName = "RFYL_runMeter_P2heartbeat.brlan", paneCmp = "T2_RunMeter_Heart", layoutCmp = "TeamTemperatures" } LYTAnimation.Setup { name = "T2_RunMeter_FillUp", animName = "RFYL_runMeter_P2meterFillUp.brlan", paneCmp = "T2_RunMeter_FillBase", layoutCmp = "TeamTemperatures" } -- Sandy Model Model.Setup{ name = "Sandy", assetName = "RFL_Sandy", hasShapeAnim=true } Animation.Setup{ name = "SandyIntro", modelCmp="Sandy", assetName = "RFL_Sandy_Intro", isSkeletal=true } Animation.Setup{ name = "SandyOutro", modelCmp="Sandy", assetName = "RFL_Sandy_Outro", isSkeletal=true } --SceneAnimations CameraAnimation.Setup{ name = "IntroCam", assetName = "IntroCam" } CameraAnimation.Setup{ name = "WinCam", assetName = "WinCam_01" } CameraAnimation.Setup{ name = "OutroCam", assetName = "OutroCam" } ----------------------------------------------------------------------------------------------- -- I N T R O --------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- Csi.BeginScript( "Intro" ) Scene.SetLightGroup{ name="DefaultLightGroup1" } --FrameController.Play{ name = "Clouds", speed=1, offset=0, looping=true, maintainLastFrame=true } --FrameController.Play{ name = "CrowdAnim", offset = 0, speed=0.25, looping=true } FrameController.Play{ name = "FinishLine_Wave", speed=1, offset=0, looping=true, maintainLastFrame=true } PosRotScale.SetPos{ name = "T1_MeterPos", pos = { -350, -160, 0 } } PosRotScale.SetPos{ name = "T2_MeterPos", pos = { 350, -160, 0 } } -- Start playing Danny, Tom and Sandy intro animations SoundBank.Play{ event = "Atmos_Start" } SoundBank.Play{ event = "Bleacher_Crowd", target="Bleachers" } SoundBank.Play{ event = "Bleacher_Crowd2", target="Bleachers2" } SoundBank.Play{ event = "Bleacher_Crowd_Fin", target="Bleachers3" } Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name="T1 Intro", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T1", rot = { 0, 0, 0 } } Model.SetPos{ name = "T1", pos = { 0, 12, 0 } } FrameController.Play{ name="T2 Intro", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T2", rot = { 0, 0, 0 } } Model.SetPos{ name = "T2", pos = { 0, 12, 0 } } FrameController.Play{ name="SandyIntro", speed=1, offset=0, maintainLastFrame=true } Component.SetRender{ name="Sandy", enabled=true } Model.SetRot{ name = "Sandy", rot = { 0, 0, 0 } } Model.SetPos{ name = "Sandy", pos = { 0, 0, 0 } } -- Play Intro cam and wait for it to finish Scene.SetCameraClipPlanes{ near = 40.0, far = 32000.0 } Scene.SetDof{ focalRange = 600.0, nearFocusDistance = 150.0, farFocusDistance = 5000.0, centreFocusDistance = 500.0 } --Scene.SetBloom{ bloomThreshold = 0.9, baseIntensity = 1.0, bloomIntensity = 1.5, baseSaturation = 0.5, bloomSaturation = 1.0 } Script.SetCommandWaiting{ enabled=true } FrameController.Play{ name="IntroCam", speed=1, offset=0 } Component.SetRender{ name="Football", enabled=false } Component.SetRender{ name="TeamTemperatures", enabled=true } Csi.EndScript() Csi.BeginScript( "RacePrepare" ) Csi.EndScript() -- Csi.BeginScript( "RaceCountIn" ) Scene.SetLightGroup{ name="DefaultLightGroup4" } Scene.SetDof{ focalRange = 800.0, nearFocusDistance = 150.0, farFocusDistance = 5000.0, modelCmp = "T1" } Component.SetRender{ name="Football", enabled=false } Component.SetRender{ name="Sandy", enabled=false } SoundBank.Play{ event = "CountIn" } SoundBank.Play{ event = "CountInMote", target="wiimote_p1" } SoundBank.Play{ event = "CountInMote", target="wiimote_p2" } Csi.EndScript() Csi.BeginScript( "T1_CrossLineFirst" ) SoundBank.Play{ event = "RaceFinish_Danny" } Csi.EndScript() Csi.BeginScript( "T2_CrossLineFirst" ) SoundBank.Play{ event = "RaceFinish_Tom" } Csi.EndScript() Csi.BeginScript( "DannyWinsRD1" ) -- Play Danny Winner animation, and Tom Lose animation Script.SetCommandWaiting{ enabled=false } Scene.SetLightGroup{ name="DefaultLightGroup2" } Scene.SetDof{ focalRange = 800.0, nearFocusDistance = 500.0, farFocusDistance = 1500.0, centreFocusDistance = 500.0 } FrameController.Play{ name="T1 Win01", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T1", rot = { 0, 0, 0 } } Model.SetPos{ name = "T1", pos = { 0, 2, 0 } } FrameController.Play{ name="T2 Lose01", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T2", rot = { 0, 0, 0 } } Model.SetPos{ name = "T2", pos = { 0, 2, 0 } } Component.SetRender{ name="Football", enabled=true } FrameController.Play{ name="FootballThrow", speed=1, offset=0, maintainLastFrame=true } -- Play Winning Cam and wait for it to finish Script.SetCommandWaiting{ enabled=true } FrameController.Play{ name="WinCam", speed=1, offset=0, maintainLastFrame=true } Csi.EndScript() Csi.BeginScript( "DannyWinsRD2" ) -- Play Danny Winner animation, and Tom Lose animation Script.SetCommandWaiting{ enabled=false } Scene.SetLightGroup{ name="DefaultLightGroup2" } Scene.SetDof{ focalRange = 800.0, nearFocusDistance = 500.0, farFocusDistance = 1500.0, centreFocusDistance = 500.0 } FrameController.Play{ name="T1 Win01", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T1", rot = { 0, 0, 0 } } Model.SetPos{ name = "T1", pos = { 0, 2, 0 } } FrameController.Play{ name="T2 Lose01", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T2", rot = { 0, 0, 0 } } Model.SetPos{ name = "T2", pos = { 0, 2, 0 } } Component.SetRender{ name="Football", enabled=true } FrameController.Play{ name="FootballThrow", speed=1, offset=0, maintainLastFrame=true } -- Play Winning Cam and wait for it to finish Script.SetCommandWaiting{ enabled=true } FrameController.Play{ name="WinCam", speed=1, offset=0, maintainLastFrame=true } Csi.EndScript() Csi.BeginScript( "TomWinsRD1" ) -- Play Danny Winner animation, and Tom Lose animation Script.SetCommandWaiting{ enabled=false } Scene.SetLightGroup{ name="DefaultLightGroup2" } Scene.SetDof{ focalRange = 800.0, nearFocusDistance = 500.0, farFocusDistance = 1500.0, centreFocusDistance = 500.0 } FrameController.Play{ name="T1 Lose01", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T1", rot = { 0, 0, 0 } } Model.SetPos{ name = "T1", pos = { 0, 2, 0 } } FrameController.Play{ name="T2 Win01", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T2", rot = { 0, 0, 0 } } Model.SetPos{ name = "T2", pos = { 0, 2, 0 } } Component.SetRender{ name="Football", enabled=true } FrameController.Play{ name="FootballThrow", speed=1, offset=0, maintainLastFrame=true } -- Play Winning Cam and wait for it to finish Script.SetCommandWaiting{ enabled=true } FrameController.Play{ name="WinCam", speed=1, offset=0, maintainLastFrame=true } Csi.EndScript() Csi.BeginScript( "TomWinsRD2" ) -- Play Danny Winner animation, and Tom Lose animation Script.SetCommandWaiting{ enabled=false } Scene.SetLightGroup{ name="DefaultLightGroup2" } Scene.SetDof{ focalRange = 800.0, nearFocusDistance = 500.0, farFocusDistance = 1500.0, centreFocusDistance = 500.0 } FrameController.Play{ name="T1 Lose01", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T1", rot = { 0, 0.0, 0} } Model.SetPos{ name = "T1", pos = { 0, 2.0, 0} } FrameController.Play{ name="T2 Win01", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T2", rot = { 0, 0.0, 0} } Model.SetPos{ name = "T2", pos = { 0, 2.0, 0} } Component.SetRender{ name="Football", enabled=true } FrameController.Play{ name="FootballThrow", speed=1, offset=0, maintainLastFrame=true } -- Play Winning Cam and wait for it to finish Script.SetCommandWaiting{ enabled=true } FrameController.Play{ name="WinCam", speed=1, offset=0, maintainLastFrame=true } Csi.EndScript() Csi.BeginScript( "DannyOutro" ) Script.SetCommandWaiting{ enabled=false } Scene.SetLightGroup{ name="DefaultLightGroup3" } Component.SetRender{ name="Football", enabled=false } FrameController.Play{ name="T1 Win Outro", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T1", rot = { 0, 0.0, 0} } Model.SetPos{ name = "T1", pos = { 0, 0.0, 0} } FrameController.Play{ name="T2 Lose Outro", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T2", rot = { 0, 0.0, 0} } Model.SetPos{ name = "T2", pos = { 0, 0.0, 0} } Component.SetRender{ name="Sandy", enabled=true } FrameController.Play{ name="SandyOutro", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "Sandy", rot = { 0, 0.0, 0} } Model.SetPos{ name = "Sandy", pos = { 0, 0.0, 0} } Scene.SetDof{ focalRange = 500.0, nearFocusDistance = 500.0, farFocusDistance = 2000.0, centreFocusDistance = 300.0 } Script.SetCommandWaiting{ enabled=true } FrameController.Play{ name="OutroCam", speed=1, offset=0, maintainLastFrame=true } Csi.EndScript() Csi.BeginScript( "TomOutro" ) Scene.SetLightGroup{ name="DefaultLightGroup3" } Component.SetRender{ name="Football", enabled=false } FrameController.Play{ name="T2 Win Outro", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T2", rot = { 0, 0.0, 0} } Model.SetPos{ name = "T2", pos = { 0, 0.0, 0} } FrameController.Play{ name="T1 Lose Outro", speed=1, offset=0, maintainLastFrame=true } Model.SetRot{ name = "T1", rot = { 0, 0.0, 0} } Model.SetPos{ name = "T1", pos = { 0, 0.0, 0} } FrameController.Play{ name="SandyOutro", speed=1, offset=0, maintainLastFrame=true } Component.SetRender{ name="Sandy", enabled=true } Model.SetRot{ name = "Sandy", rot = { 0, 0.0, 0} } Model.SetPos{ name = "Sandy", pos = { 0, 0.0, 0} } Scene.SetDof{ focalRange = 500.0, nearFocusDistance = 500.0, farFocusDistance = 2000.0, centreFocusDistance = 300.0 } Script.SetCommandWaiting{ enabled=true } FrameController.Play{ name="OutroCam", speed=1, offset=0, maintainLastFrame=true } Csi.EndScript() ----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- Csi.BeginScript( "SoundScript1" ) SoundBank.Play{ event = "Danny_Run", target="T1_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript2" ) SoundBank.Play{ event = "Danny_Run", target="T1_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript3" ) SoundBank.Play{ event = "DannyJump", target="T1_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript4" ) SoundBank.Play{ event = "Tom_Run", target="T2_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript5" ) SoundBank.Play{ event = "Tom_Run", target="T2_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript6" ) SoundBank.Play{ event = "DannyJump_Fail", target="T1_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript7" ) SoundBank.Play{ event = "TomJump_Fail", target="T2_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript8" ) SoundBank.Play{ event = "DannyJump02", target="T1_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript9" ) SoundBank.Play{ event = "TomJump02", target="T2_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript10" ) SoundBank.Play{ event = "DannyStart", target="T1_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript11" ) SoundBank.Play{ event = "TomStart", target="T2_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript12" ) SoundBank.Play{ event = "IntroCinematic_R4YL" } Csi.EndScript() Csi.BeginScript( "SoundScript13" ) SoundBank.Play{ event = "Danny_ChangeLane", target="T1_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript14" ) SoundBank.Play{ event = "Danny_ChangeLane", target="T1_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript15" ) SoundBank.Play{ event = "Tom_ChangeLane", target="T2_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript16" ) SoundBank.Play{ event = "Tom_ChangeLane", target="T2_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript17" ) SoundBank.Play{ event = "FinishCam", target="Bleachers3" } Csi.EndScript() Csi.BeginScript( "SoundScript18" ) SoundBank.Play{ event = "DannyJump_Whoosh", target="wiimote_p1" } Csi.EndScript() Csi.BeginScript( "SoundScript19" ) SoundBank.Play{ event = "TomJump_Whoosh", target="wiimote_p2" } Csi.EndScript() Csi.BeginScript( "SoundScript20" ) SoundBank.Play{ event = "DannyWinsRace" } Csi.EndScript() Csi.BeginScript( "SoundScript21" ) SoundBank.Play{ event = "TomWinsRace" } Csi.EndScript() Csi.BeginScript( "SoundScript22" ) SoundBank.Play{ event = "Danny_Run" } Csi.EndScript() Csi.BeginScript( "SoundScript23" ) SoundBank.Play{ event = "Tom_Run" } Csi.EndScript() Csi.BeginScript( "SoundScript24" ) SoundBank.Play{ event = "DannyBarged", target="T1_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript25" ) SoundBank.Play{ event = "TomBarged", target="T2_SoundTarget" } Csi.EndScript() Csi.BeginScript( "SoundScript26" ) SoundBank.Play{ event = "TomOutroR4YL" } Csi.EndScript() Csi.BeginScript( "SoundScript27" ) SoundBank.Play{ event = "DannyOutroR4YL" } Csi.EndScript() Csi.BeginScript( "SoundScript28" ) SoundBank.Play{ event = "P1_Heart" } Csi.EndScript() Csi.BeginScript( "SoundScript29" ) SoundBank.Play{ event = "P2_Heart" } Csi.EndScript()