private static void GmSoundPlaySEForce( string cue_name, AppMain.GSS_SND_SE_HANDLE se_handle, bool dontplay) { AppMain.GsSoundPlaySeForce(cue_name, se_handle, 0, dontplay); }
public void Clear() { this.tcb_post = (AppMain.MTS_TASK_TCB)null; this.flag_render_front = this.flag_render_back = false; this.render_target_front = this.render_target_back = (AppMain.AMS_RENDER_TARGET)null; this.state_loop = 0; this.se_handle = (AppMain.GSS_SND_SE_HANDLE)null; for (int index = 0; index < this.motion_frame_loop.Length; ++index) { this.motion_frame_loop[index] = 0; } }
private void fadeInStart(int prio) { if (!AppMain.CMain_PauseMenu.canGoStageSelect()) { AppMain.CMain_PauseMenu.local_create_action_table[11].idx = 2; AppMain.CMain_PauseMenu.local_create_action_table[14].idx = 7; } else { AppMain.CMain_PauseMenu.local_create_action_table[11].idx = 1; AppMain.CMain_PauseMenu.local_create_action_table[14].idx = 5; } AppMain.CMain_PauseMenu.local_create_action_table[13].idx = !AppMain.CMain_PauseMenu.isSpecialStage() ? 4 : 6; for (int index = 0; index < 17; ++index) { AppMain.CMain_PauseMenu.SLocalCreateActionTable createActionTable = AppMain.CMain_PauseMenu.local_create_action_table[index]; AppMain.A2S_AMA_HEADER ama = (AppMain.A2S_AMA_HEADER) this.m_file[createActionTable.file]; AppMain.CMain_PauseMenu.SAction saction = this.m_act[index]; saction.act = AppMain.AoActCreate(ama, (uint)createActionTable.idx); saction.tex = this.m_tex[createActionTable.tex]; saction.flag[0] = true; saction.flag[1] = true; saction.AcmInit(); } for (int index = 0; index < 3; ++index) { AppMain.CMain_PauseMenu.SAction saction = this.m_act[AppMain.CMain_PauseMenu.c_local_create_trg_table[index]]; this.m_trg[index].Create(saction.act); } this.m_flag[7] = true; this.m_act[0].flag[1] = false; this.m_act[0].scale = new Vector2(0.0f, 0.0f); this.m_se_handle = AppMain.GsSoundAllocSeHandle(); this.AttachTask("gmPauseMenu.Execute", (uint)prio, 0U, 0U); this.playSe(0); this.m_procCount.SetProc(new AppMain.ITaskAsv.FProc(this.fadeIn)); }
private static void GmSoundPlaySEForce(string cue_name, AppMain.GSS_SND_SE_HANDLE se_handle) { AppMain.GsSoundPlaySeForce(cue_name, se_handle, 0, false); }
public static void gmGmkTruckSetMoveSeParam( AppMain.OBS_OBJECT_WORK obj_work, AppMain.GSS_SND_SE_HANDLE h_snd, AppMain.GMS_PLAYER_WORK ply_work, int b_goal) { float val = 0.0f; if (h_snd == null) { return; } AppMain.OBS_OBJECT_WORK obsObjectWork = ply_work == null ? obj_work : ply_work.obj_work; int num1 = AppMain.MTM_MATH_ABS(obsObjectWork.spd_m); if (((int)obsObjectWork.move_flag & 1) != 0 && num1 >= AppMain.GMD_GMK_TRUCK_SE_MIN_SPD) { if (num1 >= AppMain.GMD_GMK_TRUCK_SE_MAX_SPD) { val = 1f; } else { val = AppMain.FXM_FX32_TO_FLOAT(AppMain.FX_Div(num1 - AppMain.GMD_GMK_TRUCK_SE_MIN_SPD, AppMain.GMD_GMK_TRUCK_SE_MAX_SPD - AppMain.GMD_GMK_TRUCK_SE_MIN_SPD)); if ((double)val > 1.0) { val = 1f; } } } h_snd.au_player.SetAisac("Speed", val); if (b_goal == 0) { return; } AppMain.OBS_CAMERA obsCamera = AppMain.ObjCameraGet(AppMain.g_obj.glb_camera_id); float num2 = AppMain.FXM_FX32_TO_FLOAT(obsObjectWork.pos.x) - obsCamera.disp_pos.x; float num3 = AppMain.FXM_FX32_TO_FLOAT(obsObjectWork.pos.y) - -obsCamera.disp_pos.y; float num4; if ((double)num2 < (double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST && (double)num3 < (double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST) { float num5 = (float)((double)num2 * (double)num2 + (double)num3 * (double)num3); if ((double)num5 <= (double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MIN_DIST * (double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MIN_DIST) { num4 = 1f; } else if ((double)num5 <= (double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST * (double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST) { num4 = (float)(((double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST * (double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST - (double)num5) / (((double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST - (double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MIN_DIST) * ((double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST - (double)AppMain.GMD_GMK_TRUCK_SE_GOAL_MIN_DIST))); if ((double)num4 > 1.0) { num4 = 1f; } else if ((double)num4 < 0.0) { num4 = 0.0f; } } else { num4 = 0.0f; } } else { num4 = 0.0f; } h_snd.snd_ctrl_param.volume = num4; }
// Token: 0x06000678 RID: 1656 RVA: 0x00039ECC File Offset: 0x000380CC public static void gmGmkTruckSetMoveSeParam(AppMain.OBS_OBJECT_WORK obj_work, AppMain.GSS_SND_SE_HANDLE h_snd, AppMain.GMS_PLAYER_WORK ply_work, int b_goal) { float num = 0f; if (h_snd == null) { return; } AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK; if (ply_work != null) { obs_OBJECT_WORK = ply_work.obj_work; } else { obs_OBJECT_WORK = obj_work; } int num2 = AppMain.MTM_MATH_ABS(obs_OBJECT_WORK.spd_m); if ((obs_OBJECT_WORK.move_flag & 1U) != 0U && num2 >= AppMain.GMD_GMK_TRUCK_SE_MIN_SPD) { if (num2 >= AppMain.GMD_GMK_TRUCK_SE_MAX_SPD) { num = 1f; } else { num = AppMain.FXM_FX32_TO_FLOAT(AppMain.FX_Div(num2 - AppMain.GMD_GMK_TRUCK_SE_MIN_SPD, AppMain.GMD_GMK_TRUCK_SE_MAX_SPD - AppMain.GMD_GMK_TRUCK_SE_MIN_SPD)); if (num > 1f) { num = 1f; } } } h_snd.au_player.SetAisac("Speed", num); if (b_goal != 0) { AppMain.OBS_CAMERA obs_CAMERA = AppMain.ObjCameraGet(AppMain.g_obj.glb_camera_id); float num3 = AppMain.FXM_FX32_TO_FLOAT(obs_OBJECT_WORK.pos.x) - obs_CAMERA.disp_pos.x; float num4 = AppMain.FXM_FX32_TO_FLOAT(obs_OBJECT_WORK.pos.y) - -obs_CAMERA.disp_pos.y; float num6; if (num3 < AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST && num4 < AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST) { float num5 = num3 * num3 + num4 * num4; if (num5 <= AppMain.GMD_GMK_TRUCK_SE_GOAL_MIN_DIST * AppMain.GMD_GMK_TRUCK_SE_GOAL_MIN_DIST) { num6 = 1f; } else if (num5 <= AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST * AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST) { num6 = (AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST * AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST - num5) / ((AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST - AppMain.GMD_GMK_TRUCK_SE_GOAL_MIN_DIST) * (AppMain.GMD_GMK_TRUCK_SE_GOAL_MAX_DIST - AppMain.GMD_GMK_TRUCK_SE_GOAL_MIN_DIST)); if (num6 > 1f) { num6 = 1f; } else if (num6 < 0f) { num6 = 0f; } } else { num6 = 0f; } } else { num6 = 0f; } h_snd.snd_ctrl_param.volume = num6; } }