1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-13 06:59:15 +00:00
re3/src/weapons/ProjectileInfo.h

34 lines
979 B
C
Raw Normal View History

2020-04-09 18:50:24 +00:00
#pragma once
2020-04-19 16:34:08 +00:00
#include "WeaponType.h"
2020-04-09 18:50:24 +00:00
class CEntity;
class CObject;
class CProjectile;
class CProjectileInfo
{
public:
eWeaponType m_eWeaponType;
CEntity *m_pSource;
2020-04-09 18:50:24 +00:00
uint32 m_nExplosionTime;
bool m_bInUse;
CVector m_vecPos;
public:
static CProjectileInfo *GetProjectileInfo(int32 id);
static CProjectile *ms_apProjectile[NUM_PROJECTILES];
2020-04-09 18:50:24 +00:00
static void Initialise();
static void Shutdown();
static bool AddProjectile(CEntity *ped, eWeaponType weapon, CVector pos, float speed);
static void RemoveProjectile(CProjectileInfo *info, CProjectile *projectile);
static void RemoveNotAdd(CEntity *entity, eWeaponType weaponType, CVector pos);
static bool RemoveIfThisIsAProjectile(CObject *pObject);
static void RemoveAllProjectiles();
2020-05-15 14:30:25 +00:00
static void RemoveDetonatorProjectiles();
2020-04-09 18:50:24 +00:00
static void Update();
static bool IsProjectileInRange(float x1, float x2, float y1, float y2, float z1, float z2, bool remove);
};
extern CProjectileInfo gaProjectileInfo[NUM_PROJECTILES];