diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-04-15 08:03:53 +0300 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-04-15 08:03:53 +0300 |
commit | daed13485ef47d9c8992e53e1a976fba237fca50 (patch) | |
tree | f8116c26ac5f95a77375d67daffddbeaa19177e0 /src/core/General.h | |
parent | 6473778c47efa1e8c1e2d8eea405de98f378cd69 (diff) |
CWeapon done, ps2 cheats fix
Diffstat (limited to 'src/core/General.h')
-rw-r--r-- | src/core/General.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/General.h b/src/core/General.h index f32846eb..77828854 100644 --- a/src/core/General.h +++ b/src/core/General.h @@ -90,6 +90,11 @@ public: return -Atan2(x / y, 1.0f); } } + + static float GetAngleBetweenPoints(float x1, float y1, float x2, float y2) + { + return RADTODEG(GetRadianAngleBetweenPoints(x1, y1, x2, y2)); + } // should return direction in 0-8 range. fits perfectly to peds' path directions. static int GetNodeHeadingFromVector(float x, float y) |