summaryrefslogtreecommitdiffstats
path: root/src/weapons/WeaponInfo.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-21 11:15:08 +0200
committerGitHub <noreply@github.com>2019-06-21 11:15:08 +0200
commit3271467976b30edb0eba2bb0d43d47c0a7f38c86 (patch)
tree54ce20b6dbdb56a0c7fff067b93ae00278782dc4 /src/weapons/WeaponInfo.cpp
parentadded some World defines (diff)
parentFix throwable weapons (diff)
downloadre3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar
re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.gz
re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.bz2
re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.lz
re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.xz
re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.zst
re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.zip
Diffstat (limited to 'src/weapons/WeaponInfo.cpp')
-rw-r--r--src/weapons/WeaponInfo.cpp14
1 files changed, 14 insertions, 0 deletions
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