summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-25 16:33:37 +0200
committeraap <aap@papnet.eu>2019-07-25 16:33:37 +0200
commit3bb607f9cbc3d26a1b312f61f86ce3f42ef82a94 (patch)
tree102b0d7b779aa8969e1be0c9779d2fd7f700b904 /src/weapons
parentfixed dinput (diff)
downloadre3-3bb607f9cbc3d26a1b312f61f86ce3f42ef82a94.tar
re3-3bb607f9cbc3d26a1b312f61f86ce3f42ef82a94.tar.gz
re3-3bb607f9cbc3d26a1b312f61f86ce3f42ef82a94.tar.bz2
re3-3bb607f9cbc3d26a1b312f61f86ce3f42ef82a94.tar.lz
re3-3bb607f9cbc3d26a1b312f61f86ce3f42ef82a94.tar.xz
re3-3bb607f9cbc3d26a1b312f61f86ce3f42ef82a94.tar.zst
re3-3bb607f9cbc3d26a1b312f61f86ce3f42ef82a94.zip
Diffstat (limited to 'src/weapons')
-rw-r--r--src/weapons/Weapon.cpp1
-rw-r--r--src/weapons/Weapon.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index 0fc89637..056c584a 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -8,6 +8,7 @@ WRAPPER bool CWeapon::Fire(CEntity*, CVector*) { EAXJMP(0x55C380); }
WRAPPER void CWeapon::FireFromCar(CAutomobile *car, bool left) { EAXJMP(0x55C940); }
WRAPPER void CWeapon::AddGunshell(CEntity*, CVector const&, CVector2D const&, float) { EAXJMP(0x55F770); }
WRAPPER void CWeapon::Update(int32 audioEntity) { EAXJMP(0x563A10); }
+WRAPPER void CWeapon::DoTankDoomAiming(CEntity *playerVehicle, CEntity *playerPed, CVector *start, CVector *end) { EAXJMP(0x563200); }
void
CWeapon::Initialise(eWeaponType type, int ammo)
diff --git a/src/weapons/Weapon.h b/src/weapons/Weapon.h
index 71fe1f45..71c1f344 100644
--- a/src/weapons/Weapon.h
+++ b/src/weapons/Weapon.h
@@ -70,5 +70,7 @@ public:
void AddGunshell(CEntity*, CVector const&, CVector2D const&, float);
bool IsTypeMelee(void);
bool IsType2Handed(void);
+
+ static void DoTankDoomAiming(CEntity *playerVehicle, CEntity *playerPed, CVector *start, CVector *end);
};
static_assert(sizeof(CWeapon) == 0x18, "CWeapon: error");