From f7e962beaa9bb09629990a9fc8cd42f7ef29de7d Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Tue, 7 Jan 2020 17:26:23 +0200 Subject: Fixing Projectile code --- src/weapons/ProjectileInfo.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/weapons/ProjectileInfo.h') diff --git a/src/weapons/ProjectileInfo.h b/src/weapons/ProjectileInfo.h index e1faf028..7a1b5b53 100644 --- a/src/weapons/ProjectileInfo.h +++ b/src/weapons/ProjectileInfo.h @@ -1,11 +1,29 @@ #pragma once +class CEntity; class CObject; +class CProjectile; +enum eWeaponType; class CProjectileInfo { public: + eWeaponType m_eWeaponType; + CEntity* m_pSource; + int m_nExplosionTime; + char m_bInUse; + char field_13; + char field_14; + char field_15; + CVector m_vecPos; + +public: + static CProjectileInfo* GetProjectileInfo(int32 id); + static CProjectile* (&ms_apProjectile)[32]; + 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 +}; + +extern CProjectileInfo* gaProjectileInfo; \ No newline at end of file -- cgit v1.2.3