-- Level file for MuayThaiGym function CreateCameraMen_03() end function CreateFlashesAndFlares_03 (crowd_hooks, arena_large) end function Create_3D_Crowd_03(crowd_hooks) --print(" Create 3D Crowd 03") LUA_MEMSTAT_Begin() CreateCrowdGroup("MStand_Hi_02") CreateCrowdGroup("MStand_Hi_03") CreateCrowdGroup("MStand_Hi_04") CreateCrowdGroup("FStand_Lo_01") CreateCrowdGroup("FStand_Lo_02") CreateCrowdGroup("FStand_Lo_03") CreateCrowdGroup("KSPARR1") CreateCrowdGroup("SAND1") CreateCrowdGroup("SAND2") CreateCrowdGroup("SPARR1") CreateCrowdGroup("BENCH1") CreateCrowdGroup("KSIT1") CreateCrowdGroup("KSIT2") CreateCrowdGroup("MH3") CreateCrowdGroup("MH5") --return true InstantiateCrowd( crowd_hooks, "aud_K_01_PairA", "aud_K_01_PairB", "sud_K_01_T2", "aud_F_00_Med_T1", "aud_F_00_Med_T2", "aud_F_00_Med_T3", "aud_M_04_Med_TA1", "aud_M_04_Med_T2", "aud_M_04_Med_T3", "s_K_01_T4", "s_M_10_T1_Stand", "s_M_10_T1_Sit", "s_M_10_T2", "s_M_10_T4", "s_M_04_TA1_Stand", "s_M_04_T4_Stand", "s_Contender03", "s_Contender02", "aud_M_03_Hi_T1", "aud_M_03_Hi_T2", "aud_M_03_Hi_T3", "aud_M_03_Hi_T4", "aud_M_03_Hi_J3", "aud_M_10_Pair", "sud_M_10_Pair02", "sud_M_10_T3_Sand01", "sud_M_10_T4_Sand02", "sud_M_10_T2_Bench") LUA_MEMSTAT_End("3D_CROWD: InstantiateCrowd") LoadCrowdStateMachine("MStand_Hi_02", "Behavior/NPC/MStand_Hi/MStand_Hi_02/MStand_Hi_02.mbb") LoadCrowdStateMachine("MStand_Hi_03", "Behavior/NPC/MStand_Hi/MStand_Hi_03/MStand_Hi_03.mbb") LoadCrowdStateMachine("MStand_Hi_04", "Behavior/NPC/MStand_Hi/MStand_Hi_04/MStand_Hi_04.mbb") LoadCrowdStateMachine("FStand_Lo_01", "Behavior/NPC/FStand_Lo/FStand_Lo/FStand_Lo.mbb") LoadCrowdStateMachine("FStand_Lo_02", "Behavior/NPC/FStand_Lo/FStand_Lo/FStand_Lo.mbb") LoadCrowdStateMachine("FStand_Lo_03", "Behavior/NPC/FStand_Lo/FStand_Lo/FStand_Lo.mbb") LoadCrowdStateMachine("BENCH1", "Behavior/NPC/MG/BENCH1/BENCH1.mbb") LoadCrowdStateMachine("KSIT1", "Behavior/NPC/MG/KSIT1/KSIT1.mbb") LoadCrowdStateMachine("KSIT2", "Behavior/NPC/MG/KSIT2/KSIT2.mbb") LoadCrowdStateMachine("KSPARR1", "Behavior/NPC/MG/KSPARR1/KSPARR1.mbb") LoadCrowdStateMachine("SAND1", "Behavior/NPC/MG/SAND1/SAND1.mbb") LoadCrowdStateMachine("SAND2", "Behavior/NPC/MG/SAND2/SAND2.mbb") LoadCrowdStateMachine("SPARR1", "Behavior/NPC/MG/SPARR1/SPARR1.mbb") LoadCrowdStateMachine("MH3", "Behavior/NPC/MHotelSit/MHotelSit_03/MHotelSit_03.mbb") LoadCrowdStateMachine("MH5", "Behavior/NPC/MHotelSit/MHotelSit_05/MHotelSit_05.mbb") LUA_MEMSTAT_End("3D_CROWD: State Machine") LoadCrowdAnimationDictionary("MStand_Hi_02", "NPC_MStand_Hi_MStand_Hi_02.PSSG.gz") LoadCrowdAnimationDictionary("MStand_Hi_03", "NPC_MStand_Hi_MStand_Hi_03.PSSG.gz") LoadCrowdAnimationDictionary("MStand_Hi_04", "NPC_MStand_Hi_MStand_Hi_04.PSSG.gz") LoadCrowdAnimationDictionary("FStand_Lo_01", "NPC_FStand_Lo.PSSG.gz") LoadCrowdAnimationDictionary("FStand_Lo_02", "NPC_FStand_Lo.PSSG.gz") LoadCrowdAnimationDictionary("FStand_Lo_03", "NPC_FStand_Lo.PSSG.gz") LoadCrowdAnimationDictionary("KSPARR1", "NPC_Male_MG.PSSG.gz") LoadCrowdAnimationDictionary("SAND1", "NPC_Male_MG.PSSG.gz") LoadCrowdAnimationDictionary("SAND2", "NPC_Male_MG.PSSG.gz") LoadCrowdAnimationDictionary("SPARR1", "NPC_Male_MG.PSSG.gz") LoadCrowdAnimationDictionary("BENCH1", "NPC_Male_MG.PSSG.gz") LoadCrowdAnimationDictionary("KSIT1", "NPC_Male_MG.PSSG.gz") LoadCrowdAnimationDictionary("KSIT2", "NPC_Male_MG.PSSG.gz") LoadCrowdAnimationDictionary("MH3", "NPC_MHotelSit_MHotelSit_03.PSSG.gz") LoadCrowdAnimationDictionary("MH5", "NPC_MHotelSit_MHotelSit_05.PSSG.gz") CrowdAnimInit() LUA_MEMSTAT_End("3D_CROWD: LoadAnimations, AnimInit") LoadCrowdFidgetData("./XML/Crowd_Fidgets.csv") LUA_MEMSTAT_End("Crowd - Fidgets") if IsPlatformPS3() then EnableCrowdHeadTracking("MStand_Hi_02") EnableCrowdHeadTracking("MStand_Hi_03") EnableCrowdHeadTracking("MStand_Hi_04") end AnimateFullCrowd() --current lighting system print("Audience lighting 03") SetAudienceFalloff(1.2) SetAudienceVerticalFalloff(0.63) SetAudienceVerticalFalloffOffset(0.95) SetAudienceGlobalBrightness(1.3) SetAudienceBrightnessClamp(1.47, 0.1) LUA_MEMSTAT_End("Crowd - End function, Misc") end function Create_2D_Crowd_03(crowd_hooks) --print(" Create 2D Crowd 03") end function Create_Arena_Collision_And_Fading_03() AddCollisionPoint(1.3, 3.0, 0.0) AddCollisionPoint(3.0, 1.3, 0.0) AddCollisionPoint(3.0, -1.3, 0.0) AddCollisionPoint(1.3, -3.0, 0.0) AddCollisionPoint(-1.3, -3.0, 0.0) AddCollisionPoint(-3.0, -1.3, 0.0) AddCollisionPoint(-3.0, 1.3, 0.0) AddCollisionPoint(-1.3, 3.0, 0.0) AddFadePlane( "fence_fade_21-node", "fence_fade_08-node", "fence_fade_22-node", "fence_fade_10-node", "fence_fade_02-node", "fence_fade_18-node", "fence_fade_20-node", "fence_fade_17-node", "fence_fade_16-node1", "fence_fade_12-node", "fence_fade_11-node", "fence_fade_16-node", "fence_fade_06-node", "fence_fade_23-node", "fence_fade_14-node", "fence_fade_05-node", "fence_fade_07-node", "fence_fade_09-node", "fence_fade_01-node", "fence_fade_13-node", "fence_fade_03-node", "fence_fade_04-node", "fence_fade_19-node", "fence_fade_15-node" ); end function SetAudio_03() LUA_MEMSTAT_Begin() LoadEventGroup("Supremacy/Ambiences/Muay_Thai-OS") LUA_MEMSTAT_End("*** AUDIO - LoadEventGroup Muay_Thai-OS/oneshot") SetCrowdEventInstance("Supremacy/Ambiences/Muay_Thai/Muay_Thai") SetCrowdPatienceTime( 7.0 ) SetCrowdBooingTime( 3.0 ) EventSystemSetReverbPresetFile("Gym") end function CleanupAudio_03 () LUA_MEMSTAT_Begin() UnloadEventGroup("Supremacy/Ambiences/Muay_Thai-OS") LUA_MEMSTAT_End("***AUDIO - Unload Event Group Muay_Thai-OS/oneshot") EventSystemSetReverbPresetFile("Off") end function GKO_Start_03() StartEventInstance("Supremacy/SFX/Parry/parry_slow_mo") SetEventParameter("Supremacy/Ambiences/Muay_Thai/Muay_Thai", "Slo-Mo", 1) SetEventParameter("Supremacy/Ambiences/Muay_Thai/Muay_Thai", "Crowd_Emotion", 1) end function Celeb_Start_03() StopEventInstance("Supremacy/SFX/Parry/parry_slow_mo") SetEventParameter("Supremacy/Ambiences/Muay_Thai/Muay_Thai", "Slo-Mo", 0) end function Rush_Start_03() StartEventInstance("Supremacy/UI/rush") SetEventParameter("Supremacy/Ambiences/muay_thai/muay_thai", "Rush", 1) end function Rush_End_03() StopEventInstance("Supremacy/UI/rush") SetEventParameter("Supremacy/Ambiences/muay_thai/muay_thai", "Rush", 0) end function Post_Load_Fighters_03(p1, p2) AddBloodDecal(p1.inst, 0, "BloodBrush_64.dds"); AddBloodDecal(p2.inst, 1, "BloodBrush_64.dds"); SetDOFFocusDistance(5.0) SetDOFFocusRange(15.0) SetDOFBlurRange(30.0) -- PARAMS: Contrast, Brightness, Saturation, Temperature, Exposure, Tint if IsPlatformPS3() then SetColorCorrection(0.2, 0.47, 0.45, 0.5, 0.23, 0.5) else SetColorCorrection(0.2, 0.47, 0.45, 0.5, 0.23, 0.5) end SetArenaAmbientColor(0.353, 0.325, 0.243) SetAudienceAmbientColor(1.0, 1.0, 1.0) end