diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-06-30 23:50:40 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-01 01:48:09 +0200 |
commit | ce28a6d298408513866716d00dcd16ed8ef5f285 (patch) | |
tree | 81e83f4689238683112b4776006262bfdbc88506 /src/entities/CivilianPed.cpp | |
parent | Merge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff) | |
download | re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.gz re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.bz2 re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.lz re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.xz re3-ce28a6d298408513866716d00dcd16ed8ef5f285.tar.zst re3-ce28a6d298408513866716d00dcd16ed8ef5f285.zip |
Diffstat (limited to 'src/entities/CivilianPed.cpp')
-rw-r--r-- | src/entities/CivilianPed.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/entities/CivilianPed.cpp b/src/entities/CivilianPed.cpp index cf589211..a4881e71 100644 --- a/src/entities/CivilianPed.cpp +++ b/src/entities/CivilianPed.cpp @@ -2,13 +2,18 @@ #include "patcher.h" #include "CivilianPed.h" -CCivilianPed::CCivilianPed(int pedtype, int mi) +WRAPPER void CCivilianPed::ProcessControl(void) { EAXJMP(0x4BFFE0); } + +CCivilianPed::CCivilianPed(int pedtype, int mi) : CPed(pedtype) { - ctor(pedtype, mi); + CPed::SetModelIndex(mi); + for (int i = 0; i < 10; i++) + { + m_nearPeds[i] = nil; + } } -WRAPPER CCivilianPed* CCivilianPed::ctor(int pedtype, int mi) { EAXJMP(0x4BFF30); } - STARTPATCHES + InjectHook(0x4BFF30, &CCivilianPed::ctor, PATCH_JUMP); InjectHook(0x4BFFC0, &CCivilianPed::dtor, PATCH_JUMP); ENDPATCHES
\ No newline at end of file |