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 = 8;
- DsgVar_23 = 0;
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
- if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
- {
- NodeSubRoutine(0x22915c0);
- NodeSubRoutine(0x2291538);
- }
- else
- {
- Proc_ChangeAction(NodeActionRef(0x1a6900));
- }
- NodeSubRoutine(0x2291658);
- }
- else
- {
- if ((DsgVar_21 > (DsgVar_5*0.5)))
- {
- DsgVar_30 = 8;
- DsgVar_29 = 0;
- DsgVar_23 = 0;
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
- if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
- {
- NodeSubRoutine(0x22915c0);
- NodeSubRoutine(0x2291538);
- }
- else
- {
- Proc_ChangeAction(NodeActionRef(0x1a28d0));
- }
- NodeSubRoutine(0x2291658);
- }
- else
- {
- if (!(Cond_IsMechanicExec(DsgVar_38)))
- {
- DsgVar_30 = 8;
- DsgVar_29 = 0;
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
- if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
- {
- NodeSubRoutine(0x22915c0);
- NodeSubRoutine(0x2291538);
- }
- else
- {
- Proc_ChangeAction(NodeActionRef(0x1a3410));
- }
- NodeSubRoutine(0x2291530);
- }
- }
- }
- }
- else
- {
- DsgVar_30 = 8;
- DsgVar_29 = 0;
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
- if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
- {
- NodeSubRoutine(0x22915c0);
- NodeSubRoutine(0x2291538);
- }
- else
- {
- Proc_ChangeAction(NodeActionRef(0x1a3410));
- }
- NodeSubRoutine(0x2291530);
- }
- }
- NodeSubRoutine(0x22915b0);
- NodeSubRoutine(0x2291510);
- if (Cond_CollideWithGround())
- {
- DsgVar_34 = Func_GetTime();
- DsgVar_87 = Speed;
- if (!(Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1),NodeMask)))
- {
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
- ACT_ChangeActorSighting(Func_GetPersoSighting());
- DsgVar_38 = Func_RelativeVector(DsgVar_87);
- DsgVar_26 = DsgVar_38.x;
- DsgVar_27 = DsgVar_38.y;
- DsgVar_28 = 4;
- DsgVar_8 = 1;
- Proc_FactorAnimationFrameRate(1);
- Proc_ChangeMyComport(NodeComportRef(0x2280c4c));
- }
- if ((DsgVar_21 > NormSpeed))
- {
- DsgVar_37 = 1;
- }
- else
- {
- DsgVar_37 = 0;
- }
- DsgVar_21 = NormSpeed;
- DsgVar_38 = Func_GetNormalCollideVector2(1);
- if ((DsgVar_38.z <= 0.99))
- {
- DsgVar_33 = 0;
- if (fn_p_stNullVector(PadGlobalVector))
- {
- DsgVar_40 = PadGlobalVector;
- }
- else
- {
- DsgVar_40 = Func_GetPersoSighting();
- DsgVar_40.z = 0;
- }
- DsgVar_38.z = 0;
- DsgVar_35 = Func_MaximumReal(0, ((fn_p_stNullVector(DsgVar_38)) ? 1 : Func_DotProduct(Func_Normalize(DsgVar_38), Func_Normalize(DsgVar_40))));
- DsgVar_30 = (8*DsgVar_35);
- if (Cond_CheckActionEnd(NodeActionRef(0x1a2704)))
- {
- Proc_ForcePersoHandling(Func_MaximumReal(PadAnalogForce, DsgVar_74));
- }
- }
- else
- {
- DsgVar_33 = 1;
- DsgVar_30 = 8;
- }
- if (!(Cond_JustPressedBut(NodeButton)))
- {
- if (!(DsgVar_33))
- {
- if (1)
- {
- if (DsgVar_21)
- {
- DsgVar_39 = Func_Normalize(DsgVar_87);
- }
- else
- {
- DsgVar_39 = Func_GetPersoSighting();
- }
- }
- else
- {
- DsgVar_39 = Func_GetNormalCollideVector2(1);
- }
- DsgVar_39.z = 0;
- 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 > 90))
- {
- DsgVar_67 = (50*Func_Sign(DsgVar_35));
- }
- else
- {
- DsgVar_67 = DsgVar_35;
- }
- DsgVar_38 = VEC_RotateVector(DsgVar_38, DsgVar_67, new Vector3(0,0,1));
- }
- }
- else
- {
- DsgVar_67 = 0;
- 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 = (1-((PadAnalogForce*PadAnalogForce)*0.0001));
- 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.02));
- Proc_ProposeSpeedX((DsgVar_35*10));
- if (DsgVar_37)
- {
- Proc_ProposeSpeedXYZ((Speed*1.15));
- }
- DsgVar_54.x *= 0.4;
- DsgVar_54.y = 0;
- DsgVar_54.z += 1;
- DsgVar_54 = Func_AbsoluteVector(DsgVar_54);
- DsgVar_94 = VEC_TemporalVectorCombination(DsgVar_94, 0.9, Func_GetNormalCollideVector2(1));
- DsgVar_94 = VEC_TemporalVectorCombination(DsgVar_94, 0.9, DsgVar_54);
- 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))));
- if (!(Cond_IsCurrentStateCustomBitSet(NodeCustomBits)))
- {
- if ((DsgVar_21 > 12))
- {
- if ((Func_AbsoluteValue(DsgVar_67) < 13))
- {
- if (!(Cond_CheckActionEnd(NodeActionRef(0x1a6f0c))))
- {
- Proc_ChangeAction(NodeActionRef(0x1a6f0c));
- }
- }
- else
- {
- if ((DsgVar_67 < -30))
- {
- if (!(Cond_CheckActionEnd(NodeActionRef(0x1a9950))))
- {
- Proc_ChangeAction(NodeActionRef(0x1a9950));
- }
- }
- else
- {
- if ((DsgVar_67 > 30))
- {
- if (!(Cond_CheckActionEnd(NodeActionRef(0x1a98b0))))
- {
- Proc_ChangeAction(NodeActionRef(0x1a98b0));
- }
- }
- }
- }
- if (!(Cond_IsCurrentStateCustomBitSet(NodeCustomBits)))
- {
- Proc_ChangeAction(NodeActionRef(0x1a6f0c));
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cf0));
- }
- }
- else
- {
- if (Cond_CheckActionEnd(NodeActionRef(0x1a2704)))
- {
- if (!(DsgVar_33))
- {
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cf0));
- Proc_ChangeAction(NodeActionRef(0x1a6f0c));
- }
- }
- if ((PadAnalogForce > DsgVar_75))
- {
- if (!(Cond_CheckActionEnd(NodeActionRef(0x1a2704))))
- {
- if ((DsgVar_33 && (DsgVar_21 < 6)))
- {
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
- Proc_ChangeAction(NodeActionRef(0x1a2704));
- Proc_SetMechanicKeepSpeedZ(1);
- }
- }
- }
- else
- {
- if ((DsgVar_21 < 0.9))
- {
- if (!(Cond_CheckActionEnd(NodeActionRef(0x1a2510))))
- {
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
- Proc_ChangeAction(NodeActionRef(0x1a2510));
- Proc_SetMechanicKeepSpeedZ(1);
- }
- }
- else
- {
- if ((DsgVar_21 > 1.1))
- {
- if (!(Cond_CheckActionEnd(NodeActionRef(0x1a6f0c))))
- {
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cf0));
- Proc_ChangeAction(NodeActionRef(0x1a6f0c));
- }
- }
- }
- }
- }
- }
- DsgVar_27 = ((DsgVar_21 == 0) ? 1 : Func_DotProduct(Func_Normalize(DsgVar_87), Func_GetPersoSighting()));
- if ((DsgVar_21 > 5))
- {
- DsgVar_36 = DsgVar_27;
- DsgVar_93 += ((1-DsgVar_36)*DsgVar_21);
- if ((DsgVar_93 > 60))
- {
- if ((DsgVar_93 > DsgVar_47))
- {
- DsgVar_47 += 3;
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d30));
- DsgVar_93 = 0;
- if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1),NodeMask))
- {
- if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1),NodeMask))
- {
- SetAGO(8, Position, Func_GetPersoSighting(), NodeGameMaterialRef(0x2173494), 0);
- }
- else
- {
- if (Cond_CmtIdentifierContainsMask(fn_p_stGetCollidePoint_197(1),NodeMask))
- {
- SetAGO(1, Position, new Vector3(0,0,0), NodeGameMaterialRef(0x21735f0), 0);
- }
- else
- {
- SetAGO(1, Position, new Vector3(0,0,0), NodeGameMaterialRef(0x217488c), 0);
- }
- }
- }
- }
- else
- {
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
- if ((DsgVar_47 > 60))
- {
- DsgVar_47--;
- }
- }
- }
- else
- {
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
- if ((DsgVar_47 > 60))
- {
- DsgVar_47--;
- }
- }
- }
- }
- }
- else
- {
- DsgVar_87.z = Func_MaximumReal(DsgVar_87.z, (12*-0.85));
- fn_p_SetMechanicSpeedVector(DsgVar_87);
- }
- if (Cond_JustPressedBut(NodeButton))
- {
- if ((DsgVar_24 && DsgVar_16))
- {
- DsgVar_29 = 1;
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0d10));
- SOUND_SendSoundRequest(NodeSoundEventRef(0x66c0cd0));
- if (Cond_IsCurrentStateCustomBitSet(NodeCustomBits))
- {
- NodeSubRoutine(0x22915c0);
- NodeSubRoutine(0x2291538);
- }
- else
- {
- Proc_ChangeAction(NodeActionRef(0x1a6900));
- }
- 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.9), DsgVar_87.z);
- }
- NodeSubRoutine(0x2291658);
- }
- }
- Proc_SetMechanicKeepSpeedZ(1);
- Proc_SetMechanicNeverFall(1);
- Proc_SetMechanicSlide(((DsgVar_87.z < 0) ? 25 : (25*0.75)));
- Proc_SetSlideFactorXYZ(((DsgVar_27 > 0) ? (0.65+(0.05*(1-DsgVar_27))) : 0.65), 1, 1);
- Proc_SetMechanicMaxRebound(((Cond_CheckActionEnd(NodeActionRef(0x1a2704))) ? 0.6 : 0.98));
- NodePersoRef(0x1b4e4c).DsgVar_0 = 1;
- NodePersoRef(0x1b4e4c).DsgVar_10 = 9;
- DsgVar_24 += Func_GetDeltaTime();
- DsgVar_9 = 4;
- NodePersoRef(0x1b4e4c).PAD_ReadAnalogJoystickMarioMode(DsgVar_74, 1, 1.5, 0.8, Func_Int(((DsgVar_16) ? 1 : 0)), 0, 0);
Add Comment
Please, Sign In to add comment