summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-01 00:59:21 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-01 00:59:21 +0200
commitb7d7dca626a360d88ba88f9c16e07326a1718194 (patch)
treefbaa58157ecb3a29efe8634a14bb3a6ecd1da3c2 /src/weapons
parentMerge pull request #372 from Nick007J/master (diff)
parentvehicles missing functions + fixes (diff)
downloadre3-b7d7dca626a360d88ba88f9c16e07326a1718194.tar
re3-b7d7dca626a360d88ba88f9c16e07326a1718194.tar.gz
re3-b7d7dca626a360d88ba88f9c16e07326a1718194.tar.bz2
re3-b7d7dca626a360d88ba88f9c16e07326a1718194.tar.lz
re3-b7d7dca626a360d88ba88f9c16e07326a1718194.tar.xz
re3-b7d7dca626a360d88ba88f9c16e07326a1718194.tar.zst
re3-b7d7dca626a360d88ba88f9c16e07326a1718194.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 09844c23..0f41264f 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -14,6 +14,7 @@ WRAPPER void CWeapon::AddGunshell(CEntity*, CVector const&, CVector2D const&, fl
WRAPPER void CWeapon::Update(int32 audioEntity) { EAXJMP(0x563A10); }
WRAPPER void CWeapon::DoTankDoomAiming(CEntity *playerVehicle, CEntity *playerPed, CVector *start, CVector *end) { EAXJMP(0x563200); }
WRAPPER void CWeapon::InitialiseWeapons(void) { EAXJMP(0x55C2D0); }
+WRAPPER void FireOneInstantHitRound(CVector* shotSource, CVector* shotTarget, int32 damage) { EAXJMP(0x563B00); }
void
CWeapon::Initialise(eWeaponType type, int ammo)
diff --git a/src/weapons/Weapon.h b/src/weapons/Weapon.h
index 74145564..84760550 100644
--- a/src/weapons/Weapon.h
+++ b/src/weapons/Weapon.h
@@ -81,3 +81,5 @@ public:
static void UpdateWeapons(void);
};
static_assert(sizeof(CWeapon) == 0x18, "CWeapon: error");
+
+void FireOneInstantHitRound(CVector* shotSource, CVector* shotTarget, int32 damage); \ No newline at end of file