예제 #1
0
        /*order-*/
        /*junk_method*/
        /*order-*/
        public static float /*rnd*/ met_CalculateFOV/*rnd*/ (/*rnd*/ str_Vector3 /*rnd*/ /*rnd*/ var_ViewAngle /*rnd*/, /*rnd*/ str_Vector3 /*rnd*/  /*rnd*/ var_Destination /*rnd*/, float /*rnd*/ var_Distance /*rnd*/)
        {
            /*order-start*/
            /*order-*/ float /*rnd*/ var_Pitch /*rnd*/ = (float)(System.Math.Sin(/*rnd*/ met_Deg2Rad/*rnd*/ (/*rnd*/ var_ViewAngle /*rnd*/./*rnd*/ var_Xc /*rnd*/ - /*rnd*/ var_Destination /*rnd*/./*rnd*/ var_Xc /*rnd*/)) * /*rnd*/ var_Distance /*rnd*/); /*order-*/
            /*order-*/ float /*rnd*/ var_Yaw /*rnd*/   = (float)(System.Math.Sin(/*rnd*/ met_Deg2Rad/*rnd*/ (/*rnd*/ var_ViewAngle /*rnd*/./*rnd*/ var_Yc /*rnd*/ - /*rnd*/ var_Destination /*rnd*/./*rnd*/ var_Yc /*rnd*/)) * /*rnd*/ var_Distance /*rnd*/); /*order-*/

            /*order-end*/
            return((float)System.Math.Sqrt(System.Math.Pow(/*rnd*/ var_Pitch /*rnd*/, 2) + System.Math.Pow(/*rnd*/ var_Yaw /*rnd*/, 2)));
        }
예제 #2
0
        /*order-*/
        /*junk_method*/
        /*order-*/
        public static float met_VectorDistance(/*rnd*/ str_Vector3 /*rnd*/  /*rnd*/ var_VectorA /*rnd*/, /*rnd*/ str_Vector3 /*rnd*/ /*rnd*/ var_VectorB /*rnd*/)
        {
            /*rnd*/ str_Vector3 /*rnd*/  /*rnd*/ var_VectorC /*rnd*/ = new /*rnd*/ str_Vector3/*rnd*/ ();

            /*order-start*/
            /*order-*//*rnd*/ var_VectorC /*rnd*/./*rnd*/ var_Xc /*rnd*/ = /*rnd*/ var_VectorA /*rnd*/./*rnd*/ var_Xc /*rnd*/ - /*rnd*/ var_VectorB /*rnd*/./*rnd*/ var_Xc /*rnd*/; /*order-*/
            /*order-*//*rnd*/ var_VectorC /*rnd*/./*rnd*/ var_Yc /*rnd*/ = /*rnd*/ var_VectorA /*rnd*/./*rnd*/ var_Yc /*rnd*/ - /*rnd*/ var_VectorB /*rnd*/./*rnd*/ var_Yc /*rnd*/; /*order-*/
            /*order-*//*rnd*/ var_VectorC /*rnd*/./*rnd*/ var_Zc /*rnd*/ = /*rnd*/ var_VectorA /*rnd*/./*rnd*/ var_Zc /*rnd*/ - /*rnd*/ var_VectorB /*rnd*/./*rnd*/ var_Zc /*rnd*/; /*order-*/
            /*order-end*/
            return((float)System.Math.Sqrt((/*rnd*/ var_VectorC /*rnd*/./*rnd*/ var_Xc /*rnd*/ * /*rnd*/ var_VectorC /*rnd*/./*rnd*/ var_Xc /*rnd*/) + (/*rnd*/ var_VectorC /*rnd*/./*rnd*/ var_Yc /*rnd*/ * /*rnd*/ var_VectorC /*rnd*/./*rnd*/ var_Yc /*rnd*/) + (/*rnd*/ var_VectorC /*rnd*/./*rnd*/ var_Zc /*rnd*/ * /*rnd*/ var_VectorC /*rnd*/./*rnd*/ var_Zc /*rnd*/)));
        }
예제 #3
0
        /*order-*/
        /*junk_method*/
        /*order-*/
        public static /*rnd*/ str_Vector3 /*rnd*/ /*rnd*/ met_CalculateAngle/*rnd*/ (/*rnd*/ str_Vector3 /*rnd*/ /*rnd*/ var_Source /*rnd*/, /*rnd*/ str_Vector3 /*rnd*/ /*rnd*/ var_Destination /*rnd*/, bool /*rnd*/ var_RCS /*rnd*/ = false)
        {
            /*order-start*/
            /*order-*//*rnd*/ str_Vector3 /*rnd*/ /*rnd*/ var_Return /*rnd*/ = new /*rnd*/ str_Vector3/*rnd*/ (); /*order-*/
            /*order-*//*rnd*/ str_Vector3 /*rnd*/ /*rnd*/ var_Delta /*rnd*/  = new /*rnd*/ str_Vector3/*rnd*/ (); /*order-*/

            /*order-end*/
            /*order-start*/
            /*order-*//*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/ = /*rnd*/ var_Source /*rnd*/./*rnd*/ var_Xc /*rnd*/ - /*rnd*/ var_Destination /*rnd*/./*rnd*/ var_Xc /*rnd*/; /*order-*/
            /*order-*//*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Yc /*rnd*/ = /*rnd*/ var_Source /*rnd*/./*rnd*/ var_Yc /*rnd*/ - /*rnd*/ var_Destination /*rnd*/./*rnd*/ var_Yc /*rnd*/; /*order-*/
            /*order-*//*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Zc /*rnd*/ = /*rnd*/ var_Source /*rnd*/./*rnd*/ var_Zc /*rnd*/ - /*rnd*/ var_Destination /*rnd*/./*rnd*/ var_Zc /*rnd*/; /*order-*/
            /*order-end*/
            float /*rnd*/ var_Hypotenuse /*rnd*/ = (float)System.Math.Sqrt(System.Math.Pow(/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/, 2) + System.Math.Pow(/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Yc /*rnd*/, 2));

            /*order-start*/
            /*order-*//*rnd*/ var_Return /*rnd*/./*rnd*/ var_Xc /*rnd*/ = /*rnd*/ met_Rad2Deg/*rnd*/ ((float)System.Math.Atan(/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Zc /*rnd*/ / /*rnd*/ var_Hypotenuse /*rnd*/));                   /*order-*/
            /*order-*//*rnd*/ var_Return /*rnd*/./*rnd*/ var_Yc /*rnd*/ = /*rnd*/ met_Rad2Deg/*rnd*/ ((float)System.Math.Atan(/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Yc /*rnd*/ / /*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/)); /*order-*/
            /*order-end*/

            if (/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/ >= 0.0f)
            {
                /*rnd*/ var_Return /*rnd*/./*rnd*/ var_Yc /*rnd*/ += 180.0f;
            }

            if (/*rnd*/ var_RCS /*rnd*/)
            {
                int /*rnd*/ var_ShotsFired /*rnd*/ = /*rnd*/ cl_Memory /*rnd*/./*rnd*/ met_ReadMemory/*rnd*/ <int>(Program./*rnd*/ var_LocalPlayer /*rnd*/ + /*rnd*/ cl_Offsets /*rnd*/./*rnd*/ var_offset_ShotsFired /*rnd*/);
                if (/*rnd*/ var_ShotsFired /*rnd*/ > 1)
                {
                    /*rnd*/ str_Vector2 /*rnd*/ /*rnd*/ var_VectorPunch /*rnd*/ = new /*rnd*/ str_Vector2/*rnd*/ ();
                    /*order-start*/
                    /*order-*//*rnd*/ var_VectorPunch /*rnd*/./*rnd*/ var_Xc /*rnd*/ = /*rnd*/ cl_Memory /*rnd*/./*rnd*/ met_ReadMemory/*rnd*/ <float>(Program./*rnd*/ var_LocalPlayer /*rnd*/ + /*rnd*/ cl_Offsets /*rnd*/./*rnd*/ var_offset_AimPunch /*rnd*/);     /*order-*/
                    /*order-*//*rnd*/ var_VectorPunch /*rnd*/./*rnd*/ var_Yc /*rnd*/ = /*rnd*/ cl_Memory /*rnd*/./*rnd*/ met_ReadMemory/*rnd*/ <float>(Program./*rnd*/ var_LocalPlayer /*rnd*/ + /*rnd*/ cl_Offsets /*rnd*/./*rnd*/ var_offset_AimPunch /*rnd*/ + 4); /*order-*/
                    /*order-end*/
                    /*order-start*/
                    /*order-*/ float /*rnd*/ var_VectorPunchX /*rnd*/ = /*rnd*/ var_VectorPunch /*rnd*/./*rnd*/ var_Xc /*rnd*/ * 2.0f; /*order-*/
                    /*order-*/ float /*rnd*/ var_VectorPunchY /*rnd*/ = /*rnd*/ var_VectorPunch /*rnd*/./*rnd*/ var_Yc /*rnd*/ * 2.0f; /*order-*/
                    /*order-end*/
                    /*order-start*/
                    /*order-*//*rnd*/ var_Return /*rnd*/./*rnd*/ var_Xc /*rnd*/ -= /*rnd*/ var_VectorPunchX /*rnd*/; /*order-*/
                    /*order-*//*rnd*/ var_Return /*rnd*/./*rnd*/ var_Yc /*rnd*/ -= /*rnd*/ var_VectorPunchY /*rnd*/; /*order-*/
                    /*order-end*/
                }
            }

            return /*rnd*/ (var_Return /*rnd*/);
        }
예제 #4
0
 /*order-*/
 /*junk_method*/
 /*order-*/
 public static /*rnd*/ str_Vector3 /*rnd*/ /*rnd*/ met_NormalizeDelta/*rnd*/ (/*rnd*/ str_Vector3 /*rnd*/ /*rnd*/ var_Delta /*rnd*/)
 {
     /*order-start*/
     /*order-*/
     if (/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/ > 89.0f && /*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/ <= 180.0f)
     {
         /*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/ = 89.0f;
     }
     while (/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/ > 180.0f)
     {
         /*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/ -= 360.0f;
     }
     while (/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/ < -89.0f)
     {
         /*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Xc /*rnd*/ = -89.0f;
     }
     /*order-*/
     /*order-*/
     while (/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Yc /*rnd*/ > 180.0f)
     {
         /*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Yc /*rnd*/ -= 360.0f;
     }
     while (/*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Yc /*rnd*/ < -180.0f)
     {
         /*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Yc /*rnd*/ += 360.0f;
     }
     /*order-*/
     /*order-*//*rnd*/ var_Delta /*rnd*/./*rnd*/ var_Zc /*rnd*/ = 0;/*order-*/
     /*order-end*/
     return /*rnd*/ (var_Delta /*rnd*/);
 }