private static void gmGmkSteamPipe_GateOut(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.GMS_GMK_STEAMP_WORK gmsGmkSteampWork = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; --gmsGmkSteampWork.timer; if (gmsGmkSteampWork.timer > (short)0) { return; } AppMain.OBS_OBJECT_WORK obsObjectWork = (AppMain.OBS_OBJECT_WORK)AppMain.GmEfctCmnEsCreate(obj_work, 92); obsObjectWork.pos.x = obj_work.pos.x; obsObjectWork.pos.y = obj_work.pos.y; int spd_x; if (((int)obj_work.user_flag & 1) == 0) { spd_x = 61440; obsObjectWork.dir.z = (ushort)16384; obsObjectWork.pos.x += 229376; } else { spd_x = -61440; obsObjectWork.dir.z = (ushort)49152; obsObjectWork.pos.x -= 229376; } AppMain.GmPlySeqInitSteamPipeOut(gmsGmkSteampWork.ply_work, spd_x); AppMain.GmSoundPlaySE("PipeOut"); gmsGmkSteampWork.timer = (short)8; obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSteamPipe_GateOut_100); }
// 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; } } }
// 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; } }
private static void gmGmkSteamPipeStart(AppMain.OBS_OBJECT_WORK obj_work, int type) { AppMain.GMS_GMK_STEAMP_WORK gmsGmkSteampWork = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; if (type >= 4 && type < 8) { gmsGmkSteampWork.gmk_work.ene_com.rect_work[0].flag &= 4294967291U; gmsGmkSteampWork.gmk_work.ene_com.rect_work[1].flag &= 4294967291U; AppMain.OBS_RECT_WORK pRec = gmsGmkSteampWork.gmk_work.ene_com.rect_work[2]; pRec.ppHit = (AppMain.OBS_RECT_WORK_Delegate1)null; if (type < 6) { pRec.ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmGmkSteamGateHit); gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.obj = obj_work; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.width = (ushort)32; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.height = (ushort)16; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.ofst_x = (short)-14; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.ofst_y = (short)-34; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.dir = (ushort)0; } else { pRec.ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmGmkSteamExitHit); } AppMain.ObjRectAtkSet(pRec, (ushort)0, (short)0); AppMain.ObjRectDefSet(pRec, (ushort)65534, (short)0); AppMain.ObjRectWorkSet(pRec, AppMain.tbl_gm_gmk_steampipe_rect[type][0], AppMain.tbl_gm_gmk_steampipe_rect[type][1], AppMain.tbl_gm_gmk_steampipe_rect[type][2], AppMain.tbl_gm_gmk_steampipe_rect[type][3]); pRec.flag |= 4U; obj_work.flag &= 4294967293U; } gmsGmkSteampWork.obj_type = type; gmsGmkSteampWork.status = (byte)0; obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSteamPipeStay); }
// Token: 0x06000DB5 RID: 3509 RVA: 0x00079208 File Offset: 0x00077408 private static void gmGmkSteamPipeStart(OBS_OBJECT_WORK obj_work, int type) { AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; if (type >= 4 && type < 8) { gms_GMK_STEAMP_WORK.gmk_work.ene_com.rect_work[0].flag &= 4294967291U; gms_GMK_STEAMP_WORK.gmk_work.ene_com.rect_work[1].flag &= 4294967291U; AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_GMK_STEAMP_WORK.gmk_work.ene_com.rect_work[2]; obs_RECT_WORK.ppHit = null; if (type < 6) { obs_RECT_WORK.ppDef = AppMain.gmGmkSteamGateHit; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.obj = obj_work; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.width = 32; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.height = 16; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.ofst_x = -14; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.ofst_y = -34; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.dir = 0; } else { obs_RECT_WORK.ppDef = AppMain.gmGmkSteamExitHit; } AppMain.ObjRectAtkSet(obs_RECT_WORK, 0, 0); AppMain.ObjRectDefSet(obs_RECT_WORK, 65534, 0); AppMain.ObjRectWorkSet(obs_RECT_WORK, AppMain.tbl_gm_gmk_steampipe_rect[type][0], AppMain.tbl_gm_gmk_steampipe_rect[type][1], AppMain.tbl_gm_gmk_steampipe_rect[type][2], AppMain.tbl_gm_gmk_steampipe_rect[type][3]); obs_RECT_WORK.flag |= 4U; obj_work.flag &= 4294967293U; } gms_GMK_STEAMP_WORK.obj_type = type; gms_GMK_STEAMP_WORK.status = 0; obj_work.ppFunc = AppMain.gmGmkSteamPipeStay; }
private static void gmGmkSteamPipe_GateOut_100(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.GMS_GMK_STEAMP_WORK gmsGmkSteampWork = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; --gmsGmkSteampWork.timer; if (gmsGmkSteampWork.timer > (short)0) { return; } AppMain.gmGmkSteamPipe_GateOutColSet(obj_work); gmsGmkSteampWork.status = (byte)0; obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSteamPipeStay_Exit); }
// Token: 0x06000DB2 RID: 3506 RVA: 0x000790BC File Offset: 0x000772BC private static void gmGmkSteamPipe_GateOut_100(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) { AppMain.gmGmkSteamPipe_GateOutColSet(obj_work); gms_GMK_STEAMP_WORK.status = 0; obj_work.ppFunc = AppMain.gmGmkSteamPipeStay_Exit; } }
// Token: 0x06000DAB RID: 3499 RVA: 0x0007892C File Offset: 0x00076B2C private static void gmGmkSteamExitHit(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect) { AppMain.OBS_OBJECT_WORK parent_obj = mine_rect.parent_obj; AppMain.GMS_PLAYER_WORK gms_PLAYER_WORK = (AppMain.GMS_PLAYER_WORK)match_rect.parent_obj; if (gms_PLAYER_WORK == AppMain.g_gm_main_system.ply_work[( int )(( UIntPtr )0)] && gms_PLAYER_WORK.seq_state == 57 && (gms_PLAYER_WORK.player_flag & 1024U) == 0U) { AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK = (AppMain.GMS_GMK_STEAMP_WORK)parent_obj; gms_PLAYER_WORK.obj_work.spd.x = (gms_PLAYER_WORK.obj_work.spd.y = 0); gms_GMK_STEAMP_WORK.status = 1; gms_GMK_STEAMP_WORK.ply_work = gms_PLAYER_WORK; parent_obj.flag |= 2U; } }
// Token: 0x06000DB3 RID: 3507 RVA: 0x00079108 File Offset: 0x00077308 private static void gmGmkSteamPipe_GateOutColSet(OBS_OBJECT_WORK obj_work) { if ((((AppMain.GMS_ENEMY_COM_WORK)obj_work).eve_rec.flag & 2) == 0) { AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.obj = obj_work; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.width = 64; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.height = 64; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.ofst_x = 0; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.ofst_y = -32; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.dir = 0; } }
private static void gmGmkSteamPipe_GateOutColSet(AppMain.OBS_OBJECT_WORK obj_work) { if (((int)((AppMain.GMS_ENEMY_COM_WORK)obj_work).eve_rec.flag & 2) != 0) { return; } AppMain.GMS_GMK_STEAMP_WORK gmsGmkSteampWork = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.obj = obj_work; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.width = (ushort)64; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.height = (ushort)64; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.ofst_x = (short)0; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.ofst_y = (short)-32; gmsGmkSteampWork.gmk_work.ene_com.col_work.obj_col.dir = (ushort)0; }
private static void gmGmkSteamPipe_GateIn(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.GMS_GMK_STEAMP_WORK gmsGmkSteampWork = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; --gmsGmkSteampWork.timer; if (gmsGmkSteampWork.timer > (short)0) { return; } int spd_x = gmsGmkSteampWork.obj_type != 4 ? -61440 : 61440; gmsGmkSteampWork.ply_work.obj_work.move_flag |= 16U; AppMain.GmPlySeqGmkSpdSet(gmsGmkSteampWork.ply_work, spd_x, 0); gmsGmkSteampWork.ply_work.gmk_flag2 |= 6U; AppMain.GmSoundPlaySE("PipeMoving"); obj_work.ppFunc = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; }
// Token: 0x06000DAA RID: 3498 RVA: 0x0007888C File Offset: 0x00076A8C private static void gmGmkSteamGateHit(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect) { AppMain.OBS_OBJECT_WORK parent_obj = mine_rect.parent_obj; AppMain.GMS_PLAYER_WORK gms_PLAYER_WORK = (AppMain.GMS_PLAYER_WORK)match_rect.parent_obj; if (gms_PLAYER_WORK == AppMain.g_gm_main_system.ply_work[( int )(( UIntPtr )0)] && (gms_PLAYER_WORK.player_flag & 1024U) == 0U) { AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK = (AppMain.GMS_GMK_STEAMP_WORK)parent_obj; gms_PLAYER_WORK.obj_work.pos.y = parent_obj.pos.y; AppMain.GmPlySeqInitSteamPipeIn(gms_PLAYER_WORK); gms_GMK_STEAMP_WORK.status = 1; gms_GMK_STEAMP_WORK.ply_work = gms_PLAYER_WORK; parent_obj.flag |= 2U; AppMain.GMM_PAD_VIB_SMALL_TIME(60f); } mine_rect.flag &= 4294573823U; }
private static void gmGmkSteamExitHit( AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect) { AppMain.OBS_OBJECT_WORK parentObj1 = mine_rect.parent_obj; AppMain.GMS_PLAYER_WORK parentObj2 = (AppMain.GMS_PLAYER_WORK)match_rect.parent_obj; if (parentObj2 != AppMain.g_gm_main_system.ply_work[0] || parentObj2.seq_state != 57 || ((int)parentObj2.player_flag & 1024) != 0) { return; } AppMain.GMS_GMK_STEAMP_WORK gmsGmkSteampWork = (AppMain.GMS_GMK_STEAMP_WORK)parentObj1; parentObj2.obj_work.spd.x = parentObj2.obj_work.spd.y = 0; gmsGmkSteampWork.status = (byte)1; gmsGmkSteampWork.ply_work = parentObj2; parentObj1.flag |= 2U; }
private static void gmGmkSteamGateHit( AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect) { AppMain.OBS_OBJECT_WORK parentObj1 = mine_rect.parent_obj; AppMain.GMS_PLAYER_WORK parentObj2 = (AppMain.GMS_PLAYER_WORK)match_rect.parent_obj; if (parentObj2 == AppMain.g_gm_main_system.ply_work[0] && ((int)parentObj2.player_flag & 1024) == 0) { AppMain.GMS_GMK_STEAMP_WORK gmsGmkSteampWork = (AppMain.GMS_GMK_STEAMP_WORK)parentObj1; parentObj2.obj_work.pos.y = parentObj1.pos.y; AppMain.GmPlySeqInitSteamPipeIn(parentObj2); gmsGmkSteampWork.status = (byte)1; gmsGmkSteampWork.ply_work = parentObj2; parentObj1.flag |= 2U; AppMain.GMM_PAD_VIB_SMALL_TIME(60f); } mine_rect.flag &= 4294573823U; }
// Token: 0x06000DB0 RID: 3504 RVA: 0x00078F2C File Offset: 0x0007712C private static void gmGmkSteamPipe_GateIn(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) { int spd_x; if (gms_GMK_STEAMP_WORK.obj_type == 4) { spd_x = 61440; } else { spd_x = -61440; } gms_GMK_STEAMP_WORK.ply_work.obj_work.move_flag |= 16U; AppMain.GmPlySeqGmkSpdSet(gms_GMK_STEAMP_WORK.ply_work, spd_x, 0); gms_GMK_STEAMP_WORK.ply_work.gmk_flag2 |= 6U; GmSound.PlaySE("PipeMoving"); obj_work.ppFunc = null; } }
private static void gmGmkSteamPipeStay_100(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.GMS_GMK_STEAMP_WORK gmsGmkSteampWork = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; if (gmsGmkSteampWork.status == (byte)0) { return; } switch (gmsGmkSteampWork.obj_type) { case 4: case 5: gmsGmkSteampWork.timer = (short)60; obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSteamPipe_GateIn); AppMain.GmSoundPlaySE("PipeIn"); break; case 6: case 7: gmsGmkSteampWork.timer = (short)0; AppMain.gmGmkSteamPipe_GateOutColClear(obj_work); obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSteamPipe_GateOut); break; } }
// Token: 0x06000DAD RID: 3501 RVA: 0x00078E04 File Offset: 0x00077004 private static void gmGmkSteamPipeStay(OBS_OBJECT_WORK obj_work) { AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; switch (gms_GMK_STEAMP_WORK.obj_type) { case 0: case 1: case 2: case 3: AppMain.gmGmkSteamCrankCheck(obj_work); return; case 4: case 5: obj_work.ppFunc = AppMain.gmGmkSteamPipeStay_100; return; case 6: case 7: obj_work.ppFunc = AppMain.gmGmkSteamPipeStay_Exit; return; } obj_work.ppFunc = null; }
private static void gmGmkSteamCrankCheck(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.GMS_PLAYER_WORK gmsPlayerWork = AppMain.g_gm_main_system.ply_work[0]; if (gmsPlayerWork.obj_work.pos.x < obj_work.pos.x + 65536 && gmsPlayerWork.obj_work.pos.x > obj_work.pos.x - 65536 && (gmsPlayerWork.obj_work.pos.y < obj_work.pos.y + 65536 && gmsPlayerWork.obj_work.pos.y > obj_work.pos.y - 65536)) { if (((int)gmsPlayerWork.player_flag & 1024) != 0 || gmsPlayerWork.seq_state != 57 || obj_work.user_flag != 0U) { return; } AppMain.GMS_GMK_STEAMP_WORK gmsGmkSteampWork = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; if (gmsPlayerWork.obj_work.spd.x != 0) { int x = gmsPlayerWork.obj_work.spd.x; int num = gmsPlayerWork.obj_work.pos.x - x; if ((x <= 0 || ((int)AppMain.tbl_gmk_pipe_vect[gmsGmkSteampWork.obj_type] & 2) == 0 || (num > obj_work.pos.x || obj_work.pos.x > gmsPlayerWork.obj_work.pos.x)) && (x >= 0 || ((int)AppMain.tbl_gmk_pipe_vect[gmsGmkSteampWork.obj_type] & 1) == 0 || (gmsPlayerWork.obj_work.pos.x > obj_work.pos.x || obj_work.pos.x > num))) { return; } int a = gmsPlayerWork.obj_work.pos.x - obj_work.pos.x; gmsPlayerWork.obj_work.pos.x = obj_work.pos.x; gmsPlayerWork.obj_work.spd.x = 0; gmsPlayerWork.obj_work.pos.y = obj_work.pos.y; if (((int)AppMain.tbl_gmk_pipe_vect[gmsGmkSteampWork.obj_type] & 8) == 0) { gmsPlayerWork.obj_work.spd.y = -61440; gmsPlayerWork.obj_work.pos.y -= AppMain.MTM_MATH_ABS(a); } else { gmsPlayerWork.obj_work.spd.y = 61440; gmsPlayerWork.obj_work.pos.y += AppMain.MTM_MATH_ABS(a); } obj_work.flag |= 2U; AppMain.GmSoundPlaySE("PipeMoving"); obj_work.user_flag = 1U; } else { int y = gmsPlayerWork.obj_work.spd.y; int num = gmsPlayerWork.obj_work.pos.y - y; if ((y <= 0 || ((int)AppMain.tbl_gmk_pipe_vect[gmsGmkSteampWork.obj_type] & 4) == 0 || (num > obj_work.pos.y || obj_work.pos.y > gmsPlayerWork.obj_work.pos.y)) && (y >= 0 || ((int)AppMain.tbl_gmk_pipe_vect[gmsGmkSteampWork.obj_type] & 8) == 0 || (gmsPlayerWork.obj_work.pos.y > obj_work.pos.y || obj_work.pos.y > num))) { return; } int a = gmsPlayerWork.obj_work.pos.y - obj_work.pos.y; gmsPlayerWork.obj_work.pos.y = obj_work.pos.y; gmsPlayerWork.obj_work.spd.y = 0; gmsPlayerWork.obj_work.pos.x = obj_work.pos.x; if (((int)AppMain.tbl_gmk_pipe_vect[gmsGmkSteampWork.obj_type] & 2) == 0) { gmsPlayerWork.obj_work.spd.x = 61440; gmsPlayerWork.obj_work.pos.x += AppMain.MTM_MATH_ABS(a); } else { gmsPlayerWork.obj_work.spd.x = -61440; gmsPlayerWork.obj_work.pos.x -= AppMain.MTM_MATH_ABS(a); } obj_work.flag |= 2U; AppMain.GmSoundPlaySE("PipeMoving"); obj_work.user_flag = 1U; } } else { obj_work.user_flag = 0U; } }
// Token: 0x06000DB4 RID: 3508 RVA: 0x000791D8 File Offset: 0x000773D8 private static void gmGmkSteamPipe_GateOutColClear(OBS_OBJECT_WORK obj_work) { AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; gms_GMK_STEAMP_WORK.gmk_work.ene_com.col_work.obj_col.obj = null; }
// Token: 0x06000DAC RID: 3500 RVA: 0x000789BC File Offset: 0x00076BBC private static void gmGmkSteamCrankCheck(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.obj_work.pos.x < obj_work.pos.x + 65536 && gms_PLAYER_WORK.obj_work.pos.x > obj_work.pos.x - 65536 && gms_PLAYER_WORK.obj_work.pos.y < obj_work.pos.y + 65536 && gms_PLAYER_WORK.obj_work.pos.y > obj_work.pos.y - 65536) { if ((gms_PLAYER_WORK.player_flag & 1024U) != 0U || gms_PLAYER_WORK.seq_state != 57) { return; } if (obj_work.user_flag != 0U) { return; } AppMain.GMS_GMK_STEAMP_WORK gms_GMK_STEAMP_WORK = (AppMain.GMS_GMK_STEAMP_WORK)obj_work; if (gms_PLAYER_WORK.obj_work.spd.x != 0) { int num = gms_PLAYER_WORK.obj_work.spd.x; int num2 = gms_PLAYER_WORK.obj_work.pos.x - num; if ((num > 0 && (AppMain.tbl_gmk_pipe_vect[gms_GMK_STEAMP_WORK.obj_type] & 2) != 0 && num2 <= obj_work.pos.x && obj_work.pos.x <= gms_PLAYER_WORK.obj_work.pos.x) || (num < 0 && (AppMain.tbl_gmk_pipe_vect[gms_GMK_STEAMP_WORK.obj_type] & 1) != 0 && gms_PLAYER_WORK.obj_work.pos.x <= obj_work.pos.x && obj_work.pos.x <= num2)) { num2 = gms_PLAYER_WORK.obj_work.pos.x - obj_work.pos.x; gms_PLAYER_WORK.obj_work.pos.x = obj_work.pos.x; gms_PLAYER_WORK.obj_work.spd.x = 0; gms_PLAYER_WORK.obj_work.pos.y = obj_work.pos.y; if ((AppMain.tbl_gmk_pipe_vect[gms_GMK_STEAMP_WORK.obj_type] & 8) == 0) { gms_PLAYER_WORK.obj_work.spd.y = -61440; OBS_OBJECT_WORK obj_work2 = gms_PLAYER_WORK.obj_work; obj_work2.pos.y = obj_work2.pos.y - AppMain.MTM_MATH_ABS(num2); } else { gms_PLAYER_WORK.obj_work.spd.y = 61440; OBS_OBJECT_WORK obj_work3 = gms_PLAYER_WORK.obj_work; obj_work3.pos.y = obj_work3.pos.y + AppMain.MTM_MATH_ABS(num2); } obj_work.flag |= 2U; GmSound.PlaySE("PipeMoving"); obj_work.user_flag = 1U; return; } } else { int num = gms_PLAYER_WORK.obj_work.spd.y; int num2 = gms_PLAYER_WORK.obj_work.pos.y - num; if ((num > 0 && (AppMain.tbl_gmk_pipe_vect[gms_GMK_STEAMP_WORK.obj_type] & 4) != 0 && num2 <= obj_work.pos.y && obj_work.pos.y <= gms_PLAYER_WORK.obj_work.pos.y) || (num < 0 && (AppMain.tbl_gmk_pipe_vect[gms_GMK_STEAMP_WORK.obj_type] & 8) != 0 && gms_PLAYER_WORK.obj_work.pos.y <= obj_work.pos.y && obj_work.pos.y <= num2)) { num2 = gms_PLAYER_WORK.obj_work.pos.y - obj_work.pos.y; gms_PLAYER_WORK.obj_work.pos.y = obj_work.pos.y; gms_PLAYER_WORK.obj_work.spd.y = 0; gms_PLAYER_WORK.obj_work.pos.x = obj_work.pos.x; if ((AppMain.tbl_gmk_pipe_vect[gms_GMK_STEAMP_WORK.obj_type] & 2) == 0) { gms_PLAYER_WORK.obj_work.spd.x = 61440; OBS_OBJECT_WORK obj_work4 = gms_PLAYER_WORK.obj_work; obj_work4.pos.x = obj_work4.pos.x + AppMain.MTM_MATH_ABS(num2); } else { gms_PLAYER_WORK.obj_work.spd.x = -61440; OBS_OBJECT_WORK obj_work5 = gms_PLAYER_WORK.obj_work; obj_work5.pos.x = obj_work5.pos.x - AppMain.MTM_MATH_ABS(num2); } obj_work.flag |= 2U; GmSound.PlaySE("PipeMoving"); obj_work.user_flag = 1U; return; } } } else { obj_work.user_flag = 0U; } }