summaryrefslogtreecommitdiffstats
path: root/src/weapons/BulletInfo.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-15 00:06:32 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-15 00:06:32 +0200
commitb657a8e17c8654d5eeb645e3a7da9fbb5759cae8 (patch)
tree95d4bb9170ce97c9956f7aee229e8f59b4037fe9 /src/weapons/BulletInfo.h
parentfix (diff)
downloadre3-b657a8e17c8654d5eeb645e3a7da9fbb5759cae8.tar
re3-b657a8e17c8654d5eeb645e3a7da9fbb5759cae8.tar.gz
re3-b657a8e17c8654d5eeb645e3a7da9fbb5759cae8.tar.bz2
re3-b657a8e17c8654d5eeb645e3a7da9fbb5759cae8.tar.lz
re3-b657a8e17c8654d5eeb645e3a7da9fbb5759cae8.tar.xz
re3-b657a8e17c8654d5eeb645e3a7da9fbb5759cae8.tar.zst
re3-b657a8e17c8654d5eeb645e3a7da9fbb5759cae8.zip
Diffstat (limited to '')
-rw-r--r--src/weapons/BulletInfo.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/weapons/BulletInfo.h b/src/weapons/BulletInfo.h
index 3905b56d..fb8fd3a8 100644
--- a/src/weapons/BulletInfo.h
+++ b/src/weapons/BulletInfo.h
@@ -1,7 +1,24 @@
#pragma once
+#include "Weapon.h"
+
+class CEntity;
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);
}; \ No newline at end of file