Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Cond_IsTimeElapsed(dsgVar_34, 45) && !(Cond_CollideWithGround()))
- {
- if (dsgVar_102)
- {
- if (dsgVar_21 > dsgVar_5)
- {
- dsgVar_29 = 1;
- dsgVar_30 = 8f;
- dsgVar_23 = 0;
- SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
- SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
- if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
- {
- await Macro_22();
- await Macro_5();
- }
- else
- {
- Proc_ChangeAction(rayman.Action[89]);
- }
- await Macro_41();
- }
- else
- {
- if (dsgVar_21 > (dsgVar_5 * 0.5f))
- {
- dsgVar_30 = 8f;
- dsgVar_29 = 0;
- dsgVar_23 = 0;
- SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
- SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
- if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
- {
- await Macro_22();
- await Macro_5();
- }
- else
- {
- Proc_ChangeAction(rayman.Action[4]);
- }
- await Macro_41();
- }
- else
- {
- if (!(Cond_IsMechanicExec(dsgVar_38)))
- {
- dsgVar_30 = 8f;
- dsgVar_29 = 0;
- SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
- SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
- if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
- {
- await Macro_22();
- await Macro_5();
- }
- else
- {
- Proc_ChangeAction(rayman.Action[17]);
- }
- await Macro_4();
- }
- }
- }
- }
- else
- {
- dsgVar_30 = 8f;
- dsgVar_29 = 0;
- SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
- SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
- if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
- {
- await Macro_22();
- await Macro_5();
- }
- else
- {
- Proc_ChangeAction(rayman.Action[17]);
- }
- await Macro_4();
- }
- }
- await Macro_20();
- await Macro_0();
- if (Cond_CollideWithGround())
- {
- dsgVar_34 = Func_GetTime();
- dsgVar_87 = Speed();
- if (!(Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1), Mask(0001))))
- {
- SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
- ACT_ChangeActorSighting(Func_GetPersoSighting());
- dsgVar_38 = Func_RelativeVector(dsgVar_87);
- dsgVar_26 = dsgVar_38.x;
- dsgVar_27 = dsgVar_38.y;
- dsgVar_28 = 4f;
- dsgVar_8 = 1;
- Proc_FactorAnimationFrameRate(1);
- smRule.SetState(Rule_9_YLT_Reinit);
- }
- if (dsgVar_21 > NormSpeed())
- {
- dsgVar_37 = 1;
- }
- else
- {
- dsgVar_37 = 0;
- }
- dsgVar_21 = NormSpeed();
- dsgVar_38 = Func_GetNormalCollideVector2(1);
- if (dsgVar_38.z <= 0.99f)
- {
- dsgVar_33 = 0;
- if (fn_p_stNullVector(PadGlobalVector()))
- {
- dsgVar_40 = PadGlobalVector();
- }
- else
- {
- dsgVar_40 = Func_GetPersoSighting();
- dsgVar_40.z = 0f;
- }
- dsgVar_38.z = 0f;
- dsgVar_35 = Func_MaximumReal(0f, ((fn_p_stNullVector(dsgVar_38)) ? 1f : Func_DotProduct(Func_Normalize(dsgVar_38), Func_Normalize(dsgVar_40))));
- dsgVar_30 = (8f * dsgVar_35);
- if (Cond_CheckActionEnd(rayman.Action[2]))
- {
- Proc_ForcePersoHandling(Func_MaximumReal(PadAnalogForce(), dsgVar_74));
- }
- }
- else
- {
- dsgVar_33 = 1;
- dsgVar_30 = 8f;
- }
- if (!(Cond_JustPressedBut("EntryAction_7011686")))
- {
- if (!(dsgVar_33))
- {
- if (true)
- {
- if (dsgVar_21)
- {
- dsgVar_39 = Func_Normalize(dsgVar_87);
- }
- else
- {
- dsgVar_39 = Func_GetPersoSighting();
- }
- }
- else
- {
- dsgVar_39 = Func_GetNormalCollideVector2(1);
- }
- dsgVar_39.z = 0f;
- dsgVar_38 = Func_Normalize(dsgVar_39);
- if (PadAnalogForce() > dsgVar_74)
- {
- dsgVar_35 = VEC_AngleVector(dsgVar_38, PadGlobalVector(), 0);
- dsgVar_36 = Func_AbsoluteValue(dsgVar_35);
- if (dsgVar_36 > 90f)
- {
- dsgVar_67 = (50f * Func_Sign(dsgVar_35));
- }
- else
- {
- dsgVar_67 = dsgVar_35;
- }
- dsgVar_38 = VEC_RotateVector(dsgVar_38, dsgVar_67, new Vector3(0f, 0f, 1f));
- }
- }
- else
- {
- dsgVar_67 = 0f;
- if (!(fn_p_stNullVector(PadGlobalVector())))
- {
- dsgVar_38 = Func_Normalize(PadGlobalVector());
- }
- else
- {
- dsgVar_38 = Func_GetPersoSighting();
- if (Cond_CollideWithWall())
- {
- dsgVar_38 += Speed();
- }
- }
- }
- dsgVar_54 = dsgVar_38;
- dsgVar_35 = (1f - ((PadAnalogForce() * PadAnalogForce()) * 0.0001f));
- dsgVar_54 = Func_Normalize(VEC_TemporalVectorCombination(Func_GetNormalCollideVector2(1), dsgVar_35, PadGlobalVector()));
- dsgVar_54 = Func_RelativeVector(dsgVar_54);
- Proc_ProposeSpeed(((((NormSpeed() + 1) * dsgVar_54.x) * PadAnalogForce()) * 0.02f));
- Proc_ProposeSpeedX((dsgVar_35 * 10f));
- if (dsgVar_37)
- {
- Proc_ProposeSpeedXYZ(Speed() * 1.15f);
- }
- dsgVar_54.x *= 0.4f;
- dsgVar_54.y = 0f;
- dsgVar_54.z += 1f;
- dsgVar_54 = Func_AbsoluteVector(dsgVar_54);
- dsgVar_94 = VEC_TemporalVectorCombination(dsgVar_94, 0.9f, Func_GetNormalCollideVector2(1));
- dsgVar_94 = VEC_TemporalVectorCombination(dsgVar_94, 0.9f, dsgVar_54);
- Proc_SetFullPersoOrientationWithOffset(dsgVar_94, VEC_TemporalVectorCombination(Func_GetPersoSighting(), 0.93f, dsgVar_38), 2, new Vector3(0f, 0f, Func_MinimumReal(0.9f, (dsgVar_24 * 0.001f))));
- if (!(Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e))))
- {
- if (dsgVar_21 > 12)
- {
- if (Func_AbsoluteValue(dsgVar_67) < 13f)
- {
- if (!(Cond_CheckActionEnd(rayman.Action[95])))
- {
- Proc_ChangeAction(rayman.Action[95]);
- }
- }
- else
- {
- if (dsgVar_67 < -30f)
- {
- if (!(Cond_CheckActionEnd(rayman.Action[172])))
- {
- Proc_ChangeAction(rayman.Action[172]);
- }
- }
- else
- {
- if (dsgVar_67 > 30f)
- {
- if (!(Cond_CheckActionEnd(rayman.Action[171])))
- {
- Proc_ChangeAction(rayman.Action[171]);
- }
- }
- }
- }
- if (!(Cond_IsCurrentStateCustomBitSet(CustomBits(0x00000080))))
- {
- Proc_ChangeAction(rayman.Action[95]);
- SOUND_SendSoundRequest(SoundEvent.FromID(107744496));
- }
- }
- else
- {
- if (Cond_CheckActionEnd(rayman.Action[2]))
- {
- if (!(dsgVar_33))
- {
- SOUND_SendSoundRequest(SoundEvent.FromID(107744496));
- Proc_ChangeAction(rayman.Action[95]);
- }
- }
- if (PadAnalogForce() > dsgVar_75)
- {
- if (!(Cond_CheckActionEnd(rayman.Action[2])))
- {
- if (dsgVar_33 && dsgVar_21 < 6)
- {
- SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
- Proc_ChangeAction(rayman.Action[2]);
- Proc_SetMechanicKeepSpeedZ(1);
- }
- }
- }
- else
- {
- if (dsgVar_21 < 0.9f)
- {
- if (!(Cond_CheckActionEnd(rayman.Action[0])))
- {
- SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
- Proc_ChangeAction(rayman.Action[0]);
- Proc_SetMechanicKeepSpeedZ(1);
- }
- }
- else
- {
- if (dsgVar_21 > 1.1f)
- {
- if (!(Cond_CheckActionEnd(rayman.Action[95])))
- {
- SOUND_SendSoundRequest(SoundEvent.FromID(107744496));
- Proc_ChangeAction(rayman.Action[95]);
- }
- }
- }
- }
- }
- }
- dsgVar_27 = ((dsgVar_21 == 0f) ? 1f : Func_DotProduct(Func_Normalize(dsgVar_87), Func_GetPersoSighting()));
- if (dsgVar_21 > 5f)
- {
- dsgVar_36 = dsgVar_27;
- dsgVar_93 += ((1f - dsgVar_36) * dsgVar_21);
- if (dsgVar_93 > 60f)
- {
- if (dsgVar_93 > dsgVar_47)
- {
- dsgVar_47 += 3f;
- SOUND_SendSoundRequest(SoundEvent.FromID(107744560));
- dsgVar_93 = 0f;
- if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1), Mask(0001)))
- {
- if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1), Mask(0008)))
- {
- SetAGO(8, Position(), Func_GetPersoSighting(), GameMaterial.FromOffset("Fix|0x0063F18F"), 0);
- }
- else
- {
- if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1), Mask(1000)))
- {
- SetAGO(1, Position(), new Vector3(0f, 0f, 0f), GameMaterial.FromOffset("Fix|0x0063F2EB"), 0);
- }
- else
- {
- SetAGO(1, Position(), new Vector3(0f, 0f, 0f), GameMaterial.FromOffset("Fix|0x00640587"), 0);
- }
- }
- }
- }
- else
- {
- SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
- if (dsgVar_47 > 60f)
- {
- dsgVar_47--;
- }
- }
- }
- else
- {
- SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
- if (dsgVar_47 > 60f)
- {
- dsgVar_47--;
- }
- }
- }
- }
- }
- else
- {
- dsgVar_87.z = Func_MaximumReal(dsgVar_87.z, (12f * -0.85f));
- fn_p_SetMechanicSpeedVector(dsgVar_87);
- }
- if (Cond_JustPressedBut("EntryAction_7011686"))
- {
- if (dsgVar_24 && dsgVar_16)
- {
- dsgVar_29 = 1;
- SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
- SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
- if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
- {
- await Macro_22();
- await Macro_5();
- }
- else
- {
- Proc_ChangeAction(rayman.Action[89]);
- }
- dsgVar_23 = 0;
- if (dsgVar_33)
- {
- dsgVar_87 -= Func_Normalize(dsgVar_87) * Func_MinimumReal(Func_MinimumReal(dsgVar_21, dsgVar_30), VEC_GetVectorNorm(dsgVar_87));
- }
- else
- {
- dsgVar_87.z = Func_MaximumReal((dsgVar_87.z * 0.9f), dsgVar_87.z);
- }
- await Macro_41();
- }
- }
- Proc_SetMechanicKeepSpeedZ(1);
- Proc_SetMechanicNeverFall(1);
- Proc_SetMechanicSlide(((dsgVar_87.z < 0f) ? 25f : (25f * 0.75f)));
- Proc_SetSlideFactorXYZ(((dsgVar_27 > 0f) ? (0.65f + (0.05f * (1f - dsgVar_27))) : 0.65f), 1f, 1f);
- Proc_SetMechanicMaxRebound(((Cond_CheckActionEnd(rayman.Action[2])) ? 0.6f : 0.98f));
- ((StdCam)GetPerso("StdCamer")).dsgVar_0 = 1;
- ((StdCam)GetPerso("StdCamer")).dsgVar_10 = 9;
- dsgVar_24 += Func_GetDeltaTime();
- dsgVar_9 = 4;
- ((StdCam)GetPerso("StdCamer")).PAD_ReadAnalogJoystickMarioMode(dsgVar_74, 1f, 1.5f, 0.8f, Func_Int(((dsgVar_16) ? 1f : 0f)), 0, 0);
- }
Add Comment
Please, Sign In to add comment