require("Microgame/WR/Scripts/WR_Config.lua") -- L I G H T G R O U P S --------------------------------------------------------------------------------------------------------------------- LightGroup.Setup{ name = "DefaultLightGroup1", assetName = "LightGroup1" } -- A S S E T S -------------------------------------------------------------------------------------------------------------------------------- --SoundBanks SoundBank.Setup{ name = "FieldDaySoundBank", path = "SFX/FieldDay_SFX.bnk" } --Danny Model.Setup{ name = "T1", assetName = "FD_Danny", pos={ 0, 4, 150 }, rot={ 0, 180, 0 }, blendAnims = true, blendDuration = 0.2, hasShapeAnim=true, rawSkeletonData=true } --Player Anims Animation.Setup{ name = "T1_Idle", modelCmp="T1", assetName = "FD_Danny_WR_Idle", isSkeletal=true } Animation.Setup{ name = "T1_MoveForward", modelCmp="T1", assetName = "FD_Danny_WR_MoveForwards", isSkeletal=true } Animation.Setup{ name = "T1_MoveBackward", modelCmp="T1", assetName = "FD_Danny_WR_MoveBackwards", isSkeletal=true } Animation.Setup{ name = "T1_MissGrapple", modelCmp="T1", assetName = "FD_Danny_WR_MissGrapple", isSkeletal=true } Animation.Setup{ name = "T1_IntoGrapple", modelCmp="T1", assetName = "FD_Danny_WR_IntoGrapple", isSkeletal=true } Animation.Setup{ name = "T1_JumpIntoGrapple", modelCmp="T1", assetName = "FD_Danny_WR_JumpIntoGrapple", isSkeletal=true } Animation.Setup{ name = "T1_Grappling", modelCmp="T1", assetName = "FD_Danny_WR_Grappling", isSkeletal=true } Animation.Setup{ name = "T1_Pinning", modelCmp="T1", assetName = "FD_Danny_WR_WinsPin", isSkeletal=true } Animation.Setup{ name = "T1_BeingPinned", modelCmp="T1", assetName = "FD_Danny_WR_LosesPin", isSkeletal=true } --Sound Triggers AnimTrigger.Setup{ name = "DannyAnimSoundTrigger1", animationCmp = "T1_MissGrapple", frame = 0, script = "SoundScript1" } AnimTrigger.Setup{ name = "DannyAnimSoundTrigger2", animationCmp = "T1_BeingPinned", frame = 0, script = "SoundScript2" } AnimTrigger.Setup{ name = "DannyAnimSoundTrigger3", animationCmp = "T1_IntoGrapple", frame = 0, script = "SoundScript6" } AnimTrigger.Setup{ name = "DannyAnimSoundTrigger4", animationCmp = "T1_MoveForward", frame = 0, script = "SoundScript7" } AnimTrigger.Setup{ name = "DannyAnimSoundTrigger5", animationCmp = "T1_MoveBackward", frame = 0, script = "SoundScript9" } --Tom Model.Setup{ name = "T2", assetName = "FD_Tom", pos={ 0, 4, -150 }, blendAnims = true, blendDuration = 0.2, hasShapeAnim=true, rawSkeletonData=true } --Player Anims Animation.Setup{ name = "T2_Idle", modelCmp="T2", assetName = "FD_Tom_WR_Idle", isSkeletal=true } Animation.Setup{ name = "T2_MoveForward", modelCmp="T2", assetName = "FD_Tom_WR_MoveForwards", isSkeletal=true } Animation.Setup{ name = "T2_MoveBackward", modelCmp="T2", assetName = "FD_Tom_WR_MoveBackwards", isSkeletal=true } Animation.Setup{ name = "T2_MissGrapple", modelCmp="T2", assetName = "FD_Tom_WR_MissGrapple", isSkeletal=true } Animation.Setup{ name = "T2_IntoGrapple", modelCmp="T2", assetName = "FD_Tom_WR_IntoGrapple", isSkeletal=true } Animation.Setup{ name = "T2_JumpIntoGrapple", modelCmp="T2", assetName = "FD_Tom_WR_JumpIntoGrapple", isSkeletal=true } Animation.Setup{ name = "T2_Grappling", modelCmp="T2", assetName = "FD_Tom_WR_Grappling", isSkeletal=true } Animation.Setup{ name = "T2_Pinning", modelCmp="T2", assetName = "FD_Tom_WR_WinsPin", isSkeletal=true } Animation.Setup{ name = "T2_BeingPinned", modelCmp="T2", assetName = "FD_Tom_WR_LosesPin", isSkeletal=true } --Sound Triggers AnimTrigger.Setup{ name = "TomAnimSoundTrigger1", animationCmp = "T2_IntoGrapple", frame = 0, script = "SoundScript3" } AnimTrigger.Setup{ name = "TomAnimSoundTrigger2", animationCmp = "T2_MissGrapple", frame = 0, script = "SoundScript4" } AnimTrigger.Setup{ name = "TomAnimSoundTrigger3", animationCmp = "T2_BeingPinned", frame = 0, script = "SoundScript5" } AnimTrigger.Setup{ name = "TomAnimSoundTrigger4", animationCmp = "T2_MoveForward", frame = 0, script = "SoundScript8" } AnimTrigger.Setup{ name = "TomAnimSoundTrigger5", animationCmp = "T2_MoveBackward", frame = 0, script = "SoundScript10" } -- Scene Model.Setup{ name = "Gym", assetName = "e05" } Model.Setup{ name = "Gym_Rings", assetName = "e05_rings" } --Animation.Setup{ name = "Gym_Rings", modelCmp="Gym", assetName = "e05_rings" } ParticleEffect.Setup{ name = "FloatingDust", effectName = "FloatingDust", breffPath = "Microgame/Wrestling/WR_FloatingDust.breff", breftPath = "Microgame/Wrestling/WR_FloatingDust.breft" } ParticleEffect.Setup{ name = "SlamDust", effectName = "WR_slam", breffPath = "Microgame/Wrestling/WR_SlamDust.breff", breftPath = "Microgame/Wrestling/WR_SlamDust.breft" } -- Wrestling Grapple Meter LYTLayout.Setup { name = "GrapplingGauge", archiveName = "OSD/FD_wrestlingBar.arc", layoutName = "FD_wrestlingBar.brlyt", pos = { 0, 135, 0 }, } LYTPane.Setup{ name = "GrapplingGauge_Left_Blue", paneName = "blue_leftEnd", layoutCmp = "GrapplingGauge" } LYTPane.Setup{ name = "GrapplingGauge_Left_Red", paneName = "red_leftEnd", layoutCmp = "GrapplingGauge" } LYTPane.Setup{ name = "GrapplingGauge_Middle_Blue", paneName = "blue_midSection", layoutCmp = "GrapplingGauge" } LYTPane.Setup{ name = "GrapplingGauge_Middle_Red", paneName = "red_midSection", layoutCmp = "GrapplingGauge" } LYTPane.Setup{ name = "GrapplingGauge_Middle_White", paneName = "white_midSection", layoutCmp = "GrapplingGauge" } LYTPane.Setup{ name = "GrapplingGauge_Right_Blue", paneName = "blue_rightEnd", layoutCmp = "GrapplingGauge" } LYTPane.Setup{ name = "GrapplingGauge_Right_Red", paneName = "red_rightEnd", layoutCmp = "GrapplingGauge" } LYTAnimation.Setup{ name = "GrapplingGauge_Fade_In", animName = "FD_wrestlingBar_wrestlingBar_fadeIn.brlan", layoutCmp = "GrapplingGauge" } LYTAnimation.Setup{ name = "GrapplingGauge_Fade_Out", animName = "FD_wrestlingBar_wrestlingBar_fadeOut.brlan", layoutCmp = "GrapplingGauge" } ----------------------------------------------------------------------------------------------- -- I N T R O --------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- Csi.BeginScript( "Intro" ) Scene.SetLightGroup{ name="DefaultLightGroup1" } Scene.SetCameraClipPlanes{ near = 40.0, far = 5000.0 } Scene.SetDof{ focalRange = 500.0, nearFocusDistance = 150.0, farFocusDistance = 10000.0, modelCmp = "T1" } --Scene.SetBloom{ bloomThreshold = 0.9, baseIntensity = 1.0, bloomIntensity = 1.0, baseSaturation = 1.0, bloomSaturation = 1.0 } Scene.SetBloom{ bloomThreshold = 0.6, baseIntensity = 1.0, bloomIntensity = 0.5, baseSaturation = 1.0, bloomSaturation = 1.5 } --FrameController.Play{ name="Gym_Rings", speed=1, offset=0, looping=true } ParticleEffect.Play{ name = "FloatingDust" } FrameController.Play{ name="T1_Idle", speed=1, offset=0, looping=true } FrameController.Play{ name="T2_Idle", speed=1, offset=0, looping=true } Csi.EndScript() ----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- Csi.BeginScript( "SoundScript1" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "Danny_WR_MissGrapple" } Csi.EndScript() Csi.BeginScript( "SoundScript2" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "Danny_WR_LosesPin" } Csi.EndScript() Csi.BeginScript( "SoundScript3" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "Tom_Grapple" } Csi.EndScript() Csi.BeginScript( "SoundScript4" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "Tom_WR_MissGrapple" } Csi.EndScript() Csi.BeginScript( "SoundScript5" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "Tom_WR_LosesPin" } Csi.EndScript() Csi.BeginScript( "SoundScript6" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "Danny_Grapple" } Csi.EndScript() Csi.BeginScript( "SoundScript7" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "DannyMoveForward" } Csi.EndScript() Csi.BeginScript( "SoundScript8" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "TomMoveForward" } Csi.EndScript() Csi.BeginScript( "SoundScript9" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "DannyMoveBackward" } Csi.EndScript() Csi.BeginScript( "SoundScript10" ) SoundBank.Play{ name = "FieldDaySoundBank", event = "TomMoveBackward" } Csi.EndScript()