// Token: 0x060005F3 RID: 1523 RVA: 0x00034ABC File Offset: 0x00032CBC private static AppMain.DMS_STFRL_SONIC_WORK DmStfrlMdlCtrlSetSonicObj() { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.OBM_OBJECT_TASK_DETAIL_INIT(24576, 0, 0, 0, () => new AppMain.DMS_STFRL_SONIC_WORK(), "STAFFROLL_SONIC"); AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK = (AppMain.DMS_STFRL_SONIC_WORK)obs_OBJECT_WORK; AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.dm_stfrl_sonic_obj_3d_list[0], obs_OBJECT_WORK.obj_3d); obs_OBJECT_WORK.obj_3d.blend_spd = 0.0625f; AppMain.ObjDrawObjectSetToon(obs_OBJECT_WORK); AppMain.OBS_ACTION3D_NN_WORK obj_3d = dms_STFRL_SONIC_WORK.obj_work.obj_3d; AppMain.ObjObjectAction3dNNMotionLoad(obs_OBJECT_WORK, 0, true, AppMain.g_gm_player_data_work[( int )(( UIntPtr )0)][4], null, 0, null, 136, 16); obs_OBJECT_WORK.flag |= 16U; obs_OBJECT_WORK.disp_flag |= 4194309U; obs_OBJECT_WORK.disp_flag &= 4294967263U; obs_OBJECT_WORK.disp_flag |= 150995456U; obs_OBJECT_WORK.obj_3d.drawflag |= 8388608U; obs_OBJECT_WORK.pos.x = 0; obs_OBJECT_WORK.pos.y = 98304; obs_OBJECT_WORK.pos.z = -12288; obs_OBJECT_WORK.dir.y = ( ushort )AppMain.AKM_DEGtoA16(90); obs_OBJECT_WORK.obj_3d.draw_state.alpha.alpha = 1f; dms_STFRL_SONIC_WORK.alpha = 1f; AppMain.ObjDrawObjectActionSet(obs_OBJECT_WORK, 21); obs_OBJECT_WORK.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlSonicDrawFunc); obs_OBJECT_WORK.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlSonicProcWaitSetup); return(dms_STFRL_SONIC_WORK); }
// Token: 0x060005FB RID: 1531 RVA: 0x000350E8 File Offset: 0x000332E8 private static void dmStfrlMdlCtrlSonicProcWaitSetup(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK = (AppMain.DMS_STFRL_SONIC_WORK)obj_work; AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK2 = dms_STFRL_SONIC_WORK; dms_STFRL_SONIC_WORK2.timer += 1; if ((obj_work.disp_flag & 8U) != 0U) { if (dms_STFRL_SONIC_WORK.timer > 300) { AppMain.ObjDrawObjectActionSet3DNNBlend(obj_work, 42); obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlSonicProcWaitChngDash2); dms_STFRL_SONIC_WORK.timer = 0; return; } AppMain.ObjDrawObjectActionSet3DNNBlend(obj_work, 21); } }
// Token: 0x060005FE RID: 1534 RVA: 0x00035280 File Offset: 0x00033480 private static void dmStfrlMdlCtrlSonicProcWaitFadeEnd(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK = (AppMain.DMS_STFRL_SONIC_WORK)obj_work; AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK2 = dms_STFRL_SONIC_WORK; dms_STFRL_SONIC_WORK2.timer -= 1; obj_work.pos.x = obj_work.pos.x + 73728; if ((obj_work.disp_flag & 8U) != 0U) { if (dms_STFRL_SONIC_WORK.timer <= 0) { obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlSonicProcIdle); dms_STFRL_SONIC_WORK.timer = 0; AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK3 = dms_STFRL_SONIC_WORK; dms_STFRL_SONIC_WORK3.flag |= 1; obj_work.disp_flag |= 32U; return; } AppMain.ObjDrawObjectActionSet3DNNBlend(obj_work, 9); AppMain.GmEffectDefaultMainFuncDeleteAtEndCopyDirZ(obj_work); } }
// Token: 0x060005FD RID: 1533 RVA: 0x000351F4 File Offset: 0x000333F4 private static void dmStfrlMdlCtrlSonicProcWaitMtnEnd(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK = (AppMain.DMS_STFRL_SONIC_WORK)obj_work; AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK2 = dms_STFRL_SONIC_WORK; dms_STFRL_SONIC_WORK2.timer += 1; if (obj_work.spd_m <= 25292) { obj_work.spd_m += 512; } if ((obj_work.disp_flag & 8U) != 0U) { AppMain.ObjDrawObjectActionSet3DNNBlend(obj_work, 9); AppMain.GmEffectDefaultMainFuncDeleteAtEndCopyDirZ(obj_work); if (dms_STFRL_SONIC_WORK.timer > 60) { obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlSonicProcWaitFadeEnd); AppMain.ObjDrawObjectActionSet3DNNBlend(obj_work, 9); AppMain.GmEffectDefaultMainFuncDeleteAtEndCopyDirZ(obj_work); dms_STFRL_SONIC_WORK.timer = 120; } } }
// Token: 0x060005FC RID: 1532 RVA: 0x0003514C File Offset: 0x0003334C private static void dmStfrlMdlCtrlSonicProcWaitChngDash2(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK = (AppMain.DMS_STFRL_SONIC_WORK)obj_work; AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK2 = dms_STFRL_SONIC_WORK; dms_STFRL_SONIC_WORK2.timer += 1; if ((obj_work.disp_flag & 8U) != 0U) { if (dms_STFRL_SONIC_WORK.timer > 30) { obj_work.obj_3d.blend_spd = 0.125f; AppMain.ObjDrawObjectActionSet3DNNBlend(obj_work, 9); AppMain.GMS_EFFECT_3DES_WORK gms_EFFECT_3DES_WORK = AppMain.GmEfctCmnEsCreate(obj_work, 53); AppMain.GmComEfctSetDispOffsetF(gms_EFFECT_3DES_WORK, -1.5f, 0f, 9f); gms_EFFECT_3DES_WORK.obj_3des.ecb.drawObjState = 0U; AppMain.GmEffectDefaultMainFuncDeleteAtEndCopyDirZ(obj_work); obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlSonicProcWaitMtnEnd); dms_STFRL_SONIC_WORK.timer = 0; return; } AppMain.ObjDrawObjectActionSet3DNNBlend(obj_work, 42); } }
// Token: 0x06000600 RID: 1536 RVA: 0x00035318 File Offset: 0x00033518 private static void dmStfrlMdlCtrlSonicDrawFunc(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK = (AppMain.DMS_STFRL_SONIC_WORK)obj_work; obj_work.obj_3d.draw_state.alpha.alpha = dms_STFRL_SONIC_WORK.alpha; AppMain.ObjDrawActionSummary(obj_work); }