Decompile 2 functions in Source/Contents/Actors/RenderObject.cpp, Source/Contents/Actors/GameActor.h
Batch #1855 by Yommy: 2 byte-identical, 0 confirmed by peer review. - fn_21090 CGameActor::ProcessBodyState: byte-identical - fn_08455 CGameActor::GetShield: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
e6c26dca89
commit
8a9e5752b5
2 changed files with 23 additions and 1 deletions
|
|
@ -17,7 +17,9 @@ public:
|
||||||
/* 0254 */ std::uint32_t routeStartTick;
|
/* 0254 */ std::uint32_t routeStartTick;
|
||||||
/* 0258 */ unsigned char unknown_0258[0x08];
|
/* 0258 */ unsigned char unknown_0258[0x08];
|
||||||
/* 0260 */ int unknown_0260;
|
/* 0260 */ int unknown_0260;
|
||||||
/* 0264 */ unsigned char unknown_0264[0x64];
|
/* 0264 */ unsigned char unknown_0264[0x58];
|
||||||
|
/* 02BC */ int bodyState;
|
||||||
|
/* 02C0 */ unsigned char unknown_02C0[0x08];
|
||||||
/* 02C8 */ int unknown_02C8;
|
/* 02C8 */ int unknown_02C8;
|
||||||
/* 02CC */ unsigned char unknown_02CC[0x18];
|
/* 02CC */ unsigned char unknown_02CC[0x18];
|
||||||
/* 02E4 */ int unknown_02E4;
|
/* 02E4 */ int unknown_02E4;
|
||||||
|
|
@ -76,6 +78,8 @@ public:
|
||||||
void SetUnknown02E4(int value);
|
void SetUnknown02E4(int value);
|
||||||
void SetUnknown02C8(int value);
|
void SetUnknown02C8(int value);
|
||||||
void SetUnknown0260(int value);
|
void SetUnknown0260(int value);
|
||||||
|
void ProcessBodyState();
|
||||||
|
int GetShield();
|
||||||
bool FindRoute(int startX, int startY, int fractionX, int fractionY, int destX, int destY, int speed);
|
bool FindRoute(int startX, int startY, int fractionX, int fractionY, int destX, int destY, int speed);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -85,6 +89,7 @@ static_assert(offsetof(CGameActor, route) == 0x220);
|
||||||
static_assert(offsetof(CGameActor, unknown_0238) == 0x238);
|
static_assert(offsetof(CGameActor, unknown_0238) == 0x238);
|
||||||
static_assert(offsetof(CGameActor, routeStartTick) == 0x254);
|
static_assert(offsetof(CGameActor, routeStartTick) == 0x254);
|
||||||
static_assert(offsetof(CGameActor, unknown_0260) == 0x260);
|
static_assert(offsetof(CGameActor, unknown_0260) == 0x260);
|
||||||
|
static_assert(offsetof(CGameActor, bodyState) == 0x2BC);
|
||||||
static_assert(offsetof(CGameActor, unknown_02C8) == 0x2C8);
|
static_assert(offsetof(CGameActor, unknown_02C8) == 0x2C8);
|
||||||
static_assert(offsetof(CGameActor, unknown_02E4) == 0x2E4);
|
static_assert(offsetof(CGameActor, unknown_02E4) == 0x2E4);
|
||||||
static_assert(offsetof(CGameActor, unknown_0305) == 0x305);
|
static_assert(offsetof(CGameActor, unknown_0305) == 0x305);
|
||||||
|
|
|
||||||
|
|
@ -418,3 +418,20 @@ void CRenderObject::JitterBounds(float* output, const int* input, float offset,
|
||||||
output[1] = static_cast<float>(input[0]) + offset + jitter[2];
|
output[1] = static_cast<float>(input[0]) + offset + jitter[2];
|
||||||
output[3] = static_cast<float>(input[2]) + offset + jitter[3];
|
output[3] = static_cast<float>(input[2]) + offset + jitter[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OFFSET: 0x00CAFEE0
|
||||||
|
// FUNCTION: fn_21090
|
||||||
|
void CGameActor::ProcessBodyState() {
|
||||||
|
switch (this->bodyState) {
|
||||||
|
case 1:
|
||||||
|
case 2:
|
||||||
|
this->render.unknown_009C[2] = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// OFFSET: 0x0077E3A0
|
||||||
|
// FUNCTION: fn_08455
|
||||||
|
int CGameActor::GetShield() {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue