diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-01 01:48:31 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-01 01:48:31 +0200 |
commit | 3dec4a04230e3060a1c4f9a0c7bc698436f892d9 (patch) | |
tree | 92e6bfba49d11f7f41c7daa4ea593eb6c128555a /src/entities | |
parent | More CPed (diff) | |
parent | Merge pull request #81 from Nick007J/master (diff) | |
download | re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.gz re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.bz2 re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.lz re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.xz re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.zst re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.zip |
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/Automobile.cpp | 2 | ||||
-rw-r--r-- | src/entities/Automobile.h | 2 | ||||
-rw-r--r-- | src/entities/EmergencyPed.cpp | 7 | ||||
-rw-r--r-- | src/entities/Vehicle.h | 2 |
4 files changed, 12 insertions, 1 deletions
diff --git a/src/entities/Automobile.cpp b/src/entities/Automobile.cpp index e74013be..54eed17a 100644 --- a/src/entities/Automobile.cpp +++ b/src/entities/Automobile.cpp @@ -10,6 +10,8 @@ CAutomobile::CAutomobile(int mi, uint8 owner) WRAPPER CAutomobile* CAutomobile::ctor(int, uint8) { EAXJMP(0x52C6B0); } WRAPPER void CAutomobile::SetDoorDamage(int32, uint32, bool) { EAXJMP(0x530200); } +WRAPPER void CAutomobile::SetPanelDamage(int32, uint32, bool) { EAXJMP(0x5301A0); } +WRAPPER void CAutomobile::SetBumperDamage(int32, uint32, bool) { EAXJMP(0x530120); } STARTPATCHES InjectHook(0x52D170, &CAutomobile::dtor, PATCH_JUMP); diff --git a/src/entities/Automobile.h b/src/entities/Automobile.h index 246943a7..64e411ce 100644 --- a/src/entities/Automobile.h +++ b/src/entities/Automobile.h @@ -25,6 +25,8 @@ public: CAutomobile(int, uint8); CAutomobile* ctor(int, uint8); void SetDoorDamage(int32, uint32, bool); /* TODO: eDoors */ + void SetPanelDamage(int32, uint32, bool); /* TODO: ePanels */ + void SetBumperDamage(int32, uint32, bool); /* TODO: ePanels */ void dtor() { this->CAutomobile::~CAutomobile(); } }; static_assert(sizeof(CAutomobile) == 0x5A8, "CAutomobile: error"); diff --git a/src/entities/EmergencyPed.cpp b/src/entities/EmergencyPed.cpp new file mode 100644 index 00000000..7b847896 --- /dev/null +++ b/src/entities/EmergencyPed.cpp @@ -0,0 +1,7 @@ +#include "common.h" +#include "patcher.h" +#include "EmergencyPed.h" + +STARTPATCHES +InjectHook(0x4C2EF0, &CEmergencyPed::dtor, PATCH_JUMP); +ENDPATCHES
\ No newline at end of file diff --git a/src/entities/Vehicle.h b/src/entities/Vehicle.h index 997720f6..27641e47 100644 --- a/src/entities/Vehicle.h +++ b/src/entities/Vehicle.h @@ -77,7 +77,7 @@ public: uint8 m_veh_flagD2 : 1; uint8 m_veh_flagD4 : 1; uint8 m_veh_flagD8 : 1; - uint8 m_veh_flagD10 : 1; + uint8 bRecordedForReplay : 1; uint8 m_veh_flagD20 : 1; uint8 m_veh_flagD40 : 1; uint8 m_veh_flagD80 : 1; |