sobinist

Untitled

Feb 7th, 2021
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 10.93 KB | None | 0 0
  1. if (Cond_IsTimeElapsed(dsgVar_34, 45) && !(Cond_CollideWithGround()))
  2. {
  3.   if (dsgVar_102)
  4.   {
  5.     if (dsgVar_21 > dsgVar_5)
  6.     {
  7.       dsgVar_29 = 1;
  8.       dsgVar_30 = 8f;
  9.       dsgVar_23 = 0;
  10.       SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
  11.       SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
  12.       if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
  13.       {
  14.         await Macro_22();
  15.         await Macro_5();
  16.       }
  17.       else
  18.       {
  19.         Proc_ChangeAction(rayman.Action[89]);
  20.       }
  21.       await Macro_41();
  22.     }
  23.     else
  24.     {
  25.       if (dsgVar_21 > (dsgVar_5 * 0.5f))
  26.       {
  27.         dsgVar_30 = 8f;
  28.         dsgVar_29 = 0;
  29.         dsgVar_23 = 0;
  30.         SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
  31.         SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
  32.         if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
  33.         {
  34.           await Macro_22();
  35.           await Macro_5();
  36.         }
  37.         else
  38.         {
  39.           Proc_ChangeAction(rayman.Action[4]);
  40.         }
  41.         await Macro_41();
  42.       }
  43.       else
  44.       {
  45.         if (!(Cond_IsMechanicExec(dsgVar_38)))
  46.         {
  47.           dsgVar_30 = 8f;
  48.           dsgVar_29 = 0;
  49.           SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
  50.           SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
  51.           if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
  52.           {
  53.             await Macro_22();
  54.             await Macro_5();
  55.           }
  56.           else
  57.           {
  58.             Proc_ChangeAction(rayman.Action[17]);
  59.           }
  60.           await Macro_4();
  61.         }
  62.       }
  63.     }
  64.   }
  65.   else
  66.   {
  67.     dsgVar_30 = 8f;
  68.     dsgVar_29 = 0;
  69.     SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
  70.     SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
  71.     if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
  72.     {
  73.       await Macro_22();
  74.       await Macro_5();
  75.     }
  76.     else
  77.     {
  78.       Proc_ChangeAction(rayman.Action[17]);
  79.     }
  80.     await Macro_4();
  81.   }
  82. }
  83. await Macro_20();
  84. await Macro_0();
  85. if (Cond_CollideWithGround())
  86. {
  87.   dsgVar_34 = Func_GetTime();
  88.   dsgVar_87 = Speed();
  89.   if (!(Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1), Mask(0001))))
  90.   {
  91.     SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
  92.     ACT_ChangeActorSighting(Func_GetPersoSighting());
  93.     dsgVar_38 = Func_RelativeVector(dsgVar_87);
  94.     dsgVar_26 = dsgVar_38.x;
  95.     dsgVar_27 = dsgVar_38.y;
  96.     dsgVar_28 = 4f;
  97.     dsgVar_8 = 1;
  98.     Proc_FactorAnimationFrameRate(1);
  99.     smRule.SetState(Rule_9_YLT_Reinit);
  100.   }
  101.   if (dsgVar_21 > NormSpeed())
  102.   {
  103.     dsgVar_37 = 1;
  104.   }
  105.   else
  106.   {
  107.     dsgVar_37 = 0;
  108.   }
  109.   dsgVar_21 = NormSpeed();
  110.   dsgVar_38 = Func_GetNormalCollideVector2(1);
  111.   if (dsgVar_38.z <= 0.99f)
  112.   {
  113.     dsgVar_33 = 0;
  114.     if (fn_p_stNullVector(PadGlobalVector()))
  115.     {
  116.       dsgVar_40 = PadGlobalVector();
  117.     }
  118.     else
  119.     {
  120.       dsgVar_40 = Func_GetPersoSighting();
  121.       dsgVar_40.z = 0f;
  122.     }
  123.     dsgVar_38.z = 0f;
  124.     dsgVar_35 = Func_MaximumReal(0f, ((fn_p_stNullVector(dsgVar_38)) ? 1f : Func_DotProduct(Func_Normalize(dsgVar_38), Func_Normalize(dsgVar_40))));
  125.     dsgVar_30 = (8f * dsgVar_35);
  126.     if (Cond_CheckActionEnd(rayman.Action[2]))
  127.     {
  128.       Proc_ForcePersoHandling(Func_MaximumReal(PadAnalogForce(), dsgVar_74));
  129.     }
  130.   }
  131.   else
  132.   {
  133.     dsgVar_33 = 1;
  134.     dsgVar_30 = 8f;
  135.   }
  136.   if (!(Cond_JustPressedBut("EntryAction_7011686")))
  137.   {
  138.     if (!(dsgVar_33))
  139.     {
  140.       if (true)
  141.       {
  142.         if (dsgVar_21)
  143.         {
  144.           dsgVar_39 = Func_Normalize(dsgVar_87);
  145.         }
  146.         else
  147.         {
  148.           dsgVar_39 = Func_GetPersoSighting();
  149.         }
  150.       }
  151.       else
  152.       {
  153.         dsgVar_39 = Func_GetNormalCollideVector2(1);
  154.       }
  155.       dsgVar_39.z = 0f;
  156.       dsgVar_38 = Func_Normalize(dsgVar_39);
  157.       if (PadAnalogForce() > dsgVar_74)
  158.       {
  159.         dsgVar_35 = VEC_AngleVector(dsgVar_38, PadGlobalVector(), 0);
  160.         dsgVar_36 = Func_AbsoluteValue(dsgVar_35);
  161.         if (dsgVar_36 > 90f)
  162.         {
  163.           dsgVar_67 = (50f * Func_Sign(dsgVar_35));
  164.         }
  165.         else
  166.         {
  167.           dsgVar_67 = dsgVar_35;
  168.         }
  169.         dsgVar_38 = VEC_RotateVector(dsgVar_38, dsgVar_67, new Vector3(0f, 0f, 1f));
  170.       }
  171.     }
  172.     else
  173.     {
  174.       dsgVar_67 = 0f;
  175.       if (!(fn_p_stNullVector(PadGlobalVector())))
  176.       {
  177.         dsgVar_38 = Func_Normalize(PadGlobalVector());
  178.       }
  179.       else
  180.       {
  181.         dsgVar_38 = Func_GetPersoSighting();
  182.         if (Cond_CollideWithWall())
  183.         {
  184.           dsgVar_38 += Speed();
  185.         }
  186.       }
  187.     }
  188.     dsgVar_54 = dsgVar_38;
  189.     dsgVar_35 = (1f - ((PadAnalogForce() * PadAnalogForce()) * 0.0001f));
  190.     dsgVar_54 = Func_Normalize(VEC_TemporalVectorCombination(Func_GetNormalCollideVector2(1), dsgVar_35, PadGlobalVector()));
  191.     dsgVar_54 = Func_RelativeVector(dsgVar_54);
  192.     Proc_ProposeSpeed(((((NormSpeed() + 1) * dsgVar_54.x) * PadAnalogForce()) * 0.02f));
  193.     Proc_ProposeSpeedX((dsgVar_35 * 10f));
  194.     if (dsgVar_37)
  195.     {
  196.       Proc_ProposeSpeedXYZ(Speed() * 1.15f);
  197.     }
  198.     dsgVar_54.x *= 0.4f;
  199.     dsgVar_54.y = 0f;
  200.     dsgVar_54.z += 1f;
  201.     dsgVar_54 = Func_AbsoluteVector(dsgVar_54);
  202.     dsgVar_94 = VEC_TemporalVectorCombination(dsgVar_94, 0.9f, Func_GetNormalCollideVector2(1));
  203.     dsgVar_94 = VEC_TemporalVectorCombination(dsgVar_94, 0.9f, dsgVar_54);
  204.     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))));
  205.     if (!(Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e))))
  206.     {
  207.       if (dsgVar_21 > 12)
  208.       {
  209.         if (Func_AbsoluteValue(dsgVar_67) < 13f)
  210.         {
  211.           if (!(Cond_CheckActionEnd(rayman.Action[95])))
  212.           {
  213.             Proc_ChangeAction(rayman.Action[95]);
  214.           }
  215.         }
  216.         else
  217.         {
  218.           if (dsgVar_67 < -30f)
  219.           {
  220.             if (!(Cond_CheckActionEnd(rayman.Action[172])))
  221.             {
  222.               Proc_ChangeAction(rayman.Action[172]);
  223.             }
  224.           }
  225.           else
  226.           {
  227.             if (dsgVar_67 > 30f)
  228.             {
  229.               if (!(Cond_CheckActionEnd(rayman.Action[171])))
  230.               {
  231.                 Proc_ChangeAction(rayman.Action[171]);
  232.               }
  233.             }
  234.           }
  235.         }
  236.         if (!(Cond_IsCurrentStateCustomBitSet(CustomBits(0x00000080))))
  237.         {
  238.           Proc_ChangeAction(rayman.Action[95]);
  239.           SOUND_SendSoundRequest(SoundEvent.FromID(107744496));
  240.         }
  241.       }
  242.       else
  243.       {
  244.         if (Cond_CheckActionEnd(rayman.Action[2]))
  245.         {
  246.           if (!(dsgVar_33))
  247.           {
  248.             SOUND_SendSoundRequest(SoundEvent.FromID(107744496));
  249.             Proc_ChangeAction(rayman.Action[95]);
  250.           }
  251.         }
  252.         if (PadAnalogForce() > dsgVar_75)
  253.         {
  254.           if (!(Cond_CheckActionEnd(rayman.Action[2])))
  255.           {
  256.             if (dsgVar_33 && dsgVar_21 < 6)
  257.             {
  258.               SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
  259.               Proc_ChangeAction(rayman.Action[2]);
  260.               Proc_SetMechanicKeepSpeedZ(1);
  261.             }
  262.           }
  263.         }
  264.         else
  265.         {
  266.           if (dsgVar_21 < 0.9f)
  267.           {
  268.             if (!(Cond_CheckActionEnd(rayman.Action[0])))
  269.             {
  270.               SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
  271.               Proc_ChangeAction(rayman.Action[0]);
  272.               Proc_SetMechanicKeepSpeedZ(1);
  273.             }
  274.           }
  275.           else
  276.           {
  277.             if (dsgVar_21 > 1.1f)
  278.             {
  279.               if (!(Cond_CheckActionEnd(rayman.Action[95])))
  280.               {
  281.                 SOUND_SendSoundRequest(SoundEvent.FromID(107744496));
  282.                 Proc_ChangeAction(rayman.Action[95]);
  283.               }
  284.             }
  285.           }
  286.         }
  287.       }
  288.     }
  289.     dsgVar_27 = ((dsgVar_21 == 0f) ? 1f : Func_DotProduct(Func_Normalize(dsgVar_87), Func_GetPersoSighting()));
  290.     if (dsgVar_21 > 5f)
  291.     {
  292.       dsgVar_36 = dsgVar_27;
  293.       dsgVar_93 += ((1f - dsgVar_36) * dsgVar_21);
  294.       if (dsgVar_93 > 60f)
  295.       {
  296.         if (dsgVar_93 > dsgVar_47)
  297.         {
  298.           dsgVar_47 += 3f;
  299.           SOUND_SendSoundRequest(SoundEvent.FromID(107744560));
  300.           dsgVar_93 = 0f;
  301.           if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1), Mask(0001)))
  302.           {
  303.             if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1), Mask(0008)))
  304.             {
  305.               SetAGO(8, Position(), Func_GetPersoSighting(), GameMaterial.FromOffset("Fix|0x0063F18F"), 0);
  306.             }
  307.             else
  308.             {
  309.               if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1), Mask(1000)))
  310.               {
  311.                 SetAGO(1, Position(), new Vector3(0f, 0f, 0f), GameMaterial.FromOffset("Fix|0x0063F2EB"), 0);
  312.               }
  313.               else
  314.               {
  315.                 SetAGO(1, Position(), new Vector3(0f, 0f, 0f), GameMaterial.FromOffset("Fix|0x00640587"), 0);
  316.               }
  317.             }
  318.           }
  319.         }
  320.         else
  321.         {
  322.           SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
  323.           if (dsgVar_47 > 60f)
  324.           {
  325.             dsgVar_47--;
  326.           }
  327.         }
  328.       }
  329.       else
  330.       {
  331.         SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
  332.         if (dsgVar_47 > 60f)
  333.         {
  334.           dsgVar_47--;
  335.         }
  336.       }
  337.     }
  338.   }
  339. }
  340. else
  341. {
  342.   dsgVar_87.z = Func_MaximumReal(dsgVar_87.z, (12f * -0.85f));
  343.   fn_p_SetMechanicSpeedVector(dsgVar_87);
  344. }
  345. if (Cond_JustPressedBut("EntryAction_7011686"))
  346. {
  347.   if (dsgVar_24 && dsgVar_16)
  348.   {
  349.     dsgVar_29 = 1;
  350.     SOUND_SendSoundRequest(SoundEvent.FromID(107744528));
  351.     SOUND_SendSoundRequest(SoundEvent.FromID(107744464));
  352.     if (Cond_IsCurrentStateCustomBitSet(CustomBits(0x0000001e)))
  353.     {
  354.       await Macro_22();
  355.       await Macro_5();
  356.     }
  357.     else
  358.     {
  359.       Proc_ChangeAction(rayman.Action[89]);
  360.     }
  361.     dsgVar_23 = 0;
  362.     if (dsgVar_33)
  363.     {
  364.       dsgVar_87 -= Func_Normalize(dsgVar_87) * Func_MinimumReal(Func_MinimumReal(dsgVar_21, dsgVar_30), VEC_GetVectorNorm(dsgVar_87));
  365.     }
  366.     else
  367.     {
  368.       dsgVar_87.z = Func_MaximumReal((dsgVar_87.z * 0.9f), dsgVar_87.z);
  369.     }
  370.     await Macro_41();
  371.   }
  372. }
  373. Proc_SetMechanicKeepSpeedZ(1);
  374. Proc_SetMechanicNeverFall(1);
  375. Proc_SetMechanicSlide(((dsgVar_87.z < 0f) ? 25f : (25f * 0.75f)));
  376. Proc_SetSlideFactorXYZ(((dsgVar_27 > 0f) ? (0.65f + (0.05f * (1f - dsgVar_27))) : 0.65f), 1f, 1f);
  377. Proc_SetMechanicMaxRebound(((Cond_CheckActionEnd(rayman.Action[2])) ? 0.6f : 0.98f));
  378. ((StdCam)GetPerso("StdCamer")).dsgVar_0 = 1;
  379. ((StdCam)GetPerso("StdCamer")).dsgVar_10 = 9;
  380. dsgVar_24 += Func_GetDeltaTime();
  381. dsgVar_9 = 4;
  382. ((StdCam)GetPerso("StdCamer")).PAD_ReadAnalogJoystickMarioMode(dsgVar_74, 1f, 1.5f, 0.8f, Func_Int(((dsgVar_16) ? 1f : 0f)), 0, 0);
  383.  
  384. }
  385.  
Add Comment
Please, Sign In to add comment