Curation round 16: Mom's Knife and the bone club, sin minibosses and death rewards, slots and beggars, NPC rendering and twelve bosses, alt path visuals, the Forgotten's flight and tainted HUDs, Sheol and the Cathedral to the credits, familiars and transformations
This commit is contained in:
1 parent
76c594f9a0
commit
e9de039d0f
151 files changed
+14996
-5208
No files matched your search
@@ -1,607 +0,0 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 0041e480
|
||||
void BeamRenderer::Begin(ANM2 *anm2, uint32_t layer, uint8_t isUseOverlay, uint8_t isUnk)
|
||||
{
|
||||
DAT_00c78ef0 = anm2;
|
||||
DAT_00c78ef4 = layer;
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(DAT_00c78ef8)) + 0x0))) = isUseOverlay;
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(DAT_00c78ef8)) + 0x1))) = isUnk;
|
||||
g_beamRendererPointsEnd = g_beamRendererPoints;
|
||||
return;
|
||||
}
|
||||
|
||||
// 0041e720
|
||||
void BeamRenderer::Add(Vector *point, ColorMod *color, float spritesheetCoordinate, float width)
|
||||
{
|
||||
int iVar1;
|
||||
float fVar2;
|
||||
float dirX;
|
||||
float dirY;
|
||||
uint64_t local_70;
|
||||
float local_68;
|
||||
float fStack_64;
|
||||
float fStack_60;
|
||||
float fStack_5c;
|
||||
Vector newPointPos;
|
||||
float normalX;
|
||||
float normalY;
|
||||
float newPointCoord;
|
||||
float newPointWidth;
|
||||
float local_40;
|
||||
float fStack_3c;
|
||||
float fStack_38;
|
||||
float fStack_34;
|
||||
float local_30;
|
||||
float fStack_2c;
|
||||
float fStack_28;
|
||||
float fStack_24;
|
||||
uint64_t local_20;
|
||||
float local_18;
|
||||
uint32_t local_c;
|
||||
void *pointsEnd;
|
||||
|
||||
pointsEnd = g_beamRendererPointsEnd;
|
||||
local_c = __security_cookie ^ GHIDRA_UINT(&dirX);
|
||||
newPointPos.x = point->x;
|
||||
newPointPos.y = point->y;
|
||||
local_68 = color->_tint[0];
|
||||
fStack_64 = color->_tint[1];
|
||||
fStack_60 = color->_tint[2];
|
||||
fStack_5c = color->_tint[3];
|
||||
local_18 = color->_offset[2];
|
||||
local_30 = color->_colorize[0];
|
||||
fStack_2c = color->_colorize[1];
|
||||
fStack_28 = color->_colorize[2];
|
||||
fStack_24 = color->_colorize[3];
|
||||
local_70 = *GHIDRA_CAST<uint64_t *>(color->_offset);
|
||||
iVar1 = GHIDRA_INT(g_beamRendererPointsEnd) - GHIDRA_INT(g_beamRendererPoints) >> 0x1f;
|
||||
normalX = g_vectorZero.x;
|
||||
normalY = g_vectorZero.y;
|
||||
newPointCoord = spritesheetCoordinate;
|
||||
newPointWidth = width;
|
||||
local_40 = local_68;
|
||||
fStack_3c = fStack_64;
|
||||
fStack_38 = fStack_60;
|
||||
fStack_34 = fStack_5c;
|
||||
local_20 = local_70;
|
||||
if ((GHIDRA_INT(g_beamRendererPointsEnd) - GHIDRA_INT(g_beamRendererPoints)) / 0x44 + iVar1 != iVar1) {
|
||||
dirY = newPointPos.y - *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(g_beamRendererPointsEnd) + -0x40));
|
||||
dirX = newPointPos.x - *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(g_beamRendererPointsEnd) + -0x44));
|
||||
fVar2 = sqrtf(dirY * dirY + dirX * dirX);
|
||||
if (0.0 < fVar2) {
|
||||
dirX = dirX * (1.0 / fVar2);
|
||||
dirY = dirY * (1.0 / fVar2);
|
||||
}
|
||||
fVar2 = cos(1.5707964);
|
||||
local_70 = CONCAT44((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_70)) + 0x4))),fVar2);
|
||||
fVar2 = sin(1.5707964);
|
||||
normalX = (float)local_70 * dirX - fVar2 * dirY;
|
||||
normalY = fVar2 * dirX + (float)local_70 * dirY;
|
||||
(GHIDRA_CAST<Point *>((GHIDRA_CAST<Point *>((GHIDRA_INT(pointsEnd) + -0x44)))))->Point::UpdateNormal(&newPointPos);
|
||||
}
|
||||
pointsEnd = g_beamRendererPointsEnd;
|
||||
if (g_beamRendererPointsEnd == DAT_00c78f04) {
|
||||
FUN_0041fcb0(g_beamRendererPointsEnd,&newPointPos);
|
||||
return;
|
||||
}
|
||||
*GHIDRA_CAST<float *>(g_beamRendererPointsEnd) = newPointPos.x;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 4)) = newPointPos.y;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 8)) = normalX;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0xc)) = normalY;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x10)) = newPointCoord;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x14)) = newPointWidth;
|
||||
*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(pointsEnd) + 0x38)) = local_20;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x18)) = local_40;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x1c)) = fStack_3c;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x20)) = fStack_38;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x24)) = fStack_34;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x40)) = local_18;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x28)) = local_30;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x2c)) = fStack_2c;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x30)) = fStack_28;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pointsEnd) + 0x34)) = fStack_24;
|
||||
g_beamRendererPointsEnd = (void *)(GHIDRA_INT(g_beamRendererPointsEnd) + 0x44);
|
||||
return;
|
||||
}
|
||||
|
||||
// 0041e960
|
||||
void BeamRenderer::End()
|
||||
{
|
||||
char cVar1;
|
||||
LayerState *layer;
|
||||
float *pfVar2;
|
||||
void *pvVar3;
|
||||
int iVar4;
|
||||
AnimationState *animState;
|
||||
KColor *color;
|
||||
uint8_t *unusedArg;
|
||||
float *pfVar5;
|
||||
uint32_t bytesLeft;
|
||||
bool isBytesLeft;
|
||||
int *piVar6;
|
||||
float nextUvY;
|
||||
float fVar7;
|
||||
float fVar8;
|
||||
float fVar9;
|
||||
float nextEdgeOffsetY;
|
||||
int *imageRefCount;
|
||||
uint8_t auStack_202 [2];
|
||||
Vector startCornerA;
|
||||
Vector startCornerB;
|
||||
Vector endCornerA;
|
||||
uint8_t local_1dc [20];
|
||||
float fStack_1c8;
|
||||
float fStack_1c4;
|
||||
float fStack_1c0;
|
||||
uint8_t local_1bc;
|
||||
float local_1b8 [14];
|
||||
uint32_t local_180;
|
||||
float local_17c [4];
|
||||
uint32_t local_16c;
|
||||
Vector local_168;
|
||||
uint64_t local_160;
|
||||
Vector local_158;
|
||||
Vector local_150;
|
||||
Vector local_148;
|
||||
Vector local_140;
|
||||
Vector local_138;
|
||||
int *texture;
|
||||
int *textureRefCount;
|
||||
Vector local_128;
|
||||
Color pointColor;
|
||||
Color nextPointColor;
|
||||
Vector local_c0;
|
||||
float *layerFrame;
|
||||
float local_b4;
|
||||
uint8_t *local_b0;
|
||||
float local_ac;
|
||||
float local_a8;
|
||||
uint8_t spriteFlipX;
|
||||
uint8_t layerFlipX;
|
||||
float *local_a0;
|
||||
char isPerVertexColor;
|
||||
uint8_t coloredQuad [24];
|
||||
ColorMod shaderColor;
|
||||
float endTint;
|
||||
float fStack_50;
|
||||
float fStack_4c;
|
||||
float fStack_48;
|
||||
float endColorize;
|
||||
float fStack_40;
|
||||
float fStack_3c;
|
||||
float fStack_38;
|
||||
uint64_t endOffsetXY;
|
||||
float endOffsetZ;
|
||||
uint32_t stackCookie;
|
||||
uint8_t *puStack_20;
|
||||
void *local_1c;
|
||||
uint8_t *puStack_18;
|
||||
uint32_t local_14;
|
||||
float *nextPointColorize;
|
||||
float uvLeft;
|
||||
|
||||
puStack_20 = coloredQuad + 0x94;
|
||||
local_14 = 0xffffffff;
|
||||
puStack_18 = &LAB_00af1720;
|
||||
local_1c = ExceptionList;
|
||||
stackCookie = __security_cookie ^ GHIDRA_UINT((coloredQuad + 0x88));
|
||||
ExceptionList = &local_1c;
|
||||
layer = ANM2::GetLayer(DAT_00c78ef0,DAT_00c78ef4);
|
||||
LayerState::GetTexture(layer,&texture);
|
||||
local_14 = 0;
|
||||
if ((texture != GHIDRA_CAST<int *>(0x0)) &&
|
||||
(1 < GHIDRA_UINT(((GHIDRA_INT(g_beamRendererPointsEnd) - GHIDRA_INT(g_beamRendererPoints)) / 0x44)))) {
|
||||
if ((char)DAT_00c78ef8 == '\0') {
|
||||
animState = &DAT_00c78ef0->_animState;
|
||||
}
|
||||
else {
|
||||
animState = &DAT_00c78ef0->_overlayAnimState;
|
||||
}
|
||||
pfVar2 = AnimationState::GetLayerFrame(animState,GHIDRA_INT(DAT_00c78ef4));
|
||||
layerFrame = pfVar2;
|
||||
if (pfVar2 != GHIDRA_CAST<float *>(0x0)) {
|
||||
iVar4 = *GHIDRA_CAST<int *>(ThreadLocalStoragePointer);
|
||||
if ((*GHIDRA_CAST<int *>((iVar4 + 0xc)) < DAT_00c7f6d0) && (_Init_thread_header(), DAT_00c7f6d0 == -1)) {
|
||||
_atexit(GHIDRA_CAST<_func_4879 *>(&LAB_00b15320));
|
||||
_Init_thread_footer();
|
||||
}
|
||||
if ((*GHIDRA_CAST<int *>((iVar4 + 0xc)) < DAT_00c7f6e0) && (_Init_thread_header(), DAT_00c7f6e0 == -1)) {
|
||||
_atexit(GHIDRA_CAST<_func_4879 *>(&LAB_00b15310));
|
||||
_Init_thread_footer();
|
||||
}
|
||||
DAT_00c7f6d8 = DAT_00c7f6d4;
|
||||
DAT_00c7f6e8 = DAT_00c7f6e4;
|
||||
layer = ANM2::GetLayer(DAT_00c78ef0,DAT_00c78ef4);
|
||||
isPerVertexColor = '\0';
|
||||
layerFlipX = layer->_flipX;
|
||||
spriteFlipX = DAT_00c78ef0->_flipX;
|
||||
pfVar5 = g_beamRendererPoints;
|
||||
if (g_beamRendererPoints != (void *)(GHIDRA_INT(g_beamRendererPointsEnd) + -0x44)) {
|
||||
LAB_0041eac0:
|
||||
local_a0 = pfVar5 + 0x11;
|
||||
fVar7 = pfVar2[2];
|
||||
local_b4 = fVar7 * pfVar5[4] * pfVar5[2] * 0.5;
|
||||
local_b0 = GHIDRA_CAST<uint8_t *>((fVar7 * pfVar5[4] * pfVar5[3] * 0.5));
|
||||
fVar9 = fVar7 * pfVar5[0x15] * pfVar5[0x13] * 0.5;
|
||||
nextEdgeOffsetY = fVar7 * pfVar5[0x15] * pfVar5[0x14] * 0.5;
|
||||
fVar8 = pfVar5[5];
|
||||
cVar1 = (char)(GHIDRA_UINT(DAT_00c78ef8) >> 8);
|
||||
if (cVar1 != '\0') {
|
||||
fVar8 = fVar8 * pfVar2[3];
|
||||
}
|
||||
nextUvY = pfVar5[0x16];
|
||||
if (cVar1 != '\0') {
|
||||
nextUvY = nextUvY * pfVar2[3];
|
||||
}
|
||||
uvLeft = *pfVar2;
|
||||
nextUvY = pfVar2[1] + nextUvY;
|
||||
fVar7 = fVar7 + uvLeft;
|
||||
piVar6 = GHIDRA_CAST<int *>((pfVar2[1] + fVar8));
|
||||
local_ac = fVar9;
|
||||
local_a8 = nextEdgeOffsetY;
|
||||
if (layerFlipX == spriteFlipX) {
|
||||
local_158.x = fVar7;
|
||||
local_158.y = nextUvY;
|
||||
local_150.x = uvLeft;
|
||||
local_150.y = nextUvY;
|
||||
local_148.x = fVar7;
|
||||
local_148.y = (float)piVar6;
|
||||
local_140.x = uvLeft;
|
||||
local_140.y = (float)piVar6;
|
||||
DestinationQuad::DestinationQuad
|
||||
(GHIDRA_CAST<DestinationQuad *>(local_1dc),&local_140,&local_148,&local_150,&local_158);
|
||||
local_1bc = 1;
|
||||
if (DAT_00c7f6d8 == DAT_00c7f6dc) goto LAB_0041eca3;
|
||||
(GHIDRA_CAST<SourceQuad *>((DAT_00c7f6d8)))->SourceQuad::SourceQuad(local_1dc);
|
||||
DAT_00c7f6d8 = DAT_00c7f6d8 + 1;
|
||||
}
|
||||
else {
|
||||
local_168.x = uvLeft;
|
||||
local_168.y = nextUvY;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_160)) + 0x0))) = fVar7;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_160)) + 0x4))) = nextUvY;
|
||||
local_128.x = fVar7;
|
||||
local_128.y = (float)piVar6;
|
||||
local_c0.x = uvLeft;
|
||||
local_c0.y = (float)piVar6;
|
||||
DestinationQuad::DestinationQuad
|
||||
(GHIDRA_CAST<DestinationQuad *>(local_1dc),&local_128,&local_c0,GHIDRA_CAST<Vector *>(&local_160),
|
||||
&local_168);
|
||||
local_1bc = 1;
|
||||
if (DAT_00c7f6d8 == DAT_00c7f6dc) {
|
||||
LAB_0041eca3:
|
||||
local_1bc = 1;
|
||||
msvc::vector<ColoredQuad>::_Emplace_reallocate();
|
||||
fVar9 = local_ac;
|
||||
nextEdgeOffsetY = local_a8;
|
||||
}
|
||||
else {
|
||||
(GHIDRA_CAST<SourceQuad *>((DAT_00c7f6d8)))->SourceQuad::SourceQuad(local_1dc);
|
||||
DAT_00c7f6d8 = DAT_00c7f6d8 + 1;
|
||||
}
|
||||
}
|
||||
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1dc + 0x10)))))->KColor::SetFromARGB(0xffffffff);
|
||||
local_138.x = *local_a0 - fVar9;
|
||||
endCornerA.x = fVar9 + *local_a0;
|
||||
local_138.y = local_a0[1] - nextEdgeOffsetY;
|
||||
endCornerA.y = nextEdgeOffsetY + local_a0[1];
|
||||
startCornerB.x = *pfVar5 - local_b4;
|
||||
startCornerA.x = *pfVar5 + local_b4;
|
||||
startCornerB.y = pfVar5[1] - (float)local_b0;
|
||||
startCornerA.y = (float)local_b0 + pfVar5[1];
|
||||
pvVar3 = set_quad_corner_colors
|
||||
(coloredQuad,&startCornerA,&startCornerB,&endCornerA,&local_138,color);
|
||||
if (DAT_00c7f6e8 == DAT_00c7f6ec) {
|
||||
FUN_0041fa30();
|
||||
}
|
||||
else {
|
||||
render_quad_copy(DAT_00c7f6e8,pvVar3);
|
||||
DAT_00c7f6e8 = (void *)(GHIDRA_INT(DAT_00c7f6e8) + 0x70);
|
||||
}
|
||||
if (isPerVertexColor == '\0') {
|
||||
pointColor._tint[0] = pfVar5[6];
|
||||
pointColor._tint[1] = pfVar5[7];
|
||||
pointColor._tint[2] = pfVar5[8];
|
||||
pointColor._tint[3] = pfVar5[9];
|
||||
pointColor._offset[2] = pfVar5[0x10];
|
||||
pointColor._colorize[0] = pfVar5[10];
|
||||
pointColor._colorize[1] = pfVar5[0xb];
|
||||
pointColor._colorize[2] = pfVar5[0xc];
|
||||
pointColor._colorize[3] = pfVar5[0xd];
|
||||
(*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(pointColor._offset)) + 0x0))) = *GHIDRA_CAST<uint64_t *>((pfVar5 + 0xe));
|
||||
(GHIDRA_CAST<Color *>((&pointColor)))->Color::__mul(GHIDRA_CAST<ColorMod *>((pfVar2 + 0xc)));
|
||||
nextPointColor._tint[0] = local_a0[6];
|
||||
nextPointColor._tint[1] = local_a0[7];
|
||||
nextPointColor._tint[2] = local_a0[8];
|
||||
nextPointColor._tint[3] = local_a0[9];
|
||||
nextPointColor._colorize[0] = local_a0[10];
|
||||
nextPointColor._colorize[1] = local_a0[0xb];
|
||||
nextPointColor._colorize[2] = local_a0[0xc];
|
||||
nextPointColor._colorize[3] = local_a0[0xd];
|
||||
(*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(nextPointColor._offset)) + 0x0))) = *GHIDRA_CAST<uint64_t *>((local_a0 + 0xe));
|
||||
nextPointColor._offset[2] = local_a0[0x10];
|
||||
(GHIDRA_CAST<Color *>((&nextPointColor)))->Color::__mul(GHIDRA_CAST<ColorMod *>((pfVar2 + 0xc)));
|
||||
local_16c = 0;
|
||||
pfVar2 = local_17c;
|
||||
local_180 = 0;
|
||||
pfVar5 = local_1b8 + 10;
|
||||
local_17c[0] = pointColor._colorize[0];
|
||||
local_17c[1] = pointColor._colorize[1];
|
||||
local_17c[2] = pointColor._colorize[2];
|
||||
local_17c[3] = pointColor._colorize[3];
|
||||
bytesLeft = 0xc;
|
||||
local_1b8[10] = nextPointColor._colorize[0];
|
||||
local_1b8[0xb] = nextPointColor._colorize[1];
|
||||
local_1b8[0xc] = nextPointColor._colorize[2];
|
||||
local_1b8[0xd] = nextPointColor._colorize[3];
|
||||
do {
|
||||
if (*pfVar2 != *pfVar5) goto LAB_0041ef3a;
|
||||
pfVar2 = pfVar2 + 1;
|
||||
pfVar5 = pfVar5 + 1;
|
||||
isBytesLeft = 3 < bytesLeft;
|
||||
bytesLeft = bytesLeft - 4;
|
||||
} while (isBytesLeft);
|
||||
pfVar2 = local_1b8 + 5;
|
||||
local_1b8[5] = pointColor._offset[0];
|
||||
pfVar5 = local_1b8;
|
||||
bytesLeft = 0xc;
|
||||
local_1b8[6] = pointColor._offset[1];
|
||||
local_1b8[7] = pointColor._offset[2];
|
||||
local_1b8[0] = nextPointColor._offset[0];
|
||||
local_1b8[1] = nextPointColor._offset[1];
|
||||
local_1b8[9] = 0.0;
|
||||
local_1b8[8] = 1.0;
|
||||
local_1b8[4] = 0.0;
|
||||
local_1b8[2] = nextPointColor._offset[2];
|
||||
local_1b8[3] = 1.0;
|
||||
do {
|
||||
if (*pfVar2 != *pfVar5) goto LAB_0041ef3a;
|
||||
pfVar2 = pfVar2 + 1;
|
||||
pfVar5 = pfVar5 + 1;
|
||||
isBytesLeft = 3 < bytesLeft;
|
||||
bytesLeft = bytesLeft - 4;
|
||||
} while (isBytesLeft);
|
||||
isPerVertexColor = '\0';
|
||||
goto LAB_0041ef41;
|
||||
}
|
||||
goto LAB_0041ef47;
|
||||
}
|
||||
LAB_0041ef71:
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1dc)) + 0x10))) = g_graphicsManager_blendMode[0];
|
||||
fStack_1c8 = (float)g_graphicsManager_blendMode[1];
|
||||
fStack_1c4 = (float)g_graphicsManager_blendMode[2];
|
||||
fStack_1c0 = (float)g_graphicsManager_blendMode[3];
|
||||
iVar4 = (GHIDRA_INT(DAT_00c7f6d8) - GHIDRA_INT(DAT_00c7f6d4)) / 0x24;
|
||||
local_168.y = (float)g_graphicsManager_blendMode[4];
|
||||
local_b4 = (float)iVar4;
|
||||
layer = ANM2::GetLayer(DAT_00c78ef0,DAT_00c78ef4);
|
||||
g_graphicsManager_blendMode[0] = layer->_blendMode[0];
|
||||
g_graphicsManager_blendMode[1] = layer->_blendMode[1];
|
||||
g_graphicsManager_blendMode[2] = layer->_blendMode[2];
|
||||
g_graphicsManager_blendMode[3] = layer->_blendMode[3];
|
||||
g_graphicsManager_blendMode[4] = layer->_blendMode[4];
|
||||
local_a0 = GHIDRA_CAST<float *>(GHIDRA_UINT((isPerVertexColor != '\0')));
|
||||
layer = ANM2::GetLayer(DAT_00c78ef0,DAT_00c78ef4);
|
||||
if (((DAT_00c78ef0->_bitflags | layer->_bitflags) & 0x20U) != 0) {
|
||||
if (isPerVertexColor != '\0') {
|
||||
KAGE_LogMessage(8,(uint8_t *)
|
||||
"Beam renderer needs per-vertex colors for Dogma but his shader doesn\'t support it!\n"
|
||||
);
|
||||
}
|
||||
local_a0 = GHIDRA_CAST<float *>(0x2);
|
||||
}
|
||||
unusedArg = &g_shaders + GHIDRA_INT(local_a0) * 0x50;
|
||||
if ((unusedArg != GHIDRA_CAST<uint8_t *>(0x0)) && (((&DAT_00c7911c)[GHIDRA_INT(local_a0) * 0x50] & 1) != 0)) {
|
||||
g_currentShader = unusedArg;
|
||||
}
|
||||
if (iVar4 != 0) {
|
||||
local_ac = 0.0;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_160)) + 0x4))) = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_160)) + 0x5))),local_a0 != GHIDRA_CAST<float *>(0x1));
|
||||
local_a8 = 0.0;
|
||||
local_b0 = GHIDRA_CAST<uint8_t *>(0x0);
|
||||
do {
|
||||
fVar7 = pfVar2[0x10];
|
||||
fVar8 = pfVar2[0x11];
|
||||
fVar9 = pfVar2[0x12];
|
||||
pfVar5 = GHIDRA_CAST<float *>((local_b0 + 0x28 + GHIDRA_INT(g_beamRendererPoints)));
|
||||
pointColor._colorize[0] = *pfVar5;
|
||||
pointColor._colorize[1] = pfVar5[1];
|
||||
pointColor._colorize[2] = pfVar5[2];
|
||||
pointColor._colorize[3] = pfVar5[3];
|
||||
pfVar5 = GHIDRA_CAST<float *>((local_b0 + 0x18 + GHIDRA_INT(g_beamRendererPoints)));
|
||||
(*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(pointColor._offset)) + 0x0))) = *GHIDRA_CAST<uint64_t *>((local_b0 + 0x38 + GHIDRA_INT(g_beamRendererPoints)));
|
||||
local_138.y = pfVar2[0xc];
|
||||
pointColor._tint[0] = local_138.y * *pfVar5;
|
||||
local_140.y = pfVar2[0xd];
|
||||
pointColor._tint[1] = local_140.y * pfVar5[1];
|
||||
local_148.y = pfVar2[0xe];
|
||||
pointColor._tint[2] = local_148.y * pfVar5[2];
|
||||
local_150.y = pfVar2[0xf];
|
||||
pointColor._tint[3] = local_150.y * pfVar5[3];
|
||||
local_158.y = fVar7 + fVar8 + fVar9;
|
||||
if (local_158.y != 0.0) {
|
||||
if (pointColor._colorize[0] + pointColor._colorize[1] + pointColor._colorize[2] == 0.0)
|
||||
{
|
||||
pointColor._colorize[0] = fVar7;
|
||||
pointColor._colorize[1] = fVar8;
|
||||
pointColor._colorize[2] = fVar9;
|
||||
pointColor._colorize[3] = pfVar2[0x13];
|
||||
}
|
||||
else {
|
||||
pointColor._colorize[0] = (fVar7 + pointColor._colorize[0]) * 0.5;
|
||||
pointColor._colorize[1] = (fVar8 + pointColor._colorize[1]) * 0.5;
|
||||
pointColor._colorize[2] = (fVar9 + pointColor._colorize[2]) * 0.5;
|
||||
pointColor._colorize[3] = (pointColor._colorize[3] + pfVar2[0x13]) * 0.5;
|
||||
}
|
||||
}
|
||||
pointColor._offset[2] =
|
||||
pfVar2[0x16] + *GHIDRA_CAST<float *>((local_b0 + 0x40 + GHIDRA_INT(g_beamRendererPoints)));
|
||||
pfVar5 = GHIDRA_CAST<float *>((local_b0 + 0x5c + GHIDRA_INT(g_beamRendererPoints)));
|
||||
shaderColor._offset[1] = pfVar2[0x15] + pointColor._offset[1];
|
||||
shaderColor._offset[0] = pfVar2[0x14] + pointColor._offset[0];
|
||||
shaderColor._colorize[0] = pointColor._colorize[0];
|
||||
shaderColor._colorize[1] = pointColor._colorize[1];
|
||||
shaderColor._colorize[2] = pointColor._colorize[2];
|
||||
shaderColor._colorize[3] = pointColor._colorize[3];
|
||||
nextPointColorize = GHIDRA_CAST<float *>((local_b0 + 0x6c + GHIDRA_INT(g_beamRendererPoints)));
|
||||
nextPointColor._colorize[0] = *nextPointColorize;
|
||||
nextPointColor._colorize[1] = nextPointColorize[1];
|
||||
nextPointColor._colorize[2] = nextPointColorize[2];
|
||||
(*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(nextPointColor._offset)) + 0x0))) =
|
||||
*GHIDRA_CAST<uint64_t *>((local_b0 + 0x7c + GHIDRA_INT(g_beamRendererPoints)));
|
||||
nextPointColor._tint[0] = local_138.y * *pfVar5;
|
||||
nextPointColor._tint[1] = local_140.y * pfVar5[1];
|
||||
nextPointColor._tint[2] = local_148.y * pfVar5[2];
|
||||
nextPointColor._tint[3] = local_150.y * pfVar5[3];
|
||||
nextPointColor._colorize[3] = nextPointColorize[3];
|
||||
if (local_158.y != 0.0) {
|
||||
nextPointColor._colorize[3] = pfVar2[0x13];
|
||||
if (nextPointColor._colorize[0] + nextPointColor._colorize[1] +
|
||||
nextPointColor._colorize[2] != 0.0) {
|
||||
fVar7 = (fVar7 + nextPointColor._colorize[0]) * 0.5;
|
||||
fVar8 = (fVar8 + nextPointColor._colorize[1]) * 0.5;
|
||||
nextPointColor._colorize[3] =
|
||||
(nextPointColorize[3] + nextPointColor._colorize[3]) * 0.5;
|
||||
fVar9 = (fVar9 + nextPointColor._colorize[2]) * 0.5;
|
||||
}
|
||||
nextPointColor._colorize[0] = fVar7;
|
||||
nextPointColor._colorize[1] = fVar8;
|
||||
nextPointColor._colorize[2] = fVar9;
|
||||
}
|
||||
nextPointColor._offset[2] =
|
||||
pfVar2[0x16] + *GHIDRA_CAST<float *>((local_b0 + 0x84 + GHIDRA_INT(g_beamRendererPoints)));
|
||||
piVar6 = GHIDRA_CAST<int *>(0x0);
|
||||
imageRefCount = GHIDRA_CAST<int *>(0x0);
|
||||
endOffsetXY = CONCAT44(pfVar2[0x15] + nextPointColor._offset[1],
|
||||
pfVar2[0x14] + nextPointColor._offset[0]);
|
||||
local_c0.y = (float)textureRefCount;
|
||||
local_128.y = (float)texture;
|
||||
endColorize = nextPointColor._colorize[0];
|
||||
fStack_40 = nextPointColor._colorize[1];
|
||||
fStack_3c = nextPointColor._colorize[2];
|
||||
fStack_38 = nextPointColor._colorize[3];
|
||||
shaderColor._tint[0] = pointColor._tint[0];
|
||||
shaderColor._tint[1] = pointColor._tint[1];
|
||||
shaderColor._tint[2] = pointColor._tint[2];
|
||||
shaderColor._tint[3] = pointColor._tint[3];
|
||||
shaderColor._offset[2] = pointColor._offset[2];
|
||||
endTint = nextPointColor._tint[0];
|
||||
fStack_50 = nextPointColor._tint[1];
|
||||
fStack_4c = nextPointColor._tint[2];
|
||||
fStack_48 = nextPointColor._tint[3];
|
||||
endOffsetZ = nextPointColor._offset[2];
|
||||
if (textureRefCount != GHIDRA_CAST<int *>(0x0)) {
|
||||
cVar1 = (**(code **)(*textureRefCount + 4))();
|
||||
if (cVar1 != '\0') {
|
||||
if (((imageRefCount != GHIDRA_CAST<int *>(0x0)) &&
|
||||
(cVar1 = (**(code **)(*imageRefCount + 0xc))(), cVar1 != '\0')) &&
|
||||
(g_imageReleaseFn != (void *)0x0)) {
|
||||
(*g_imageReleaseFn)(auStack_202 + -10);
|
||||
}
|
||||
piVar6 = GHIDRA_CAST<int *>(local_128.y);
|
||||
imageRefCount = GHIDRA_CAST<int *>(local_c0.y);
|
||||
}
|
||||
}
|
||||
apply_sprite_shader_params(&shaderColor,SUB41((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_160)) + 0x4))),0),piVar6,imageRefCount);
|
||||
pvVar3 = DAT_00c7f6e4;
|
||||
local_17c[3] = fStack_48;
|
||||
local_1b8[0xd] = fStack_48;
|
||||
local_17c[0] = endTint;
|
||||
local_17c[1] = fStack_50;
|
||||
local_17c[2] = fStack_4c;
|
||||
local_1b8[10] = endTint;
|
||||
local_1b8[0xb] = fStack_50;
|
||||
local_1b8[0xc] = fStack_4c;
|
||||
local_1b8[8] = shaderColor._tint[3];
|
||||
local_1b8[3] = shaderColor._tint[3];
|
||||
local_1b8[0] = shaderColor._tint[0];
|
||||
local_1b8[1] = shaderColor._tint[1];
|
||||
local_1b8[2] = shaderColor._tint[2];
|
||||
local_1b8[5] = shaderColor._tint[0];
|
||||
pfVar2 = GHIDRA_CAST<float *>((GHIDRA_INT(local_a8) + 0x20 + GHIDRA_INT(DAT_00c7f6e4)));
|
||||
*pfVar2 = shaderColor._tint[0];
|
||||
pfVar2[1] = shaderColor._tint[1];
|
||||
pfVar2[2] = shaderColor._tint[2];
|
||||
pfVar2[3] = shaderColor._tint[3];
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(local_a8) + 0x30 + GHIDRA_INT(pvVar3))) = 0;
|
||||
local_1b8[6] = shaderColor._tint[1];
|
||||
local_1b8[7] = shaderColor._tint[2];
|
||||
pfVar2 = GHIDRA_CAST<float *>((GHIDRA_INT(local_a8) + 0x34 + GHIDRA_INT(pvVar3)));
|
||||
*pfVar2 = shaderColor._tint[0];
|
||||
pfVar2[1] = shaderColor._tint[1];
|
||||
pfVar2[2] = shaderColor._tint[2];
|
||||
pfVar2[3] = shaderColor._tint[3];
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(local_a8) + 0x44 + GHIDRA_INT(pvVar3))) = 0;
|
||||
pfVar2 = GHIDRA_CAST<float *>((GHIDRA_INT(local_a8) + 0x48 + GHIDRA_INT(pvVar3)));
|
||||
*pfVar2 = endTint;
|
||||
pfVar2[1] = fStack_50;
|
||||
pfVar2[2] = fStack_4c;
|
||||
pfVar2[3] = fStack_48;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(local_a8) + 0x58 + GHIDRA_INT(pvVar3))) = 0;
|
||||
pfVar2 = GHIDRA_CAST<float *>((GHIDRA_INT(local_a8) + 0x5c + GHIDRA_INT(pvVar3)));
|
||||
*pfVar2 = endTint;
|
||||
pfVar2[1] = fStack_50;
|
||||
pfVar2[2] = fStack_4c;
|
||||
pfVar2[3] = fStack_48;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(local_a8) + 0x6c + GHIDRA_INT(pvVar3))) = 0;
|
||||
iVar4 = (**(code **)(*texture + 0x14))(GHIDRA_INT(&(DAT_00c7f6d4->_topLeft).x) + GHIDRA_INT(local_ac));
|
||||
if ((iVar4 != 0) && (local_a0 == GHIDRA_CAST<float *>(0x1))) {
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0x24)) = shaderColor._colorize[0];
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0x28)) = shaderColor._colorize[1];
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0x2c)) = shaderColor._colorize[2];
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0x30)) = shaderColor._colorize[3];
|
||||
*GHIDRA_CAST<uint64_t *>((iVar4 + 0x34)) = (*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(shaderColor._offset)) + 0x0)));
|
||||
*GHIDRA_CAST<float *>((iVar4 + 100)) = shaderColor._colorize[0];
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0x68)) = shaderColor._colorize[1];
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0x6c)) = shaderColor._colorize[2];
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0x70)) = shaderColor._colorize[3];
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0x3c)) = shaderColor._offset[2];
|
||||
*GHIDRA_CAST<uint64_t *>((iVar4 + 0x74)) = (*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(shaderColor._offset)) + 0x0)));
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0x7c)) = shaderColor._offset[2];
|
||||
*GHIDRA_CAST<uint64_t *>((iVar4 + 0xb4)) = endOffsetXY;
|
||||
*GHIDRA_CAST<uint64_t *>((iVar4 + 0xf4)) = endOffsetXY;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xa4)) = endColorize;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xa8)) = fStack_40;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xac)) = fStack_3c;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xb0)) = fStack_38;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xbc)) = endOffsetZ;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xe4)) = endColorize;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xe8)) = fStack_40;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xec)) = fStack_3c;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xf0)) = fStack_38;
|
||||
*GHIDRA_CAST<float *>((iVar4 + 0xfc)) = endOffsetZ;
|
||||
}
|
||||
local_a8 = (float)(GHIDRA_INT(local_a8) + 0x70);
|
||||
unusedArg = local_b0 + 0x44;
|
||||
local_ac = (float)(GHIDRA_INT(local_ac) + 0x24);
|
||||
local_b4 = (float)(GHIDRA_INT(local_b4) + -1);
|
||||
pfVar2 = layerFrame;
|
||||
local_b0 = unusedArg;
|
||||
} while (local_b4 != 0.0);
|
||||
}
|
||||
g_graphicsManager_blendMode[0] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1dc)) + 0x10)));
|
||||
g_graphicsManager_blendMode[1] = GHIDRA_INT(fStack_1c8);
|
||||
g_graphicsManager_blendMode[2] = GHIDRA_INT(fStack_1c4);
|
||||
g_graphicsManager_blendMode[3] = GHIDRA_INT(fStack_1c0);
|
||||
g_graphicsManager_blendMode[4] = GHIDRA_INT(local_168.y);
|
||||
shader_cache_find(GHIDRA_INT(unusedArg));
|
||||
}
|
||||
}
|
||||
local_14 = 1;
|
||||
if (((textureRefCount != GHIDRA_CAST<int *>(0x0)) &&
|
||||
(cVar1 = (**(code **)(*textureRefCount + 0xc))(), cVar1 != '\0')) &&
|
||||
(g_imageReleaseFn != (void *)0x0)) {
|
||||
(*g_imageReleaseFn)();
|
||||
}
|
||||
ExceptionList = local_1c;
|
||||
return;
|
||||
LAB_0041ef3a:
|
||||
isPerVertexColor = '\x01';
|
||||
LAB_0041ef41:
|
||||
pfVar2 = layerFrame;
|
||||
LAB_0041ef47:
|
||||
pfVar5 = local_a0;
|
||||
if (local_a0 == GHIDRA_CAST<float *>((GHIDRA_INT(g_beamRendererPointsEnd) + -0x44))) goto LAB_0041ef71;
|
||||
goto LAB_0041eac0;
|
||||
}
|
||||
+9
-118
@@ -136,6 +136,7 @@ struct AnmFileData;
|
||||
struct Backdrop;
|
||||
struct BackdropConfig;
|
||||
struct BackwardsStageDesc;
|
||||
struct BeamPoint;
|
||||
struct BeamRenderer;
|
||||
struct BeastArena;
|
||||
struct BezierPoint;
|
||||
@@ -161,6 +162,7 @@ struct CellSpace;
|
||||
struct ChallengeParam;
|
||||
struct ChallengeParams;
|
||||
struct Checksum;
|
||||
struct ClubSwing;
|
||||
struct CoPlayerState;
|
||||
struct Color;
|
||||
struct ColorMod;
|
||||
@@ -315,6 +317,7 @@ struct GridEntity_TrapDoor;
|
||||
struct GridEntity_Wall;
|
||||
struct GridEntity_Web;
|
||||
struct GridHurt;
|
||||
struct GridPath;
|
||||
struct GroupIconResource;
|
||||
struct HBITMAP__;
|
||||
struct HBRUSH__;
|
||||
@@ -375,6 +378,7 @@ struct KAGE_ReferenceCount_ImageBase;
|
||||
struct KColor;
|
||||
struct KerningPair;
|
||||
struct KeyConfigs;
|
||||
struct KnifeHit;
|
||||
struct KnifeShot;
|
||||
struct KnifeThrow;
|
||||
struct LRoomAreaDesc;
|
||||
@@ -405,6 +409,7 @@ struct LuaEngine;
|
||||
struct LuaIgnored;
|
||||
struct LuaItemUse;
|
||||
struct LuaMod;
|
||||
struct LuaOpaque;
|
||||
struct LuaRef;
|
||||
struct LuaRoomList;
|
||||
struct MTRNG;
|
||||
@@ -527,6 +532,7 @@ struct RadiusDamage;
|
||||
struct RailManager;
|
||||
struct RailPoint;
|
||||
struct RainSpawner;
|
||||
struct Reach;
|
||||
struct RebirthSaveData;
|
||||
struct RedirectedPath;
|
||||
struct ReferenceCountBase;
|
||||
@@ -580,6 +586,7 @@ struct ShopRestock;
|
||||
struct SimpleString;
|
||||
struct Size;
|
||||
struct SkinColors;
|
||||
struct SlotDrop;
|
||||
struct SmeltedTrinket;
|
||||
struct SoundEffect;
|
||||
struct SoundEffects;
|
||||
@@ -613,9 +620,11 @@ struct TechLaserShot;
|
||||
struct TechXShot;
|
||||
struct TemporaryEffect;
|
||||
struct TemporaryEffects;
|
||||
struct TexelQuery;
|
||||
struct TextMeasure;
|
||||
struct TexturePtr;
|
||||
struct Thread;
|
||||
struct TrailPoint;
|
||||
struct TrinketPoolItem;
|
||||
struct TypeDescriptor;
|
||||
struct UmbilicalBabyData;
|
||||
@@ -972,22 +981,6 @@ LAYOUT32(offsetof(Ambush, _maxWaves) == 0x18);
|
||||
LAYOUT32(offsetof(Ambush, _isActive) == 0x20);
|
||||
LAYOUT32(offsetof(Ambush, _currentWave) == 0x24);
|
||||
|
||||
struct BeamRenderer {
|
||||
static void Begin(ANM2 *anm2, uint32_t layer, uint8_t isUseOverlay, uint8_t isUnk); // 0041e480
|
||||
static void Add(Vector *point, ColorMod *color, float spritesheetCoordinate, float width); // 0041e720
|
||||
static void End(); // 0041e960
|
||||
|
||||
uint8_t _anm2[0x118]; // ANM2
|
||||
int _layer;
|
||||
uint8_t _useOverlayData;
|
||||
uint8_t _unkBool;
|
||||
};
|
||||
LAYOUT32(offsetof(BeamRenderer, _anm2) == 0x0);
|
||||
LAYOUT32(offsetof(BeamRenderer, _layer) == 0x118);
|
||||
LAYOUT32(offsetof(BeamRenderer, _useOverlayData) == 0x11c);
|
||||
LAYOUT32(offsetof(BeamRenderer, _unkBool) == 0x11d);
|
||||
LAYOUT32(sizeof(BeamRenderer) == 0x11e);
|
||||
|
||||
struct BitSet128 {
|
||||
static BitSet128 * operator_and(BitSet128 *outResult, BitSet128 *a, BitSet128 *b); // 00417170
|
||||
uint8_t IsNonZero(); // 004171b0
|
||||
@@ -3943,13 +3936,6 @@ LAYOUT32(offsetof(Sprite, _shadowLayerIndex) == 0x10c);
|
||||
LAYOUT32(offsetof(Sprite, _bitflags) == 0x110);
|
||||
LAYOUT32(sizeof(Sprite) == 0x114);
|
||||
|
||||
struct SpriteTrailData {
|
||||
virtual ~SpriteTrailData(); // 005d2370 slot 0 ::FUN_005d2370
|
||||
|
||||
uint8_t _pad_0x4[0x14];
|
||||
};
|
||||
LAYOUT32(sizeof(SpriteTrailData) == 0x18);
|
||||
|
||||
struct StatsPanel {
|
||||
static void add_stat_line(); // 0084dc00
|
||||
void set(Entity_Player *player, uint8_t isGoldenTrinket); // 0084dea0
|
||||
@@ -4013,60 +3999,6 @@ struct UserProfile {
|
||||
};
|
||||
|
||||
|
||||
struct VideoPlayer {
|
||||
void play(uint8_t *fileName, float volume); // 009f2ee0
|
||||
void unload(); // 00a62880
|
||||
static void render(uint8_t param_1); // 00a62b10
|
||||
};
|
||||
|
||||
|
||||
struct Weapon_Bombs {
|
||||
virtual ~Weapon_Bombs(); // 009f9880 slot 0
|
||||
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
|
||||
virtual void Update(char param_2); // 009f34f0 slot 2 Weapon::Update
|
||||
virtual void Fire(Vector *param_1, uint8_t param_2, uint8_t param_3); // 009f9b60 slot 3
|
||||
virtual void Reset(); // 009f3480 slot 4 Weapon::Reset
|
||||
virtual void ClearReferences(); // 009f3320 slot 5 Weapon::ClearReferences
|
||||
virtual long double GetMaxCharge(); // 009f3130 slot 6 Weapon::GetMaxCharge
|
||||
virtual long double GetChargeBarAmount(); // 009f4150 slot 7 Weapon::GetChargeBarAmount
|
||||
virtual void vfunc_8(); // 009f3130 slot 8 Weapon::GetMaxCharge
|
||||
virtual Entity * GetFocusEntity(); // 009fa190 slot 9
|
||||
virtual Entity * GetMainEntity(); // 009f3150 slot 10 Weapon::GetMainEntity
|
||||
virtual void guard_check_icall(); // 0040c200 slot 11 ::guard_check_icall
|
||||
virtual int GetMarkedTargetVariant(); // 009fa1b0 slot 12
|
||||
virtual uint8_t CanTakeDamageFromTearEffects(); // 00709c30 slot 13 GridEntity::CanTakeDamageFromTearEffects
|
||||
virtual uint8_t CanShutDoors(); // 005ccc00 slot 14 Entity::CanShutDoors
|
||||
virtual void vfunc_15(); // 005ccc00 slot 15 Entity::CanShutDoors
|
||||
virtual void vfunc_16(); // 005ccc00 slot 16 Entity::CanShutDoors
|
||||
|
||||
uint8_t _pad_0x4[0x44];
|
||||
};
|
||||
LAYOUT32(sizeof(Weapon_Bombs) == 0x48);
|
||||
|
||||
struct Weapon_Bone {
|
||||
virtual ~Weapon_Bone(); // 009f9aa0 slot 0
|
||||
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
|
||||
virtual void Update(uint8_t isInterpolated); // 009fa220 slot 2
|
||||
virtual void Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated); // 009fa450 slot 3
|
||||
virtual void Reset(); // 009fed90 slot 4
|
||||
virtual void ClearReferences(); // 009fedf0 slot 5
|
||||
virtual long double GetMaxCharge(); // 009feeb0 slot 6
|
||||
virtual long double GetChargeBarAmount(); // 009f4150 slot 7 Weapon::GetChargeBarAmount
|
||||
virtual void vfunc_8(); // 009f3130 slot 8 Weapon::GetMaxCharge
|
||||
virtual int CountSeedEffects(); // 0085e1b0 slot 9 Seeds::CountSeedEffects
|
||||
virtual Entity * GetMainEntity(); // 009f3150 slot 10 Weapon::GetMainEntity
|
||||
virtual void TriggerNewRoom(); // 009fef20 slot 11
|
||||
virtual uint32_t GetFocusEntity(); // 009f3140 slot 12 Weapon::GetFocusEntity
|
||||
virtual uint8_t CanShutDoors(); // 005ccc00 slot 13 Entity::CanShutDoors
|
||||
virtual uint8_t CanTriggerCursedEyeTeleport(); // 009ff1a0 slot 14
|
||||
virtual uint8_t CanTriggerKidneyStone(); // 009ff210 slot 15
|
||||
virtual uint8_t CanOverrideForgottenThrow(); // 009ff230 slot 16
|
||||
static void init_club(int *param_1); // 009ff0c0
|
||||
|
||||
uint8_t _pad_0x4[0x5c];
|
||||
};
|
||||
LAYOUT32(sizeof(Weapon_Bone) == 0x60);
|
||||
|
||||
struct Weapon_Deathmatch {
|
||||
virtual ~Weapon_Deathmatch(); // 009f3260 slot 0
|
||||
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
|
||||
@@ -6132,8 +6064,6 @@ uint8_t str_ne(std_string *a, uint8_t *b); // 004f84a0
|
||||
void rng_pair_init(void *self); // 004f88a0
|
||||
uint32_t FUN_004f88e0(); // 004f88e0
|
||||
uint32_t FUN_004f8930(); // 004f8930
|
||||
void FUN_004f8cc0(int param_1); // 004f8cc0
|
||||
void quakey_timer_callback(Entity *source); // 004fd280
|
||||
void pow_wrapper(); // 00505b40
|
||||
void set_byte_0x101(void *self, uint8_t value); // 00505b50
|
||||
int FUN_00505ca0(); // 00505ca0
|
||||
@@ -6309,9 +6239,7 @@ void FUN_005cd840(uint32_t param_1); // 005cd840
|
||||
void FUN_005cd850(); // 005cd850
|
||||
void FUN_005cd8c0(uint8_t param_1); // 005cd8c0
|
||||
void FUN_005cda90(); // 005cda90
|
||||
void FUN_005d2270(); // 005d2270
|
||||
void FUN_005d2300(); // 005d2300
|
||||
void FUN_005d2370(uint8_t param_1); // 005d2370
|
||||
void FUN_005d23a0(uint8_t param_1); // 005d23a0
|
||||
void FUN_005d4210(); // 005d4210
|
||||
void FUN_00607540(); // 00607540
|
||||
@@ -6458,7 +6386,6 @@ void FUN_00676bd0(); // 00676bd0
|
||||
int FUN_0067adc0(); // 0067adc0
|
||||
void FUN_0067ae30(int *param_1); // 0067ae30
|
||||
void FUN_0067af30(); // 0067af30
|
||||
void tear_flags_area_apply(Vector *position, Entity *source, float radius, float damage, BitSet128 flags); // 0067d430
|
||||
uint32_t FUN_0067d9b0(); // 0067d9b0
|
||||
void FUN_0067dac0(int *param_1); // 0067dac0
|
||||
uint32_t * FUN_0067ef50(uint32_t *param_1, uint32_t *param_2, uint32_t *param_3); // 0067ef50
|
||||
@@ -6732,12 +6659,10 @@ Entity_Player * FUN_007103c0(uint32_t *param_1); // 007103c0
|
||||
uint32_t FUN_00710f70(int param_1); // 00710f70
|
||||
void FUN_00711530(int param_1); // 00711530
|
||||
uint32_t FUN_00711740(); // 00711740
|
||||
void FUN_007135d0(uint32_t param_1, uint8_t param_2, int *param_3); // 007135d0
|
||||
void FUN_00718ed0(uint32_t param_1); // 00718ed0
|
||||
uint32_t FUN_00718ee0(); // 00718ee0
|
||||
void FUN_0071df70(uint8_t param_1); // 0071df70
|
||||
void FUN_00721e60(int param_1, int param_2, int param_3, int param_4, int param_5, int param_6); // 00721e60
|
||||
void FUN_00721eb0(); // 00721eb0
|
||||
void FUN_00722020(int param_1); // 00722020
|
||||
void FUN_007221a0(uint32_t *param_1); // 007221a0
|
||||
uint32_t * FUN_00722250(uint32_t *param_1, uint32_t *param_2, uint32_t *param_3); // 00722250
|
||||
@@ -6896,7 +6821,6 @@ uint8_t teleport_to_random_room_of_types(Entity_Player *player, void *roomTypes,
|
||||
void FUN_007cf940(); // 007cf940
|
||||
long double FUN_007cf9a0(float *param_1, KColor *param_2, uint32_t param_3); // 007cf9a0
|
||||
uint8_t * FUN_007cfa90(); // 007cfa90
|
||||
bool FUN_007d1810(); // 007d1810
|
||||
void FUN_007d3330(int param_1); // 007d3330
|
||||
Game * damage_charge_scale(); // 007d3560
|
||||
void FUN_007d3e00(); // 007d3e00
|
||||
@@ -7007,7 +6931,6 @@ void FUN_007e9170(char param_1); // 007e9170
|
||||
void FUN_007e92e0(uint32_t param_1, uint32_t param_2); // 007e92e0
|
||||
void FUN_007e93d0(int param_1); // 007e93d0
|
||||
void FUN_007ea0c0(); // 007ea0c0
|
||||
void FUN_007ebc40(); // 007ebc40
|
||||
void FUN_00812ea0(float *param_1, int *param_2, int *param_3); // 00812ea0
|
||||
uint32_t FUN_00813420(int param_1, int param_2); // 00813420
|
||||
uint32_t FUN_0081e220(); // 0081e220
|
||||
@@ -7086,7 +7009,6 @@ void FUN_0083c480(); // 0083c480
|
||||
void item_pool_icons_render(void *iconLayer, Vector *position, KColor *color); // 0083d8c0
|
||||
char * FUN_00840510(); // 00840510
|
||||
std_string * int_to_string(std_string *outString, int value); // 00840540
|
||||
void collectible_icon_render(void *param_1, ColorMod *param_2, int *param_3, int *param_4); // 00848c20
|
||||
void FUN_0084a870(float *param_1); // 0084a870
|
||||
void FUN_0084abc0(uint32_t *param_1, float *param_2, uint32_t *param_3, uint32_t *param_4); // 0084abc0
|
||||
void FUN_0084bba0(); // 0084bba0
|
||||
@@ -9265,23 +9187,16 @@ void Catch_All_0095c01b(); // 0095c01b
|
||||
void * FUN_0095c430(void *param_1, void *param_2, void *param_3); // 0095c430
|
||||
void Catch_All_0095c63e(); // 0095c63e
|
||||
void FUN_0095c670(); // 0095c670
|
||||
int FUN_0095c930(); // 0095c930
|
||||
uint32_t FUN_0095c960(); // 0095c960
|
||||
void FUN_0095eb00(uint32_t param_1, int param_2); // 0095eb00
|
||||
void cutscene_render_skip_vote_count(void *cutscene, void *state); // 0095eb60
|
||||
void FUN_0095fbd0(); // 0095fbd0
|
||||
void FUN_0095fcd0(uint32_t *param_1); // 0095fcd0
|
||||
uint32_t FUN_0095fd40(); // 0095fd40
|
||||
uint32_t * FUN_00960880(void *param_1, uint32_t *param_2); // 00960880
|
||||
void FUN_00960bc0(); // 00960bc0
|
||||
uint32_t FUN_00961ad0(); // 00961ad0
|
||||
void FUN_0096d120(int *param_1); // 0096d120
|
||||
uint32_t FUN_0097e7c0(); // 0097e7c0
|
||||
void pressure_plate_kill_enemies_timer_callback(int *param_1); // 00983f30
|
||||
void FUN_0098b0a0(); // 0098b0a0
|
||||
void FUN_0098b130(); // 0098b130
|
||||
void FUN_00993740(); // 00993740
|
||||
uint32_t * FUN_00995f40(uint32_t *param_1); // 00995f40
|
||||
void FUN_00997660(void *param_1, int param_2); // 00997660
|
||||
void FUN_009976c0(void *param_1, int param_2); // 009976c0
|
||||
void Catch_All_009979a9(); // 009979a9
|
||||
@@ -9292,7 +9207,6 @@ uint32_t * FUN_009983f0(uint32_t *param_1); // 009983f0
|
||||
void netplay_player_list_destructor(void *self); // 00998800
|
||||
void FUN_0099a830(); // 0099a830
|
||||
void FUN_0099c310(); // 0099c310
|
||||
float bezier_closest_point(Vector *point, void *segmentStart, void *segmentEnd, float *outT); // 0099c430
|
||||
void ** vector_LaserSample_erase(void *self, void **outIter, void *where); // 009a1610
|
||||
void FUN_009a1770(uint32_t *param_1); // 009a1770
|
||||
void * vector_LaserSample_emplace_reallocate(void *self, void *where, void *value); // 009a17b0
|
||||
@@ -9485,8 +9399,6 @@ uint32_t * FUN_009f9350(); // 009f9350
|
||||
uint32_t * FUN_009f93d0(); // 009f93d0
|
||||
uint32_t * FUN_009f9440(); // 009f9440
|
||||
uint32_t * FUN_009f95d0(); // 009f95d0
|
||||
uint32_t * FUN_009f96c0(); // 009f96c0
|
||||
uint32_t * FUN_009f9740(); // 009f9740
|
||||
uint32_t * FUN_00a06940(void *param_1, uint32_t *param_2); // 00a06940
|
||||
void * operator_new(uint32_t size); // 00a0f4c0
|
||||
void * operator_new_tracked(uint32_t size); // 00a0f4e0
|
||||
@@ -21192,7 +21104,6 @@ ItemConfig * GetItemConfig(); // 0042ca00
|
||||
void SpawnLocust(Entity_Player *player, int collectibleType, Vector *pos); // 005b35c0
|
||||
int Random(int Max); // 0067f010
|
||||
Vector * GetRandomPickupVelocity(Vector *outVelocity, Vector *position, uint32_t pickupVelType, RNG *rng); // 006ee440
|
||||
Vector * GetCollectibleSpawnPosition(Vector *outPosition, Vector *target); // 006eeaa0
|
||||
void Shutdown(); // 009ab700
|
||||
}
|
||||
namespace ItemInfo {
|
||||
@@ -21242,19 +21153,10 @@ void ENTITY_BIG_HORN(Entity_NPC *npc); // 00453140
|
||||
void ENTITY_FLY_isaac_spawned(Entity_NPC *npc); // 004568d0
|
||||
void ENTITY_WAR(Entity_NPC *npc); // 00458870
|
||||
void ENTITY_DEATH(Entity_NPC *npc); // 00459d20
|
||||
void ENTITY_FALLEN(Entity_NPC *npc); // 0045b830
|
||||
void ENTITY_HEADLESS_HORSEMAN(Entity_NPC *npc); // 0045cd60
|
||||
void ENTITY_DARK_ONE(Entity_NPC *npc); // 0045d7d0
|
||||
float ENTITY_ISAAC(Entity_NPC *npc); // 00463100
|
||||
void ENTITY_DADDYLONGLEGS(Entity_NPC *npc); // 00468180
|
||||
void ENTITY_SLOTH(Entity_NPC *npc); // 004741f0
|
||||
void ENTITY_LUST(Entity_NPC *npc); // 00474e00
|
||||
void ENTITY_WRATH(Entity_NPC *npc); // 00475110
|
||||
void ENTITY_GREED(Entity_NPC *npc); // 00475a30
|
||||
void ENTITY_ENVY(Entity_NPC *npc); // 004760a0
|
||||
void ENTITY_PIN(Entity_NPC *npc); // 00476860
|
||||
void ENTITY_PRIDE(Entity_NPC *npc); // 00479d80
|
||||
Entity_NPC * ENTITY_SATAN(Entity_NPC *npc); // 0047f640
|
||||
void ENTITY_THE_LAMB(Entity_NPC *npc); // 00483710
|
||||
void ENTITY_BROWNIE(Entity_NPC *npc); // 0048c3b0
|
||||
void ENTITY_CORN_MINE(Entity_NPC *npc); // 0048ee30
|
||||
@@ -21314,17 +21216,12 @@ void ENTITY_BALL_AND_CHAIN(Entity_NPC *npc); // 004f4730
|
||||
void ENTITY_POOFER(Entity_NPC *npc); // 004f64e0
|
||||
void ENTITY_MOCKULUS(Entity_NPC *npc); // 004f76f0
|
||||
void ENTITY_MORNINGSTAR(Entity_NPC *npc); // 004f7e60
|
||||
void ENTITY_QUAKE_GRIMACE(Entity_NPC *npc); // 004f8960
|
||||
void ENTITY_BOMB_GRIMACE(Entity_NPC *npc); // 004f8df0
|
||||
void ENTITY_ROCK_SPIDER(Entity_NPC *npc); // 004f9ad0
|
||||
void ENTITY_FACELESS(Entity_NPC *npc); // 004faad0
|
||||
void ENTITY_DANNY(Entity_NPC *npc); // 004fbd10
|
||||
void ENTITY_BLASTER(Entity_NPC *npc); // 004fcc20
|
||||
void ENTITY_QUAKEY(Entity_NPC *npc); // 004fd540
|
||||
void ENTITY_MOLE(Entity_NPC *npc); // 004fdf80
|
||||
void ENTITY_GYRO(Entity_NPC *npc); // 004ff620
|
||||
void ENTITY_FIRE_WORM(Entity_NPC *npc); // 00500990
|
||||
void ENTITY_HARDY(Entity_NPC *npc); // 00500f70
|
||||
void ENTITY_BOUNCER(Entity_NPC *npc); // 00501f30
|
||||
void ENTITY_FLESH_MAIDEN(Entity_NPC *npc); // 00502980
|
||||
void ENTITY_BOMBGAGGER(Entity_NPC *npc); // 00503300
|
||||
@@ -21340,12 +21237,8 @@ void ENTITY_HANGER(Entity_NPC *npc); // 0051cb30
|
||||
void ENTITY_URIEL(Entity_NPC *npc); // 0051e0f0
|
||||
void ENTITY_HEART(Entity_NPC *npc); // 0051f2f0
|
||||
void ENTITY_POKY(Entity_NPC *npc); // 00521ab0
|
||||
void ENTITY_EYE(Entity_NPC *npc); // 00522ef0
|
||||
void ENTITY_FRED(Entity_NPC *npc); // 00524a10
|
||||
void ENTITY_DOPLE(Entity_NPC *npc); // 00525650
|
||||
void ENTITY_BABY(Entity_NPC *npc); // 0052ae30
|
||||
void ENTITY_VIS_chubber_projectile(Entity_NPC *npc); // 0052c2f0
|
||||
void ENTITY_VIS(Entity_NPC *npc); // 0052c720
|
||||
void ENTITY_COD_WORM(Entity_NPC *npc); // 00531350
|
||||
void ENTITY_MOBILE_HOST(Entity_NPC *npc); // 005321d0
|
||||
void ENTITY_MOMS_HAND(Entity_NPC *npc); // 00533b80
|
||||
@@ -21353,8 +21246,6 @@ void ENTITY_WIZOOB(Entity_NPC *npc); // 005374a0
|
||||
void ENTITY_HOMUNCULUS(Entity_NPC *npc); // 00539b90
|
||||
void ENTITY_OOB(Entity_NPC *npc); // 0053ab40
|
||||
void ENTITY_BLACK_MAW(Entity_NPC *npc); // 0053b2f0
|
||||
void ENTITY_WALL_CREEP(Entity_NPC *npc); // 0053c0d0
|
||||
Entity_Effect * ENTITY_MEATBALL(Entity_NPC *npc); // 00541ce0
|
||||
float ENTITY_TARBOY(Entity_NPC *npc); // 005442a0
|
||||
void ENTITY_FISTULOID(Entity_NPC *npc); // 00545f70
|
||||
void ENTITY_GUSH(Entity_NPC *npc); // 00547330
|
||||
|
||||
@@ -6820,170 +6820,6 @@ LAB_00548a4b:
|
||||
return;
|
||||
}
|
||||
|
||||
// 0054f670
|
||||
void NpcHelper::needle_render(Entity_NPC *npc)
|
||||
{
|
||||
float fVar1;
|
||||
double dVar2;
|
||||
uint32_t trailStart;
|
||||
int iVar4;
|
||||
float *pfVar5;
|
||||
int iVar6;
|
||||
LayerState *layer;
|
||||
int iVar7;
|
||||
uint32_t uVar8;
|
||||
int iVar9;
|
||||
uint32_t uVar10;
|
||||
uint32_t heightIndex;
|
||||
int segmentCount;
|
||||
float *segmentPosCursor;
|
||||
uint32_t trailIndex;
|
||||
float fVar11;
|
||||
float fVar12;
|
||||
float fVar13;
|
||||
float fVar14;
|
||||
float fVar15;
|
||||
float prevHeight;
|
||||
float remainingSpacing;
|
||||
Vector prevPos;
|
||||
uint8_t *layerIndex;
|
||||
int segmentsLeft;
|
||||
float segmentData [7];
|
||||
int *trailHeights;
|
||||
int *trailPositions;
|
||||
uint32_t trailStart;
|
||||
|
||||
if ((npc->_state == 6) && (2 < GHIDRA_UINT((npc->_sprite)._layerCount))) {
|
||||
pfVar5 = segmentData;
|
||||
iVar7 = 2;
|
||||
do {
|
||||
pfVar5 = pfVar5 + 2;
|
||||
pfVar5[1] = 0.0;
|
||||
*pfVar5 = 0.0;
|
||||
iVar7 = iVar7 + -1;
|
||||
} while (iVar7 != 0);
|
||||
segmentCount = 0;
|
||||
remainingSpacing = 15.0;
|
||||
trailStart = (npc->_vectorDeque1)._offset;
|
||||
prevPos.x = (npc->_pos).x;
|
||||
prevPos.y = (npc->_pos).y;
|
||||
prevHeight = (npc->_v1).y;
|
||||
iVar7 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0x12bc));
|
||||
trailPositions = (npc->_vectorDeque1)._proxy;
|
||||
heightIndex = (npc->_vectorDeque2)._offset;
|
||||
trailHeights = (npc->_vectorDeque2)._proxy;
|
||||
trailStart = (npc->_vectorDeque1)._size;
|
||||
trailIndex = trailStart;
|
||||
while (trailIndex != trailStart + trailStart) {
|
||||
if (trailPositions == GHIDRA_CAST<int *>(0x0)) {
|
||||
iVar6 = 0;
|
||||
}
|
||||
else {
|
||||
iVar6 = *trailPositions;
|
||||
}
|
||||
iVar4 = (trailIndex & 1) * 8;
|
||||
pfVar5 = GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((iVar6 + 4)) +
|
||||
(*GHIDRA_CAST<int *>((iVar6 + 8)) - 1U & trailIndex >> 1) * 4)) + iVar4));
|
||||
fVar14 = *pfVar5 - prevPos.x;
|
||||
fVar12 = pfVar5[1] - prevPos.y;
|
||||
if (trailHeights == GHIDRA_CAST<int *>(0x0)) {
|
||||
iVar6 = 0;
|
||||
}
|
||||
else {
|
||||
iVar6 = *trailHeights;
|
||||
}
|
||||
uVar8 = heightIndex >> 1;
|
||||
iVar9 = (heightIndex & 1) * 8;
|
||||
fVar15 = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((iVar6 + 4)) + (*GHIDRA_CAST<int *>((iVar6 + 8)) - 1U & uVar8) * 4)) + 4
|
||||
+ iVar9)) - prevHeight;
|
||||
fVar11 = sqrtf(fVar12 * fVar12 + fVar14 * fVar14 + fVar15 * fVar15);
|
||||
remainingSpacing = remainingSpacing - fVar11;
|
||||
if (0.0 < remainingSpacing) {
|
||||
if (trailPositions == GHIDRA_CAST<int *>(0x0)) {
|
||||
iVar6 = 0;
|
||||
}
|
||||
else {
|
||||
iVar6 = *trailPositions;
|
||||
}
|
||||
pfVar5 = GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((iVar6 + 4)) +
|
||||
(*GHIDRA_CAST<int *>((iVar6 + 8)) - 1U & trailIndex >> 1) * 4)) + iVar4));
|
||||
prevPos.x = *pfVar5;
|
||||
prevPos.y = pfVar5[1];
|
||||
if (trailHeights == GHIDRA_CAST<int *>(0x0)) {
|
||||
iVar6 = 0;
|
||||
}
|
||||
else {
|
||||
iVar6 = *trailHeights;
|
||||
}
|
||||
trailIndex = trailIndex + 1;
|
||||
heightIndex = heightIndex + 1;
|
||||
prevHeight = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((iVar6 + 4)) +
|
||||
(*GHIDRA_CAST<int *>((iVar6 + 8)) - 1U & uVar8) * 4)) + 4 + iVar9));
|
||||
}
|
||||
else {
|
||||
fVar11 = (fVar11 + remainingSpacing) / fVar11;
|
||||
prevPos.x = fVar14 * fVar11 + prevPos.x;
|
||||
prevPos.y = fVar12 * fVar11 + prevPos.y;
|
||||
prevHeight = fVar11 * fVar15 + prevHeight;
|
||||
segmentData[segmentCount * 2 + 2] = prevPos.x;
|
||||
segmentData[segmentCount * 2 + 3] = prevPos.y;
|
||||
segmentData[segmentCount] = prevHeight;
|
||||
segmentCount = segmentCount + 1;
|
||||
remainingSpacing = 15.0;
|
||||
if (1 < segmentCount) goto LAB_0054f962;
|
||||
uVar10 = heightIndex - 1;
|
||||
uVar8 = trailIndex - 1;
|
||||
if (trailIndex <= trailStart) {
|
||||
uVar10 = heightIndex;
|
||||
uVar8 = trailIndex;
|
||||
}
|
||||
trailIndex = uVar8 + 1;
|
||||
heightIndex = uVar10 + 1;
|
||||
}
|
||||
}
|
||||
if (segmentCount < 2) {
|
||||
pfVar5 = segmentData + segmentCount;
|
||||
for (iVar6 = 2 - segmentCount; iVar6 != 0; iVar6 = iVar6 + -1) {
|
||||
*pfVar5 = prevHeight;
|
||||
pfVar5 = pfVar5 + 1;
|
||||
}
|
||||
do {
|
||||
segmentData[segmentCount * 2 + 2] = prevPos.x;
|
||||
segmentData[segmentCount * 2 + 3] = prevPos.y;
|
||||
segmentCount = segmentCount + 1;
|
||||
} while (segmentCount < 2);
|
||||
}
|
||||
LAB_0054f962:
|
||||
pfVar5 = segmentData;
|
||||
segmentPosCursor = segmentData;
|
||||
segmentsLeft = 2;
|
||||
layerIndex = GHIDRA_CAST<uint8_t *>(0x1);
|
||||
do {
|
||||
segmentPosCursor = segmentPosCursor + 2;
|
||||
fVar12 = *segmentPosCursor;
|
||||
fVar14 = segmentPosCursor[1];
|
||||
fVar11 = (npc->_pos).x;
|
||||
fVar15 = (npc->_pos).y;
|
||||
fVar1 = *pfVar5;
|
||||
fVar13 = (npc->_posOffset).y;
|
||||
if (iVar7 == 5) {
|
||||
fVar13 = -fVar13;
|
||||
}
|
||||
layer = ANM2::GetLayer(&npc->_sprite,layerIndex);
|
||||
(layer->_pos).x = (fVar12 - fVar11) * 0.65;
|
||||
(layer->_pos).y = ((fVar14 - fVar15) + (fVar1 - fVar13)) * 0.65;
|
||||
dVar2 = __uint_to_double_fixup[-(GHIDRA_INT(layerIndex) >> 0x1f)];
|
||||
fVar12 = *pfVar5;
|
||||
layer = ANM2::GetLayer(&npc->_sprite,layerIndex);
|
||||
pfVar5 = pfVar5 + 1;
|
||||
layer->_visible = fVar12 <= -6.0 - (float)((double)GHIDRA_INT(layerIndex) + dVar2) * 3.0;
|
||||
layerIndex = layerIndex + 1;
|
||||
segmentsLeft = segmentsLeft + -1;
|
||||
} while (segmentsLeft != 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// 00557f70
|
||||
Vector * NpcHelper::willo_slot(Entity_NPC *npc, Vector *outPos, int slot)
|
||||
{
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 0041e4c0
|
||||
void Point::UpdateNormal(Vector *unk)
|
||||
{
|
||||
float fVar1;
|
||||
float dirX;
|
||||
float newNormalY;
|
||||
float newNormalX;
|
||||
float dirY;
|
||||
float oldNormalX;
|
||||
float oldNormalY;
|
||||
|
||||
oldNormalX = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2))));
|
||||
if ((oldNormalX == g_vectorZero.x) && (*GHIDRA_CAST<float *>((this + 4)) == g_vectorZero.y)) {
|
||||
dirX = unk->x - *GHIDRA_CAST<float *>(this);
|
||||
dirY = unk->y - *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1))));
|
||||
oldNormalX = sqrtf(dirX * dirX + dirY * dirY);
|
||||
unk = GHIDRA_CAST<Vector *>(dirX);
|
||||
if (0.0 < oldNormalX) {
|
||||
unk = GHIDRA_CAST<Vector *>((dirX * (1.0 / oldNormalX)));
|
||||
dirY = dirY * (1.0 / oldNormalX);
|
||||
}
|
||||
oldNormalX = cos(1.5707964);
|
||||
oldNormalY = sin(1.5707964);
|
||||
*GHIDRA_CAST<float *>((this + 4)) = (float)unk * oldNormalY + dirY * oldNormalX;
|
||||
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)))) = (float)unk * oldNormalX - dirY * oldNormalY;
|
||||
return;
|
||||
}
|
||||
oldNormalY = *GHIDRA_CAST<float *>((this + 4));
|
||||
dirY = unk->y - *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1))));
|
||||
unk = GHIDRA_CAST<Vector *>((unk->x - *GHIDRA_CAST<float *>(this)));
|
||||
fVar1 = sqrtf(dirY * dirY + (float)unk * (float)unk);
|
||||
if (0.0 < fVar1) {
|
||||
unk = GHIDRA_CAST<Vector *>(((float)unk * (1.0 / fVar1)));
|
||||
dirY = dirY * (1.0 / fVar1);
|
||||
}
|
||||
fVar1 = cos(1.5707964);
|
||||
newNormalY = sin(1.5707964);
|
||||
newNormalX = ((float)unk * fVar1 - dirY * newNormalY) + oldNormalX;
|
||||
newNormalY = (float)unk * newNormalY + dirY * fVar1 + *GHIDRA_CAST<float *>((this + 4));
|
||||
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)))) = newNormalX;
|
||||
*GHIDRA_CAST<float *>((this + 4)) = newNormalY;
|
||||
fVar1 = sqrtf(newNormalY * newNormalY + newNormalX * newNormalX);
|
||||
if (fVar1 <= 0.0) {
|
||||
fVar1 = *GHIDRA_CAST<float *>((this + 4));
|
||||
}
|
||||
else {
|
||||
newNormalY = newNormalY * (1.0 / fVar1);
|
||||
newNormalX = newNormalX * (1.0 / fVar1);
|
||||
fVar1 = newNormalY;
|
||||
}
|
||||
oldNormalY = oldNormalY * newNormalY + oldNormalX * newNormalX;
|
||||
oldNormalX = 0.4;
|
||||
if (0.4 <= oldNormalY) {
|
||||
oldNormalX = oldNormalY;
|
||||
}
|
||||
*GHIDRA_CAST<float *>((this + 4)) = fVar1 / oldNormalX;
|
||||
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)))) = newNormalX / oldNormalX;
|
||||
return;
|
||||
}
|
||||
@@ -8227,9 +8227,6 @@ void Ambush::StartChallenge() { generated_stub("Ambush::StartChallenge 00833420"
|
||||
void Ambush::SpawnWave() { generated_stub("Ambush::SpawnWave 00833600"); }
|
||||
void Ambush::SpawnBossrushWave() { generated_stub("Ambush::SpawnBossrushWave 00833c40"); }
|
||||
void Ambush::Update() { generated_stub("Ambush::Update 00834350"); }
|
||||
void BeamRenderer::Begin(ANM2 *anm2, uint32_t layer, uint8_t isUseOverlay, uint8_t isUnk) { generated_stub("BeamRenderer::Begin 0041e480"); }
|
||||
void BeamRenderer::Add(Vector *point, ColorMod *color, float spritesheetCoordinate, float width) { generated_stub("BeamRenderer::Add 0041e720"); }
|
||||
void BeamRenderer::End() { generated_stub("BeamRenderer::End 0041e960"); }
|
||||
BitSet128 * BitSet128::operator_and(BitSet128 *outResult, BitSet128 *a, BitSet128 *b) { generated_stub("BitSet128::operator_and 00417170"); }
|
||||
uint8_t BitSet128::IsNonZero() { generated_stub("BitSet128::IsNonZero 004171b0"); }
|
||||
BitSet128 * BitSet128::operator__(BitSet128 *other) { generated_stub("BitSet128::operator__ 00435bf0"); }
|
||||
@@ -9273,7 +9270,6 @@ void NpcHelper::bouncer_death_gib(Entity_Effect *timer) { generated_stub("NpcHel
|
||||
void NpcHelper::migraine_timer_spawn(Entity *timer) { generated_stub("NpcHelper::migraine_timer_spawn 00528ec0"); }
|
||||
uint8_t NpcHelper::tarboy_is_creep_near(Entity_NPC *npc, Vector *position) { generated_stub("NpcHelper::tarboy_is_creep_near 005441e0"); }
|
||||
void NpcHelper::leper_flesh_ai(Entity_NPC *npc) { generated_stub("NpcHelper::leper_flesh_ai 00548720"); }
|
||||
void NpcHelper::needle_render(Entity_NPC *npc) { generated_stub("NpcHelper::needle_render 0054f670"); }
|
||||
Vector * NpcHelper::willo_slot(Entity_NPC *npc, Vector *outPos, int slot) { generated_stub("NpcHelper::willo_slot 00557f70"); }
|
||||
void NpcHelper::willo_get_target_pos(Entity_NPC *npc, Vector *outPos, float *outSpread) { generated_stub("NpcHelper::willo_get_target_pos 00558070"); }
|
||||
void NpcHelper::willo_orbit(Entity_NPC *npc) { generated_stub("NpcHelper::willo_orbit 005581b0"); }
|
||||
@@ -9335,7 +9331,6 @@ void PersistentGameDataWriter::write(PersistentGameData *data, void *header) { g
|
||||
PickupGhostData::~PickupGhostData() { generated_stub("PickupGhostData::~PickupGhostData 005d23a0"); }
|
||||
void PngWriter::write_end() { generated_stub("PngWriter::write_end 009e8d40"); }
|
||||
void PngWriter::write_info() { generated_stub("PngWriter::write_info 009e8ee0"); }
|
||||
void Point::UpdateNormal(Vector *unk) { generated_stub("Point::UpdateNormal 0041e4c0"); }
|
||||
uint8_t ProceduralEffect::roll_trigger_target(uint32_t *outTarget, float *outChance, RNG *rng) { generated_stub("ProceduralEffect::roll_trigger_target 009e0700"); }
|
||||
uint8_t ProceduralEffect::roll_spawn_target(uint32_t *outTarget, float *outChance, RNG *rng) { generated_stub("ProceduralEffect::roll_spawn_target 009e0ad0"); }
|
||||
void ProceduralEffect::roll_params(int conditionType, int actionType, uint32_t seed) { generated_stub("ProceduralEffect::roll_params 009e0f60"); }
|
||||
@@ -9390,7 +9385,6 @@ int Sprite::GetLayerCount() { generated_stub("Sprite::GetLayerCount 00440e40");
|
||||
void Sprite::set_offset(Vector *offset) { generated_stub("Sprite::set_offset 00456340"); }
|
||||
long double Sprite::PlaybackSpeed() { generated_stub("Sprite::PlaybackSpeed 00456360"); }
|
||||
Vector * Sprite::Offset() { generated_stub("Sprite::Offset 0049cb40"); }
|
||||
SpriteTrailData::~SpriteTrailData() { generated_stub("SpriteTrailData::~SpriteTrailData 005d2370"); }
|
||||
void StatsPanel::add_stat_line() { generated_stub("StatsPanel::add_stat_line 0084dc00"); }
|
||||
void StatsPanel::set(Entity_Player *player, uint8_t isGoldenTrinket) { generated_stub("StatsPanel::set 0084dea0"); }
|
||||
void StatsPanel::snapshot_stats(uint32_t param_1) { generated_stub("StatsPanel::snapshot_stats 0084e9d0"); }
|
||||
@@ -9412,44 +9406,6 @@ void TexturePtr::release() { generated_stub("TexturePtr::release 0040c440"); }
|
||||
UmbilicalBabyData::~UmbilicalBabyData() { generated_stub("UmbilicalBabyData::~UmbilicalBabyData 00431790"); }
|
||||
uint32_t UmbilicalBabyData::last_point() { generated_stub("UmbilicalBabyData::last_point 00435590"); }
|
||||
void UserProfile::find_or_create() { generated_stub("UserProfile::find_or_create 00a23ae0"); }
|
||||
void VideoPlayer::play(uint8_t *fileName, float volume) { generated_stub("VideoPlayer::play 009f2ee0"); }
|
||||
void VideoPlayer::unload() { generated_stub("VideoPlayer::unload 00a62880"); }
|
||||
void VideoPlayer::render(uint8_t param_1) { generated_stub("VideoPlayer::render 00a62b10"); }
|
||||
Weapon_Bombs::~Weapon_Bombs() { generated_stub("Weapon_Bombs::~Weapon_Bombs 009f9880"); }
|
||||
void Weapon_Bombs::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_Bombs::Init 009f34d0"); }
|
||||
void Weapon_Bombs::Update(char param_2) { generated_stub("Weapon_Bombs::Update 009f34f0"); }
|
||||
void Weapon_Bombs::Fire(Vector *param_1, uint8_t param_2, uint8_t param_3) { generated_stub("Weapon_Bombs::Fire 009f9b60"); }
|
||||
void Weapon_Bombs::Reset() { generated_stub("Weapon_Bombs::Reset 009f3480"); }
|
||||
void Weapon_Bombs::ClearReferences() { generated_stub("Weapon_Bombs::ClearReferences 009f3320"); }
|
||||
long double Weapon_Bombs::GetMaxCharge() { generated_stub("Weapon_Bombs::GetMaxCharge 009f3130"); }
|
||||
long double Weapon_Bombs::GetChargeBarAmount() { generated_stub("Weapon_Bombs::GetChargeBarAmount 009f4150"); }
|
||||
void Weapon_Bombs::vfunc_8() { generated_stub("Weapon_Bombs::vfunc_8 009f3130"); }
|
||||
Entity * Weapon_Bombs::GetFocusEntity() { generated_stub("Weapon_Bombs::GetFocusEntity 009fa190"); }
|
||||
Entity * Weapon_Bombs::GetMainEntity() { generated_stub("Weapon_Bombs::GetMainEntity 009f3150"); }
|
||||
void Weapon_Bombs::guard_check_icall() { generated_stub("Weapon_Bombs::guard_check_icall 0040c200"); }
|
||||
int Weapon_Bombs::GetMarkedTargetVariant() { generated_stub("Weapon_Bombs::GetMarkedTargetVariant 009fa1b0"); }
|
||||
uint8_t Weapon_Bombs::CanTakeDamageFromTearEffects() { generated_stub("Weapon_Bombs::CanTakeDamageFromTearEffects 00709c30"); }
|
||||
uint8_t Weapon_Bombs::CanShutDoors() { generated_stub("Weapon_Bombs::CanShutDoors 005ccc00"); }
|
||||
void Weapon_Bombs::vfunc_15() { generated_stub("Weapon_Bombs::vfunc_15 005ccc00"); }
|
||||
void Weapon_Bombs::vfunc_16() { generated_stub("Weapon_Bombs::vfunc_16 005ccc00"); }
|
||||
Weapon_Bone::~Weapon_Bone() { generated_stub("Weapon_Bone::~Weapon_Bone 009f9aa0"); }
|
||||
void Weapon_Bone::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_Bone::Init 009f34d0"); }
|
||||
void Weapon_Bone::Update(uint8_t isInterpolated) { generated_stub("Weapon_Bone::Update 009fa220"); }
|
||||
void Weapon_Bone::Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated) { generated_stub("Weapon_Bone::Fire 009fa450"); }
|
||||
void Weapon_Bone::Reset() { generated_stub("Weapon_Bone::Reset 009fed90"); }
|
||||
void Weapon_Bone::ClearReferences() { generated_stub("Weapon_Bone::ClearReferences 009fedf0"); }
|
||||
long double Weapon_Bone::GetMaxCharge() { generated_stub("Weapon_Bone::GetMaxCharge 009feeb0"); }
|
||||
long double Weapon_Bone::GetChargeBarAmount() { generated_stub("Weapon_Bone::GetChargeBarAmount 009f4150"); }
|
||||
void Weapon_Bone::vfunc_8() { generated_stub("Weapon_Bone::vfunc_8 009f3130"); }
|
||||
int Weapon_Bone::CountSeedEffects() { generated_stub("Weapon_Bone::CountSeedEffects 0085e1b0"); }
|
||||
Entity * Weapon_Bone::GetMainEntity() { generated_stub("Weapon_Bone::GetMainEntity 009f3150"); }
|
||||
void Weapon_Bone::TriggerNewRoom() { generated_stub("Weapon_Bone::TriggerNewRoom 009fef20"); }
|
||||
uint32_t Weapon_Bone::GetFocusEntity() { generated_stub("Weapon_Bone::GetFocusEntity 009f3140"); }
|
||||
uint8_t Weapon_Bone::CanShutDoors() { generated_stub("Weapon_Bone::CanShutDoors 005ccc00"); }
|
||||
uint8_t Weapon_Bone::CanTriggerCursedEyeTeleport() { generated_stub("Weapon_Bone::CanTriggerCursedEyeTeleport 009ff1a0"); }
|
||||
uint8_t Weapon_Bone::CanTriggerKidneyStone() { generated_stub("Weapon_Bone::CanTriggerKidneyStone 009ff210"); }
|
||||
uint8_t Weapon_Bone::CanOverrideForgottenThrow() { generated_stub("Weapon_Bone::CanOverrideForgottenThrow 009ff230"); }
|
||||
void Weapon_Bone::init_club(int *param_1) { generated_stub("Weapon_Bone::init_club 009ff0c0"); }
|
||||
Weapon_Deathmatch::~Weapon_Deathmatch() { generated_stub("Weapon_Deathmatch::~Weapon_Deathmatch 009f3260"); }
|
||||
void Weapon_Deathmatch::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_Deathmatch::Init 009f34d0"); }
|
||||
void Weapon_Deathmatch::Update(char param_2) { generated_stub("Weapon_Deathmatch::Update 009f34f0"); }
|
||||
@@ -10111,20 +10067,11 @@ int FUN_00456880() { generated_stub("FUN_00456880 00456880"); }
|
||||
void NpcAI::ENTITY_FLY_isaac_spawned(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FLY_isaac_spawned 004568d0"); }
|
||||
void NpcAI::ENTITY_WAR(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WAR 00458870"); }
|
||||
void NpcAI::ENTITY_DEATH(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DEATH 00459d20"); }
|
||||
void NpcAI::ENTITY_FALLEN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FALLEN 0045b830"); }
|
||||
void NpcAI::ENTITY_HEADLESS_HORSEMAN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HEADLESS_HORSEMAN 0045cd60"); }
|
||||
void NpcAI::ENTITY_DARK_ONE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DARK_ONE 0045d7d0"); }
|
||||
float NpcAI::ENTITY_ISAAC(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ISAAC 00463100"); }
|
||||
void NpcAI::ENTITY_DADDYLONGLEGS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DADDYLONGLEGS 00468180"); }
|
||||
void NpcAI::ENTITY_SLOTH(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SLOTH 004741f0"); }
|
||||
void NpcAI::ENTITY_LUST(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_LUST 00474e00"); }
|
||||
void NpcAI::ENTITY_WRATH(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WRATH 00475110"); }
|
||||
void NpcAI::ENTITY_GREED(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GREED 00475a30"); }
|
||||
void NpcAI::ENTITY_ENVY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ENVY 004760a0"); }
|
||||
void NpcAI::ENTITY_PIN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PIN 00476860"); }
|
||||
void FUN_00479d50(uint32_t *param_1) { generated_stub("FUN_00479d50 00479d50"); }
|
||||
void NpcAI::ENTITY_PRIDE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PRIDE 00479d80"); }
|
||||
Entity_NPC * NpcAI::ENTITY_SATAN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SATAN 0047f640"); }
|
||||
void NpcAI::ENTITY_THE_LAMB(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_THE_LAMB 00483710"); }
|
||||
void NpcAI::ENTITY_BROWNIE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BROWNIE 0048c3b0"); }
|
||||
void NpcAI::ENTITY_CORN_MINE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_CORN_MINE 0048ee30"); }
|
||||
@@ -10265,19 +10212,12 @@ uint8_t str_ne(std_string *a, uint8_t *b) { generated_stub("str_ne 004f84a0"); }
|
||||
void rng_pair_init(void *self) { generated_stub("rng_pair_init 004f88a0"); }
|
||||
uint32_t FUN_004f88e0() { generated_stub("FUN_004f88e0 004f88e0"); }
|
||||
uint32_t FUN_004f8930() { generated_stub("FUN_004f8930 004f8930"); }
|
||||
void NpcAI::ENTITY_QUAKE_GRIMACE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_QUAKE_GRIMACE 004f8960"); }
|
||||
void FUN_004f8cc0(int param_1) { generated_stub("FUN_004f8cc0 004f8cc0"); }
|
||||
void NpcAI::ENTITY_BOMB_GRIMACE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BOMB_GRIMACE 004f8df0"); }
|
||||
void NpcAI::ENTITY_ROCK_SPIDER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ROCK_SPIDER 004f9ad0"); }
|
||||
void NpcAI::ENTITY_FACELESS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FACELESS 004faad0"); }
|
||||
void NpcAI::ENTITY_DANNY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DANNY 004fbd10"); }
|
||||
void NpcAI::ENTITY_BLASTER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BLASTER 004fcc20"); }
|
||||
void quakey_timer_callback(Entity *source) { generated_stub("quakey_timer_callback 004fd280"); }
|
||||
void NpcAI::ENTITY_QUAKEY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_QUAKEY 004fd540"); }
|
||||
void NpcAI::ENTITY_MOLE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MOLE 004fdf80"); }
|
||||
void NpcAI::ENTITY_GYRO(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GYRO 004ff620"); }
|
||||
void NpcAI::ENTITY_FIRE_WORM(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FIRE_WORM 00500990"); }
|
||||
void NpcAI::ENTITY_HARDY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HARDY 00500f70"); }
|
||||
void NpcAI::ENTITY_BOUNCER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BOUNCER 00501f30"); }
|
||||
void NpcAI::ENTITY_FLESH_MAIDEN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FLESH_MAIDEN 00502980"); }
|
||||
void NpcAI::ENTITY_BOMBGAGGER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BOMBGAGGER 00503300"); }
|
||||
@@ -10298,12 +10238,8 @@ void NpcAI::ENTITY_HANGER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HANGE
|
||||
void NpcAI::ENTITY_URIEL(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_URIEL 0051e0f0"); }
|
||||
void NpcAI::ENTITY_HEART(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HEART 0051f2f0"); }
|
||||
void NpcAI::ENTITY_POKY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_POKY 00521ab0"); }
|
||||
void NpcAI::ENTITY_EYE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_EYE 00522ef0"); }
|
||||
void NpcAI::ENTITY_FRED(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FRED 00524a10"); }
|
||||
void NpcAI::ENTITY_DOPLE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DOPLE 00525650"); }
|
||||
void NpcAI::ENTITY_BABY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BABY 0052ae30"); }
|
||||
void NpcAI::ENTITY_VIS_chubber_projectile(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_VIS_chubber_projectile 0052c2f0"); }
|
||||
void NpcAI::ENTITY_VIS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_VIS 0052c720"); }
|
||||
void NpcAI::ENTITY_COD_WORM(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_COD_WORM 00531350"); }
|
||||
void NpcAI::ENTITY_MOBILE_HOST(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MOBILE_HOST 005321d0"); }
|
||||
void NpcAI::ENTITY_MOMS_HAND(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MOMS_HAND 00533b80"); }
|
||||
@@ -10311,8 +10247,6 @@ void NpcAI::ENTITY_WIZOOB(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WIZOO
|
||||
void NpcAI::ENTITY_HOMUNCULUS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HOMUNCULUS 00539b90"); }
|
||||
void NpcAI::ENTITY_OOB(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_OOB 0053ab40"); }
|
||||
void NpcAI::ENTITY_BLACK_MAW(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BLACK_MAW 0053b2f0"); }
|
||||
void NpcAI::ENTITY_WALL_CREEP(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WALL_CREEP 0053c0d0"); }
|
||||
Entity_Effect * NpcAI::ENTITY_MEATBALL(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MEATBALL 00541ce0"); }
|
||||
float NpcAI::ENTITY_TARBOY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_TARBOY 005442a0"); }
|
||||
void NpcAI::ENTITY_FISTULOID(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FISTULOID 00545f70"); }
|
||||
void npc_distribute_orbit_angles(Entity_NPC *npc) { generated_stub("npc_distribute_orbit_angles 00547040"); }
|
||||
@@ -10562,9 +10496,7 @@ void FUN_005cd840(uint32_t param_1) { generated_stub("FUN_005cd840 005cd840"); }
|
||||
void FUN_005cd850() { generated_stub("FUN_005cd850 005cd850"); }
|
||||
void FUN_005cd8c0(uint8_t param_1) { generated_stub("FUN_005cd8c0 005cd8c0"); }
|
||||
void FUN_005cda90() { generated_stub("FUN_005cda90 005cda90"); }
|
||||
void FUN_005d2270() { generated_stub("FUN_005d2270 005d2270"); }
|
||||
void FUN_005d2300() { generated_stub("FUN_005d2300 005d2300"); }
|
||||
void FUN_005d2370(uint8_t param_1) { generated_stub("FUN_005d2370 005d2370"); }
|
||||
void FUN_005d23a0(uint8_t param_1) { generated_stub("FUN_005d23a0 005d23a0"); }
|
||||
void FUN_005d4210() { generated_stub("FUN_005d4210 005d4210"); }
|
||||
void FUN_00607540() { generated_stub("FUN_00607540 00607540"); }
|
||||
@@ -10737,7 +10669,6 @@ void FUN_00676bd0() { generated_stub("FUN_00676bd0 00676bd0"); }
|
||||
int FUN_0067adc0() { generated_stub("FUN_0067adc0 0067adc0"); }
|
||||
void FUN_0067ae30(int *param_1) { generated_stub("FUN_0067ae30 0067ae30"); }
|
||||
void FUN_0067af30() { generated_stub("FUN_0067af30 0067af30"); }
|
||||
void tear_flags_area_apply(Vector *position, Entity *source, float radius, float damage, BitSet128 flags) { generated_stub("tear_flags_area_apply 0067d430"); }
|
||||
uint32_t FUN_0067d9b0() { generated_stub("FUN_0067d9b0 0067d9b0"); }
|
||||
void FUN_0067dac0(int *param_1) { generated_stub("FUN_0067dac0 0067dac0"); }
|
||||
uint32_t * FUN_0067ef50(uint32_t *param_1, uint32_t *param_2, uint32_t *param_3) { generated_stub("FUN_0067ef50 0067ef50"); }
|
||||
@@ -10937,7 +10868,6 @@ void FUN_006e2ff0(int param_1) { generated_stub("FUN_006e2ff0 006e2ff0"); }
|
||||
void FUN_006ee330() { generated_stub("FUN_006ee330 006ee330"); }
|
||||
Vector * Isaac::GetRandomPickupVelocity(Vector *outVelocity, Vector *position, uint32_t pickupVelType, RNG *rng) { generated_stub("Isaac::GetRandomPickupVelocity 006ee440"); }
|
||||
int FUN_006ee640(int param_1, int param_2, uint32_t *param_3, uint32_t param_4) { generated_stub("FUN_006ee640 006ee640"); }
|
||||
Vector * Isaac::GetCollectibleSpawnPosition(Vector *outPosition, Vector *target) { generated_stub("Isaac::GetCollectibleSpawnPosition 006eeaa0"); }
|
||||
uint32_t FUN_006eeeb0() { generated_stub("FUN_006eeeb0 006eeeb0"); }
|
||||
uint32_t get_mt_state_checksum() { generated_stub("get_mt_state_checksum 006ef1f0"); }
|
||||
int FUN_006ef3f0() { generated_stub("FUN_006ef3f0 006ef3f0"); }
|
||||
@@ -11017,12 +10947,10 @@ Entity_Player * FUN_007103c0(uint32_t *param_1) { generated_stub("FUN_007103c0 0
|
||||
uint32_t FUN_00710f70(int param_1) { generated_stub("FUN_00710f70 00710f70"); }
|
||||
void FUN_00711530(int param_1) { generated_stub("FUN_00711530 00711530"); }
|
||||
uint32_t FUN_00711740() { generated_stub("FUN_00711740 00711740"); }
|
||||
void FUN_007135d0(uint32_t param_1, uint8_t param_2, int *param_3) { generated_stub("FUN_007135d0 007135d0"); }
|
||||
void FUN_00718ed0(uint32_t param_1) { generated_stub("FUN_00718ed0 00718ed0"); }
|
||||
uint32_t FUN_00718ee0() { generated_stub("FUN_00718ee0 00718ee0"); }
|
||||
void FUN_0071df70(uint8_t param_1) { generated_stub("FUN_0071df70 0071df70"); }
|
||||
void FUN_00721e60(int param_1, int param_2, int param_3, int param_4, int param_5, int param_6) { generated_stub("FUN_00721e60 00721e60"); }
|
||||
void FUN_00721eb0() { generated_stub("FUN_00721eb0 00721eb0"); }
|
||||
void FUN_00722020(int param_1) { generated_stub("FUN_00722020 00722020"); }
|
||||
void FUN_007221a0(uint32_t *param_1) { generated_stub("FUN_007221a0 007221a0"); }
|
||||
uint32_t * FUN_00722250(uint32_t *param_1, uint32_t *param_2, uint32_t *param_3) { generated_stub("FUN_00722250 00722250"); }
|
||||
@@ -11181,7 +11109,6 @@ uint8_t teleport_to_random_room_of_types(Entity_Player *player, void *roomTypes,
|
||||
void FUN_007cf940() { generated_stub("FUN_007cf940 007cf940"); }
|
||||
long double FUN_007cf9a0(float *param_1, KColor *param_2, uint32_t param_3) { generated_stub("FUN_007cf9a0 007cf9a0"); }
|
||||
uint8_t * FUN_007cfa90() { generated_stub("FUN_007cfa90 007cfa90"); }
|
||||
bool FUN_007d1810() { generated_stub("FUN_007d1810 007d1810"); }
|
||||
void FUN_007d3330(int param_1) { generated_stub("FUN_007d3330 007d3330"); }
|
||||
Game * damage_charge_scale() { generated_stub("damage_charge_scale 007d3560"); }
|
||||
void FUN_007d3e00() { generated_stub("FUN_007d3e00 007d3e00"); }
|
||||
@@ -11293,7 +11220,6 @@ void FUN_007e9170(char param_1) { generated_stub("FUN_007e9170 007e9170"); }
|
||||
void FUN_007e92e0(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_007e92e0 007e92e0"); }
|
||||
void FUN_007e93d0(int param_1) { generated_stub("FUN_007e93d0 007e93d0"); }
|
||||
void FUN_007ea0c0() { generated_stub("FUN_007ea0c0 007ea0c0"); }
|
||||
void FUN_007ebc40() { generated_stub("FUN_007ebc40 007ebc40"); }
|
||||
void FUN_00812ea0(float *param_1, int *param_2, int *param_3) { generated_stub("FUN_00812ea0 00812ea0"); }
|
||||
uint32_t FUN_00813420(int param_1, int param_2) { generated_stub("FUN_00813420 00813420"); }
|
||||
uint32_t FUN_0081e220() { generated_stub("FUN_0081e220 0081e220"); }
|
||||
@@ -11379,7 +11305,6 @@ void ItemInfo::render_popup_callback(int param_1, uint32_t param_2) { generated_
|
||||
void ItemInfo::render_line(uint8_t *param_1, Vector *param_2, int param_3) { generated_stub("ItemInfo::render_line 008404a0"); }
|
||||
char * FUN_00840510() { generated_stub("FUN_00840510 00840510"); }
|
||||
std_string * int_to_string(std_string *outString, int value) { generated_stub("int_to_string 00840540"); }
|
||||
void collectible_icon_render(void *param_1, ColorMod *param_2, int *param_3, int *param_4) { generated_stub("collectible_icon_render 00848c20"); }
|
||||
void FUN_0084a870(float *param_1) { generated_stub("FUN_0084a870 0084a870"); }
|
||||
void FUN_0084abc0(uint32_t *param_1, float *param_2, uint32_t *param_3, uint32_t *param_4) { generated_stub("FUN_0084abc0 0084abc0"); }
|
||||
void FUN_0084bba0() { generated_stub("FUN_0084bba0 0084bba0"); }
|
||||
@@ -13564,23 +13489,16 @@ void Catch_All_0095c01b() { generated_stub("Catch_All_0095c01b 0095c01b"); }
|
||||
void * FUN_0095c430(void *param_1, void *param_2, void *param_3) { generated_stub("FUN_0095c430 0095c430"); }
|
||||
void Catch_All_0095c63e() { generated_stub("Catch_All_0095c63e 0095c63e"); }
|
||||
void FUN_0095c670() { generated_stub("FUN_0095c670 0095c670"); }
|
||||
int FUN_0095c930() { generated_stub("FUN_0095c930 0095c930"); }
|
||||
uint32_t FUN_0095c960() { generated_stub("FUN_0095c960 0095c960"); }
|
||||
void FUN_0095eb00(uint32_t param_1, int param_2) { generated_stub("FUN_0095eb00 0095eb00"); }
|
||||
void cutscene_render_skip_vote_count(void *cutscene, void *state) { generated_stub("cutscene_render_skip_vote_count 0095eb60"); }
|
||||
void FUN_0095fbd0() { generated_stub("FUN_0095fbd0 0095fbd0"); }
|
||||
void FUN_0095fcd0(uint32_t *param_1) { generated_stub("FUN_0095fcd0 0095fcd0"); }
|
||||
uint32_t FUN_0095fd40() { generated_stub("FUN_0095fd40 0095fd40"); }
|
||||
uint32_t * FUN_00960880(void *param_1, uint32_t *param_2) { generated_stub("FUN_00960880 00960880"); }
|
||||
void FUN_00960bc0() { generated_stub("FUN_00960bc0 00960bc0"); }
|
||||
uint32_t FUN_00961ad0() { generated_stub("FUN_00961ad0 00961ad0"); }
|
||||
void FUN_0096d120(int *param_1) { generated_stub("FUN_0096d120 0096d120"); }
|
||||
uint32_t FUN_0097e7c0() { generated_stub("FUN_0097e7c0 0097e7c0"); }
|
||||
void pressure_plate_kill_enemies_timer_callback(int *param_1) { generated_stub("pressure_plate_kill_enemies_timer_callback 00983f30"); }
|
||||
void FUN_0098b0a0() { generated_stub("FUN_0098b0a0 0098b0a0"); }
|
||||
void FUN_0098b130() { generated_stub("FUN_0098b130 0098b130"); }
|
||||
void FUN_00993740() { generated_stub("FUN_00993740 00993740"); }
|
||||
uint32_t * FUN_00995f40(uint32_t *param_1) { generated_stub("FUN_00995f40 00995f40"); }
|
||||
void FUN_00997660(void *param_1, int param_2) { generated_stub("FUN_00997660 00997660"); }
|
||||
void FUN_009976c0(void *param_1, int param_2) { generated_stub("FUN_009976c0 009976c0"); }
|
||||
void Catch_All_009979a9() { generated_stub("Catch_All_009979a9 009979a9"); }
|
||||
@@ -13591,7 +13509,6 @@ uint32_t * FUN_009983f0(uint32_t *param_1) { generated_stub("FUN_009983f0 009983
|
||||
void netplay_player_list_destructor(void *self) { generated_stub("netplay_player_list_destructor 00998800"); }
|
||||
void FUN_0099a830() { generated_stub("FUN_0099a830 0099a830"); }
|
||||
void FUN_0099c310() { generated_stub("FUN_0099c310 0099c310"); }
|
||||
float bezier_closest_point(Vector *point, void *segmentStart, void *segmentEnd, float *outT) { generated_stub("bezier_closest_point 0099c430"); }
|
||||
void ** vector_LaserSample_erase(void *self, void **outIter, void *where) { generated_stub("vector_LaserSample_erase 009a1610"); }
|
||||
void FUN_009a1770(uint32_t *param_1) { generated_stub("FUN_009a1770 009a1770"); }
|
||||
void * vector_LaserSample_emplace_reallocate(void *self, void *where, void *value) { generated_stub("vector_LaserSample_emplace_reallocate 009a17b0"); }
|
||||
@@ -13785,8 +13702,6 @@ uint32_t * FUN_009f9350() { generated_stub("FUN_009f9350 009f9350"); }
|
||||
uint32_t * FUN_009f93d0() { generated_stub("FUN_009f93d0 009f93d0"); }
|
||||
uint32_t * FUN_009f9440() { generated_stub("FUN_009f9440 009f9440"); }
|
||||
uint32_t * FUN_009f95d0() { generated_stub("FUN_009f95d0 009f95d0"); }
|
||||
uint32_t * FUN_009f96c0() { generated_stub("FUN_009f96c0 009f96c0"); }
|
||||
uint32_t * FUN_009f9740() { generated_stub("FUN_009f9740 009f9740"); }
|
||||
uint32_t * FUN_00a06940(void *param_1, uint32_t *param_2) { generated_stub("FUN_00a06940 00a06940"); }
|
||||
void * operator_new(uint32_t size) { generated_stub("operator_new 00a0f4c0"); }
|
||||
void * operator_new_tracked(uint32_t size) { generated_stub("operator_new_tracked 00a0f4e0"); }
|
||||
|
||||
@@ -1,310 +0,0 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 009f2ee0
|
||||
void VideoPlayer::play(uint8_t *fileName, float volume)
|
||||
{
|
||||
uint32_t *extraout_EAX;
|
||||
uint32_t *pathText;
|
||||
void *allocBlock;
|
||||
int startFrame;
|
||||
uint8_t *copyPtr;
|
||||
uint32_t allocSize;
|
||||
void *redirectedPath [4];
|
||||
uint32_t redirectedPathSize;
|
||||
uint32_t redirectedPathCapacity;
|
||||
void *local_ac [4];
|
||||
uint32_t pathSize;
|
||||
uint32_t pathCapacity;
|
||||
uint8_t fileNameLocal [128];
|
||||
uint32_t local_14;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t local_8;
|
||||
uint8_t copyChar;
|
||||
int decoder;
|
||||
Manager *manager;
|
||||
|
||||
local_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00b101ab;
|
||||
local_10 = ExceptionList;
|
||||
local_14 = __security_cookie ^ GHIDRA_UINT((fileNameLocal + 0x90));
|
||||
ExceptionList = &local_10;
|
||||
copyPtr = fileName;
|
||||
do {
|
||||
copyChar = *copyPtr;
|
||||
copyPtr = copyPtr + 1;
|
||||
copyPtr[GHIDRA_INT(local_ac) + (0x17 - GHIDRA_INT(fileName))] = copyChar;
|
||||
} while (copyChar != 0);
|
||||
strstr(GHIDRA_CAST<char *>(fileNameLocal),".ogv");
|
||||
manager = g_manager;
|
||||
copyPtr = fileNameLocal;
|
||||
pathSize = 0;
|
||||
pathCapacity = 0xf;
|
||||
local_ac[0] = (void *)0x0;
|
||||
do {
|
||||
copyChar = *copyPtr;
|
||||
copyPtr = copyPtr + 1;
|
||||
} while (copyChar != 0);
|
||||
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(local_ac))))->msvc::string::assign(fileNameLocal,GHIDRA_INT(copyPtr) - GHIDRA_INT((fileNameLocal + 1)));
|
||||
local_8 = 0;
|
||||
ModManager::TryRedirectPath
|
||||
(GHIDRA_CAST<ModManager *>(&manager->_modManager),GHIDRA_CAST<std_string *>(redirectedPath),GHIDRA_CAST<std_string *>(local_ac)
|
||||
);
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
||||
pathText = extraout_EAX;
|
||||
if (0xf < GHIDRA_UINT(extraout_EAX[5])) {
|
||||
pathText = GHIDRA_CAST<uint32_t *>(*extraout_EAX);
|
||||
}
|
||||
FUN_00a62910(pathText);
|
||||
local_8 = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(local_8))) + 0x1))) << 8;
|
||||
if (0xf < redirectedPathCapacity) {
|
||||
allocSize = redirectedPathCapacity + 1;
|
||||
allocBlock = redirectedPath[0];
|
||||
if (0xfff < allocSize) {
|
||||
allocBlock = *(void **)(GHIDRA_INT(redirectedPath[0]) + -4);
|
||||
allocSize = redirectedPathCapacity + 0x24;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(redirectedPath[0]) + (-4 - GHIDRA_INT(allocBlock))))) goto LAB_009f3050;
|
||||
}
|
||||
operator_delete(allocBlock,allocSize);
|
||||
}
|
||||
local_8 = -1;
|
||||
redirectedPathSize = 0;
|
||||
redirectedPathCapacity = 0xf;
|
||||
redirectedPath[0] = (void *)(GHIDRA_UINT(redirectedPath[0]) & 0xffffff00);
|
||||
if (0xf < pathCapacity) {
|
||||
allocSize = pathCapacity + 1;
|
||||
allocBlock = local_ac[0];
|
||||
if (0xfff < allocSize) {
|
||||
allocBlock = *(void **)(GHIDRA_INT(local_ac[0]) + -4);
|
||||
allocSize = pathCapacity + 0x24;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(local_ac[0]) + (-4 - GHIDRA_INT(allocBlock))))) {
|
||||
LAB_009f3050:
|
||||
/* WARNING: Subroutine does not return */
|
||||
_invalid_parameter_noinfo_noreturn();
|
||||
}
|
||||
}
|
||||
operator_delete(allocBlock,allocSize);
|
||||
}
|
||||
decoder = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4));
|
||||
if (decoder != 0) {
|
||||
if (volume < 1.0) {
|
||||
if (0.0 < volume) {
|
||||
*GHIDRA_CAST<float *>((decoder + 0x48)) = volume;
|
||||
}
|
||||
else {
|
||||
*GHIDRA_CAST<uint32_t *>((decoder + 0x48)) = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
*GHIDRA_CAST<uint32_t *>((decoder + 0x48)) = 0x3f800000;
|
||||
}
|
||||
}
|
||||
decoder = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4));
|
||||
if (decoder != 0) {
|
||||
(**(code **)(**GHIDRA_CAST<int **>((decoder + 0x28)) + 0x1c))();
|
||||
FUN_00aaaa90();
|
||||
*GHIDRA_CAST<uint32_t *>((decoder + 0x98)) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>((decoder + 0x94)) = 0;
|
||||
startFrame = GHIDRA_INT((*GHIDRA_CAST<float *>((decoder + 0x70)) * 0.0));
|
||||
if (startFrame < 0) {
|
||||
startFrame = 0;
|
||||
}
|
||||
else if (*GHIDRA_CAST<int *>((decoder + 0x6c)) < startFrame) {
|
||||
startFrame = *GHIDRA_CAST<int *>((decoder + 0x6c));
|
||||
}
|
||||
*GHIDRA_CAST<int *>((decoder + 0x88)) = startFrame;
|
||||
*GHIDRA_CAST<uint8_t *>((decoder + 0x90)) = 0;
|
||||
*GHIDRA_CAST<uint8_t *>((decoder + 0x74)) = 0;
|
||||
*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(this) + 0x10)) = 0;
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) != 0) {
|
||||
(**(code **)(**GHIDRA_CAST<int **>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) + 0x28)) + 0x18))();
|
||||
*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(this) + 0x10)) = 1;
|
||||
}
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
|
||||
// 00a62880
|
||||
void VideoPlayer::unload()
|
||||
{
|
||||
char isLastRef;
|
||||
uint32_t uVar1;
|
||||
uint32_t extraout_ECX;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t local_8;
|
||||
|
||||
local_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00af12a0;
|
||||
local_10 = ExceptionList;
|
||||
uVar1 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
||||
ExceptionList = &local_10;
|
||||
TheoraVideoManager::destroyVideoClip(*(void **)(GHIDRA_CAST<char *>(this) + 4));
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 4)) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>(this) = 0;
|
||||
*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(this) + 0x10)) = 0;
|
||||
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX);
|
||||
local_8 = 0;
|
||||
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0xc)) != GHIDRA_CAST<int *>(0x0)) {
|
||||
isLastRef = (**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0xc)) + 0xc))(uVar1);
|
||||
if ((isLastRef != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
||||
(*g_renderTargetReleaseFn)(GHIDRA_INT(this) + 8);
|
||||
}
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
|
||||
// 00a62b10
|
||||
void VideoPlayer::render(uint8_t param_1)
|
||||
{
|
||||
uint8_t *puVar1;
|
||||
void *pvVar2;
|
||||
int iVar3;
|
||||
uint32_t uVar4;
|
||||
int *frameNode;
|
||||
int in_ECX;
|
||||
int *countNode;
|
||||
uint32_t extraout_ECX;
|
||||
uint8_t *puVar5;
|
||||
int iVar6;
|
||||
int iVar7;
|
||||
uint32_t texHeight;
|
||||
long double clockTime;
|
||||
KColor white;
|
||||
void *scopeLock;
|
||||
uint8_t local_24;
|
||||
float local_20;
|
||||
uint8_t *local_1c;
|
||||
int *frameListHead;
|
||||
int self;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t local_8;
|
||||
code *drawFn;
|
||||
int *nextNode;
|
||||
|
||||
local_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00b1317d;
|
||||
local_10 = ExceptionList;
|
||||
uVar4 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
||||
puVar1 = *GHIDRA_CAST<uint8_t **>((in_ECX + 4));
|
||||
if (puVar1 == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
return;
|
||||
}
|
||||
self = in_ECX;
|
||||
ExceptionList = &local_10;
|
||||
local_1c = puVar1;
|
||||
if (*GHIDRA_CAST<int *>((puVar1 + 0x88)) != -1) goto LAB_00a62d83;
|
||||
pvVar2 = *(void **)(*GHIDRA_CAST<int *>((puVar1 + 0x1c)) + 0xc);
|
||||
scopeLock = (void *)0x0;
|
||||
local_24 = 0;
|
||||
if (pvVar2 != (void *)0x0) {
|
||||
scopeLock = pvVar2;
|
||||
(GHIDRA_CAST<Mutex *>((pvVar2)))->Mutex::lock();
|
||||
}
|
||||
local_8 = 0;
|
||||
clockTime = (long double)(**(code **)(**GHIDRA_CAST<int **>((puVar1 + 0x28)) + 4))(uVar4);
|
||||
iVar6 = 0;
|
||||
frameListHead = GHIDRA_CAST<int *>(**GHIDRA_CAST<int **>((puVar1 + 0x1c)));
|
||||
frameNode = GHIDRA_CAST<int *>(*frameListHead);
|
||||
local_20 = (float)*GHIDRA_CAST<int *>((puVar1 + 0x98)) * *GHIDRA_CAST<float *>((puVar1 + 0x58)) + (float)clockTime;
|
||||
countNode = frameNode;
|
||||
puVar5 = puVar1;
|
||||
iVar7 = iVar6;
|
||||
if (frameNode == frameListHead) {
|
||||
LAB_00a62be2:
|
||||
iVar6 = 0;
|
||||
if (frameNode != frameListHead) {
|
||||
while ((iVar3 = frameNode[2], *GHIDRA_CAST<char *>((iVar3 + 8)) != '\0' &&
|
||||
((float)*GHIDRA_CAST<int *>((iVar3 + 0xc)) * *GHIDRA_CAST<float *>((puVar1 + 0x58)) + *GHIDRA_CAST<float *>((iVar3 + 4)) +
|
||||
*GHIDRA_CAST<float *>((puVar5 + 0x5c)) < local_20))) {
|
||||
iVar7 = iVar7 + -1;
|
||||
iVar6 = iVar6 + 1;
|
||||
if ((iVar7 == 1) || (frameNode = GHIDRA_CAST<int *>(*frameNode), frameNode == frameListHead)) break;
|
||||
}
|
||||
if (0 < iVar6) {
|
||||
*GHIDRA_CAST<int *>((puVar5 + 0x9c)) = *GHIDRA_CAST<int *>((puVar5 + 0x9c)) + iVar6;
|
||||
FUN_00aaaae0(iVar6);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
do {
|
||||
nextNode = GHIDRA_CAST<int *>(*countNode);
|
||||
iVar7 = iVar6 + 1;
|
||||
if (*GHIDRA_CAST<char *>((countNode[2] + 8)) == '\0') {
|
||||
iVar7 = iVar6;
|
||||
}
|
||||
countNode = nextNode;
|
||||
iVar6 = iVar7;
|
||||
} while (nextNode != frameListHead);
|
||||
puVar5 = local_1c;
|
||||
if (iVar7 != 1) goto LAB_00a62be2;
|
||||
}
|
||||
iVar7 = 0;
|
||||
if (*GHIDRA_CAST<char *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(**GHIDRA_CAST<uint32_t **>((puVar5 + 0x1c))) + 8)) + 8)) != '\0') {
|
||||
iVar7 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(**GHIDRA_CAST<uint32_t **>((puVar5 + 0x1c))) + 8));
|
||||
}
|
||||
if (((iVar7 != 0) &&
|
||||
(local_20 < (float)*GHIDRA_CAST<int *>((iVar7 + 0xc)) * *GHIDRA_CAST<float *>((puVar5 + 0x58)) + *GHIDRA_CAST<float *>((iVar7 + 4))))
|
||||
&& (puVar5[0x90] != '\0')) {
|
||||
iVar7 = 0;
|
||||
}
|
||||
local_8 = 0xffffffff;
|
||||
(GHIDRA_CAST<Mutex::ScopeLock *>((&scopeLock)))->Mutex::ScopeLock::~ScopeLock();
|
||||
if (iVar7 == 0) {
|
||||
}
|
||||
else {
|
||||
(*(code *)epoxy_glEnable)(0xde1);
|
||||
(*(code *)epoxy_glBindTexture)(0xde1,*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((self + 8)) + 0x58)));
|
||||
local_1c = epoxy_glTexSubImage2D;
|
||||
local_20 = *GHIDRA_CAST<float *>((iVar7 + 0x18));
|
||||
iVar7 = *GHIDRA_CAST<int *>((self + 4));
|
||||
if (iVar7 == 0) {
|
||||
texHeight = 0;
|
||||
iVar6 = 0;
|
||||
}
|
||||
else {
|
||||
texHeight = *GHIDRA_CAST<uint32_t *>((iVar7 + 100));
|
||||
iVar6 = *GHIDRA_CAST<int *>((iVar7 + 0x60)) / 2;
|
||||
if (*GHIDRA_CAST<char *>((iVar7 + 0x40)) == '\0') {
|
||||
iVar6 = *GHIDRA_CAST<int *>((iVar7 + 0x60));
|
||||
}
|
||||
}
|
||||
(*(code *)epoxy_glTexSubImage2D)(0xde1,0,0,0,iVar6,texHeight,0x1907,0x1401,local_20);
|
||||
iVar7 = *GHIDRA_CAST<int *>((self + 4));
|
||||
*GHIDRA_CAST<int *>((iVar7 + 0xa0)) = *GHIDRA_CAST<int *>((iVar7 + 0xa0)) + 1;
|
||||
pvVar2 = *(void **)(*GHIDRA_CAST<int *>((iVar7 + 0x1c)) + 0xc);
|
||||
scopeLock = (void *)0x0;
|
||||
local_24 = 0;
|
||||
if (*GHIDRA_CAST<char *>((iVar7 + 0x90)) == '\0') {
|
||||
if (pvVar2 != (void *)0x0) {
|
||||
scopeLock = pvVar2;
|
||||
(GHIDRA_CAST<Mutex *>((pvVar2)))->Mutex::lock();
|
||||
}
|
||||
local_8 = 1;
|
||||
FUN_00aaaae0(1);
|
||||
*GHIDRA_CAST<uint8_t *>((iVar7 + 0x90)) = 1;
|
||||
local_8 = 0xffffffff;
|
||||
(GHIDRA_CAST<Mutex::ScopeLock *>((&scopeLock)))->Mutex::ScopeLock::~ScopeLock();
|
||||
}
|
||||
else {
|
||||
if (pvVar2 != (void *)0x0) {
|
||||
scopeLock = pvVar2;
|
||||
(GHIDRA_CAST<Mutex *>((pvVar2)))->Mutex::lock();
|
||||
}
|
||||
local_8 = 2;
|
||||
FUN_00aaaae0(1);
|
||||
local_8 = 0xffffffff;
|
||||
(GHIDRA_CAST<Mutex::ScopeLock *>((&scopeLock)))->Mutex::ScopeLock::~ScopeLock();
|
||||
}
|
||||
}
|
||||
LAB_00a62d83:
|
||||
drawFn = *(code **)(**GHIDRA_CAST<int **>((self + 8)) + 0x20);
|
||||
(GHIDRA_CAST<KColor *>((&white)))->KColor::SetFromARGB(0xffffffff);
|
||||
(*drawFn)(¶m_1,extraout_ECX);
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
@@ -1,199 +0,0 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 009f9b60
|
||||
void Weapon_Bombs::Fire(Vector *param_1, uint8_t param_2, uint8_t param_3)
|
||||
{
|
||||
Vector shotDirection;
|
||||
uint8_t isAxisAligned;
|
||||
Vector *vecResult;
|
||||
uint32_t rngResult;
|
||||
Entity_Bomb *firedBomb;
|
||||
Weapon *in_ECX;
|
||||
int unusedArg;
|
||||
Entity_Bomb *oldLink;
|
||||
uint32_t randomShotsLeft;
|
||||
int bomb;
|
||||
Entity_Bomb *linkSlot;
|
||||
float fVar1;
|
||||
float fVar2;
|
||||
float fVar3;
|
||||
float shotSpeed;
|
||||
Vector local_80;
|
||||
Vector local_78;
|
||||
uint32_t isLudovico;
|
||||
Weapon *weapon;
|
||||
Vector aimDirection;
|
||||
Vector spawnPos;
|
||||
Vector scratchVec;
|
||||
Vector multiShotOffset;
|
||||
Vector multiShotVelocity;
|
||||
uint32_t multiShotParams;
|
||||
float fStack_3c;
|
||||
float fStack_38;
|
||||
float fStack_34;
|
||||
float local_30;
|
||||
int iStack_2c;
|
||||
float fStack_28;
|
||||
uint32_t uStack_24;
|
||||
uint32_t local_20;
|
||||
|
||||
weapon = in_ECX;
|
||||
Weapon::Fire(in_ECX,param_1,param_2,param_3);
|
||||
bomb = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4))));
|
||||
isLudovico = GHIDRA_UINT(in_ECX->_modifiers) >> 4 & 0xffffff01;
|
||||
if (bomb == 0) {
|
||||
spawnPos.x = g_vectorZero.x;
|
||||
spawnPos.y = g_vectorZero.y;
|
||||
}
|
||||
else {
|
||||
spawnPos.x = *GHIDRA_CAST<float *>((bomb + 0x33c));
|
||||
spawnPos.y = *GHIDRA_CAST<float *>((bomb + 0x340));
|
||||
if ((*GHIDRA_CAST<int *>((bomb + 0x28)) == 1) ||
|
||||
((*GHIDRA_CAST<int *>((bomb + 0x28)) == 3 && (bomb = *GHIDRA_CAST<int *>((bomb + 0x410)), bomb != 0)))) {
|
||||
shotSpeed = *GHIDRA_CAST<float *>((bomb + 0x1464));
|
||||
goto LAB_009f9c09;
|
||||
}
|
||||
}
|
||||
shotSpeed = 1.0;
|
||||
LAB_009f9c09:
|
||||
if ((param_2 == 0) || (0.0 < *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0xc)))) || *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0xc)))) == 0.0))
|
||||
{
|
||||
if ((char)isLudovico == '\0') {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (((char)isLudovico == '\0') || (*GHIDRA_CAST<int *>((in_ECX + 1)) == 0)) {
|
||||
if (param_3 != 0) {
|
||||
return;
|
||||
}
|
||||
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0xc)))) = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x10))));
|
||||
Weapon::SetBlinkTime(in_ECX,7 - GHIDRA_INT((*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x10)))) * -0.45)),bomb);
|
||||
aimDirection.x = param_1->x;
|
||||
aimDirection.y = param_1->y;
|
||||
isAxisAligned = Weapon::IsAxisAligned(in_ECX);
|
||||
if (isAxisAligned == 0) {
|
||||
fVar2 = sqrtf(aimDirection.x * aimDirection.x + aimDirection.y * aimDirection.y);
|
||||
if (0.0 < fVar2) {
|
||||
aimDirection.x = aimDirection.x * (1.0 / fVar2);
|
||||
aimDirection.y = aimDirection.y * (1.0 / fVar2);
|
||||
}
|
||||
}
|
||||
else {
|
||||
vecResult = Vector::ToCardinal(&scratchVec,&aimDirection);
|
||||
aimDirection.x = vecResult->x;
|
||||
aimDirection.y = vecResult->y;
|
||||
}
|
||||
Weapon::TriggerTearEffects(in_ECX,&aimDirection,1);
|
||||
fVar2 = aimDirection.x * 12.0;
|
||||
fVar3 = aimDirection.y * 12.0;
|
||||
vecResult = Weapon::get_tear_movement_inheritance(in_ECX,&scratchVec,&g_vectorZero);
|
||||
fVar2 = fVar2 + vecResult->x;
|
||||
fVar3 = fVar3 + vecResult->y;
|
||||
Weapon::GetMultiShotParams(in_ECX,&multiShotParams,unusedArg);
|
||||
local_78.x = -fVar3;
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(uStack_24)) + 0x1))) != '\0') {
|
||||
local_80.x = -fVar2 * shotSpeed;
|
||||
local_80.y = local_78.x * shotSpeed;
|
||||
Weapon::fire_bomb(in_ECX,&spawnPos,&local_80);
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(uStack_24)) + 0x2))) != '\0') {
|
||||
local_78.x = local_78.x * shotSpeed;
|
||||
local_78.y = fVar2 * shotSpeed;
|
||||
Weapon::fire_bomb(in_ECX,&spawnPos,&local_78);
|
||||
local_78.x = fVar3 * shotSpeed;
|
||||
local_78.y = -fVar2 * shotSpeed;
|
||||
Weapon::fire_bomb(in_ECX,&spawnPos,&local_78);
|
||||
}
|
||||
for (randomShotsLeft = local_20 & 0xffff; randomShotsLeft != 0;
|
||||
randomShotsLeft = randomShotsLeft - 1) {
|
||||
rngResult = Random();
|
||||
local_78.x = (float)((double)GHIDRA_INT(rngResult) +
|
||||
__uint_to_double_fixup[-(GHIDRA_INT(rngResult) >> 0x1f)]) * 2.3283064e-10 * 360.0
|
||||
* 0.017453292;
|
||||
local_80.x = cos(local_78.x);
|
||||
fVar1 = sin(local_78.x);
|
||||
scratchVec.x = (local_80.x * fVar2 - fVar1 * fVar3) * shotSpeed;
|
||||
scratchVec.y = (fVar1 * fVar2 + local_80.x * fVar3) * shotSpeed;
|
||||
Weapon::fire_bomb(in_ECX,&spawnPos,&scratchVec);
|
||||
}
|
||||
local_80.x = 0.0;
|
||||
local_78.x = 0.0;
|
||||
if ((short)multiShotParams < 1) {
|
||||
return;
|
||||
}
|
||||
do {
|
||||
shotDirection.y = fVar3;
|
||||
shotDirection.x = fVar2;
|
||||
Entity_Player::GetMultiShotPositionVelocity
|
||||
(&multiShotOffset,GHIDRA_INT(local_78.x),5,shotDirection,shotSpeed,(short)multiShotParams,
|
||||
fStack_3c,fStack_38,fStack_34,local_30,iStack_2c,fStack_28,(uint8_t)uStack_24,
|
||||
(short)local_20);
|
||||
scratchVec.x = spawnPos.x + multiShotOffset.x;
|
||||
scratchVec.y = spawnPos.y + multiShotOffset.y;
|
||||
firedBomb = Weapon::fire_bomb(in_ECX,&scratchVec,&multiShotVelocity);
|
||||
if ((char)isLudovico != '\0') {
|
||||
if (GHIDRA_CAST<Entity_Bomb *>(local_80.x) == GHIDRA_CAST<Entity_Bomb *>(0x0)) {
|
||||
oldLink = *GHIDRA_CAST<Entity_Bomb **>((in_ECX + 1));
|
||||
linkSlot = GHIDRA_CAST<Entity_Bomb *>((in_ECX + 1));
|
||||
if (oldLink != firedBomb) goto LAB_009f9fda;
|
||||
}
|
||||
else {
|
||||
oldLink = *GHIDRA_CAST<Entity_Bomb **>((GHIDRA_CAST<char *>(local_80.x) + 0x3c0));
|
||||
linkSlot = GHIDRA_CAST<Entity_Bomb *>((GHIDRA_INT(local_80.x) + 0x3c0));
|
||||
LAB_009f9fda:
|
||||
if (oldLink != GHIDRA_CAST<Entity_Bomb *>(0x0)) {
|
||||
local_80.x = (float)linkSlot;
|
||||
msvc::multiset<unsigned_int>::erase(&local_80);
|
||||
}
|
||||
*GHIDRA_CAST<Entity_Bomb **>(linkSlot) = firedBomb;
|
||||
if (firedBomb != GHIDRA_CAST<Entity_Bomb *>(0x0)) {
|
||||
msvc::multiset<unsigned_int>::insert(linkSlot);
|
||||
}
|
||||
}
|
||||
in_ECX = weapon;
|
||||
local_80.x = (float)firedBomb;
|
||||
}
|
||||
local_78.x = (float)(GHIDRA_INT(local_78.x) + 1);
|
||||
if (GHIDRA_INT((short)multiShotParams) <= GHIDRA_INT(local_78.x)) {
|
||||
return;
|
||||
}
|
||||
} while( true );
|
||||
}
|
||||
bomb = *GHIDRA_CAST<int *>((in_ECX + 1));
|
||||
if ((bomb != 0) && (param_2 != 0)) {
|
||||
aimDirection.x = param_1->x;
|
||||
aimDirection.y = param_1->y;
|
||||
if (1.0 < aimDirection.x * aimDirection.x + aimDirection.y * aimDirection.y) {
|
||||
(GHIDRA_CAST<Vector *>((&aimDirection)))->Vector::Normalize();
|
||||
}
|
||||
fVar2 = *GHIDRA_CAST<float *>((bomb + 0x36c));
|
||||
fVar3 = aimDirection.x * shotSpeed * 1.2 * 0.5;
|
||||
fVar1 = aimDirection.y * shotSpeed * 1.2 * 0.5;
|
||||
if (fVar2 != 0.0) {
|
||||
*GHIDRA_CAST<float *>((bomb + 0x360)) =
|
||||
(fVar3 * *GHIDRA_CAST<float *>((bomb + 0x39c))) / fVar2 + *GHIDRA_CAST<float *>((bomb + 0x360));
|
||||
*GHIDRA_CAST<float *>((bomb + 0x364)) =
|
||||
(fVar1 * *GHIDRA_CAST<float *>((bomb + 0x39c))) / fVar2 + *GHIDRA_CAST<float *>((bomb + 0x364));
|
||||
bomb = *GHIDRA_CAST<int *>((in_ECX + 1));
|
||||
}
|
||||
for (bomb = *GHIDRA_CAST<int *>((bomb + 0x3c0)); bomb != 0; bomb = *GHIDRA_CAST<int *>((bomb + 0x3c0))) {
|
||||
fVar2 = *GHIDRA_CAST<float *>((bomb + 0x36c));
|
||||
if (fVar2 != 0.0) {
|
||||
*GHIDRA_CAST<float *>((bomb + 0x360)) =
|
||||
(*GHIDRA_CAST<float *>((bomb + 0x39c)) * fVar3) / fVar2 + *GHIDRA_CAST<float *>((bomb + 0x360));
|
||||
*GHIDRA_CAST<float *>((bomb + 0x364)) =
|
||||
(fVar1 * *GHIDRA_CAST<float *>((bomb + 0x39c))) / fVar2 + *GHIDRA_CAST<float *>((bomb + 0x364));
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// 009fa190
|
||||
Entity * Weapon_Bombs::GetFocusEntity()
|
||||
{
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x34)) >> 4 & 1) == 0) {
|
||||
return GHIDRA_CAST<Entity *>(0x0);
|
||||
}
|
||||
return *GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(this) + 0x44));
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user