-- Level file for Thai MMA Arena function CreateCameraMen_12() end function CreateFlashesAndFlares_12 (crowd_hooks, arena_large) Set2DCrowdAnimationSpeed( 0.15 ) Instantiate2DCrowd( crowd_hooks, "camflash_A", "CameraFlash_camflash_A.PSSG.gz", "camflash_A", 1.0, 1.0, "camflash_B", "CameraFlash_camflash_B.PSSG.gz", "camflash_B", 2.0, 2.0) InstantiateLensFlares( crowd_hooks, "LightFlareA", "LightFlare_LightFlareA.PSSG.gz", "LightFlareA_000.dds", 6.0, 0.06, "LightFlareE", "LightFlare_LightFlareE.PSSG.gz", "LightFlareE_000.dds", 3.0, 0.03 ) end function Create_3D_Crowd_12(crowd_hooks) --print(" Create 3D Crowd 12") LUA_MEMSTAT_Begin() CreateCrowdGroup("M1") CreateCrowdGroup("M2") CreateCrowdGroup("M3") CreateCrowdGroup("M4") CreateCrowdGroup("M5") CreateCrowdGroup("MA1") CreateCrowdGroup("MA2") CreateCrowdGroup("F1") CreateCrowdGroup("F2") CreateCrowdGroup("F3") CreateCrowdGroup("F4") CreateCrowdGroup("F5") if IsPlatformPS3() then InstantiateCrowd( crowd_hooks, "aud_M_00_Med_T1", "aud_M_00_Med_T2", "aud_M_00_Med_T3", "aud_M_00_Med_T4", "aud_M_00_Lo_J1", "aud_M_03_Lo_T2", "aud_M_03_Lo_T3", "aud_M_01_Med_J1", "aud_M_01_Med_J2", "aud_M_01_Med_J3", "aud_M_01_Med_J4", "aud_M_02_Med_T1", "aud_M_02_Med_T2", "aud_M_02_Med_T3", "aud_M_02_Med_T4", "aud_M_03_Lo_T4", "aud_M_04_Lo_T1", "aud_M_04_Lo_T2", "aud_M_04_Lo_T3", "aud_M_04_Lo_T4", "aud_M_03_Med_T1", "aud_M_03_Med_T2", "aud_M_03_Med_T3", "s_M_03_Med_T4_drink", "s_M_03_Med_J3_drink", "s_M_04_Med_T4_drink", "aud_M_03_Med_T4", "aud_M_03_Lo_T1", "aud_M_03_Lo_J3", "aud_M_03_Lo_J4", "aud_M_05_Lo_R1", "aud_M_05_Lo_R2", "aud_M_05_Lo_R3", "aud_M_05_Lo_R4", "aud_F_00_Med_T1", "aud_F_00_Med_T2", "aud_F_00_Med_T3", "aud_F_00_Med_T4", "aud_F_04_Med_A1", "aud_F_04_Med_A2", "aud_F_04_Med_A3", "aud_F_04_Med_A4", "aud_F_04_Lo_A1", "aud_F_04_Lo_A2", "aud_F_04_Lo_A3", "aud_F_04_Lo_A4", "aud_F_02_Lo_A1", "aud_F_02_Lo_A2", "aud_F_02_Lo_A3", "aud_F_02_Lo_A4") else InstantiateCrowd( crowd_hooks, "aud_M_00_Lo_T2", "aud_M_00_Lo_T3", "aud_M_00_Lo_T4", "aud_M_01_Med_J2", "aud_M_01_Med_J4", "aud_M_02_Med_T2", "aud_M_04_Lo_T1", "aud_M_04_Lo_T2", "aud_M_04_Lo_T3", "aud_M_04_Lo_T4", "aud_M_03_Lo_T1", "aud_M_03_Lo_T2", "aud_M_03_Lo_T3", "s_M_03_Med_J3_drink", "s_M_04_Med_T4_drink", "aud_M_03_Lo_T4", "aud_M_03_Lo_J3", "aud_F_00_Lo_T1", "aud_F_00_Lo_T2", "aud_F_00_Lo_T3", "aud_F_00_Lo_T4", "aud_F_04_Lo_A1", "aud_F_04_Lo_A2", "aud_F_04_Lo_A3", "aud_F_04_Lo_A4") end LUA_MEMSTAT_End("3D_CROWD: InstantiateCrowd") LoadCrowdStateMachine("M1", "Behavior/NPC/MSit_Lo/MSit_Lo/MSit_Lo.mbb") LoadCrowdStateMachine("M2", "Behavior/NPC/MSit_Lo/MSit_Lo/MSit_Lo.mbb") LoadCrowdStateMachine("M3", "Behavior/NPC/MSit_Lo/MSit_Lo/MSit_Lo.mbb") LoadCrowdStateMachine("M4", "Behavior/NPC/MSit_Lo/MSit_Lo/MSit_Lo.mbb") LoadCrowdStateMachine("M5", "Behavior/NPC/MSit_Lo/MSit_Lo/MSit_Lo.mbb") LoadCrowdStateMachine("MA1", "Behavior/NPC/MAmbSit_Lo/MAmbSit_Lo_01/MAmbSit_Lo_01.mbb") LoadCrowdStateMachine("MA2", "Behavior/NPC/MAmbSit_Lo/MAmbSit_Lo_02/MAmbSit_Lo_02.mbb") LoadCrowdStateMachine("F1", "Behavior/NPC/FSit_Lo/FSit_Lo/FSit_Lo.mbb") LoadCrowdStateMachine("F2", "Behavior/NPC/FSit_Lo/FSit_Lo/FSit_Lo.mbb") LoadCrowdStateMachine("F3", "Behavior/NPC/FSit_Lo/FSit_Lo/FSit_Lo.mbb") LoadCrowdStateMachine("F4", "Behavior/NPC/FSit_Lo/FSit_Lo/FSit_Lo.mbb") LoadCrowdStateMachine("F5", "Behavior/NPC/FSit_Lo/FSit_Lo/FSit_Lo.mbb") LUA_MEMSTAT_End("3D_CROWD: StateMachine") LoadCrowdAnimationDictionary("M1", "NPC_MSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("M2", "NPC_MSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("M3", "NPC_MSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("M4", "NPC_MSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("M5", "NPC_MSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("MA1", "NPC_MAmbSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("MA2", "NPC_MAmbSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("F1", "NPC_FSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("F2", "NPC_FSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("F3", "NPC_FSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("F4", "NPC_FSit_Lo.PSSG.gz") LoadCrowdAnimationDictionary("F5", "NPC_FSit_Lo.PSSG.gz") CrowdAnimInit() LUA_MEMSTAT_End("3D_CROWD: LoadAnimations, AnimInit") LoadCrowdFidgetData("./XML/Crowd_Fidgets.csv") AnimateFullCrowd() -- current lighting system print("setting Crowd lighting 12") SetAudienceFalloff(0.74) SetAudienceVerticalFalloff(-0.09) SetAudienceVerticalFalloffOffset(1.50) SetAudienceGlobalBrightness(0.90) SetAudienceBrightnessClamp(1.47, 0.1) end function Create_2D_Crowd_12(crowd_hooks) print(" Create 2D Crowd 12") end function Create_Arena_Collision_And_Fading_12() 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) AddCollisionPoint(1.3, 3.0, 0.0) AddCollisionPoint(3.0, 1.3, 0.0) AddFadePlane( "fence_fade_cage07-node", "fence_fade_cage18-node", "fence_fade_cage06-node", "fence_fade_cage11-node", "fence_fade_cage16-node", "fence_fade_cage20-node", "fence_fade_cage13-node", "fence_fade_cage05-node", "fence_fade_cage08-node", "fence_fade_cage09-node", "fence_fade_cage19-node", "fence_fade_cage14-node", "fence_fade_cage23-node", "fence_fade_cage21-node", "fence_fade_cage22-node", "fence_fade_cage00-node", "fence_fade_cage01-node", "fence_fade_cage10-node", "fence_fade_cage12-node", "fence_fade_cage15-node", "fence_fade_cage02-node", "fence_fade_cage17-node", "fence_fade_cage03-node", "fence_fade_cage04-node" ); end function SetAudio_12() LUA_MEMSTAT_Begin() LoadEventGroup("Supremacy/Ambiences/Thai-OS") LUA_MEMSTAT_End("*** AUDIO - LoadEventGroup Arena-OS") SetCrowdEventInstance("Supremacy/Ambiences/Thai/Thai") SetCrowdPatienceTime( 7.0 ) SetCrowdBooingTime( 3.0 ) EventSystemSetReverbPresetFile("Stadium") end function CleanupAudio_14() LUA_MEMSTAT_Begin() UnloadEventGroup("Supremacy/Ambiences/Thai-OS") LUA_MEMSTAT_End("***AUDIO - Unload Event Group Arena-OS") EventSystemSetReverbPresetFile("Off") end function GKO_Start_14() StartEventInstance("Supremacy/SFX/Parry/parry_slow_mo") SetEventParameter("Supremacy/Ambiences/Thai/Thai", "Slo-Mo", 1) SetEventParameter("Supremacy/Ambiences/Thai/Thai", "Crowd_Emotion", 1) end function Celeb_Start_14() StopEventInstance("Supremacy/SFX/Parry/parry_slow_mo") SetEventParameter("Supremacy/Ambiences/Thai/Thai", "Slo-Mo", 0) end function Rush_Start_14() StartEventInstance("Supremacy/UI/rush") SetEventParameter("Supremacy/Ambiences/Thai/Thai", "Rush", 1) end function Rush_End_14() StopEventInstance("Supremacy/UI/rush") SetEventParameter("Supremacy/Ambiences/Thai/Thai", "Rush", 0) end function Post_Load_Fighters_12(p1, p2) AddBloodDecal(p1.inst, 0, "BloodBrush_64.dds"); AddBloodDecal(p2.inst, 1, "BloodBrush_64.dds"); SetDOFFocusDistance(5.0) SetDOFFocusRange(14.0) SetDOFBlurRange(16.5) -- PARAMS: Contrast, Brightness, Saturation, Temperature, Exposure, Tint if IsPlatformPS3() then SetColorCorrection(0.2, 0.5, 0.35, 0.52, 0.2, 0.5) else SetColorCorrection(0.2, 0.48, 0.35, 0.52, 0.2, 0.5) end SetArenaAmbientColor(0.247, 0.294, 0.361) SetAudienceAmbientColor(0.96, 0.96, 0.86) end