Пример #1
0
    // Token: 0x06001563 RID: 5475 RVA: 0x000B9B34 File Offset: 0x000B7D34
    private static void gmGmkLoopExecuteCamera(int loop_x, int loop_y)
    {
        OBS_CAMERA obs_CAMERA = ObjCamera.Get(0);

        GmCamera.PosSet(AppMain.FX_F32_TO_FX32(obs_CAMERA.pos.x) + loop_x, -AppMain.FX_F32_TO_FX32(obs_CAMERA.pos.y) + loop_y, AppMain.FX_F32_TO_FX32(obs_CAMERA.pos.z));
        AppMain.ObjObjectCameraSet(AppMain.FXM_FLOAT_TO_FX32(obs_CAMERA.disp_pos.x - ( float )(AppMain.OBD_LCD_X / 2)), AppMain.FXM_FLOAT_TO_FX32(-obs_CAMERA.disp_pos.y - ( float )(AppMain.OBD_LCD_Y / 2)), AppMain.FXM_FLOAT_TO_FX32(obs_CAMERA.disp_pos.x - ( float )(AppMain.OBD_LCD_X / 2)), AppMain.FXM_FLOAT_TO_FX32(-obs_CAMERA.disp_pos.y - ( float )(AppMain.OBD_LCD_Y / 2)));
        GmCamera.SetClipCamera(obs_CAMERA);
    }
Пример #2
0
    // Token: 0x06000DC8 RID: 3528 RVA: 0x00079848 File Offset: 0x00077A48
    private static OBS_OBJECT_WORK GmGmkStartInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type)
    {
        if ((AppMain.g_gs_main_sys_info.game_flag & 4U) == 0U)
        {
            AppMain.g_gm_main_system.resume_pos_x = pos_x;
            AppMain.g_gm_main_system.resume_pos_y = pos_y - 4096;
        }

        eve_rec.pos_x = byte.MaxValue;
        GmCamera.PosSet(AppMain.g_gm_main_system.resume_pos_x, AppMain.g_gm_main_system.resume_pos_y, 0);
        OBS_CAMERA obs_CAMERA = ObjCamera.Get(AppMain.g_obj.glb_camera_id);

        AppMain.ObjObjectCameraSet(
            AppMain.FXM_FLOAT_TO_FX32((obs_CAMERA.disp_pos.x - (float)(AppMain.OBD_LCD_X / 2))),
            AppMain.FXM_FLOAT_TO_FX32((-obs_CAMERA.disp_pos.y - (float)(AppMain.OBD_LCD_Y / 2))),
            AppMain.FXM_FLOAT_TO_FX32((obs_CAMERA.disp_pos.x - (float)(AppMain.OBD_LCD_X / 2))),
            AppMain.FXM_FLOAT_TO_FX32((-obs_CAMERA.disp_pos.y - (float)(AppMain.OBD_LCD_Y / 2))));
        GmCamera.SetClipCamera(obs_CAMERA);
        return(null);
    }
Пример #3
0
    // Token: 0x06000266 RID: 614 RVA: 0x000139A0 File Offset: 0x00011BA0
    private static void gmGmkStopperStay_Slot_100(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_STOPPER_WORK gms_GMK_STOPPER_WORK = (AppMain.GMS_GMK_STOPPER_WORK)obj_work;
        if (gms_GMK_STOPPER_WORK.ply_work != AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)] ||
            gms_GMK_STOPPER_WORK.ply_work.gmk_obj != obj_work || gms_GMK_STOPPER_WORK.ply_work.seq_state != 40)
        {
            AppMain.gmGmkStopperReset(obj_work);
            return;
        }

        OBS_CAMERA obs_CAMERA = ObjCamera.Get(0);

        GmCamera.PosSet(AppMain.FXM_FLOAT_TO_FX32(obs_CAMERA.pos.x),
                        AppMain.FXM_FLOAT_TO_FX32(-obs_CAMERA.pos.y) + 16384, AppMain.FXM_FLOAT_TO_FX32(obs_CAMERA.pos.z));
        if (AppMain.GmGmkSlotIsStatus(gms_GMK_STOPPER_WORK.call_slot_id) != 0)
        {
            obj_work.disp_flag &= 4294967291U;
            obj_work.ppFunc     = AppMain.gmGmkStopperStay_Slot_110;
            AppMain.gmGmkStopperStay_Slot_110(obj_work);
        }
    }
Пример #4
0
    // Token: 0x06000263 RID: 611 RVA: 0x0001377C File Offset: 0x0001197C
    private static void gmGmkStopperStay_Norm_100(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_STOPPER_WORK gms_GMK_STOPPER_WORK = (AppMain.GMS_GMK_STOPPER_WORK)obj_work;
        if (gms_GMK_STOPPER_WORK.ply_work != AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)] ||
            gms_GMK_STOPPER_WORK.ply_work.gmk_obj != obj_work || gms_GMK_STOPPER_WORK.ply_work.seq_state != 40)
        {
            AppMain.gmGmkStopperReset(obj_work);
            return;
        }

        OBS_CAMERA obs_CAMERA = ObjCamera.Get(0);

        GmCamera.PosSet(AppMain.FXM_FLOAT_TO_FX32(obs_CAMERA.pos.x),
                        AppMain.FXM_FLOAT_TO_FX32(-obs_CAMERA.pos.y) + 16384, AppMain.FXM_FLOAT_TO_FX32(obs_CAMERA.pos.z));
        AppMain.GMS_GMK_STOPPER_WORK gms_GMK_STOPPER_WORK2 = gms_GMK_STOPPER_WORK;
        gms_GMK_STOPPER_WORK2.player_pass_timer -= 1;
        if (gms_GMK_STOPPER_WORK.player_pass_timer <= 0)
        {
            obj_work.disp_flag &= 4294967291U;
            AppMain.gmGmkStopperStay_Norm_110(obj_work);
            return;
        }

        if (gms_GMK_STOPPER_WORK.player_pass_timer % 16 == 0)
        {
            GmPlayer.AddScore(gms_GMK_STOPPER_WORK.ply_work, 1000, gms_GMK_STOPPER_WORK.ply_work.obj_work.pos.x,
                              gms_GMK_STOPPER_WORK.ply_work.obj_work.pos.y);
            GsSound.StopSE(gms_GMK_STOPPER_WORK.se_handle);
            gms_GMK_STOPPER_WORK.se_handle.snd_ctrl_param.pitch =
                0.8f - (float)gms_GMK_STOPPER_WORK.player_pass_timer / 160f;
            GmSound.PlaySE("Casino3", gms_GMK_STOPPER_WORK.se_handle);
            if (gms_GMK_STOPPER_WORK.player_pass_timer <= 16)
            {
                GmSound.PlaySE("Casino3_1");
            }
        }
    }