summaryrefslogtreecommitdiffstats
path: root/src/entities
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-06-30 23:15:34 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-06-30 23:15:34 +0200
commit02c7cbc75f0451e87bff0a9d5469fe057432769c (patch)
treeb84cf4ab2a5f41f055c6b91771e67b356b357675 /src/entities
parentChanged CReplay::Display slightly (diff)
downloadre3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.gz
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.bz2
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.lz
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.xz
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.zst
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.zip
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/Automobile.cpp2
-rw-r--r--src/entities/Automobile.h2
2 files changed, 4 insertions, 0 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");