summaryrefslogtreecommitdiffstats
path: root/src/weapons/ProjectileInfo.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-11 12:30:17 +0100
committerSergeanur <s.anureev@yandex.ua>2020-01-11 12:31:48 +0100
commit895062a09de83ddb2a10b6de1207918c6ab6e270 (patch)
tree5a8c0296923ba3c274c41cc4474196732f83fc78 /src/weapons/ProjectileInfo.h
parentMerge pull request #289 from erorcun/erorcun (diff)
downloadre3-895062a09de83ddb2a10b6de1207918c6ab6e270.tar
re3-895062a09de83ddb2a10b6de1207918c6ab6e270.tar.gz
re3-895062a09de83ddb2a10b6de1207918c6ab6e270.tar.bz2
re3-895062a09de83ddb2a10b6de1207918c6ab6e270.tar.lz
re3-895062a09de83ddb2a10b6de1207918c6ab6e270.tar.xz
re3-895062a09de83ddb2a10b6de1207918c6ab6e270.tar.zst
re3-895062a09de83ddb2a10b6de1207918c6ab6e270.zip
Diffstat (limited to '')
-rw-r--r--src/weapons/ProjectileInfo.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/weapons/ProjectileInfo.h b/src/weapons/ProjectileInfo.h
index 7a1b5b53..f44b22c9 100644
--- a/src/weapons/ProjectileInfo.h
+++ b/src/weapons/ProjectileInfo.h
@@ -10,20 +10,23 @@ class CProjectileInfo
public:
eWeaponType m_eWeaponType;
CEntity* m_pSource;
- int m_nExplosionTime;
- char m_bInUse;
- char field_13;
- char field_14;
- char field_15;
+ uint32 m_nExplosionTime;
+ bool m_bInUse;
CVector m_vecPos;
public:
static CProjectileInfo* GetProjectileInfo(int32 id);
static CProjectile* (&ms_apProjectile)[32];
+ static void Initialise();
+ static void Shutdown();
+ static bool AddProjectile(CEntity *ped, eWeaponType weapon, CVector pos, float a4);
+ static void RemoveProjectile(CProjectileInfo*, CProjectile*);
+ static void RemoveNotAdd(CEntity *entity, eWeaponType weaponType, CVector pos);
static bool RemoveIfThisIsAProjectile(CObject *pObject);
static void RemoveAllProjectiles(void);
+ static void Update();
static bool IsProjectileInRange(float x1, float x2, float y1, float y2, float z1, float z2, bool remove);
};
-extern CProjectileInfo* gaProjectileInfo; \ No newline at end of file
+extern CProjectileInfo (&gaProjectileInfo)[32]; \ No newline at end of file