// Token: 0x06001028 RID: 4136 RVA: 0x0008C96C File Offset: 0x0008AB6C private static int gmEneUniuniGetLength2N(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) { return(int.MaxValue); } int x = gms_PLAYER_WORK.obj_work.pos.x - obj_work.pos.x; int x2 = gms_PLAYER_WORK.obj_work.pos.y - obj_work.pos.y; float num = AppMain.FX_FX32_TO_F32(x); float num2 = AppMain.FX_FX32_TO_F32(x2); return(( int )(num * num + num2 * num2)); }
// Token: 0x06001237 RID: 4663 RVA: 0x0009F4EC File Offset: 0x0009D6EC private static void gmGmkDrainTankOutMainDamage(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); obj_work.spd.x = 0; obj_work.spd.y = 0; return; } if (AppMain.gmGmkDrainTankOutCheckDeleteTask(obj_work, 1843200, 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.gmGmkDrainTankOutUpdateCameraRollDamage(gms_GMK_DRAIN_TANK_OUT_WORK); int num = (AppMain.GMD_GMK_DRAIN_TANK_ROLL_ANGLE_MAX - AppMain.MTM_MATH_ABS(gms_GMK_DRAIN_TANK_OUT_WORK.camera_roll)) * 4; int num2 = num >> 3; if (gms_GMK_DRAIN_TANK_OUT_WORK.flag_dir_left) { obj_work.spd.x = num2; } else { obj_work.spd.x = -num2; } float num3 = AppMain.FX_FX32_TO_F32(num >> 4); AppMain.GmWaterSurfaceRequestAddWatarLevel(-num3, 0, true); obj_work.user_timer++; if ((obj_work2.move_flag & 1U) != 0U) { obj_work.user_timer = 0; AppMain.gmGmkDrainTankOutChangeModeWait(obj_work); AppMain.GmPlySeqInitDrainTank(gms_PLAYER_WORK); return; } OBS_CAMERA obs_CAMERA = ObjCamera.Get(0); obs_CAMERA.roll = gms_GMK_DRAIN_TANK_OUT_WORK.camera_roll; AppMain.gmGmkDrainTankOutUpdateCameraOffset(gms_PLAYER_WORK, gms_GMK_DRAIN_TANK_OUT_WORK); AppMain.gmGmkDrainTankOutSinkRing(); }
// Token: 0x06000543 RID: 1347 RVA: 0x0002C9B4 File Offset: 0x0002ABB4 private static bool gmGmkTarzanRopeCheckPlayerJump(OBS_OBJECT_WORK obj_work, int angle_target, int angle_current) { 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; GMS_PLAYER_WORK ply_work = (GMS_PLAYER_WORK)target_obj; if (AppMain.gmGmkTarzanRopeGetCatchWait(obj_work) > 0U) { return(false); } if (GmPlayer.KeyCheckJumpKeyPush(ply_work)) { target_obj.disp_flag &= 4294967279U; target_obj.spd_m = 0; target_obj.spd.x = 0; target_obj.spd.y = 0; target_obj.dir.z = 0; target_obj.spd_add.x = 0; target_obj.spd_add.y = 0; target_obj.spd_add.z = 0; float num = 1f + (float)gms_ENEMY_3D_WORK.ene_com.eve_rec.left / 10000f; int num2 = (int)((float)angle_target * 0.8f * num); int num3 = (int)((float)AppMain.MTM_MATH_ABS(angle_current) * 2.3f * num); if (angle_target == 0 && angle_current == 0) { num2 = 0; num3 = 16384; } else if ((angle_target < 0 && 0 < angle_current) || (0 < angle_target && angle_current < 0)) { if (AppMain.MTM_MATH_ABS(angle_target + angle_current) < 1792) { num2 = -num2; } else { num2 = 0; num3 = 16384; } } AppMain.GmPlySeqGmkInitGmkJump(ply_work, num2, -num3); AppMain.GmPlySeqChangeSequenceState(ply_work, 17); obj_work.ppFunc = AppMain.gmGmkTarzanRopeMainEnd; gms_ENEMY_3D_WORK.ene_com.target_obj = null; return(true); } return(false); }
// Token: 0x06000B1C RID: 2844 RVA: 0x00064058 File Offset: 0x00062258 private static void gmGmkSsRingGateDefFunc(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; } int v = AppMain.FX_Mul(gms_PLAYER_WORK.obj_work.spd.x, 5120); int num = AppMain.FX_Mul(gms_PLAYER_WORK.obj_work.spd.y, 5120); short num2 = (short)AppMain.GmMainGetObjectRotation(); if ((gms_ENEMY_COM_WORK.obj_work.user_flag & 1U) != 0U) { if (num2 > 0) { num2 -= 16384; } else { num2 += 16384; } } num2 *= 2; num = -num; int num3 = AppMain.FX_Mul(v, AppMain.mtMathCos((int)num2)); num3 += AppMain.FX_Mul(num, AppMain.mtMathSin(( int )num2)); int num4 = AppMain.FX_Mul(num, AppMain.mtMathCos((int)num2)); num4 -= AppMain.FX_Mul(v, AppMain.mtMathSin(( int )num2)); gms_PLAYER_WORK.obj_work.spd.x = num3; gms_PLAYER_WORK.obj_work.spd.y = num4; gms_PLAYER_WORK.obj_work.spd_m = AppMain.FX_Mul(-gms_PLAYER_WORK.obj_work.spd_m, 5120); AppMain.GMM_PAD_VIB_MID_TIME(60f); gms_PLAYER_WORK.player_flag &= 4294967280U; gms_PLAYER_WORK.player_flag |= 1U; }
// 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) { OBS_OBJECT_WORK parent_obj = mine_rect.parent_obj; GMS_PLAYER_WORK gms_PLAYER_WORK = (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; }
// 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; }
// 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"); } }
// Token: 0x06001B59 RID: 7001 RVA: 0x000FA29C File Offset: 0x000F849C private static int gmEneGardonIsPlayerFront(OBS_OBJECT_WORK obj_work) { GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)]; if ((obj_work.disp_flag & 1U) != 0U) { if (obj_work.pos.x > gms_PLAYER_WORK.obj_work.pos.x) { return(1); } } else if (obj_work.pos.x < gms_PLAYER_WORK.obj_work.pos.x) { return(1); } return(0); }
// Token: 0x06000671 RID: 1649 RVA: 0x0003980C File Offset: 0x00037A0C public static void gmGmkTruckInitFree(OBS_OBJECT_WORK obj_work, GMS_PLAYER_WORK ply_work) { AppMain.GMS_GMK_TRUCK_WORK gms_GMK_TRUCK_WORK = (AppMain.GMS_GMK_TRUCK_WORK)obj_work; gms_GMK_TRUCK_WORK.target_player = null; uint num; uint num2; if (ply_work != null) { obj_work.spd = ply_work.obj_work.spd; obj_work.spd_m = ply_work.obj_work.spd_m; num = ply_work.obj_work.flag; num2 = ply_work.obj_work.move_flag; } else { obj_work.spd.x = 0; obj_work.spd.y = 0; obj_work.spd.z = 0; num = 0U; num2 = 0U; } obj_work.flag &= 4294967294U; obj_work.flag |= (2U | (num & 1U)); obj_work.flag &= 4294967279U; obj_work.move_flag |= 192U; obj_work.move_flag &= 4294401791U; if ((num2 & 16U) != 0U) { obj_work.move_flag |= 16U; } else { if (obj_work.spd.x > obj_work.spd_m) { obj_work.spd_m = obj_work.spd.x; } obj_work.spd.x = 0; if (obj_work.obj_3d.act_id[0] != 0) { AppMain.ObjDrawObjectActionSet3DNNBlend(obj_work, 0); obj_work.disp_flag |= 4U; } } obj_work.ppFunc = AppMain.gmGmkTruckFreeMain; }
// Token: 0x060003E6 RID: 998 RVA: 0x0001F978 File Offset: 0x0001DB78 private static void gmEneMereonAppearInit(OBS_OBJECT_WORK obj_work) { AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK = (AppMain.GMS_ENEMY_COM_WORK)obj_work; GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)]; obj_work.disp_flag &= 4294967294U; if (gms_ENEMY_COM_WORK.eve_rec.id == 4 && gms_PLAYER_WORK.obj_work.pos.x > obj_work.pos.x) { obj_work.disp_flag |= 1U; } AppMain.GmEneComActionSetDependHFlip(obj_work, 0, 1); obj_work.disp_flag |= 4U; obj_work.disp_flag |= 134217728U; obj_work.obj_3d.draw_state.alpha.alpha = 0f; obj_work.user_timer = 0; obj_work.ppFunc = AppMain.gmEneMereonAppearMain; }
// Token: 0x06000274 RID: 628 RVA: 0x00014500 File Offset: 0x00012700 private static void gmGmkSpCtplt_PlayerHit(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect) { OBS_OBJECT_WORK parent_obj = mine_rect.parent_obj; GMS_PLAYER_WORK gms_PLAYER_WORK = (GMS_PLAYER_WORK)match_rect.parent_obj; if ((gms_PLAYER_WORK.player_flag & 1024U) != 0U || (gms_PLAYER_WORK.obj_work.flag & 2U) != 0U || (AppMain.g_gm_main_system.game_flag & 262656U) != 0U) { return; } if (gms_PLAYER_WORK == AppMain.g_gm_main_system.ply_work[( int )(( UIntPtr )0)]) { AppMain.GMS_GMK_SPCTPLT_WORK gms_GMK_SPCTPLT_WORK = (AppMain.GMS_GMK_SPCTPLT_WORK)parent_obj; AppMain.GmPlySeqInitPinballCtpltHold(gms_PLAYER_WORK, gms_GMK_SPCTPLT_WORK.gmk_work.ene_com); gms_PLAYER_WORK.obj_work.flag |= 2U; parent_obj.flag |= 2U; gms_GMK_SPCTPLT_WORK.ply_work = gms_PLAYER_WORK; } }
// Token: 0x0600076F RID: 1903 RVA: 0x00041A58 File Offset: 0x0003FC58 private static void gmGmkSsEnduranceWait(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; } if (obj_col.toucher_obj == gms_PLAYER_WORK.obj_work) { obj_work.ppFunc = AppMain.gmGmkSsEnduranceDamage; obj_work.user_timer |= 30; GmSound.PlaySE("Special3"); } AppMain.gmGmkSsEnduranceUpdateUVTimer(obj_work); AppMain.GmGmkSsSquareBounce(obj_work); }
// Token: 0x060008BC RID: 2236 RVA: 0x0004EEC0 File Offset: 0x0004D0C0 private static void gmGmkRockRideRollDefFunc(AppMain.OBS_RECT_WORK own_rect, AppMain.OBS_RECT_WORK target_rect) { OBS_OBJECT_WORK parent_obj = own_rect.parent_obj; AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)parent_obj; AppMain.GMS_ENEMY_COM_WORK ene_com = gms_ENEMY_3D_WORK.ene_com; OBS_OBJECT_WORK parent_obj2 = target_rect.parent_obj; if (parent_obj2.obj_type != 1) { return; } GMS_PLAYER_WORK ply_work = (GMS_PLAYER_WORK)parent_obj2; AppMain.GmPlySeqInitRockRide(ply_work, ene_com); own_rect.ppDef = AppMain.gmGmkRockRideRollDefFunc; parent_obj.ppFunc = AppMain.gmGmkRockRideRollMain; parent_obj.pos.z = 131072; }
// Token: 0x060003EF RID: 1007 RVA: 0x0002003C File Offset: 0x0001E23C private static void gmEneMereonCheckFwFlip(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) { if (obj_work.obj_3d.act_id[0] != 0) { AppMain.ObjDrawObjectActionSet(obj_work, 0); obj_work.disp_flag &= 4294967294U; } } else if (gms_PLAYER_WORK.obj_work.pos.x > obj_work.pos.x && obj_work.obj_3d.act_id[0] != 1) { AppMain.ObjDrawObjectActionSet(obj_work, 1); obj_work.disp_flag |= 1U; } obj_work.disp_flag |= 4U; }
// Token: 0x06001B23 RID: 6947 RVA: 0x000F7A44 File Offset: 0x000F5C44 private static void gmGmkPressWallForceZ4_Hit_100(OBS_OBJECT_WORK obj_work) { AppMain.GMS_GMK_PWALL_WORK gms_GMK_PWALL_WORK = (AppMain.GMS_GMK_PWALL_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) { gms_GMK_PWALL_WORK.ply_death = true; gms_GMK_PWALL_WORK.wall_speed = 0; obj_work.ppFunc = AppMain.gmGmkPressWallForceZ4_Stop; return; } gms_GMK_PWALL_WORK.wall_brake += gms_GMK_PWALL_WORK.wall_speed / 64; if (gms_GMK_PWALL_WORK.wall_brake >= gms_GMK_PWALL_WORK.wall_speed) { gms_GMK_PWALL_WORK.wall_brake = gms_GMK_PWALL_WORK.wall_speed; gms_GMK_PWALL_WORK.gmk_work.obj_3d.speed[0] = 1f; gms_GMK_PWALL_WORK.gmk_work.obj_3d.speed[1] = 1f; gms_GMK_PWALL_WORK.mat_timer = 0U; gms_GMK_PWALL_WORK.mat_timer_line = 0U; obj_work.disp_flag &= 4294963199U; obj_work.flag &= 4294967293U; gms_GMK_PWALL_WORK.ply_death = false; obj_work.ppFunc = AppMain.gmGmkPressWallForce; } if (gms_GMK_PWALL_WORK.gmk_work.obj_3d.speed[0] < 1f) { gms_GMK_PWALL_WORK.gmk_work.obj_3d.speed[0] += 0.015625f; gms_GMK_PWALL_WORK.gmk_work.obj_3d.speed[1] += 0.015625f; gms_GMK_PWALL_WORK.mat_timer += 1U; if (gms_GMK_PWALL_WORK.mat_timer > gms_GMK_PWALL_WORK.mat_timer_line) { obj_work.disp_flag |= 4096U; gms_GMK_PWALL_WORK.mat_timer_line = gms_GMK_PWALL_WORK.mat_timer; gms_GMK_PWALL_WORK.mat_timer = 0U; } else { obj_work.disp_flag &= 4294963199U; } } obj_work.pos.x = obj_work.pos.x + gms_GMK_PWALL_WORK.wall_brake; }
// Token: 0x06000676 RID: 1654 RVA: 0x00039D7C File Offset: 0x00037F7C public static void gmGmkTruckBodyDefFunc(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; } AppMain.GMS_GMK_TRUCK_WORK gms_GMK_TRUCK_WORK = (AppMain.GMS_GMK_TRUCK_WORK)gms_ENEMY_COM_WORK; gms_ENEMY_COM_WORK.obj_work.flag |= 16U; GmPlayer.SetTruckRide(gms_PLAYER_WORK, gms_ENEMY_COM_WORK.obj_work, gms_ENEMY_COM_WORK.obj_work.field_rect[0], gms_ENEMY_COM_WORK.obj_work.field_rect[1], gms_ENEMY_COM_WORK.obj_work.field_rect[2], gms_ENEMY_COM_WORK.obj_work.field_rect[3]); gms_GMK_TRUCK_WORK.target_player = gms_PLAYER_WORK; AppMain.gmGmkTruckInitMain(gms_ENEMY_COM_WORK.obj_work, gms_PLAYER_WORK); }
// Token: 0x06001B22 RID: 6946 RVA: 0x000F78C4 File Offset: 0x000F5AC4 private static void gmGmkPressWallForceZ4_Hit(OBS_OBJECT_WORK obj_work) { AppMain.GMS_GMK_PWALL_WORK gms_GMK_PWALL_WORK = (AppMain.GMS_GMK_PWALL_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) { gms_GMK_PWALL_WORK.ply_death = true; gms_GMK_PWALL_WORK.wall_speed = 0; AppMain.gmGmkPressWallSeStop(obj_work); } gms_GMK_PWALL_WORK.wall_brake -= gms_GMK_PWALL_WORK.wall_speed / 64; if (gms_GMK_PWALL_WORK.wall_brake <= 0 || gms_GMK_PWALL_WORK.wall_speed == 0) { gms_GMK_PWALL_WORK.wall_brake = 0; if (!gms_GMK_PWALL_WORK.ply_death && gms_GMK_PWALL_WORK.wall_speed != 0) { obj_work.ppFunc = AppMain.gmGmkPressWallForceZ4_Hit_100; } else { obj_work.ppFunc = AppMain.gmGmkPressWallForceZ4_Stop; } } if (gms_GMK_PWALL_WORK.gmk_work.obj_3d.speed[0] > 0f) { gms_GMK_PWALL_WORK.gmk_work.obj_3d.speed[0] -= 0.015625f; gms_GMK_PWALL_WORK.gmk_work.obj_3d.speed[1] -= 0.015625f; gms_GMK_PWALL_WORK.mat_timer += 1U; if (gms_GMK_PWALL_WORK.mat_timer > gms_GMK_PWALL_WORK.mat_timer_line) { obj_work.disp_flag &= 4294963199U; gms_GMK_PWALL_WORK.mat_timer_line = gms_GMK_PWALL_WORK.mat_timer; gms_GMK_PWALL_WORK.mat_timer = 0U; } else { obj_work.disp_flag |= 4096U; } } obj_work.pos.x = obj_work.pos.x + gms_GMK_PWALL_WORK.wall_brake; }
// Token: 0x06000654 RID: 1620 RVA: 0x0003832C File Offset: 0x0003652C private static OBS_OBJECT_WORK GmGmkWaterSliderCreateEffect() { if (AppMain.g_gm_gmk_water_slider_effct_player == null) { GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)]; OBS_OBJECT_WORK obj_work = gms_PLAYER_WORK.obj_work; AppMain.g_gm_gmk_water_slider_effct_player = AppMain.GmEfctZoneEsCreate(obj_work, 2, 23); OBS_OBJECT_WORK obs_OBJECT_WORK = (OBS_OBJECT_WORK)AppMain.g_gm_gmk_water_slider_effct_player; obs_OBJECT_WORK.parent_ofst.z = 131072; obs_OBJECT_WORK.ppFunc = AppMain.gmGmkWaterSliderEffectMainFunc; AppMain.mtTaskChangeTcbDestructor(obs_OBJECT_WORK.tcb, AppMain.gmGmkWaterSliderEffectDestFunc); } if (AppMain.g_gm_gmk_water_slider_se_handle == null) { AppMain.g_gm_gmk_water_slider_se_handle = GsSound.AllocSeHandle(); GmSound.PlaySE("WaterSlider", AppMain.g_gm_gmk_water_slider_se_handle); } AppMain.GMM_PAD_VIB_SMALL_TIME(30f); return(( OBS_OBJECT_WORK )AppMain.g_gm_gmk_water_slider_effct_player); }
// Token: 0x06000544 RID: 1348 RVA: 0x0002CB04 File Offset: 0x0002AD04 private static void gmGmkTarzanRopeUpdatePlayerPos(OBS_OBJECT_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; GMS_PLAYER_WORK gms_PLAYER_WORK = (GMS_PLAYER_WORK)target_obj; NNS_MATRIX nns_MATRIX = new NNS_MATRIX(); AppMain.nnMakeUnitMatrix(nns_MATRIX); nns_MATRIX.M11 = AppMain.g_gm_gmk_tarzan_rope_active_matrix.M11; nns_MATRIX.M22 = AppMain.g_gm_gmk_tarzan_rope_active_matrix.M00; nns_MATRIX.M21 = AppMain.g_gm_gmk_tarzan_rope_active_matrix.M01; nns_MATRIX.M12 = AppMain.g_gm_gmk_tarzan_rope_active_matrix.M10; nns_MATRIX.M03 = -5f; AkMath.NormalizeMtx(gms_PLAYER_WORK.ex_obj_mtx_r, nns_MATRIX); if ((target_obj.disp_flag & 1U) != 0U) { gms_PLAYER_WORK.ex_obj_mtx_r.M21 = -gms_PLAYER_WORK.ex_obj_mtx_r.M21; gms_PLAYER_WORK.ex_obj_mtx_r.M12 = -gms_PLAYER_WORK.ex_obj_mtx_r.M12; nns_MATRIX.M03 = -nns_MATRIX.M03; } int num = (int)((int)(gms_ENEMY_3D_WORK.ene_com.enemy_flag & 65535U) << 12); num += 24576; if (num > 393216) { num = 393216; } gms_ENEMY_3D_WORK.ene_com.enemy_flag &= 4294901760U; gms_ENEMY_3D_WORK.ene_com.enemy_flag |= ( uint )(num >> 12); float num2 = (float)num / 393216f; num2 = -num2 * 20f; num2 += 15f; NNS_VECTOR nns_VECTOR = new NNS_VECTOR(0f, num2, 0f); AppMain.nnTransformVector(nns_VECTOR, nns_MATRIX, nns_VECTOR); target_obj.pos.x = AppMain.FX_F32_TO_FX32(AppMain.g_gm_gmk_tarzan_rope_active_matrix.M03 + nns_VECTOR.z); target_obj.pos.y = -AppMain.FX_F32_TO_FX32(AppMain.g_gm_gmk_tarzan_rope_active_matrix.M13 + nns_VECTOR.y); target_obj.pos.z = AppMain.FX_F32_TO_FX32(AppMain.g_gm_gmk_tarzan_rope_active_matrix.M23 + nns_VECTOR.x); gms_PLAYER_WORK.gmk_flag |= 32768U; }
// Token: 0x0600067A RID: 1658 RVA: 0x0003A418 File Offset: 0x00038618 public static void gmGmkTGravityForceChangeDefFunc(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 || (gms_PLAYER_WORK.obj_work.move_flag & 1U) != 0U) { return; } if (((( int )gms_ENEMY_COM_WORK.eve_rec.flag & AppMain.GMD_GMK_T_GRAVITY_A) != 0 && (gms_PLAYER_WORK.obj_work.flag & 1U) != 0U) || ((( int )gms_ENEMY_COM_WORK.eve_rec.flag & AppMain.GMD_GMK_T_GRAVITY_B) != 0 && (gms_PLAYER_WORK.obj_work.flag & 1U) == 0U)) { return; } int num = (int)((gms_ENEMY_COM_WORK.eve_rec.id - 268) * 16384); ushort num2 = (ushort)(num - (int)gms_PLAYER_WORK.jump_pseudofall_dir); gms_PLAYER_WORK.jump_pseudofall_dir = ( ushort )num; int num3 = num - gms_PLAYER_WORK.ply_pseudofall_dir; if (( ushort )AppMain.MTM_MATH_ABS(num3) > 32768) { if (num3 < 0) { gms_PLAYER_WORK.ply_pseudofall_dir += 65536 + num3; } else { gms_PLAYER_WORK.ply_pseudofall_dir += num3 - 65536; } } else { gms_PLAYER_WORK.ply_pseudofall_dir = num; } AppMain.ObjObjectSpdDirFall(ref gms_PLAYER_WORK.obj_work.spd.x, ref gms_PLAYER_WORK.obj_work.spd.y, ( ushort )-num2); gms_PLAYER_WORK.gmk_flag |= 16777216U; }
// Token: 0x06001019 RID: 4121 RVA: 0x0008C17C File Offset: 0x0008A37C public static void gmGmkBubbleDefFunc(AppMain.OBS_RECT_WORK own_rect, AppMain.OBS_RECT_WORK target_rect) { OBS_OBJECT_WORK parent_obj = own_rect.parent_obj; OBS_OBJECT_WORK parent_obj2 = target_rect.parent_obj; if (parent_obj2.obj_type != 1) { return; } GMS_PLAYER_WORK ply_work = (GMS_PLAYER_WORK)parent_obj2; AppMain.GmPlySeqInitBreathing(ply_work); GmPlayer.BreathingSet(ply_work); parent_obj.flag |= 4U; AppMain.GMS_EFFECT_3DES_WORK gms_EFFECT_3DES_WORK = AppMain.GmEfctZoneEsCreate(null, 2, 3); gms_EFFECT_3DES_WORK.efct_com.obj_work.pos.x = parent_obj.pos.x; gms_EFFECT_3DES_WORK.efct_com.obj_work.pos.y = parent_obj.pos.y; gms_EFFECT_3DES_WORK.efct_com.obj_work.pos.z = parent_obj.pos.z; AppMain.GMM_PAD_VIB_SMALL(); gms_EFFECT_3DES_WORK.efct_com.obj_work.ppFunc = AppMain.gmGmkBubbleMainHit; }
// Token: 0x0600122C RID: 4652 RVA: 0x0009EE90 File Offset: 0x0009D090 private static void gmGmkDrainTankInMainReady(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) { return; } if (AppMain.gmGmkDrainTankInCheckDeleteTask(obj_work, 1843200, 1228800)) { AppMain.gmGmkDrainTankInRequestDeleteTask(obj_work); return; } OBS_OBJECT_WORK obj_work2 = gms_PLAYER_WORK.obj_work; if (obj_work.pos.x + 65536 < obj_work2.pos.x) { obj_work.pos.y = obj_work.pos.y + 32768; obj_work.ppFunc = AppMain.gmGmkDrainTankInMainWait; obj_work.move_flag |= 128U; } }
// Token: 0x0600026A RID: 618 RVA: 0x00013CA8 File Offset: 0x00011EA8 private static void gmGmkStopperHit(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect) { OBS_OBJECT_WORK parent_obj = mine_rect.parent_obj; GMS_PLAYER_WORK gms_PLAYER_WORK = (GMS_PLAYER_WORK)match_rect.parent_obj; AppMain.GMS_GMK_STOPPER_WORK gms_GMK_STOPPER_WORK = (AppMain.GMS_GMK_STOPPER_WORK)parent_obj; int num = 0; if (gms_PLAYER_WORK == AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)]) { if (parent_obj.pos.y > gms_PLAYER_WORK.obj_work.pos.y) { if (gms_PLAYER_WORK.obj_work.spd.y >= 0) { num = 1; } } else if (gms_PLAYER_WORK.obj_work.spd.y <= 0) { num = 1; } if (num != 0) { AppMain.GmPlySeqInitStopper(gms_PLAYER_WORK, gms_GMK_STOPPER_WORK.gmk_work.ene_com); gms_GMK_STOPPER_WORK.gmk_work.ene_com.col_work.obj_col.obj = null; parent_obj.flag |= 2U; gms_GMK_STOPPER_WORK.ply_work = gms_PLAYER_WORK; parent_obj.user_timer = (parent_obj.pos.y >> 12) + (int)gms_GMK_STOPPER_WORK.gmk_work.ene_com.col_work.obj_col.height + (int)gms_GMK_STOPPER_WORK.gmk_work.ene_com.col_work.obj_col.ofst_y - (int)gms_PLAYER_WORK.rect_work[0].rect.top; parent_obj.ppFunc = AppMain.gmGmkStopperLockWait; return; } mine_rect.flag &= 4294573823U; } }
// 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); } }
// Token: 0x06000B28 RID: 2856 RVA: 0x00064AA8 File Offset: 0x00062CA8 private static void gmGmkSplRingWait(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 == null) { return; } if (AppMain.g_gs_main_sys_info.game_mode != 0) { return; } if (gms_PLAYER_WORK.obj_work.pos.x < obj_work.pos.x - AppMain.FXM_FLOAT_TO_FX32(AppMain.AMD_SCREEN_2D_WIDTH)) { return; } if (AppMain.GsMainSysIsSpecialStageClearedAct(( int )AppMain.g_gs_main_sys_info.stage_id)) { return; } if (AppMain.GsMainSysIsStageClear(27)) { return; } if (AppMain.g_gm_main_system.ply_work[( int )(( UIntPtr )0)].ring_num < 50) { obj_work.disp_flag |= 32U; obj_work.flag |= 2U; } else { obj_work.disp_flag &= 4294967263U; obj_work.flag &= 4294967293U; } uint num = 4U; AppMain.ObjDrawAction3DNNMaterialUpdate(obj_work.obj_3d, ref num); }
// Token: 0x06000DCC RID: 3532 RVA: 0x00079B4C File Offset: 0x00077D4C private static void GmGmkSsSquareBounce(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)]; AppMain.GMS_SPL_STG_WORK gms_SPL_STG_WORK = AppMain.GmSplStageGetWork(); if (obj_col.toucher_obj == gms_PLAYER_WORK.obj_work) { if (gms_PLAYER_WORK.nudge_timer != 0 && (gms_SPL_STG_WORK.flag & 2U) == 0U) { AppMain.GmPlySeqInitPinballAir(gms_PLAYER_WORK, 0, -17408, 5, false); gms_SPL_STG_WORK.flag |= 1U; gms_SPL_STG_WORK.flag |= 2U; } else if ((obj_work.user_flag & 2147483648U) == 0U && (gms_SPL_STG_WORK.flag & 1U) == 0U && (AppMain.MTM_MATH_ABS(gms_PLAYER_WORK.obj_work.spd.x) > 4096 || AppMain.MTM_MATH_ABS(gms_PLAYER_WORK.obj_work.spd.y) > 4096)) { OBS_OBJECT_WORK obj_work2 = gms_PLAYER_WORK.obj_work; AppMain.VecFx32 vecFx = AppMain.gmGmkSsSquareNormalizeVectorXY(new AppMain.VecFx32 { x = obj_work2.prev_pos.x - obj_work.pos.x, y = obj_work2.prev_pos.y - obj_work.pos.y, z = 0 }); obj_work2.dir.z = 0; int num = AppMain.MTM_MATH_ABS(obj_work2.spd.x); int num2 = AppMain.MTM_MATH_ABS(obj_work2.spd.y); int num3 = AppMain.FX_Sqrt(AppMain.FX_Mul(num, num) + AppMain.FX_Mul(num2, num2)); num3 /= 2; num = AppMain.FX_Mul(vecFx.x, num3); num2 = AppMain.FX_Mul(vecFx.y, num3); AppMain.GmPlySeqInitPinballAir(gms_PLAYER_WORK, num, num2, 5, false); gms_SPL_STG_WORK.flag |= 1U; } obj_work.user_flag |= 2147483648U; return; } obj_work.user_flag &= 2147483647U; }
// Token: 0x06001B50 RID: 6992 RVA: 0x000F9BD0 File Offset: 0x000F7DD0 private static void gmGmkItemDamageDefFunc(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 || gms_PLAYER_WORK == null) { return; } if (gms_PLAYER_WORK.obj_work.obj_type != 1) { return; } if (gms_PLAYER_WORK.seq_state != 19 && gms_PLAYER_WORK.seq_state != 10 && gms_PLAYER_WORK.obj_work.touch_obj == gms_ENEMY_COM_WORK.obj_work) { return; } if (gms_PLAYER_WORK.seq_state != 19 && gms_PLAYER_WORK.seq_state != 10) { if (gms_PLAYER_WORK.obj_work.move.y <= 0) { return; } if (gms_PLAYER_WORK.obj_work.pos.x + (( int )gms_PLAYER_WORK.obj_work.field_rect[2] << 12) < gms_ENEMY_COM_WORK.obj_work.pos.x - 81920 || gms_PLAYER_WORK.obj_work.pos.x + (( int )gms_PLAYER_WORK.obj_work.field_rect[0] << 12) > gms_ENEMY_COM_WORK.obj_work.pos.x + 81920) { return; } } gms_ENEMY_COM_WORK.eve_rec.byte_param[1] = 1; gms_ENEMY_COM_WORK.obj_work.flag |= 2U; gms_ENEMY_COM_WORK.col_work.obj_col.obj = null; gms_ENEMY_COM_WORK.obj_work.move_flag |= 144U; gms_ENEMY_COM_WORK.obj_work.move_flag &= 4294967294U; gms_ENEMY_COM_WORK.target_obj = gms_PLAYER_WORK.obj_work; AppMain.GmPlySeqAtkReactionInit(gms_PLAYER_WORK); GmSound.PlaySE("Enemy"); AppMain.GMM_PAD_VIB_SMALL(); }
// Token: 0x06001566 RID: 5478 RVA: 0x000B9D5C File Offset: 0x000B7F5C private static void gmGmkForceSpinSetMain(OBS_OBJECT_WORK obj_work) { AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK = (AppMain.GMS_ENEMY_COM_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 || (gms_PLAYER_WORK.obj_work.flag & 2U) != 0U || (AppMain.g_gm_main_system.game_flag & 262656U) != 0U) { return; } if (AppMain.gmGmkForceSpinRectChk(obj_work, gms_PLAYER_WORK) && gms_PLAYER_WORK.seq_state != 51 && gms_PLAYER_WORK.seq_state != 52 && gms_PLAYER_WORK.seq_state != 53) { if ((gms_ENEMY_COM_WORK.eve_rec.flag & 1) != 0) { AppMain.GmPlySeqGmkInitForceSpinDec(gms_PLAYER_WORK); return; } AppMain.GmPlySeqGmkInitForceSpin(gms_PLAYER_WORK); } }
// Token: 0x06001219 RID: 4633 RVA: 0x0009E5F8 File Offset: 0x0009C7F8 private static void gmGmkSpipeDefFunc(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) { return; } if (gms_PLAYER_WORK.obj_work.obj_type != 1) { return; } if (gms_PLAYER_WORK.seq_state != 37) { AppMain.GmPlySeqInitSpipe(gms_PLAYER_WORK); } gms_PLAYER_WORK.gmk_flag |= 65536U; }
// Token: 0x06000B1A RID: 2842 RVA: 0x00063E6C File Offset: 0x0006206C private static void gmGmkSsRingGateMain(OBS_OBJECT_WORK obj_work) { GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)]; uint num = obj_work.user_flag >> 8 & 127U; num += 1U; obj_work.user_flag = ((obj_work.user_flag & 1U) | (num & 127U) << 8); if (( ushort )obj_work.user_work <= ( ushort )gms_PLAYER_WORK.ring_num) { AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obj_work; gms_ENEMY_3D_WORK.ene_com.rect_work[2].flag &= 4294967291U; gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.obj = null; obj_work.ppFunc = AppMain.gmGmkSsRingGateVanish; obj_work.disp_flag |= 134217728U; obj_work.obj_3d.drawflag |= 8388608U; obj_work.obj_3d.draw_state.alpha.alpha = 1f; obj_work.user_timer = 20; AppMain.GMS_EFFECT_3DES_WORK gms_EFFECT_3DES_WORK = AppMain.GmEfctZoneEsCreate(obj_work, 5, 9); AppMain.GmEffect3DESSetDispOffset(gms_EFFECT_3DES_WORK, 0f, 0f, 8f); gms_EFFECT_3DES_WORK.efct_com.obj_work.dir.z = obj_work.dir.z; gms_EFFECT_3DES_WORK.efct_com.obj_work.flag |= 512U; } }