sobinist

Untitled

Feb 7th, 2021 (edited)
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 10.96 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 = 8;
  9.       DsgVar_23 = 0;
  10.       SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
  11.       SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
  12.       if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
  13.       {
  14.         NodeSubRoutine(0x22915c0);
  15.         NodeSubRoutine(0x2291538);
  16.       }
  17.       else
  18.       {
  19.         Proc_ChangeAction(NodeActionRef(0x1a6900));
  20.       }
  21.       NodeSubRoutine(0x2291658);
  22.     }
  23.     else
  24.     {
  25.       if ((DsgVar_21 > (DsgVar_5*0.5)))
  26.       {
  27.         DsgVar_30 = 8;
  28.         DsgVar_29 = 0;
  29.         DsgVar_23 = 0;
  30.         SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
  31.         SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
  32.         if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
  33.         {
  34.           NodeSubRoutine(0x22915c0);
  35.           NodeSubRoutine(0x2291538);
  36.         }
  37.         else
  38.         {
  39.           Proc_ChangeAction(NodeActionRef(0x1a28d0));
  40.         }
  41.         NodeSubRoutine(0x2291658);
  42.       }
  43.       else
  44.       {
  45.         if (!(Cond_IsMechanicExec(DsgVar_38)))
  46.         {
  47.           DsgVar_30 = 8;
  48.           DsgVar_29 = 0;
  49.           SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
  50.           SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
  51.           if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
  52.           {
  53.             NodeSubRoutine(0x22915c0);
  54.             NodeSubRoutine(0x2291538);
  55.           }
  56.           else
  57.           {
  58.             Proc_ChangeAction(NodeActionRef(0x1a3410));
  59.           }
  60.           NodeSubRoutine(0x2291530);
  61.         }
  62.       }
  63.     }
  64.   }
  65.   else
  66.   {
  67.     DsgVar_30 = 8;
  68.     DsgVar_29 = 0;
  69.     SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
  70.     SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
  71.     if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
  72.     {
  73.       NodeSubRoutine(0x22915c0);
  74.       NodeSubRoutine(0x2291538);
  75.     }
  76.     else
  77.     {
  78.       Proc_ChangeAction(NodeActionRef(0x1a3410));
  79.     }
  80.     NodeSubRoutine(0x2291530);
  81.   }
  82. }
  83. NodeSubRoutine(0x22915b0);
  84. NodeSubRoutine(0x2291510);
  85. if (Cond_CollideWithGround())
  86. {
  87.   DsgVar_34 = Func_GetTime();
  88.   DsgVar_87 = Speed;
  89.   if (!(Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1),NodeMask)))
  90.   {
  91.     SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
  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 = 4;
  97.     DsgVar_8 = 1;
  98.     Proc_FactorAnimationFrameRate(1);
  99.     Proc_ChangeMyComport(NodeComportRef(0x2280c4c));
  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.99))
  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 = 0;
  122.     }
  123.     DsgVar_38.z = 0;
  124.     DsgVar_35 = Func_MaximumReal(0, ((fn_p_stNullVector(DsgVar_38)) ? 1 : Func_DotProduct(Func_Normalize(DsgVar_38), Func_Normalize(DsgVar_40))));
  125.     DsgVar_30 = (8*DsgVar_35);
  126.     if (Cond_CheckActionEnd(NodeActionRef(0x1a2704)))
  127.     {
  128.       Proc_ForcePersoHandling(Func_MaximumReal(PadAnalogForce, DsgVar_74));
  129.     }
  130.   }
  131.   else
  132.   {
  133.     DsgVar_33 = 1;
  134.     DsgVar_30 = 8;
  135.   }
  136.   if (!(Cond_JustPressedBut(NodeButton)))
  137.   {
  138.     if (!(DsgVar_33))
  139.     {
  140.       if (1)
  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 = 0;
  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 > 90))
  162.         {
  163.           DsgVar_67 = (50*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(0,0,1));
  170.       }
  171.     }
  172.     else
  173.     {
  174.       DsgVar_67 = 0;
  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 = (1-((PadAnalogForce*PadAnalogForce)*0.0001));
  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.02));
  193.     Proc_ProposeSpeedX((DsgVar_35*10));
  194.     if (DsgVar_37)
  195.     {
  196.       Proc_ProposeSpeedXYZ((Speed*1.15));
  197.     }
  198.     DsgVar_54.x *= 0.4;
  199.     DsgVar_54.y = 0;
  200.     DsgVar_54.z += 1;
  201.     DsgVar_54 = Func_AbsoluteVector(DsgVar_54);
  202.     DsgVar_94 = VEC_TemporalVectorCombination(DsgVar_94, 0.9, Func_GetNormalCollideVector2(1));
  203.     DsgVar_94 = VEC_TemporalVectorCombination(DsgVar_94, 0.9, DsgVar_54);
  204.     Proc_SetFullPersoOrientationWithOffset(DsgVar_94, VEC_TemporalVectorCombination(Func_GetPersoSighting(), 0.93, DsgVar_38), 2, new Vector3(0,0,Func_MinimumReal(0.9, (DsgVar_24*0.001))));
  205.     if (!(Cond_IsCurrentStateCustomBitSet(NodeCustomBits)))
  206.     {
  207.       if ((DsgVar_21 > 12))
  208.       {
  209.         if ((Func_AbsoluteValue(DsgVar_67) < 13))
  210.         {
  211.           if (!(Cond_CheckActionEnd(NodeActionRef(0x1a6f0c))))
  212.           {
  213.             Proc_ChangeAction(NodeActionRef(0x1a6f0c));
  214.           }
  215.         }
  216.         else
  217.         {
  218.           if ((DsgVar_67 < -30))
  219.           {
  220.             if (!(Cond_CheckActionEnd(NodeActionRef(0x1a9950))))
  221.             {
  222.               Proc_ChangeAction(NodeActionRef(0x1a9950));
  223.             }
  224.           }
  225.           else
  226.           {
  227.             if ((DsgVar_67 > 30))
  228.             {
  229.               if (!(Cond_CheckActionEnd(NodeActionRef(0x1a98b0))))
  230.               {
  231.                 Proc_ChangeAction(NodeActionRef(0x1a98b0));
  232.               }
  233.             }
  234.           }
  235.         }
  236.         if (!(Cond_IsCurrentStateCustomBitSet(NodeCustomBits)))
  237.         {
  238.           Proc_ChangeAction(NodeActionRef(0x1a6f0c));
  239.           SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cf0));
  240.         }
  241.       }
  242.       else
  243.       {
  244.         if (Cond_CheckActionEnd(NodeActionRef(0x1a2704)))
  245.         {
  246.           if (!(DsgVar_33))
  247.           {
  248.             SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cf0));
  249.             Proc_ChangeAction(NodeActionRef(0x1a6f0c));
  250.           }
  251.         }
  252.         if ((PadAnalogForce > DsgVar_75))
  253.         {
  254.           if (!(Cond_CheckActionEnd(NodeActionRef(0x1a2704))))
  255.           {
  256.             if ((DsgVar_33 && (DsgVar_21 < 6)))
  257.             {
  258.               SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
  259.               Proc_ChangeAction(NodeActionRef(0x1a2704));
  260.               Proc_SetMechanicKeepSpeedZ(1);
  261.             }
  262.           }
  263.         }
  264.         else
  265.         {
  266.           if ((DsgVar_21 < 0.9))
  267.           {
  268.             if (!(Cond_CheckActionEnd(NodeActionRef(0x1a2510))))
  269.             {
  270.               SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
  271.               Proc_ChangeAction(NodeActionRef(0x1a2510));
  272.               Proc_SetMechanicKeepSpeedZ(1);
  273.             }
  274.           }
  275.           else
  276.           {
  277.             if ((DsgVar_21 > 1.1))
  278.             {
  279.               if (!(Cond_CheckActionEnd(NodeActionRef(0x1a6f0c))))
  280.               {
  281.                 SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cf0));
  282.                 Proc_ChangeAction(NodeActionRef(0x1a6f0c));
  283.               }
  284.             }
  285.           }
  286.         }
  287.       }
  288.     }
  289.     DsgVar_27 = ((DsgVar_21 == 0) ? 1 : Func_DotProduct(Func_Normalize(DsgVar_87), Func_GetPersoSighting()));
  290.     if ((DsgVar_21 > 5))
  291.     {
  292.       DsgVar_36 = DsgVar_27;
  293.       DsgVar_93 += ((1-DsgVar_36)*DsgVar_21);
  294.       if ((DsgVar_93 > 60))
  295.       {
  296.         if ((DsgVar_93 > DsgVar_47))
  297.         {
  298.           DsgVar_47 += 3;
  299.           SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d30));
  300.           DsgVar_93 = 0;
  301.           if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1),NodeMask))
  302.           {
  303.             if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1),NodeMask))
  304.             {
  305.               SetAGO(8, Position, Func_GetPersoSighting(), NodeGameMaterialRef(0x2173494), 0);
  306.             }
  307.             else
  308.             {
  309.               if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1),NodeMask))
  310.               {
  311.                 SetAGO(1, Position, new Vector3(0,0,0), NodeGameMaterialRef(0x21735f0), 0);
  312.               }
  313.               else
  314.               {
  315.                 SetAGO(1, Position, new Vector3(0,0,0), NodeGameMaterialRef(0x217488c), 0);
  316.               }
  317.             }
  318.           }
  319.         }
  320.         else
  321.         {
  322.           SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
  323.           if ((DsgVar_47 > 60))
  324.           {
  325.             DsgVar_47--;
  326.           }
  327.         }
  328.       }
  329.       else
  330.       {
  331.         SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
  332.         if ((DsgVar_47 > 60))
  333.         {
  334.           DsgVar_47--;
  335.         }
  336.       }
  337.     }
  338.   }
  339. }
  340. else
  341. {
  342.   DsgVar_87.z = Func_MaximumReal(DsgVar_87.z, (12*-0.85));
  343.   fn_p_SetMechanicSpeedVector(DsgVar_87);
  344. }
  345. if (Cond_JustPressedBut(NodeButton))
  346. {
  347.   if ((DsgVar_24 && DsgVar_16))
  348.   {
  349.     DsgVar_29 = 1;
  350.     SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
  351.     SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
  352.     if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
  353.     {
  354.       NodeSubRoutine(0x22915c0);
  355.       NodeSubRoutine(0x2291538);
  356.     }
  357.     else
  358.     {
  359.       Proc_ChangeAction(NodeActionRef(0x1a6900));
  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.9), DsgVar_87.z);
  369.     }
  370.     NodeSubRoutine(0x2291658);
  371.   }
  372. }
  373. Proc_SetMechanicKeepSpeedZ(1);
  374. Proc_SetMechanicNeverFall(1);
  375. Proc_SetMechanicSlide(((DsgVar_87.z < 0) ? 25 : (25*0.75)));
  376. Proc_SetSlideFactorXYZ(((DsgVar_27 > 0) ? (0.65+(0.05*(1-DsgVar_27))) : 0.65), 1, 1);
  377. Proc_SetMechanicMaxRebound(((Cond_CheckActionEnd(NodeActionRef(0x1a2704))) ? 0.6 : 0.98));
  378. NodePersoRef(0x1b4e4c).DsgVar_0 = 1;
  379. NodePersoRef(0x1b4e4c).DsgVar_10 = 9;
  380. DsgVar_24 += Func_GetDeltaTime();
  381. DsgVar_9 = 4;
  382. NodePersoRef(0x1b4e4c).PAD_ReadAnalogJoystickMarioMode(DsgVar_74, 1, 1.5, 0.8, Func_Int(((DsgVar_16) ? 1 : 0)), 0, 0);
  383.  
  384.  
Add Comment
Please, Sign In to add comment