diff options
Diffstat (limited to '')
-rw-r--r-- | src/weapons/BulletInfo.cpp | 5 | ||||
-rw-r--r-- | src/weapons/BulletInfo.h | 7 | ||||
-rw-r--r-- | src/weapons/ProjectileInfo.cpp | 3 | ||||
-rw-r--r-- | src/weapons/ProjectileInfo.h | 1 |
4 files changed, 15 insertions, 1 deletions
diff --git a/src/weapons/BulletInfo.cpp b/src/weapons/BulletInfo.cpp new file mode 100644 index 00000000..54fa6844 --- /dev/null +++ b/src/weapons/BulletInfo.cpp @@ -0,0 +1,5 @@ +#include "common.h" +#include "patcher.h" +#include "BulletInfo.h" + +WRAPPER bool CBulletInfo::TestForSniperBullet(float x1, float x2, float y1, float y2, float z1, float z2) { EAXJMP(0x558D40); } diff --git a/src/weapons/BulletInfo.h b/src/weapons/BulletInfo.h new file mode 100644 index 00000000..3905b56d --- /dev/null +++ b/src/weapons/BulletInfo.h @@ -0,0 +1,7 @@ +#pragma once + +class CBulletInfo +{ +public: + static bool TestForSniperBullet(float x1, float x2, float y1, float y2, float z1, float z2); +};
\ No newline at end of file diff --git a/src/weapons/ProjectileInfo.cpp b/src/weapons/ProjectileInfo.cpp index 198d9b67..7919b8ab 100644 --- a/src/weapons/ProjectileInfo.cpp +++ b/src/weapons/ProjectileInfo.cpp @@ -4,4 +4,5 @@ #include "Projectile.h" WRAPPER void CProjectileInfo::RemoveAllProjectiles(void) { EAXJMP(0x55BB80); } -WRAPPER bool CProjectileInfo::RemoveIfThisIsAProjectile(CObject *pObject) { EAXJMP(0x55BBD0); }
\ No newline at end of file +WRAPPER bool CProjectileInfo::RemoveIfThisIsAProjectile(CObject *pObject) { EAXJMP(0x55BBD0); } +WRAPPER bool CProjectileInfo::IsProjectileInRange(float x1, float x2, float y1, float y2, float z1, float z2, bool remove) { EAXJMP(0x55BA50); } diff --git a/src/weapons/ProjectileInfo.h b/src/weapons/ProjectileInfo.h index 5db57fec..e1faf028 100644 --- a/src/weapons/ProjectileInfo.h +++ b/src/weapons/ProjectileInfo.h @@ -7,4 +7,5 @@ class CProjectileInfo public:
static bool RemoveIfThisIsAProjectile(CObject *pObject);
static void RemoveAllProjectiles(void);
+ static bool IsProjectileInRange(float x1, float x2, float y1, float y2, float z1, float z2, bool remove);
};
\ No newline at end of file |