2020-01-03 17:48:13 +01:00
|
|
|
#pragma once
|
2020-04-15 00:06:32 +02:00
|
|
|
|
|
|
|
class CEntity;
|
2020-04-15 07:03:53 +02:00
|
|
|
enum eWeaponType;
|
2020-01-03 17:48:13 +01:00
|
|
|
|
|
|
|
class CBulletInfo
|
|
|
|
{
|
2020-04-15 23:00:04 +02:00
|
|
|
eWeaponType m_eWeaponType;
|
|
|
|
CEntity* m_pSource;
|
|
|
|
float m_fTimer; // big mistake
|
|
|
|
bool m_bInUse;
|
|
|
|
CVector m_vecPosition;
|
|
|
|
CVector m_vecSpeed;
|
|
|
|
int16 m_nDamage;
|
2020-01-03 17:48:13 +01:00
|
|
|
public:
|
2020-04-15 23:00:04 +02:00
|
|
|
enum {
|
|
|
|
NUM_BULLETS = 100
|
|
|
|
};
|
2020-04-15 00:06:32 +02:00
|
|
|
static void Initialise(void);
|
|
|
|
static void Shutdown(void);
|
2020-04-15 23:00:04 +02:00
|
|
|
static bool AddBullet(CEntity* pSource, eWeaponType type, CVector vecPosition, CVector vecSpeed);
|
2020-04-15 00:06:32 +02:00
|
|
|
static void Update(void);
|
2020-01-03 17:48:13 +01:00
|
|
|
static bool TestForSniperBullet(float x1, float x2, float y1, float y2, float z1, float z2);
|
|
|
|
};
|