re3/src/weapons/BulletInfo.h

24 lines
586 B
C
Raw Normal View History

2020-01-03 16:48:13 +00:00
#pragma once
2020-04-14 22:06:32 +00:00
class CEntity;
2020-04-15 05:03:53 +00:00
enum eWeaponType;
2020-01-03 16:48:13 +00:00
class CBulletInfo
{
2020-04-14 22:06:32 +00: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 16:48:13 +00:00
public:
2020-04-14 22:06:32 +00:00
enum {
NUM_BULLETS = 100
};
static void Initialise(void);
static void Shutdown(void);
2020-04-15 20:49:23 +00:00
static bool AddBullet(CEntity* pSource, eWeaponType type, CVector vecPosition, CVector vecSpeed);
2020-04-14 22:06:32 +00:00
static void Update(void);
2020-01-03 16:48:13 +00:00
static bool TestForSniperBullet(float x1, float x2, float y1, float y2, float z1, float z2);
};