コード例 #1
0
ファイル: Noclip.cs プロジェクト: ExciteEfect13/recodecrack
        public static void MoveToAngle(ulong Address, MEMAPI.Vector2 BodyAngles, float Distance)
        {
            MEMAPI.Vector3 vector3 = MEMAPI.ReadVector3(Address, false);
            double         num1    = Math.PI / 180.0 * ((double)BodyAngles.y - 90.0);
            float          num2    = Distance * (float)Math.Cos(num1);
            float          num3    = Distance * (float)Math.Sin(num1);

            vector3.x += num2;
            vector3.z -= num3;
            vector3.y -= BodyAngles.x / 30000f;
            MEMAPI.WriteVector3(Address, vector3);
        }
コード例 #2
0
ファイル: Noclip.cs プロジェクト: ExciteEfect13/recodecrack
 public static void NoclipLoop()
 {
     while (!Main_Window.Closing)
     {
         if ((Noclip.GetKeyState(87) & 32768) != 0 && Noclip.NOCLIPS)
         {
             MEMAPI.Vector2 BodyAngles = MEMAPI.ReadVector2(Noclip.BodyAngleX);
             Noclip.Myvec3 = Noclip.MoveToAngleReturn(Noclip.Myvec3, BodyAngles, 0.0006f);
         }
         if ((Noclip.GetKeyState(83) & 32768) != 0 && Noclip.NOCLIPS)
         {
             MEMAPI.Vector2 BodyAngles = MEMAPI.ReadVector2(Noclip.BodyAngleX);
             BodyAngles.y -= 180f;
             BodyAngles.x -= BodyAngles.x * 2f;
             Noclip.Myvec3 = Noclip.MoveToAngleReturn(Noclip.Myvec3, BodyAngles, 0.0006f);
         }
         if ((Noclip.GetKeyState(65) & 32768) != 0 && Noclip.NOCLIPS)
         {
             MEMAPI.Vector2 BodyAngles = MEMAPI.ReadVector2(Noclip.BodyAngleX);
             BodyAngles.y -= 90f;
             BodyAngles.x  = 0.0f;
             Noclip.Myvec3 = Noclip.MoveToAngleReturn(Noclip.Myvec3, BodyAngles, 0.0006f);
         }
         if ((Noclip.GetKeyState(68) & 32768) != 0 && Noclip.NOCLIPS)
         {
             MEMAPI.Vector2 BodyAngles = MEMAPI.ReadVector2(Noclip.BodyAngleX);
             BodyAngles.y += 90f;
             BodyAngles.x  = 0.0f;
             Noclip.Myvec3 = Noclip.MoveToAngleReturn(Noclip.Myvec3, BodyAngles, 0.0006f);
         }
         if (Noclip.NOCLIPS)
         {
             MEMAPI.WriteVector3(MEMAPI.GetPointer(false, (long)Noclip.Local_Player + 48L, 8L, 56L, 176L), Noclip.Myvec3);
         }
         Thread.Sleep(1);
     }
 }