-- ASSETS --Models Model.Setup{ name = "Stage", assetName = "RR_Stage", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } Model.Setup{ name = "Guitarist", assetName = "RR_guitarist", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } Model.Setup{ name = "Spotlight", assetName = "RR_Spotlight", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } Model.Setup{ name = "Saxophonist", assetName = "RR_saxophonist", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } Model.Setup{ name = "Sprites", assetName = "DanceHallSprites", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } --Animations Animation.Setup{ name = "RR_guitaristA", modelCmp="Guitarist", assetName = "RR_guitaristA", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_guitaristB", modelCmp="Guitarist", assetName = "RR_guitaristB", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_guitaristAB", modelCmp="Guitarist", assetName = "RR_guitaristAB", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_guitaristA2", modelCmp="Guitarist", assetName = "RR_guitaristA2", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_guitaristB2", modelCmp="Guitarist", assetName = "RR_guitaristB2", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_guitaristAB2", modelCmp="Guitarist", assetName = "RR_guitaristAB2", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_guitaristA3", modelCmp="Guitarist", assetName = "RR_guitaristA3", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_guitaristB3", modelCmp="Guitarist", assetName = "RR_guitaristB3", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_guitaristAB3", modelCmp="Guitarist", assetName = "RR_guitaristAB3", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_Spotlight", modelCmp="Spotlight", assetName = "RR_Spotlight", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "RR_sax01", modelCmp="Saxophonist", assetName = "RR_sax01", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} Animation.Setup{ name = "SpriteDance", modelCmp="Sprites", assetName = "DanceHallSprites", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres"} --SceneAnimations SceneAnimation.Setup{ name = "RR_SceneAnim", assetName = "RR_SceneAnim", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } SceneAnimation.Setup{ name = "RR_SceneIntroAnim", assetName = "RR_SceneIntroAnim", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } SceneAnimation.Setup{ name = "RR_SceneOutroAnim", assetName = "RR_SceneOutroAnim", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } SceneAnimation.Setup{ name = "RR_SceneLights", assetName = "RR_SceneLights1", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } SceneAnimation.Setup{ name = "RR_SceneCamera", assetName = "RR_SceneCamera1", assetPath = "Minigame/RhythmAction/RockinRydell/RockinRydell.brres" } -- AnimationBlenders AnimationBlender.Setup{ name = "GuitaristAnimBlender", modelCmp = "Guitarist" } -- Particles ParticleEffect.Setup{ name = "sparkle", effectName = "sparkleArea", breffPath = "Minigame/RhythmAction/RockinRydell/RR_sparkleBandStand.breff", breftPath = "Minigame/RhythmAction/RockinRydell/RR_sparkleBandStand.breft" } -- SCRIPTS ----------------------------------------------------------------------------------------------- -- D A N C E H A L L ------------------------------------------------------------------------ ----------------------------------------------------------------------------------------------- Csi.BeginScript( "Init" ) Script.SetCommandWaiting{ enabled=false } PosRotScale.SetPos{ name = "Guitarist", pos = { 584, 21, 199} } PosRotScale.SetRot{ name = "Guitarist", rot = { 0, -92, 0} } PosRotScale.SetPos{ name = "Saxophonist", pos = { 722, 36, 73} } PosRotScale.SetRot{ name = "Saxophonist", rot = { 0, -51, 0} } PosRotScale.SetPos{ name = "Sprites", pos = { 142, 0.1, 160} } PosRotScale.SetRot{ name = "Sprites", rot = { 0, 90, 0} } PosRotScale.SetScale{ name = "Sprites", scale = { 1, 1, 0.5} } FrameController.Play{ name="RR_Spotlight", loopCount=-1, speed=1, offset=0 } FrameController.Play{ name="RR_SceneLights", loopCount=-1, speed=1, offset=0 } FrameController.Play{ name="RR_SceneCamera", loopCount=-1, speed=1, offset=0 } FrameController.Play{ name="RR_sax01", loopCount=-1, speed=0.3, offset=0 } FrameController.Play{ name="SpriteDance", loopCount=-1, speed=0.25, offset=0 } Script.KillAndRun{ name = "GuitarPerformance", loop=true } --Script.KillAndRun{ name = "DannyDance", loop=true } -- FrameController.Play{ name="RR_guitaristA", speed=1, offset=0, } ParticleEffect.Play{ name = "sparkle" } Csi.EndScript() Csi.BeginScript( "GuitarPerformance" ) Script.SetCommandWaiting{ enabled=true } ---------------- A to B--------------------------- FrameController.Play{ name = "RR_guitaristA", loopCount=2, speed=1 } Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name = "RR_guitaristA", loopCount=-1, speed=1 } FrameController.Play{ name = "RR_guitaristB", loopCount=-1, speed=1 } Script.SetCommandWaiting{ enabled=true } AnimationBlender.Play{ name = "GuitaristAnimBlender", animationCmp1 = "RR_guitaristA", animationCmp2 = "RR_guitaristB", startWeight1=1.0, startWeight2=0.0, endWeight1=0.0, endWeight2=1.0, blendTime=0.3 } FrameController.Play{ name = "RR_guitaristB", loopCount=2, speed=1, offset=-1.0 } ---------------- B to AB--------------------------- Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name = "RR_guitaristB", loopCount=-1, speed=1 } FrameController.Play{ name = "RR_guitaristAB", loopCount=-1, speed=1 } Script.SetCommandWaiting{ enabled=true } AnimationBlender.Play{ name = "GuitaristAnimBlender", animationCmp1 = "RR_guitaristB", animationCmp2 = "RR_guitaristAB", startWeight1=1.0, startWeight2=0.0, endWeight1=0.0, endWeight2=1.0, blendTime=0.3 } FrameController.Play{ name = "RR_guitaristAB", loopCount=2, speed=1, offset=-1.0 } ---------------- AB to AB2--------------------------- Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name = "RR_guitaristAB", loopCount=-1, speed=1 } FrameController.Play{ name = "RR_guitaristAB2", loopCount=-1, speed=1 } Script.SetCommandWaiting{ enabled=true } AnimationBlender.Play{ name = "GuitaristAnimBlender", animationCmp1 = "RR_guitaristAB", animationCmp2 = "RR_guitaristAB2", startWeight1=1.0, startWeight2=0.0, endWeight1=0.0, endWeight2=1.0, blendTime=0.3 } FrameController.Play{ name = "RR_guitaristAB2", loopCount=2, speed=1, offset=-1.0 } ---------------- AB2 to B2--------------------------- Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name = "RR_guitaristAB2", loopCount=-1, speed=1 } FrameController.Play{ name = "RR_guitaristB2", loopCount=-1, speed=1 } Script.SetCommandWaiting{ enabled=true } AnimationBlender.Play{ name = "GuitaristAnimBlender", animationCmp1 = "RR_guitaristAB2", animationCmp2 = "RR_guitaristB2", startWeight1=1.0, startWeight2=0.0, endWeight1=0.0, endWeight2=1.0, blendTime=0.3 } FrameController.Play{ name = "RR_guitaristB2", loopCount=2, speed=1, offset=-1.0 } ---------------- B2 to A2--------------------------- Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name = "RR_guitaristB2", loopCount=-1, speed=1 } FrameController.Play{ name = "RR_guitaristA2", loopCount=-1, speed=1 } Script.SetCommandWaiting{ enabled=true } AnimationBlender.Play{ name = "GuitaristAnimBlender", animationCmp1 = "RR_guitaristB2", animationCmp2 = "RR_guitaristA2", startWeight1=1.0, startWeight2=0.0, endWeight1=0.0, endWeight2=1.0, blendTime=0.3 } FrameController.Play{ name = "RR_guitaristA2", loopCount=2, speed=1, offset=-1.0 } ---------------- A2 to A3--------------------------- Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name = "RR_guitaristA2", loopCount=-1, speed=1 } FrameController.Play{ name = "RR_guitaristA3", loopCount=-1, speed=1 } Script.SetCommandWaiting{ enabled=true } AnimationBlender.Play{ name = "GuitaristAnimBlender", animationCmp1 = "RR_guitaristA2", animationCmp2 = "RR_guitaristA3", startWeight1=1.0, startWeight2=0.0, endWeight1=0.0, endWeight2=1.0, blendTime=0.3 } FrameController.Play{ name = "RR_guitaristA3", loopCount=2, speed=1, offset=-1.0 } ---------------- A3 to B3--------------------------- Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name = "RR_guitaristA3", loopCount=-1, speed=1 } FrameController.Play{ name = "RR_guitaristB3", loopCount=-1, speed=1 } Script.SetCommandWaiting{ enabled=true } AnimationBlender.Play{ name = "GuitaristAnimBlender", animationCmp1 = "RR_guitaristA3", animationCmp2 = "RR_guitaristB3", startWeight1=1.0, startWeight2=0.0, endWeight1=0.0, endWeight2=1.0, blendTime=0.3 } FrameController.Play{ name = "RR_guitaristB3", loopCount=2, speed=1, offset=-1.0 } ---------------- B3 to AB3--------------------------- Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name = "RR_guitaristB3", loopCount=-1, speed=1 } FrameController.Play{ name = "RR_guitaristAB3", loopCount=-1, speed=1 } Script.SetCommandWaiting{ enabled=true } AnimationBlender.Play{ name = "GuitaristAnimBlender", animationCmp1 = "RR_guitaristB3", animationCmp2 = "RR_guitaristAB3", startWeight1=1.0, startWeight2=0.0, endWeight1=0.0, endWeight2=1.0, blendTime=0.3 } FrameController.Play{ name = "RR_guitaristAB3", loopCount=2, speed=1, offset=-1.0 } ---------------- AB3 to A--------------------------- Script.SetCommandWaiting{ enabled=false } FrameController.Play{ name = "RR_guitaristAB3", loopCount=-1, speed=1 } FrameController.Play{ name = "RR_guitaristA", loopCount=-1, speed=1 } Script.SetCommandWaiting{ enabled=true } AnimationBlender.Play{ name = "GuitaristAnimBlender", animationCmp1 = "RR_guitaristAB3", animationCmp2 = "RR_guitaristA", startWeight1=1.0, startWeight2=0.0, endWeight1=0.0, endWeight2=1.0, blendTime=0.3 } FrameController.Play{ name = "RR_guitaristA", loopCount=2, speed=1, offset=-1.0 } Csi.EndScript()