diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-06-18 14:55:39 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-06-18 22:01:03 +0200 |
commit | c9f6e7bf83dcef53f13de9e24fa9c6113cf1f0fa (patch) | |
tree | e12607035cf235f3d71979ba006b4a69bba31564 /src/PedType.cpp | |
parent | Merge branch 'master' of git://github.com/GTAmodding/re3 (diff) | |
download | re3-c9f6e7bf83dcef53f13de9e24fa9c6113cf1f0fa.tar re3-c9f6e7bf83dcef53f13de9e24fa9c6113cf1f0fa.tar.gz re3-c9f6e7bf83dcef53f13de9e24fa9c6113cf1f0fa.tar.bz2 re3-c9f6e7bf83dcef53f13de9e24fa9c6113cf1f0fa.tar.lz re3-c9f6e7bf83dcef53f13de9e24fa9c6113cf1f0fa.tar.xz re3-c9f6e7bf83dcef53f13de9e24fa9c6113cf1f0fa.tar.zst re3-c9f6e7bf83dcef53f13de9e24fa9c6113cf1f0fa.zip |
Diffstat (limited to 'src/PedType.cpp')
-rw-r--r-- | src/PedType.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/PedType.cpp b/src/PedType.cpp deleted file mode 100644 index 904b4f97..00000000 --- a/src/PedType.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "common.h" -#include "patcher.h" -#include "PedType.h" - -CPedType* (&CPedType::ms_apPedType)[23] = *(CPedType * (*)[23]) * (int*)0x941594; - -WRAPPER void CPedType::LoadPedData(void) { EAXJMP(0x4EE8D0); } - -void -CPedType::Initialise() -{ - debug("Initialising CPedType...\n"); - for(int i = 0; i < 23; i++) { - ms_apPedType[i] = new CPedType; - ms_apPedType[i]->m_Type.IntValue = 1; - ms_apPedType[i]->field_4 = 0; - ms_apPedType[i]->field_8 = 0; - // Why field_C not initialized? - ms_apPedType[i]->field_10 = 0; - ms_apPedType[i]->field_14 = 0; - ms_apPedType[i]->m_Threat.IntValue = 0; - ms_apPedType[i]->m_Avoid.IntValue = 0; - } - debug("Loading ped data...\n"); - LoadPedData(); - debug("CPedType ready\n"); -} - -STARTPATCHES - InjectHook(0x4EE7E0, &CPedType::Initialise, PATCH_JUMP); -ENDPATCHES
\ No newline at end of file |