From 7cfff963f792d37692c7c5355bffbe776dcd3639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Thu, 20 Jun 2019 14:22:44 +0300 Subject: Big CPed update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: eray orçunus --- src/weapons/WeaponInfo.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/weapons/WeaponInfo.cpp (limited to 'src/weapons/WeaponInfo.cpp') diff --git a/src/weapons/WeaponInfo.cpp b/src/weapons/WeaponInfo.cpp new file mode 100644 index 00000000..155425b5 --- /dev/null +++ b/src/weapons/WeaponInfo.cpp @@ -0,0 +1,14 @@ +#include "common.h" +#include "patcher.h" +#include "WeaponInfo.h" + +CWeaponInfo (&CWeaponInfo::ms_apWeaponInfos)[14] = * (CWeaponInfo(*)[14]) * (uintptr*)0x6503EC; + +CWeaponInfo* +CWeaponInfo::GetWeaponInfo(eWeaponType weaponType) { + return &CWeaponInfo::ms_apWeaponInfos[weaponType]; +} + +STARTPATCHES + InjectHook(0x564FD0, &CWeaponInfo::GetWeaponInfo, PATCH_JUMP); +ENDPATCHES \ No newline at end of file -- cgit v1.2.3