diff options
| author | eray orçunus <erayorcunus@gmail.com> | 2019-06-20 14:22:44 +0300 |
|---|---|---|
| committer | eray orçunus <erayorcunus@gmail.com> | 2019-06-20 17:31:14 +0300 |
| commit | 7cfff963f792d37692c7c5355bffbe776dcd3639 (patch) | |
| tree | 56c846811df4b118fe3246db09b5848b451af297 /src/weapons/WeaponInfo.cpp | |
| parent | Merge pull request #25 from gennariarmando/master (diff) | |
| download | re3-7cfff963f792d37692c7c5355bffbe776dcd3639.tar.gz | |
Big CPed update
Signed-off-by: eray orçunus <erayorcunus@gmail.com>
Diffstat (limited to 'src/weapons/WeaponInfo.cpp')
| -rw-r--r-- | src/weapons/WeaponInfo.cpp | 14 |
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 |
