summaryrefslogtreecommitdiffstats
path: root/src/weapons/BulletInfo.h
blob: 519545654f5455c71e08180fde45d8f7e9d3140f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

class CEntity;
enum eWeaponType;

class CBulletInfo
{
    eWeaponType m_eWeaponType;
    CEntity* m_pSource;
    float m_fTimer; // big mistake
    bool m_bInUse;
    CVector m_vecPosition;
    CVector m_vecSpeed;
    int16 m_nDamage;
public:
    enum {
        NUM_BULLETS = 100
    };
	static void Initialise(void);
	static void Shutdown(void);
	static bool AddBullet(CEntity*, eWeaponType, CVector, CVector);
	static void Update(void);
	static bool TestForSniperBullet(float x1, float x2, float y1, float y2, float z1, float z2);
};