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

25 lines
557 B
C
Raw Normal View History

2020-01-03 16:48:13 +00:00
#pragma once
2020-04-14 22:06:32 +00:00
2020-04-19 16:34:08 +00:00
#include "WeaponType.h"
2020-04-14 22:06:32 +00:00
class CEntity;
2020-01-03 16:48:13 +00:00
class CBulletInfo
{
2020-04-15 21:00:04 +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-15 21:00:04 +00:00
enum {
NUM_BULLETS = 100
};
2020-04-14 22:06:32 +00:00
static void Initialise(void);
static void Shutdown(void);
2020-04-15 21:00:04 +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);
};