コード例 #1
0
    // Token: 0x06001238 RID: 4664 RVA: 0x0009F600 File Offset: 0x0009D800
    private static void gmGmkDrainTankOutMainSplash(OBS_OBJECT_WORK obj_work)
    {
        GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];

        if ((gms_PLAYER_WORK.player_flag & 1024U) != 0U)
        {
            AppMain.gmGmkDrainTankOutUpdateDie(obj_work);
            return;
        }
        if (AppMain.gmGmkDrainTankOutCheckDeleteTask(obj_work, 1638400, 1228800))
        {
            AppMain.gmGmkDrainTankOutRequestDeleteTask(obj_work);
            return;
        }
        AppMain.GMS_GMK_DRAIN_TANK_OUT_WORK gms_GMK_DRAIN_TANK_OUT_WORK = (AppMain.GMS_GMK_DRAIN_TANK_OUT_WORK)obj_work;
        OBS_OBJECT_WORK obj_work2 = gms_PLAYER_WORK.obj_work;

        AppMain.GmWaterSurfaceRequestAddWatarLevel(0.001f, 0, true);
        OBS_CAMERA obs_CAMERA = ObjCamera.Get(0);

        obs_CAMERA.roll = gms_GMK_DRAIN_TANK_OUT_WORK.camera_roll;
        if (gms_GMK_DRAIN_TANK_OUT_WORK.base_pos_x < obj_work2.pos.x)
        {
            obj_work2.move_flag |= 128U;
            obj_work2.move_flag &= 4294967039U;
            obj_work2.spd.x      = 65536;
            obj_work2.spd_add.x  = -896;
            GmPlayer.CameraOffsetSet(gms_PLAYER_WORK, 0, 0);
            GmCamera.AllowReset();
            AppMain.gmGmkDrainTankOutChangeModeEnd(obj_work);
        }
    }
コード例 #2
0
    // Token: 0x06001233 RID: 4659 RVA: 0x0009F0E8 File Offset: 0x0009D2E8
    private static void gmGmkDrainTankOutChangeModeSplash(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_ENEMY_3D_WORK           gms_ENEMY_3D_WORK           = (AppMain.GMS_ENEMY_3D_WORK)obj_work;
        AppMain.GMS_GMK_DRAIN_TANK_OUT_WORK gms_GMK_DRAIN_TANK_OUT_WORK = (AppMain.GMS_GMK_DRAIN_TANK_OUT_WORK)gms_ENEMY_3D_WORK;
        GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];
        OBS_OBJECT_WORK obj_work2       = gms_PLAYER_WORK.obj_work;

        if (gms_GMK_DRAIN_TANK_OUT_WORK.flag_dir_left)
        {
            obj_work2.spd.x = -65536;
        }
        else
        {
            obj_work2.spd.x = 65536;
        }
        obj_work2.pos.y      = obj_work.pos.y;
        obj_work2.move_flag |= 256U;
        GmPlayer.BreathingSet(gms_PLAYER_WORK);
        obj_work.move_flag |= 256U;
        AppMain.g_gm_main_system.game_flag |= 8192U;
        AppMain.GmEventMgrLocalEventBirth(305, obj_work.pos.x, obj_work.pos.y + 65536, gms_ENEMY_3D_WORK.ene_com.eve_rec.flag, gms_ENEMY_3D_WORK.ene_com.eve_rec.left, gms_ENEMY_3D_WORK.ene_com.eve_rec.top, gms_ENEMY_3D_WORK.ene_com.eve_rec.width, gms_ENEMY_3D_WORK.ene_com.eve_rec.height, 0);
        GmSound.PlaySE("Fluid2");
        AppMain.GMM_PAD_VIB_SMALL();
        GmPlayer.CameraOffsetSet(gms_PLAYER_WORK, 0, 0);
        GmCamera.AllowReset();
        obj_work.ppFunc = AppMain.gmGmkDrainTankOutMainSplash;
    }
コード例 #3
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);
    }
コード例 #4
0
 // Token: 0x06000265 RID: 613 RVA: 0x00013948 File Offset: 0x00011B48
 private static void gmGmkStopperStay_Slot(OBS_OBJECT_WORK obj_work)
 {
     AppMain.ObjDrawObjectActionSet3DNNMaterial(obj_work, 0);
     obj_work.disp_flag &= 4294967279U;
     obj_work.disp_flag |= 4U;
     obj_work.ppFunc     = AppMain.gmGmkStopperStay_Slot_100;
     GmCamera.AllowSet(15f, 56f, 0f);
 }
コード例 #5
0
    // Token: 0x0600122F RID: 4655 RVA: 0x0009EFE0 File Offset: 0x0009D1E0
    private static void gmGmkDrainTankOutRequestDeleteTask(OBS_OBJECT_WORK obj_work)
    {
        GMS_PLAYER_WORK ply_work = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];

        GmPlayer.CameraOffsetSet(ply_work, 0, 0);
        GmCamera.AllowReset();
        AppMain.GmWaterSurfaceRequestChangeWaterLevel(ushort.MaxValue, 0, false);
        obj_work.ppFunc = AppMain.gmGmkDrainTankOutMainWaitDelete;
    }
コード例 #6
0
 // Token: 0x06000262 RID: 610 RVA: 0x00013710 File Offset: 0x00011910
 private static void gmGmkStopperStay_Norm(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_STOPPER_WORK gms_GMK_STOPPER_WORK = (AppMain.GMS_GMK_STOPPER_WORK)obj_work;
     AppMain.ObjDrawObjectActionSet3DNNMaterial(obj_work, 0);
     obj_work.disp_flag &= 4294967279U;
     obj_work.disp_flag |= 4U;
     gms_GMK_STOPPER_WORK.player_pass_timer = 143;
     obj_work.ppFunc = AppMain.gmGmkStopperStay_Norm_100;
     GmCamera.AllowSet(15f, 32f, 0f);
 }
コード例 #7
0
 // Token: 0x06001258 RID: 4696 RVA: 0x000A06EC File Offset: 0x0009E8EC
 public static void GmEndingStart()
 {
     AppMain.g_gm_main_system.game_flag |= 8388608U;
     AppMain.GmFixSetDispEx(false, false, false, true, false);
     AppMain.gm_ending_tcb = AppMain.MTM_TASK_MAKE_TCB(AppMain.gmEndingCtrl, null, 0U, 0, 18448U, 5, () => new AppMain.GMS_ENDING_WORK(), "ENDING_CTRL");
     AppMain.GMS_ENDING_WORK gms_ENDING_WORK = (AppMain.GMS_ENDING_WORK)AppMain.gm_ending_tcb.work;
     gms_ENDING_WORK.step  = 0;
     gms_ENDING_WORK.flag  = 1U;
     gms_ENDING_WORK.timer = 16U;
     GmCamera.AllowSet(0f, 50f, 0f);
     AppMain.g_gm_main_system.map_fcol.bottom = AppMain.g_gm_main_system.map_fcol.bottom - 32;
 }
コード例 #8
0
    // Token: 0x06000FEE RID: 4078 RVA: 0x0008AF00 File Offset: 0x00089100
    private static void gmGmkRockChaseMainFall(OBS_OBJECT_WORK obj_work)
    {
        if ((obj_work.move_flag & 1U) != 0U)
        {
            GmSound.PlaySE("BigRock1");
            GmCamera.VibrationSet(0, 12288, 0);
            AppMain.gmGmkRockChaseChangeModeChase(obj_work);
            return;
        }
        OBS_OBJECT_WORK obj_work2 = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)].obj_work;

        if (obj_work2.pos.y < obj_work.pos.y - 2097152)
        {
            AppMain.gmGmkRockChaseChangeModeEnd(obj_work);
        }
    }
コード例 #9
0
    // Token: 0x06000FF3 RID: 4083 RVA: 0x0008B430 File Offset: 0x00089630
    private static void gmGmkRockFallMainStart(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_ROCK_FALL_WORK gms_GMK_ROCK_FALL_WORK = (AppMain.GMS_GMK_ROCK_FALL_WORK)obj_work;
        OBS_OBJECT_WORK obs_OBJECT_WORK = (OBS_OBJECT_WORK)gms_GMK_ROCK_FALL_WORK.hook_work;

        if (obs_OBJECT_WORK.pos.y + 98304 > obj_work.pos.y)
        {
            return;
        }
        AppMain.GMS_EFFECT_3DES_WORK gms_EFFECT_3DES_WORK = AppMain.GmEfctZoneEsCreate(obj_work, 2, 17);
        gms_EFFECT_3DES_WORK.efct_com.obj_work.pos.z = 131072;
        GmSound.PlaySE("BigRock4");
        obj_work.pos.y = obs_OBJECT_WORK.pos.y + 98304;
        GmCamera.VibrationSet(0, 4096, 0);
        obj_work.move_flag &= 4294967167U;
        obj_work.spd.y      = 0;
        obj_work.ppFunc     = AppMain.gmGmkRockFallMainWait;
    }
コード例 #10
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);
    }
コード例 #11
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);
        }
    }
コード例 #12
0
    // Token: 0x06001235 RID: 4661 RVA: 0x0009F254 File Offset: 0x0009D454
    private static void gmGmkDrainTankOutMainReady(OBS_OBJECT_WORK obj_work)
    {
        GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];
        OBS_OBJECT_WORK obj_work2       = gms_PLAYER_WORK.obj_work;

        AppMain.GMS_GMK_DRAIN_TANK_OUT_WORK gms_GMK_DRAIN_TANK_OUT_WORK = (AppMain.GMS_GMK_DRAIN_TANK_OUT_WORK)obj_work;
        if ((gms_PLAYER_WORK.player_flag & 1024U) != 0U)
        {
            AppMain.gmGmkDrainTankOutUpdateDie(obj_work);
            int num = (int)AppMain.FX_FX32_TO_F32(gms_GMK_DRAIN_TANK_OUT_WORK.base_pos_x);
            num /= 64;
            num -= 3;
            num *= 262144;
            if (obj_work2.pos.x < num)
            {
                AppMain.g_gm_main_system.game_flag |= 8192U;
            }
            obj_work.spd.x = 0;
            obj_work.spd.y = 0;
            return;
        }
        if (AppMain.gmGmkDrainTankOutCheckDeleteTask(obj_work, 1843200, 1228800))
        {
            AppMain.gmGmkDrainTankOutRequestDeleteTask(obj_work);
            return;
        }
        int num2 = (int)(AppMain.gmGmkDrainTankGameSystemGetWaterLevel() * 4096);

        if (num2 + 196608 < obj_work2.pos.y)
        {
            AppMain.gmGmkDrainTankOutChangeModeWait(obj_work);
            gms_GMK_DRAIN_TANK_OUT_WORK.flag_dir_left = AppMain.gmGmkDrainTankOutCheckDirLeft(obj_work, obj_work2);
            int x = obj_work2.spd.x;
            AppMain.GmPlySeqInitDrainTank(gms_PLAYER_WORK);
            gms_GMK_DRAIN_TANK_OUT_WORK.player_offset_x += x * 5;
            AppMain.gmGmkDrainTankOutUpdateCameraOffset(gms_PLAYER_WORK, gms_GMK_DRAIN_TANK_OUT_WORK);
            GmCamera.AllowSet(10f, 10f, 10f);
        }
    }
コード例 #13
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");
            }
        }
    }
コード例 #14
0
    // Token: 0x06000FEF RID: 4079 RVA: 0x0008AF6C File Offset: 0x0008916C
    private static void gmGmkRockChaseMainChase(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_ROCK_CHASE_WORK gms_GMK_ROCK_CHASE_WORK = (AppMain.GMS_GMK_ROCK_CHASE_WORK)obj_work;
        AppMain.GMS_ENEMY_3D_WORK       gms_ENEMY_3D_WORK       = (AppMain.GMS_ENEMY_3D_WORK)obj_work;
        OBS_OBJECT_WORK target_obj = gms_ENEMY_3D_WORK.ene_com.target_obj;
        int             num        = target_obj.pos.x - obj_work.pos.x;
        uint            num2       = AppMain.gmGmkRockChaseGetDirType(gms_GMK_ROCK_CHASE_WORK);

        if (num2 == 0U)
        {
            if (( int )obj_work.dir.z <= AppMain.NNM_DEGtoA16(180f))
            {
                num2 = 1U;
            }
            else
            {
                num2 = 2U;
            }
            AppMain.gmGmkRockChaseSetDirType(gms_GMK_ROCK_CHASE_WORK, num2);
        }
        int num3;
        int num4;

        if ((num2 == 1U && num < 0) || (num2 == 2U && num >= 0))
        {
            num3 = 768;
            num4 = 32768;
            if (gms_GMK_ROCK_CHASE_WORK.flag_vib)
            {
                AppMain.GMM_PAD_VIB_STOP();
                gms_GMK_ROCK_CHASE_WORK.flag_vib = false;
            }
        }
        else
        {
            int num5 = AppMain.MTM_MATH_ABS(target_obj.spd_m);
            if (num5 < AppMain.gmGmkRockChaseGetSpeed(gms_GMK_ROCK_CHASE_WORK))
            {
                num3 = 512;
                num4 = 65536;
            }
            else
            {
                int num6 = AppMain.MTM_MATH_ABS(num);
                int num7 = AppMain.gmGmkRockChaseGetLength(gms_GMK_ROCK_CHASE_WORK);
                int num8 = AppMain.FX_Mul(num7, 8192);
                if (num8 < 1228800)
                {
                    num8 = 1228800;
                }
                if (num6 > num8)
                {
                    num3 = 3840;
                    num4 = ( int )(( long )num5 + 32768L);
                    if (gms_GMK_ROCK_CHASE_WORK.flag_vib)
                    {
                        AppMain.GMM_PAD_VIB_STOP();
                        gms_GMK_ROCK_CHASE_WORK.flag_vib = false;
                    }
                }
                else if (num6 > num7)
                {
                    num3 = 768;
                    num4 = ( int )(( long )num5 + 10240L);
                    if (!gms_GMK_ROCK_CHASE_WORK.flag_vib)
                    {
                        AppMain.GMM_PAD_VIB_MID_NOEND();
                        gms_GMK_ROCK_CHASE_WORK.flag_vib = true;
                    }
                }
                else
                {
                    num3 = -768;
                    num4 = ( int )(( long )num5 + -6144L);
                    if (!gms_GMK_ROCK_CHASE_WORK.flag_vib)
                    {
                        AppMain.GMM_PAD_VIB_MID_NOEND();
                        gms_GMK_ROCK_CHASE_WORK.flag_vib = true;
                    }
                }
            }
        }
        if (num2 == 1U)
        {
            obj_work.spd_m += num3;
            AppMain.gmGmkRockChaseAddAngleZ(gms_GMK_ROCK_CHASE_WORK, 1000);
            if (obj_work.spd_m > num4)
            {
                obj_work.spd_m = num4;
            }
        }
        else
        {
            num3            = -num3;
            num4            = -num4;
            obj_work.spd_m += num3;
            AppMain.gmGmkRockChaseAddAngleZ(gms_GMK_ROCK_CHASE_WORK, -1000);
            if (obj_work.spd_m < num4)
            {
                obj_work.spd_m = num4;
            }
        }
        if ((obj_work.move_flag & 1U) == 0U)
        {
            AppMain.gmGmkRockChaseChangeModeFall(obj_work);
            return;
        }
        if (gms_GMK_ROCK_CHASE_WORK.current_bound >= 0)
        {
            gms_GMK_ROCK_CHASE_WORK.current_bound = 0;
            if (AppMain.mtMathRand() % 10 == 0)
            {
                int num9 = (int)(32 + AppMain.mtMathRand() % 16);
                gms_GMK_ROCK_CHASE_WORK.target_bound   = -num9 * 4096;
                gms_GMK_ROCK_CHASE_WORK.current_bound -= 8192;
                if (gms_GMK_ROCK_CHASE_WORK.se_handle != null)
                {
                    GsSound.StopSE(gms_GMK_ROCK_CHASE_WORK.se_handle);
                    return;
                }
            }
        }
        else if (gms_GMK_ROCK_CHASE_WORK.target_bound > gms_GMK_ROCK_CHASE_WORK.current_bound)
        {
            gms_GMK_ROCK_CHASE_WORK.target_bound   = 0;
            gms_GMK_ROCK_CHASE_WORK.current_bound += 8192;
            if (gms_GMK_ROCK_CHASE_WORK.current_bound >= 0)
            {
                GmSound.PlaySE("BigRock1");
                GmSound.PlaySE("BigRock2", gms_GMK_ROCK_CHASE_WORK.se_handle);
                GmCamera.VibrationSet(0, 12288, 0);
                return;
            }
        }
        else
        {
            gms_GMK_ROCK_CHASE_WORK.current_bound -= 8192;
        }
    }