Ejemplo n.º 1
0
    // Token: 0x06000269 RID: 617 RVA: 0x00013B7C File Offset: 0x00011D7C
    private static void gmGmkStopperLockWait(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;
        }

        GMS_PLAYER_WORK ply_work = gms_GMK_STOPPER_WORK.ply_work;

        if (obj_work.pos.x == ply_work.obj_work.pos.x && obj_work.pos.y == ply_work.obj_work.pos.y)
        {
            if (gms_GMK_STOPPER_WORK.call_slot_id >= 0)
            {
                AppMain.GmGmkSlotStartRequest(gms_GMK_STOPPER_WORK.call_slot_id, ply_work);
                obj_work.ppFunc = AppMain.gmGmkStopperStay_Slot;
                GmSound.PlaySE("Casino3");
                return;
            }

            obj_work.ppFunc = AppMain.gmGmkStopperStay_Norm;
            if (gms_GMK_STOPPER_WORK.se_handle != null)
            {
                GsSound.StopSE(gms_GMK_STOPPER_WORK.se_handle);
                GsSound.FreeSeHandle(gms_GMK_STOPPER_WORK.se_handle);
            }

            gms_GMK_STOPPER_WORK.se_handle       = GsSound.AllocSeHandle();
            gms_GMK_STOPPER_WORK.se_handle.flag |= 2147483648U;
            GmSound.PlaySE("Casino3", gms_GMK_STOPPER_WORK.se_handle);
        }
    }
Ejemplo n.º 2
0
    // Token: 0x06001036 RID: 4150 RVA: 0x0008D120 File Offset: 0x0008B320
    public static int gmEneMoguCheckWater(AppMain.GMS_ENE_MOGU_WORK mogu_work, short ofst)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = (OBS_OBJECT_WORK)mogu_work;

        if (!AppMain.GmMainIsWaterLevel())
        {
            return(0);
        }
        if ((obs_OBJECT_WORK.pos.y >> 12) - ( int )ofst >= ( int )AppMain.g_gm_main_system.water_level)
        {
            if ((mogu_work.flag & 1U) == 0U && (mogu_work.flag & 2U) != 0U)
            {
                AppMain.GmEfctCmnEsCreate(obs_OBJECT_WORK, 76);
                GmSound.PlaySE("Spray");
            }
            mogu_work.flag |= 1U;
            return(1);
        }
        if ((mogu_work.flag & 1U) != 0U)
        {
            if ((mogu_work.flag & 2U) != 0U)
            {
                AppMain.GmEfctCmnEsCreate(obs_OBJECT_WORK, 76);
                GmSound.PlaySE("Spray");
            }
            mogu_work.flag &= 4294967294U;
            return(1);
        }
        return(0);
    }
Ejemplo n.º 3
0
 // Token: 0x06000950 RID: 2384 RVA: 0x00053CF4 File Offset: 0x00051EF4
 private static void gmEneKamaFlashMain(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_ENE_KAMA_WORK gms_ENE_KAMA_WORK = (AppMain.GMS_ENE_KAMA_WORK)obj_work;
     AppMain.gmEneKamaFadeAnimeUpdate((AppMain.GMS_ENE_KAMA_WORK)obj_work, 4096, 1);
     if (gms_ENE_KAMA_WORK.timer-- < 0)
     {
         AppMain.GMS_EFFECT_3DES_WORK efct_work = AppMain.GmEfctCmnEsCreate(obj_work, 9);
         if ((obj_work.disp_flag & 2U) != 0U)
         {
             AppMain.GmComEfctSetDispOffsetF(efct_work, 0f, 20f, 0f);
         }
         else
         {
             AppMain.GmComEfctSetDispOffsetF(efct_work, 0f, -20f, 0f);
         }
         gms_ENE_KAMA_WORK.ene_3d_work.ene_com.enemy_flag |= 65536U;
         gms_ENE_KAMA_WORK.timer = 180;
         GmSound.PlaySE("Boss2_03");
         obj_work.disp_flag |= 32U;
         obj_work.ppFunc     = AppMain.gmEneKamaFlashEnd;
         AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENE_KAMA_WORK.ene_3d_work.ene_com.rect_work[1];
         AppMain.ObjRectWorkSet(obs_RECT_WORK, -30, -30, 30, 10);
         obs_RECT_WORK.flag |= 4U;
         AppMain.GmGmkAnimalInit(obj_work, 0, 0, 0, 0, 0, 0);
         obs_RECT_WORK       = gms_ENE_KAMA_WORK.ene_3d_work.ene_com.rect_work[0];
         obs_RECT_WORK.flag &= 4294967291U;
         obs_RECT_WORK       = gms_ENE_KAMA_WORK.ene_3d_work.ene_com.rect_work[2];
         obs_RECT_WORK.flag &= 4294967291U;
     }
 }
    // Token: 0x06000726 RID: 1830 RVA: 0x0003F934 File Offset: 0x0003DB34
    private static void gmBoss4CapsuleDamageDefFunc(AppMain.OBS_RECT_WORK my_rect, AppMain.OBS_RECT_WORK your_rect)
    {
        OBS_OBJECT_WORK parent_obj  = my_rect.parent_obj;
        OBS_OBJECT_WORK parent_obj2 = your_rect.parent_obj;

        AppMain.GMS_BOSS4_CAP_WORK  w = (AppMain.GMS_BOSS4_CAP_WORK)parent_obj;
        AppMain.GMS_BOSS4_BODY_WORK gms_BOSS4_BODY_WORK = (AppMain.GMS_BOSS4_BODY_WORK)parent_obj.parent_obj;
        if (parent_obj2 != null && 1 == parent_obj2.obj_type)
        {
            if (AppMain._cap_inv_flag > 0)
            {
                return;
            }
            AppMain.GmBoss4UtilSetPlayerAttackReaction(parent_obj2, parent_obj);
            GmSound.PlaySE("Enemy");
            AppMain.GmBoss4CapsuleSetInvincible(30);
            AppMain.GmBoss4UtilInitNoHitTimer(gms_BOSS4_BODY_WORK.nohit_work, (AppMain.GMS_ENEMY_COM_WORK)gms_BOSS4_BODY_WORK, 25);
            if (!AppMain.IS_FLAG(4U, w))
            {
                AppMain.SET_FLAG(1073741824U, w);
                if ((gms_BOSS4_BODY_WORK.flag[0] & 4096U) == 0U)
                {
                    gms_BOSS4_BODY_WORK.flag[0]    |= 2048U;
                    gms_BOSS4_BODY_WORK.avoid_timer = 90;
                }
            }
        }
    }
Ejemplo n.º 5
0
 // Token: 0x06000955 RID: 2389 RVA: 0x00054294 File Offset: 0x00052494
 private static void gmEneKamaHandAttackInit(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_ENE_KAMA_WORK gms_ENE_KAMA_WORK  = (AppMain.GMS_ENE_KAMA_WORK)obj_work;
     AppMain.GMS_ENE_KAMA_WORK gms_ENE_KAMA_WORK2 = (AppMain.GMS_ENE_KAMA_WORK)obj_work.parent_obj;
     AppMain.VecFx32           vecFx = AppMain.gmEneKamaGetPlayerVectorFx(obj_work);
     obj_work.spd.x          = ( int )(( float )vecFx.x * 1.75f);
     obj_work.spd.y          = ( int )(( float )vecFx.y * 1.75f);
     obj_work.ppFunc         = AppMain.gmEneKamaHandAttackMain;
     gms_ENE_KAMA_WORK.timer = 120;
     if ((gms_ENE_KAMA_WORK2.ene_3d_work.ene_com.obj_work.disp_flag & 2U) != 0U)
     {
         obj_work.disp_flag |= 2U;
     }
     if ((gms_ENE_KAMA_WORK2.ene_3d_work.ene_com.obj_work.disp_flag & 1U) != 0U)
     {
         gms_ENE_KAMA_WORK.rot_z_add = -AkMath.DEGtoA32(15);
     }
     else
     {
         gms_ENE_KAMA_WORK.rot_z_add = AkMath.DEGtoA32(15);
     }
     AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENE_KAMA_WORK.ene_3d_work.ene_com.rect_work[1];
     AppMain.ObjRectWorkSet(obs_RECT_WORK, -8, -8, 8, 8);
     obs_RECT_WORK.flag |= 4U;
     obj_work.flag      |= 512U;
     obj_work.pos.z      = 655360;
     GmSound.PlaySE("Kama");
 }
Ejemplo n.º 6
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;
    }
Ejemplo n.º 7
0
    // Token: 0x06001AFF RID: 6911 RVA: 0x000F573C File Offset: 0x000F393C
    private static void gmGmkSsEmeraldDefFunc(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect)
    {
        AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK = (AppMain.GMS_ENEMY_COM_WORK)mine_rect.parent_obj;
        GMS_PLAYER_WORK            gms_PLAYER_WORK    = (GMS_PLAYER_WORK)match_rect.parent_obj;

        if (gms_ENEMY_COM_WORK == null)
        {
            return;
        }

        if (gms_PLAYER_WORK == null || gms_PLAYER_WORK.obj_work.obj_type != 1)
        {
            return;
        }

        if (gms_PLAYER_WORK.gmk_obj == (OBS_OBJECT_WORK)gms_ENEMY_COM_WORK)
        {
            return;
        }

        GmSound.PlayJingle(3U, 0);
        GmSound.PlaySE("Special5");
        AppMain.GmComEfctCreateRing(gms_ENEMY_COM_WORK.obj_work.pos.x, gms_ENEMY_COM_WORK.obj_work.pos.y);
        AppMain.gmGmkSsEmeraldEfctKill();
        gms_ENEMY_COM_WORK.obj_work.flag   |= 4U;
        AppMain.g_gm_main_system.game_flag |= 65536U;
    }
Ejemplo n.º 8
0
 // Token: 0x060018A7 RID: 6311 RVA: 0x000E0E28 File Offset: 0x000DF028
 private static void gmGmkBreakLandStay_100(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_BLAND_WORK gms_GMK_BLAND_WORK = (AppMain.GMS_GMK_BLAND_WORK)obj_work;
     gms_GMK_BLAND_WORK.broken_timer--;
     if (gms_GMK_BLAND_WORK.broken_timer <= 0)
     {
         AppMain.ObjObjectAction3dNNModelReleaseCopy(obj_work);
         AppMain.ObjObjectCopyAction3dNNModel(obj_work, AppMain.gm_gmk_breakland_obj_3d_list[(gms_GMK_BLAND_WORK.vect == 0) ? 2 : 3], gms_GMK_BLAND_WORK.gmk_work.obj_3d);
         AppMain.ObjObjectAction3dNNMotionLoad(obj_work, 0, false, AppMain.ObjDataGet(796), null, 0, null);
         if (gms_GMK_BLAND_WORK.vect == 32768)
         {
             AppMain.ObjDrawObjectActionSet(obj_work, 0);
             obj_work.obj_3d.use_light_flag &= 4294967294U;
             obj_work.obj_3d.use_light_flag |= 4U;
             obj_work.obj_3d.use_light_flag |= 65536U;
         }
         else
         {
             AppMain.ObjDrawObjectActionSet(obj_work, 1);
             obj_work.obj_3d.use_light_flag &= 4294967294U;
             obj_work.obj_3d.use_light_flag |= 2U;
             obj_work.obj_3d.use_light_flag |= 65536U;
         }
         obj_work.disp_flag &= 4294967279U;
         obj_work.disp_flag &= 4294967291U;
         gms_GMK_BLAND_WORK.gmk_work.ene_com.col_work.obj_col.obj = null;
         GmSound.PlaySE("BreakGround");
         obj_work.ppFunc = AppMain.gmGmkBreakLandBroken;
         return;
     }
     gms_GMK_BLAND_WORK.quake_timer &= 3;
     obj_work.pos.y = obj_work.pos.y + ( int )AppMain.tbl_breaklandquake[gms_GMK_BLAND_WORK.quake_timer] * 4096;
     gms_GMK_BLAND_WORK.quake_timer++;
 }
Ejemplo n.º 9
0
 // Token: 0x06000DB1 RID: 3505 RVA: 0x00078FBC File Offset: 0x000771BC
 private static void gmGmkSteamPipe_GateOut(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK  = (AppMain.GMS_GMK_STEAMP_WORK)obj_work;
     AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK2 = gms_GMK_STEAMP_WORK;
     gms_GMK_STEAMP_WORK2.timer -= 1;
     if (gms_GMK_STEAMP_WORK.timer <= 0)
     {
         OBS_OBJECT_WORK obs_OBJECT_WORK = (OBS_OBJECT_WORK)AppMain.GmEfctCmnEsCreate(obj_work, 92);
         obs_OBJECT_WORK.pos.x = obj_work.pos.x;
         obs_OBJECT_WORK.pos.y = obj_work.pos.y;
         int spd_x;
         if ((obj_work.user_flag & 1U) == 0U)
         {
             spd_x = 61440;
             obs_OBJECT_WORK.dir.z = 16384;
             OBS_OBJECT_WORK obs_OBJECT_WORK2 = obs_OBJECT_WORK;
             obs_OBJECT_WORK2.pos.x = obs_OBJECT_WORK2.pos.x + 229376;
         }
         else
         {
             spd_x = -61440;
             obs_OBJECT_WORK.dir.z = 49152;
             OBS_OBJECT_WORK obs_OBJECT_WORK3 = obs_OBJECT_WORK;
             obs_OBJECT_WORK3.pos.x = obs_OBJECT_WORK3.pos.x - 229376;
         }
         AppMain.GmPlySeqInitSteamPipeOut(gms_GMK_STEAMP_WORK.ply_work, spd_x);
         GmSound.PlaySE("PipeOut");
         gms_GMK_STEAMP_WORK.timer = 8;
         obj_work.ppFunc           = AppMain.gmGmkSteamPipe_GateOut_100;
     }
 }
Ejemplo n.º 10
0
    // Token: 0x06000B2B RID: 2859 RVA: 0x00064C88 File Offset: 0x00062E88
    private static void gmGmkSplRingDefFunc(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect)
    {
        AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK = (AppMain.GMS_ENEMY_COM_WORK)mine_rect.parent_obj;
        GMS_PLAYER_WORK            gms_PLAYER_WORK    = (GMS_PLAYER_WORK)match_rect.parent_obj;

        if (gms_ENEMY_COM_WORK == null)
        {
            return;
        }
        if (gms_PLAYER_WORK == null || gms_PLAYER_WORK.obj_work.obj_type != 1)
        {
            return;
        }
        if ((gms_PLAYER_WORK.player_flag & 262144U) != 0U)
        {
            GmPlayer.SetEndTruckRide(gms_PLAYER_WORK);
        }
        AppMain.GmPlySeqInitSplIn(gms_PLAYER_WORK, gms_ENEMY_COM_WORK.obj_work.pos);
        gms_PLAYER_WORK.gmk_flag2 |= 6U;
        (( OBS_OBJECT_WORK )gms_ENEMY_COM_WORK).ppFunc = AppMain.gmGmkSplRingVanishReady;
        gms_ENEMY_COM_WORK.obj_work.dir.y = ( ushort )((gms_ENEMY_COM_WORK.obj_work.dir.y & 57344));
        gms_ENEMY_COM_WORK.obj_work.flag |= 2U;
        AppMain.GMM_PAD_VIB_SMALL();
        GmSound.PlaySE("Special1");
    }
Ejemplo n.º 11
0
    // Token: 0x06000D8B RID: 3467 RVA: 0x000767BC File Offset: 0x000749BC
    private static void gmSplStageRingGateChk(AppMain.GMS_SPL_STG_WORK tcb_work)
    {
        GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];
        ushort          get_ring        = tcb_work.get_ring;

        for (ushort num = 0; num < 9; num += 1)
        {
            if ((( int )tcb_work.get_ring & 1 << ( int )num) == 0)
            {
                ushort num2 = AppMain.GmSplStageRingGateNumGet(num);
                if (num2 == 255)
                {
                    break;
                }
                if (num2 <= ( ushort )gms_PLAYER_WORK.ring_num)
                {
                    tcb_work.get_ring |= ( ushort )(1 << ( int )num);
                }
            }
        }
        if (get_ring != tcb_work.get_ring)
        {
            GmSound.PlaySE("Special7");
        }
    }
Ejemplo n.º 12
0
    // Token: 0x06000295 RID: 661 RVA: 0x000159F4 File Offset: 0x00013BF4
    public static void gmEneHaroWalkInit(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_ENE_HARO_WORK gms_ENE_HARO_WORK = (AppMain.GMS_ENE_HARO_WORK)obj_work;
        obj_work.disp_flag |= 4U;
        obj_work.ppFunc     = AppMain.gmEneHaroWalkMain;
        obj_work.move_flag &= 4294967291U;
        int num = AppMain.FX_Sqrt(AppMain.FX_Mul(gms_ENE_HARO_WORK.vec.x, gms_ENE_HARO_WORK.vec.x) + AppMain.FX_Mul(gms_ENE_HARO_WORK.vec.y, gms_ENE_HARO_WORK.vec.y));

        if (num == 0)
        {
            gms_ENE_HARO_WORK.vec.x = 0;
            gms_ENE_HARO_WORK.vec.y = AppMain.FX_F32_TO_FX32(1f);
        }
        else
        {
            gms_ENE_HARO_WORK.vec.x = AppMain.FX_Div(gms_ENE_HARO_WORK.vec.x, num);
            gms_ENE_HARO_WORK.vec.y = AppMain.FX_Div(gms_ENE_HARO_WORK.vec.y, num);
        }
        gms_ENE_HARO_WORK.timer = 120;
        if (gms_ENE_HARO_WORK.lighton == 0)
        {
            AppMain.GMS_EFFECT_3DES_WORK gms_EFFECT_3DES_WORK = AppMain.GmEfctEneEsCreate(obj_work, 6);
            gms_EFFECT_3DES_WORK.efct_com.obj_work.ppFunc = AppMain.gmEneEffectMainFuncHarogen;
            gms_ENE_HARO_WORK.lighton = 1;
        }
        if (AppMain.gmEneHaroGetLength2N(obj_work) <= 10000)
        {
            GmSound.PlaySE("Halogen");
            AppMain.ObjDrawObjectActionSet(obj_work, 1);
            obj_work.disp_flag |= 4U;
            return;
        }
        AppMain.ObjDrawObjectActionSet(obj_work, 1);
        obj_work.disp_flag |= 4U;
    }
Ejemplo n.º 13
0
    // Token: 0x06000DAE RID: 3502 RVA: 0x00078E88 File Offset: 0x00077088
    private static void gmGmkSteamPipeStay_100(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK = (AppMain.GMS_GMK_STEAMP_WORK)obj_work;
        if (gms_GMK_STEAMP_WORK.status != 0)
        {
            switch (gms_GMK_STEAMP_WORK.obj_type)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 8:
            case 9:
            case 10:
                break;

            case 4:
            case 5:
                gms_GMK_STEAMP_WORK.timer = 60;
                obj_work.ppFunc           = AppMain.gmGmkSteamPipe_GateIn;
                GmSound.PlaySE("PipeIn");
                return;

            case 6:
            case 7:
                gms_GMK_STEAMP_WORK.timer = 0;
                AppMain.gmGmkSteamPipe_GateOutColClear(obj_work);
                obj_work.ppFunc = AppMain.gmGmkSteamPipe_GateOut;
                break;

            default:
                return;
            }
        }
    }
Ejemplo n.º 14
0
 // Token: 0x060003E9 RID: 1001 RVA: 0x0001FB28 File Offset: 0x0001DD28
 private static void gmEneMereonAtkMain(OBS_OBJECT_WORK obj_work)
 {
     if ((obj_work.disp_flag & 8U) != 0U)
     {
         int   num  = -8192;
         short num2 = -16384;
         if ((obj_work.disp_flag & 1U) != 0U)
         {
             num  = -num;
             num2 = ( short )(( int )num2 + 32768);
         }
         AppMain.GmEneStingCreateBullet(obj_work, -81920, -49152, 32768, -98304, -49152, 0, num, 0, num2);
         GmSound.PlaySE("Sting");
         AppMain.GmEneComActionSet3DNNBlendDependHFlip(obj_work, 0, 1);
         obj_work.user_timer = 122880;
     }
     if (obj_work.user_timer != 0)
     {
         obj_work.user_timer = AppMain.ObjTimeCountDown(obj_work.user_timer);
         if (obj_work.user_timer == 0)
         {
             AppMain.gmEneMereonHideInit(obj_work);
         }
     }
 }
Ejemplo n.º 15
0
    // Token: 0x060017A3 RID: 6051 RVA: 0x000D1308 File Offset: 0x000CF508
    private static void gmGmkSsTimeDefFunc(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect)
    {
        AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK = (AppMain.GMS_ENEMY_COM_WORK)mine_rect.parent_obj;
        GMS_PLAYER_WORK            gms_PLAYER_WORK    = (GMS_PLAYER_WORK)match_rect.parent_obj;

        if (gms_ENEMY_COM_WORK == null)
        {
            return;
        }
        if (gms_PLAYER_WORK == null || gms_PLAYER_WORK.obj_work.obj_type != 1)
        {
            return;
        }
        if (gms_PLAYER_WORK.gmk_obj == ( OBS_OBJECT_WORK )gms_ENEMY_COM_WORK)
        {
            return;
        }
        AppMain.GMS_EFFECT_3DES_WORK gms_EFFECT_3DES_WORK = AppMain.GmEfctZoneEsCreate(gms_ENEMY_COM_WORK.obj_work, 5, 17);
        gms_EFFECT_3DES_WORK.efct_com.obj_work.flag  |= 512U;
        gms_EFFECT_3DES_WORK.efct_com.obj_work.ppFunc = AppMain.gmGmkSsTimeEfctMain;
        gms_EFFECT_3DES_WORK = AppMain.GmEfctZoneEsCreate(gms_ENEMY_COM_WORK.obj_work, 5, AppMain.gm_gmk_ss_time_add_msg[AppMain.GsEnvGetLanguage()]);
        gms_EFFECT_3DES_WORK.efct_com.obj_work.flag  |= 512U;
        gms_EFFECT_3DES_WORK.efct_com.obj_work.ppFunc = AppMain.gmGmkSsTimeEfctMain;
        gms_EFFECT_3DES_WORK.obj_3des.command_state   = 10U;
        gms_ENEMY_COM_WORK.enemy_flag |= 65536U;
        GmSound.PlaySE("Special6");
        AppMain.GmFixRequestTimerFlash();
        AppMain.g_gm_main_system.game_time += AppMain.gm_gmk_ss_time_add_subtract[( int )(( UIntPtr )gms_ENEMY_COM_WORK.obj_work.user_work)];
        gms_ENEMY_COM_WORK.obj_work.flag   |= 4U;
    }
Ejemplo n.º 16
0
    // Token: 0x0600009B RID: 155 RVA: 0x00008620 File Offset: 0x00006820
    private static void GmEnemyDefaultDefFunc(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect)
    {
        AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK = (AppMain.GMS_ENEMY_COM_WORK)mine_rect.parent_obj;
        GMS_PLAYER_WORK            gms_PLAYER_WORK    = null;

        if (match_rect.parent_obj != null && match_rect.parent_obj.obj_type == 1)
        {
            gms_PLAYER_WORK = (GMS_PLAYER_WORK)match_rect.parent_obj;
        }

        if (gms_ENEMY_COM_WORK.vit == 0)
        {
            if ((gms_ENEMY_COM_WORK.obj_work.move_flag & 4096U) == 0U || gms_ENEMY_COM_WORK.obj_work.obj_type == 3)
            {
                gms_ENEMY_COM_WORK.enemy_flag |= 65536U;
            }

            gms_ENEMY_COM_WORK.obj_work.flag     |= 2U;
            gms_ENEMY_COM_WORK.rect_work[0].flag |= 2048U;
            gms_ENEMY_COM_WORK.rect_work[1].flag |= 2048U;
            gms_ENEMY_COM_WORK.rect_work[2].flag |= 2048U;
            if (gms_ENEMY_COM_WORK.obj_work.obj_type == 2)
            {
                GmSound.PlaySE("Enemy");
                AppMain.GmComEfctCreateHitPlayer(gms_ENEMY_COM_WORK.obj_work,
                                                 (int)((mine_rect.rect.left + mine_rect.rect.right) * 4096 / 2),
                                                 (int)((mine_rect.rect.top + mine_rect.rect.bottom) * 4096 / 2));
                AppMain.GmComEfctCreateEneDeadSmoke(gms_ENEMY_COM_WORK.obj_work,
                                                    (int)((mine_rect.rect.left + mine_rect.rect.right) * 4096 / 2),
                                                    (int)((mine_rect.rect.top + mine_rect.rect.bottom) * 4096 / 2));
                AppMain.GmGmkAnimalInit(gms_ENEMY_COM_WORK.obj_work, 0, 0, 0, 0, 0, 0);
                AppMain.GMM_PAD_VIB_SMALL();
                if (gms_PLAYER_WORK != null)
                {
                    GmPlayer.ComboScore(gms_PLAYER_WORK, gms_ENEMY_COM_WORK.obj_work.pos.x,
                                        gms_ENEMY_COM_WORK.obj_work.pos.y + -65536);
                }

                AppMain.HgTrophyIncEnemyKillCount(gms_ENEMY_COM_WORK.obj_work);
            }

            gms_ENEMY_COM_WORK.obj_work.flag |= 8U;
        }
        else
        {
            AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK2 = gms_ENEMY_COM_WORK;
            gms_ENEMY_COM_WORK2.vit -= 1;
            byte[] byte_param = gms_ENEMY_COM_WORK.eve_rec.byte_param;
            int    num        = 1;
            byte_param[num] += 1;
            gms_ENEMY_COM_WORK.invincible_timer       = 245760;
            gms_ENEMY_COM_WORK.rect_work[1].hit_power = 0;
        }

        if (gms_PLAYER_WORK != null && gms_PLAYER_WORK.obj_work.obj_type == 1)
        {
            AppMain.GmPlySeqAtkReactionInit(gms_PLAYER_WORK);
        }
    }
Ejemplo n.º 17
0
    // Token: 0x0600158D RID: 5517 RVA: 0x000BB390 File Offset: 0x000B9590
    private static void gmGmkBreakWallStay(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_BWALL_WORK gms_GMK_BWALL_WORK = (AppMain.GMS_GMK_BWALL_WORK)obj_work;
        if (gms_GMK_BWALL_WORK.hitcheck < 0)
        {
            ushort          num             = ( ushort )(((gms_GMK_BWALL_WORK.hitcheck & 1) != 0) ? 0 : 32768);
            OBS_OBJECT_WORK obs_OBJECT_WORK = null;
            obj_work.flag |= 10U;
            GmSound.PlaySE("BreakWall");
            AppMain.GMM_PAD_VIB_SMALL();
            AppMain.gmGmkBreakWall_CreateParts(obj_work, gms_GMK_BWALL_WORK.wall_type, gms_GMK_BWALL_WORK.obj_type, num);
            if (AppMain.gmk_bwall_effect_y > 196608)
            {
                while (AppMain.gmk_bwall_effect_y > 65536)
                {
                    AppMain.gmk_bwall_effect_y -= 53248;
                }
            }
            int z = obj_work.pos.z;
            switch (AppMain.g_gm_gamedat_zone_type_tbl[( int )AppMain.g_gs_main_sys_info.stage_id])
            {
            case 0:
                obs_OBJECT_WORK = ( OBS_OBJECT_WORK )AppMain.GmEfctZoneEsCreate(null, 0, 8);
                break;

            case 1:
                obs_OBJECT_WORK = ( OBS_OBJECT_WORK )AppMain.GmEfctZoneEsCreate(null, 1, 1);
                break;

            case 2:
                obs_OBJECT_WORK = ( OBS_OBJECT_WORK )AppMain.GmEfctZoneEsCreate(null, 2, 33);
                if (AppMain.g_gs_main_sys_info.stage_id == 9)
                {
                    z = 655360;
                    obs_OBJECT_WORK.obj_3des.command_state = 15U;
                }
                break;

            case 3:
                obs_OBJECT_WORK = ( OBS_OBJECT_WORK )AppMain.GmEfctZoneEsCreate(null, 3, 3);
                break;
            }
            if (obs_OBJECT_WORK != null)
            {
                obs_OBJECT_WORK.pos.x       = obj_work.pos.x;
                obs_OBJECT_WORK.pos.y       = obj_work.pos.y - AppMain.gmk_bwall_effect_y;
                obs_OBJECT_WORK.pos.z       = z;
                AppMain.gmk_bwall_effect_y += 126976;
                obs_OBJECT_WORK.dir.z       = num;
                obs_OBJECT_WORK.disp_flag  &= 4294967039U;
            }
            return;
        }
        if (gms_GMK_BWALL_WORK.hitpass == 0 && gms_GMK_BWALL_WORK.hitcheck != 0)
        {
            AppMain.gmGmkBreakWallStart(obj_work);
        }
        gms_GMK_BWALL_WORK.hitpass = 0;
    }
Ejemplo n.º 18
0
 // Token: 0x06000E07 RID: 3591 RVA: 0x0007BB18 File Offset: 0x00079D18
 public static void gmEneKaniAttackInit(OBS_OBJECT_WORK obj_work)
 {
     AppMain.ObjDrawObjectActionSet(obj_work, 0);
     obj_work.disp_flag &= 4294967291U;
     obj_work.ppFunc     = AppMain.gmEneKaniAttackMain;
     obj_work.spd.x      = 0;
     GmSound.PlaySE("Kani");
 }
Ejemplo n.º 19
0
 // Token: 0x060013C5 RID: 5061 RVA: 0x000AF3B8 File Offset: 0x000AD5B8
 private static void gmGmkPistonShrink(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_PISTON_WORK gms_GMK_PISTON_WORK = (AppMain.GMS_GMK_PISTON_WORK)obj_work;
     obj_work.spd.y  = ((gms_GMK_PISTON_WORK.piston_vect == 0) ? (-gms_GMK_PISTON_WORK.stroke_spd) : gms_GMK_PISTON_WORK.stroke_spd);
     obj_work.pos.y  = obj_work.pos.y + obj_work.spd.y;
     obj_work.ppFunc = AppMain.gmGmkPistonShrink_100;
     AppMain.gmGmkPistonShrink_100(obj_work);
     GmSound.PlaySE("Piston1");
 }
Ejemplo n.º 20
0
 // Token: 0x0600055E RID: 1374 RVA: 0x0002D718 File Offset: 0x0002B918
 private static void gmGmkSpearStay_200(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_SPEAR_WORK gms_GMK_SPEAR_WORK = (AppMain.GMS_GMK_SPEAR_WORK)obj_work;
     obj_work.spd.x = AppMain.mtMathCos(( int )gms_GMK_SPEAR_WORK.vect);
     obj_work.spd.y = AppMain.mtMathSin(( int )gms_GMK_SPEAR_WORK.vect);
     obj_work.spd.x = obj_work.spd.x * gms_GMK_SPEAR_WORK.stroke_spd >> 12;
     obj_work.spd.y = obj_work.spd.y * gms_GMK_SPEAR_WORK.stroke_spd >> 12;
     gms_GMK_SPEAR_WORK.timer_dec = gms_GMK_SPEAR_WORK.timer_set_move;
     GmSound.PlaySE("Spear");
     AppMain.gmGmkSpearStroke(obj_work);
 }
Ejemplo n.º 21
0
 // Token: 0x06000294 RID: 660 RVA: 0x00015998 File Offset: 0x00013B98
 public static void gmEneHaroWaitMain(OBS_OBJECT_WORK obj_work)
 {
     if (AppMain.gmEneHaroGetLength2N(obj_work) <= 10000)
     {
         GmSound.PlaySE("Halogen");
         obj_work.obj_3d.blend_spd = 0.05f;
         AppMain.ObjDrawObjectActionSet3DNNBlend(obj_work, 1);
         obj_work.disp_flag |= 4U;
         obj_work.ppFunc     = AppMain.gmEneHaroWalkInit;
     }
 }
Ejemplo n.º 22
0
    // Token: 0x06000791 RID: 1937 RVA: 0x00043198 File Offset: 0x00041398
    public static void gmEneTStarAttackInit(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_ENE_T_STAR_WORK gms_ENE_T_STAR_WORK = (AppMain.GMS_ENE_T_STAR_WORK)obj_work;
        NNS_MATRIX nns_MATRIX = GlobalPool <NNS_MATRIX> .Alloc();

        NNS_MATRIX nns_MATRIX2 = GlobalPool <NNS_MATRIX> .Alloc();

        AppMain.nnMakeUnitMatrix(nns_MATRIX);
        AppMain.nnMakeUnitMatrix(nns_MATRIX2);
        AppMain.nnMakeRotateZMatrix(nns_MATRIX2, AkMath.DEGtoA32(72));
        NNS_VECTOR nns_VECTOR = GlobalPool <NNS_VECTOR> .Alloc();

        for (int i = 0; i < 5; i++)
        {
            OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GmEventMgrLocalEventBirth(308, obj_work.pos.x, obj_work.pos.y, 0, 0, 0, 0, 0, 0);
            obs_OBJECT_WORK.parent_obj = obj_work;
            obs_OBJECT_WORK.dir.y      = 49152;
            obs_OBJECT_WORK.dir.z      = ( ushort )AkMath.DEGtoA16(-72 * i);
            nns_VECTOR.x          = nns_MATRIX.M01;
            nns_VECTOR.y          = nns_MATRIX.M11;
            nns_VECTOR.z          = 0f;
            obs_OBJECT_WORK.spd.x = AppMain.FX_F32_TO_FX32(nns_VECTOR.x * 4f);
            obs_OBJECT_WORK.spd.y = -AppMain.FX_F32_TO_FX32(nns_VECTOR.y * 4f);
            OBS_OBJECT_WORK obs_OBJECT_WORK2 = obs_OBJECT_WORK;
            obs_OBJECT_WORK2.pos.x = obs_OBJECT_WORK2.pos.x + AppMain.FX_F32_TO_FX32(nns_VECTOR.x * 10f);
            OBS_OBJECT_WORK obs_OBJECT_WORK3 = obs_OBJECT_WORK;
            obs_OBJECT_WORK3.pos.y = obs_OBJECT_WORK3.pos.y + -AppMain.FX_F32_TO_FX32(nns_VECTOR.y * 10f);
            AppMain.nnMultiplyMatrix(nns_MATRIX, nns_MATRIX, nns_MATRIX2);
            AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK;
            gms_ENEMY_3D_WORK.ene_com.enemy_flag |= 32768U;
            AppMain.GMS_EFFECT_3DES_WORK gms_EFFECT_3DES_WORK = AppMain.GmEfctEneEsCreate(obs_OBJECT_WORK, 10);
            gms_EFFECT_3DES_WORK.efct_com.obj_work.dir.z = ( ushort )AkMath.DEGtoA16(-72 * i);
        }
        GlobalPool <NNS_VECTOR> .Release(nns_VECTOR);

        obj_work.disp_flag       |= 32U;
        obj_work.disp_flag       |= 4U;
        obj_work.ppFunc           = AppMain.gmEneTStarAttackMain;
        obj_work.move_flag       &= 4294967291U;
        obj_work.spd.x            = 0;
        obj_work.spd.y            = 0;
        gms_ENE_T_STAR_WORK.timer = 300;
        AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK2 = (AppMain.GMS_ENEMY_3D_WORK)obj_work;
        gms_ENEMY_3D_WORK2.ene_com.rect_work[1].flag &= 4294967291U;
        gms_ENEMY_3D_WORK2.ene_com.rect_work[0].flag &= 4294967291U;
        gms_ENEMY_3D_WORK2.ene_com.rect_work[2].flag &= 4294967291U;
        GmSound.PlaySE("Boss2_03");
        gms_ENEMY_3D_WORK2.ene_com.enemy_flag |= 65536U;
        GlobalPool <NNS_MATRIX> .Release(nns_MATRIX);

        GlobalPool <NNS_MATRIX> .Release(nns_MATRIX2);
    }
Ejemplo n.º 23
0
    // Token: 0x06001252 RID: 4690 RVA: 0x000A0334 File Offset: 0x0009E534
    private static void gmGmkCannonHit(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect)
    {
        OBS_OBJECT_WORK     parent     = mine_rect.parent_obj;
        GMS_PLAYER_WORK     playerWork = (GMS_PLAYER_WORK)match_rect.parent_obj;
        GMS_GMK_CANNON_WORK cannonWork = (AppMain.GMS_GMK_CANNON_WORK)parent;

        cannonWork.hitpass = false;
        if (playerWork == AppMain.g_gm_main_system.ply_work[0])
        {
            if (cannonWork.ply_work != playerWork)
            {
                int num = ((parent.pos.y >> 12) + (int)mine_rect.rect.top);
                if ((playerWork.obj_work.pos.y >> 12 < (int)num && playerWork.obj_work.move.y >= 0) ||
                    playerWork.act_state == 31)
                {
                    int num2 = 1;
                    int num3 = (AppMain.MTM_MATH_ABS((int)mine_rect.rect.left - (int)match_rect.rect.left) +
                                AppMain.MTM_MATH_ABS((int)mine_rect.rect.right - (int)match_rect.rect.right));
                    int num4 = AppMain.MTM_MATH_ABS(playerWork.obj_work.move.x >> 12);
                    if (num4 != 0)
                    {
                        num2 = ((int)num4 / (int)num3 + 1);
                    }
                    if (playerWork.obj_work.move.x < 0)
                    {
                        num3 = -num3;
                    }
                    int num5 = ((parent.pos.x >> 12) + (int)mine_rect.rect.left - (int)match_rect.rect.left);
                    int num6 = ((parent.pos.x >> 12) + (int)mine_rect.rect.right - (int)match_rect.rect.right);
                    int num7 = (playerWork.obj_work.pos.x >> 12);
                    for (; num2 != 0; --num2)
                    {
                        if ((int)num7 >= (int)num5 && (int)num7 <= (int)num6)
                        {
                            cannonWork.ply_work = playerWork;
                            AppMain.GmPlySeqInitCannon(playerWork, (AppMain.GMS_ENEMY_COM_WORK)parent);
                            GmSound.PlaySE("Cannon3");
                            break;
                        }

                        num7 += num3;
                    }
                }
            }

            cannonWork.hitpass = true;
        }

        mine_rect.flag &= 4294573823U;
    }
Ejemplo n.º 24
0
 // Token: 0x06000A9D RID: 2717 RVA: 0x0005D9DC File Offset: 0x0005BBDC
 public static void gmStartMsgMain_StartWait(AppMain.GMS_SMSG_MGR_WORK mgr_work)
 {
     if ((AppMain.g_gm_main_system.game_flag & 4096U) != 0U)
     {
         return;
     }
     mgr_work.flag |= AppMain.GMD_SMSG_FLAG_WIN_DISP;
     AppMain.ObjObjectPause(2);
     AppMain.g_gm_main_system.game_flag &= 4294964223U;
     mgr_work.win_per = 0f;
     GmSound.PlaySE("Window");
     mgr_work.timer = 0;
     mgr_work.func  = AppMain.gmStartMsgMain_WindowOpen;
 }
Ejemplo n.º 25
0
    // Token: 0x060002B1 RID: 689 RVA: 0x000169AC File Offset: 0x00014BAC
    private static void GmBoss4EffBombUpdateCreate(AppMain.GMS_BOSS4_EFF_BOMB_WORK bomb_work)
    {
        AppMain.MTM_ASSERT(bomb_work.parent_obj);
        bomb_work.pos[0] += AppMain.GmBoss4GetScrollOffset();
        if (bomb_work.interval_timer != 0U)
        {
            bomb_work.interval_timer -= 1U;
            return;
        }
        int num       = bomb_work.area[0];
        int num2      = bomb_work.area[1];
        int num3      = AppMain.FX_Mul(AkMath.RandFx(), num);
        int num4      = AppMain.FX_Mul(AkMath.RandFx(), num2);
        int bomb_type = bomb_work.bomb_type;

        AppMain.GMS_EFFECT_3DES_WORK gms_EFFECT_3DES_WORK;
        if (bomb_type != 0)
        {
            if (bomb_type != 5)
            {
                AppMain.MTM_ASSERT(false);
                return;
            }
            gms_EFFECT_3DES_WORK = AppMain.GmBoss4EffCommonInit(743, default(AppMain.VecFx32? ));
            gms_EFFECT_3DES_WORK.efct_com.obj_work.ppFunc = null;
            AppMain.GmEffect3DESSetupBase(gms_EFFECT_3DES_WORK, 2U, 64U);
            gms_EFFECT_3DES_WORK.efct_com.obj_work.ppFunc = AppMain.gmBoss4EffMainFuncDeleteAtEnd;
        }
        else
        {
            gms_EFFECT_3DES_WORK = AppMain.GmEfctCmnEsCreate(null, 7);
            gms_EFFECT_3DES_WORK.efct_com.obj_work.ppFunc = null;
            AppMain.GmEffect3DESSetupBase(gms_EFFECT_3DES_WORK, 2U, 1U);
            gms_EFFECT_3DES_WORK.efct_com.obj_work.ppFunc = AppMain.gmBoss4EffMainFuncDeleteAtEnd;
            if (--bomb_work.interval_timer_sound <= 0)
            {
                bomb_work.interval_timer_sound = 3;
                GmSound.PlaySE("Boss0_02");
            }
        }
        OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_BS_OBJ(gms_EFFECT_3DES_WORK);

        AppMain.MTM_ASSERT(obs_OBJECT_WORK);
        obs_OBJECT_WORK.pos.x = bomb_work.pos[0] - (num >> 1) + num3;
        obs_OBJECT_WORK.pos.y = bomb_work.pos[1] - (num2 >> 1) + num4;
        obs_OBJECT_WORK.pos.z = AppMain.GMM_BS_OBJ(bomb_work.parent_obj).pos.z + 131072;
        uint num5 = (uint)((long)AkMath.RandFx() * (long)((ulong)(bomb_work.interval_max - bomb_work.interval_max)) >> 12);

        bomb_work.interval_timer = bomb_work.interval_min + num5;
    }
Ejemplo n.º 26
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);
        }
    }
Ejemplo n.º 27
0
 // Token: 0x060008B6 RID: 2230 RVA: 0x0004EA7C File Offset: 0x0004CC7C
 private static void gmGmkRockRideStartInit(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_ENEMY_3D_WORK gimmick_work = (AppMain.GMS_ENEMY_3D_WORK)obj_work;
     AppMain.gmGmkRockRideStartSetRect(gimmick_work);
     AppMain.ObjObjectFieldRectSet(obj_work, -16, -16, 16, 16);
     obj_work.flag      &= 4294967294U;
     obj_work.move_flag &= 4294958847U;
     obj_work.move_flag |= 192U;
     obj_work.move_flag &= 4294836223U;
     obj_work.spd_m      = 0;
     AppMain.GMS_GMK_ROCK_WORK gms_GMK_ROCK_WORK = (AppMain.GMS_GMK_ROCK_WORK)obj_work;
     GmSound.PlaySE("BigRock3", gms_GMK_ROCK_WORK.se_handle);
     obj_work.ppFunc = AppMain.gmGmkRockRideStartMain;
     obj_work.ppMove = AppMain.gmGmkRockRideMoveFunc;
     obj_work.ppOut  = AppMain.gmGmkRockRideDrawFunc;
 }
Ejemplo n.º 28
0
 // Token: 0x060013C2 RID: 5058 RVA: 0x000AF298 File Offset: 0x000AD498
 private static void gmGmkPistonTopDeadWait(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_PISTON_WORK gms_GMK_PISTON_WORK = (AppMain.GMS_GMK_PISTON_WORK)obj_work;
     if (!gms_GMK_PISTON_WORK.efct_di)
     {
         OBS_OBJECT_WORK obs_OBJECT_WORK = (OBS_OBJECT_WORK)AppMain.GmEfctCmnEsCreate(null, 48);
         obs_OBJECT_WORK.pos.x = obj_work.pos.x;
         obs_OBJECT_WORK.pos.y = obj_work.pos.y;
         obs_OBJECT_WORK.pos.z = obj_work.pos.z + 65536;
         obs_OBJECT_WORK.dir.z = obj_work.dir.z;
         GmSound.PlaySE("Piston2");
     }
     obj_work.spd.y  = 0;
     obj_work.ppFunc = AppMain.gmGmkPistonTopDeadWait_100;
     AppMain.gmGmkPistonTopDeadWait_100(obj_work);
 }
Ejemplo n.º 29
0
    // Token: 0x06001B39 RID: 6969 RVA: 0x000F881C File Offset: 0x000F6A1C
    private static void _gmGmkPopSteam(AppMain.GMS_GMK_P_STEAM_WORK pwork)
    {
        GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];

        if ((pwork.status & 1) != 0)
        {
            if (gms_PLAYER_WORK.seq_state == 24)
            {
                pwork.ply_work = null;
                pwork.status  &= 65532;
                return;
            }
            int num;
            int num2;
            if ((pwork.steamvect & 16384) != 0)
            {
                num  = 0;
                num2 = pwork.steampower;
                if ((pwork.steamvect & 32768) != 0)
                {
                    num2 = -num2;
                }
            }
            else
            {
                num2 = 0;
                num  = pwork.steampower;
                if ((pwork.steamvect & 32768) != 0)
                {
                    num = -num;
                }
            }
            AppMain.GmPlySeqGmkInitPopSteamJump(gms_PLAYER_WORK, num, num2, ( int )pwork.gmk_work.ene_com.eve_rec.top << 13);
            if ((pwork.status & 2) == 0)
            {
                GmSound.PlaySE("Steam");
                AppMain.GMM_PAD_VIB_SMALL();
            }
            pwork.status |= 2;
        }
        else
        {
            pwork.status &= 65533;
        }
        pwork.status &= 65534;
    }
Ejemplo n.º 30
0
    // Token: 0x06001557 RID: 5463 RVA: 0x000B968C File Offset: 0x000B788C
    private static void gmGmkSsGoalMain(OBS_OBJECT_WORK obj_work)
    {
        AppMain.OBS_COLLISION_OBJ obj_col         = obj_work.col_work.obj_col;
        GMS_PLAYER_WORK           gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];

        if ((AppMain.GmSplStageGetWork().flag & 4U) != 0U)
        {
            obj_work.flag |= 4U;
            return;
        }
        obj_work.dir.z = AppMain.GmMainGetObjectRotation();
        if (obj_col.toucher_obj == gms_PLAYER_WORK.obj_work && obj_col.toucher_obj.touch_obj == obj_work && (AppMain.g_gm_main_system.game_flag & 131072U) == 0U)
        {
            AppMain.g_gm_main_system.game_flag |= 131072U;
            GmSound.PlaySE("Special4");
        }
    }