Curation round 14: console and Lua API, effects, lasers, enemies, eleven bosses, the Depths and Mom, status effects, the playable characters

This commit is contained in:
shweet committed 2026-11-20 19:04:41 -05:00
1 parent 8ae02a8422
commit 6e3da161fc
138 files changed
+16754 -6825

No files matched your search

-355
View File
@@ -1,355 +0,0 @@
#include "classes.h"
// 00945190
void Capsule::constructor(Vector *position, Vector *multiplier, float rotation, float size)
{
float fVar1;
float fVar2;
float axisX;
float cosRotation;
float fVar3;
float scaledY;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) = 0;
*GHIDRA_CAST<uint32_t *>(this) = 0;
*GHIDRA_CAST<uint32_t *>((this + 4)) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[6])) + 0x2)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) = 0;
*GHIDRA_CAST<uint32_t *>((this + 8)) = 0;
*GHIDRA_CAST<float *>(this) = position->x;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) = position->y;
fVar3 = size * multiplier->x;
scaledY = size * multiplier->y;
axisX = sin(rotation * 0.017453292);
cosRotation = cos(rotation * 0.017453292);
if (fVar3 <= scaledY) {
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[10])) + 0x2)))) = fVar3;
*GHIDRA_CAST<float *>((this + 0xc)) = scaledY - fVar3;
*GHIDRA_CAST<float *>((this + 8)) = axisX;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) = cosRotation;
fVar3 = cosRotation;
cosRotation = axisX;
}
else {
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[10])) + 0x2)))) = scaledY;
*GHIDRA_CAST<float *>((this + 0xc)) = fVar3 - scaledY;
*GHIDRA_CAST<float *>((this + 8)) = cosRotation;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) = axisX;
fVar3 = axisX;
}
fVar1 = *GHIDRA_CAST<float *>((this + 0xc));
fVar2 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1))));
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)))) = *GHIDRA_CAST<float *>(this) - fVar1 * cosRotation;
*GHIDRA_CAST<float *>((this + 4)) = fVar2 - fVar1 * fVar3;
fVar3 = *GHIDRA_CAST<float *>((this + 0xc));
fVar1 = *GHIDRA_CAST<float *>((this + 8));
fVar2 = *GHIDRA_CAST<float *>(this);
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[6])) + 0x2)))) = fVar3 * *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1))))
;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)))) = fVar3 * fVar1 + fVar2;
return;
}
// 009452e0
void Capsule::constructor2(Vector *Position, Vector *TargetPosition, float size)
{
float length;
float dirX;
float dy;
float dirY;
float dx;
*GHIDRA_CAST<uint32_t *>((this + 4)) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[6])) + 0x2)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)))) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) = 0;
*GHIDRA_CAST<uint32_t *>(this) = 0;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) = 0;
*GHIDRA_CAST<uint32_t *>((this + 8)) = 0;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)))) = Position->x;
*GHIDRA_CAST<float *>((this + 4)) = Position->y;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)))) = TargetPosition->x;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[6])) + 0x2)))) = TargetPosition->y;
dy = TargetPosition->y - Position->y;
dx = TargetPosition->x - Position->x;
length = sqrtf(dy * dy + dx * dx);
if (length <= 0.0) {
dirX = g_vectorZero.x;
dirY = g_vectorZero.y;
}
else {
dirY = dy / length;
dirX = dx / length;
}
*GHIDRA_CAST<float *>((this + 8)) = dirX;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) = dirY;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[10])) + 0x2)))) = size;
*GHIDRA_CAST<float *>((this + 0xc)) = length * 0.5;
length = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[6])) + 0x2))));
*GHIDRA_CAST<float *>(this) = (*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)))) + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2))))) * 0.5;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) = (*GHIDRA_CAST<float *>((this + 4)) + length) * 0.5;
return;
}
// 00945400
void Capsule::get_bounding_box(Vector *outMin, Vector *outMax)
{
float extentY;
float extentX;
float centerY;
extentX = ABS(*GHIDRA_CAST<float *>((this + 8))) * *GHIDRA_CAST<float *>((this + 0xc)) + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[10])) + 0x2))));
extentY = ABS(*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1))))) * *GHIDRA_CAST<float *>((this + 0xc)) +
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[10])) + 0x2))));
centerY = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1))));
outMin->x = *GHIDRA_CAST<float *>(this) - extentX;
outMin->y = centerY - extentY;
centerY = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1))));
outMax->x = extentX + *GHIDRA_CAST<float *>(this);
outMax->y = extentY + centerY;
return;
}
// 00945470
uint8_t Capsule::Collide(Capsule *a, Capsule *b, Vector *outHit)
{
float *closestToA;
float *closestToB;
float fVar1;
float fVar2;
float fVar3;
double dVar4;
float fVar5;
float fVar6;
float fVar7;
float separationY;
float separationX;
float aStartY;
float aEndX;
float bStartY;
float aEndY;
float bEndY;
float bEndX;
float local_3c;
float bStartToAY;
float aStartX;
float local_30;
float local_2c;
float aLengthSq;
float local_24;
float bEndToAY;
Capsule *local_1c;
float aEndToBX;
float aEndToBY;
float aStartToBX;
float aStartToBY;
separationY = g_vectorZero.y;
separationX = g_vectorZero.x;
aEndX = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(a[5])) + 0x1))));
aStartX = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(a[2])) + 0x2))));
aStartY = *GHIDRA_CAST<float *>((a + 4));
fVar1 = aEndX - aStartX;
bEndX = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[5])) + 0x1))));
local_3c = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[2])) + 0x2))));
aEndY = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(a[6])) + 0x2))));
fVar2 = aEndY - aStartY;
bEndY = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[6])) + 0x2))));
bStartY = *GHIDRA_CAST<float *>((b + 4));
fVar5 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[6])) + 0x2)))) - bStartY;
fVar7 = (bEndX - local_3c) * fVar2 - fVar5 * fVar1;
local_1c = a;
if (fVar7 != 0.0) {
fVar3 = ((aStartX - local_3c) * fVar2 + (*GHIDRA_CAST<float *>((b + 4)) - aStartY) * fVar1) / fVar7;
local_2c = ((aStartY - *GHIDRA_CAST<float *>((b + 4))) * (bEndX - local_3c) + (local_3c - aStartX) * fVar5) /
-fVar7;
bEndX = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[5])) + 0x1))));
if ((((0.0 <= fVar3) && (fVar3 <= 1.0)) && (aEndX = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(a[5])) + 0x1)))), 0.0 <= local_2c))
&& (local_2c <= 1.0)) {
fVar7 = fVar2 * fVar3 + aStartY;
fVar3 = fVar1 * fVar3 + aStartX;
separationX = fVar3 - aStartX;
separationY = fVar7 - aStartY;
fVar5 = fVar3 - aEndX;
fVar1 = separationY * separationY + separationX * separationX;
local_30 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(a[10])) + 0x2))));
local_24 = fVar7 - *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(a[6])) + 0x2))));
fVar2 = local_24 * local_24 + fVar5 * fVar5;
if (fVar2 < fVar1) {
fVar1 = fVar2;
separationY = local_24;
separationX = fVar5;
}
fVar6 = local_3c - fVar3;
fVar5 = *GHIDRA_CAST<float *>((b + 4)) - fVar7;
fVar2 = fVar5 * fVar5 + fVar6 * fVar6;
if (fVar2 < fVar1) {
local_30 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[10])) + 0x2))));
fVar1 = fVar2;
separationY = fVar5;
separationX = fVar6;
}
fVar3 = bEndX - fVar3;
fVar7 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[6])) + 0x2)))) - fVar7;
fVar2 = fVar7 * fVar7 + fVar3 * fVar3;
if (fVar2 < fVar1) {
local_30 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[10])) + 0x2))));
fVar1 = fVar2;
separationY = fVar7;
separationX = fVar3;
}
dVar4 = (double)fVar1;
if (dVar4 < 0.0) {
libm_sse2_sqrt_precise();
}
else {
dVar4 = SQRT(dVar4);
}
local_24 = (float)dVar4 + local_30;
fVar1 = sqrtf(separationY * separationY + separationX * separationX);
if (0.0 < fVar1) {
separationX = separationX * (1.0 / fVar1);
separationY = separationY * (1.0 / fVar1);
}
separationX = separationX * local_24;
separationY = separationY * local_24;
aStartX = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(a[2])) + 0x2))));
aEndX = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(a[5])) + 0x1))));
local_3c = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[2])) + 0x2))));
bEndX = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[5])) + 0x1))));
}
}
if ((separationX != g_vectorZero.x) || (separationY != g_vectorZero.y)) {
aEndY = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(a[6])) + 0x2)))) + separationY;
aEndX = aEndX + separationX;
local_3c = local_3c + separationX;
bEndX = bEndX + separationX;
aStartY = aStartY + separationY;
aStartX = aStartX + separationX;
bEndY = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[6])) + 0x2)))) + separationY;
bStartY = *GHIDRA_CAST<float *>((b + 4)) + separationY;
}
local_30 = bEndX - local_3c;
aStartToBY = aStartY - bStartY;
fVar2 = bEndY - bStartY;
fVar1 = fVar2 * fVar2 + local_30 * local_30;
aStartToBX = aStartX - local_3c;
if ((0.0001 <= ABS(fVar1)) &&
(fVar5 = (fVar2 * aStartToBY + local_30 * aStartToBX) / fVar1, 0.0 <= fVar5)) {
if (fVar5 < 1.0) {
aStartToBX = aStartX - (local_30 * fVar5 + local_3c);
aStartToBY = aStartY - (fVar2 * fVar5 + bStartY);
}
else {
aStartToBY = aStartY - bEndY;
aStartToBX = aStartX - bEndX;
}
}
aStartToBX = -aStartToBX;
aEndToBX = aEndX - local_3c;
aEndToBY = aEndY - bStartY;
aStartToBY = -aStartToBY;
if ((0.0001 <= ABS(fVar1)) &&
(fVar1 = (fVar2 * aEndToBY + local_30 * aEndToBX) / fVar1, 0.0 <= fVar1)) {
if (fVar1 < 1.0) {
aEndToBX = aEndX - (local_30 * fVar1 + local_3c);
aEndToBY = aEndY - (fVar2 * fVar1 + bStartY);
}
else {
aEndToBX = aEndX - bEndX;
aEndToBY = aEndY - bEndY;
}
}
aEndToBX = -aEndToBX;
fVar1 = aEndY - aStartY;
aEndToBY = -aEndToBY;
fVar2 = aEndX - aStartX;
aLengthSq = fVar1 * fVar1 + fVar2 * fVar2;
local_2c = ABS(aLengthSq);
fVar5 = local_3c - aStartX;
bStartToAY = bStartY - aStartY;
if ((0.0001 <= local_2c) &&
(fVar7 = (fVar5 * fVar2 + fVar1 * bStartToAY) / aLengthSq, 0.0 <= fVar7)) {
if (fVar7 < 1.0) {
fVar5 = local_3c - (fVar2 * fVar7 + aStartX);
bStartToAY = bStartY - (fVar1 * fVar7 + aStartY);
}
else {
fVar5 = local_3c - aEndX;
bStartToAY = bStartY - aEndY;
}
}
local_24 = bEndX - aStartX;
bEndToAY = bEndY - aStartY;
local_3c = fVar5;
if (0.0001 <= local_2c) {
local_30 = fVar2 * local_24 + fVar1 * bEndToAY;
fVar7 = local_30 / aLengthSq;
if (0.0 <= fVar7) {
if (fVar7 < 1.0) {
local_24 = bEndX - (fVar2 * fVar7 + aStartX);
bEndToAY = bEndY - (fVar1 * fVar7 + aStartY);
}
else {
local_24 = bEndX - aEndX;
bEndToAY = bEndY - aEndY;
}
}
}
fVar1 = aStartToBY * aStartToBY + aStartToBX * aStartToBX;
fVar7 = aEndToBY * aEndToBY + aEndToBX * aEndToBX;
fVar5 = bStartToAY * bStartToAY + fVar5 * fVar5;
fVar2 = bEndToAY * bEndToAY + local_24 * local_24;
closestToB = &aStartToBX;
if (fVar7 <= fVar1) {
closestToB = &aEndToBX;
fVar1 = fVar7;
}
closestToA = &local_24;
if (fVar5 < fVar2) {
closestToA = &local_3c;
fVar2 = fVar5;
}
if (fVar2 <= fVar1) {
if (outHit == GHIDRA_CAST<Vector *>(0x0)) goto LAB_00945cf6;
outHit->x = *closestToA;
fVar1 = closestToA[1];
}
else {
fVar2 = fVar1;
if (outHit == GHIDRA_CAST<Vector *>(0x0)) goto LAB_00945cf6;
outHit->x = *closestToB;
fVar1 = closestToB[1];
}
outHit->y = fVar1;
LAB_00945cf6:
local_1c = GHIDRA_CAST<Capsule *>((*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1c[10])) + 0x2)))) + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(b[10])) + 0x2))))));
if ((float)local_1c * (float)local_1c <= fVar2) {
return 0;
}
if (fVar2 == 0.0) {
if (outHit != GHIDRA_CAST<Vector *>(0x0)) {
outHit->x = separationX;
outHit->y = separationY;
return 1;
}
}
else {
dVar4 = (double)fVar2;
if (dVar4 < 0.0) {
libm_sse2_sqrt_precise();
}
else {
dVar4 = SQRT(dVar4);
}
fVar1 = (float)dVar4;
if (outHit != GHIDRA_CAST<Vector *>(0x0)) {
outHit->x = (outHit->x / fVar1) * ((float)local_1c - fVar1) + separationX;
outHit->y = (outHit->y / fVar1) * ((float)local_1c - fVar1) + separationY;
}
}
return 1;
}
+12 -221
View File
@@ -138,6 +138,7 @@ struct BackdropConfig;
struct BackwardsStageDesc;
struct BeamRenderer;
struct BeastArena;
struct BezierPoint;
struct BitSet128;
struct BlendMode;
struct BombCostumeRule;
@@ -148,6 +149,7 @@ struct BossPool;
struct BossPoolState;
struct BossPool_Entry;
struct BossPool_Pool;
struct BrimstoneShot;
struct BufferedStream;
struct ButterBeanFart;
struct CLIENT_ID;
@@ -205,8 +207,10 @@ struct DeathmatchTypeSumo;
struct DeathmatchTypeSwordFight;
struct DeathmatchTypeVenom;
struct DebugRenderer;
struct DeliriousBoss;
struct DestinationQuad;
struct Devolve;
struct EffectBehaviour;
struct EmoteWheel;
struct Entity;
struct EntityConfig;
@@ -259,6 +263,7 @@ struct File;
struct FileSymbolInfo;
struct FileSystem;
struct FireEmber;
struct FollowingEffect;
struct Font;
struct FontCharBlock;
struct FontGlyph;
@@ -372,6 +377,8 @@ struct KerningPair;
struct KeyConfigs;
struct LRoomAreaDesc;
struct LRoomTileDesc;
struct LaserShot;
struct LaserVolley;
struct LayerAnimation;
struct LayerData;
struct LayerState;
@@ -380,6 +387,7 @@ struct Level;
struct LevelGenerator;
struct LevelGenerator_Room;
struct LightSpawn;
struct LineCheck;
struct Lobby;
struct LobbyList;
struct LobbyLocalhost;
@@ -513,6 +521,7 @@ struct ProjectileShooter;
struct Quad;
struct QueueItemData;
struct RNG;
struct RadiusDamage;
struct RailManager;
struct RainSpawner;
struct RebirthSaveData;
@@ -555,6 +564,7 @@ struct SavedRoom;
struct ScoreRecord;
struct ScoreSheet;
struct Seeds;
struct SegmentProjection;
struct Shader;
struct Shape;
struct SharedPtr;
@@ -566,6 +576,7 @@ struct ShopOffer;
struct ShopRestock;
struct SimpleString;
struct Size;
struct SkinColors;
struct SmeltedTrinket;
struct SoundEffect;
struct SoundEffects;
@@ -595,6 +606,7 @@ struct StringTableCategory;
struct SubtitleCue;
struct TargetSearch;
struct TearParams;
struct TechLaserShot;
struct TemporaryEffect;
struct TemporaryEffects;
struct TextMeasure;
@@ -1019,14 +1031,6 @@ LAYOUT32(offsetof(CLIENT_ID, UniqueProcess) == 0x0);
LAYOUT32(offsetof(CLIENT_ID, UniqueThread) == 0x4);
LAYOUT32(sizeof(CLIENT_ID) == 0x8);
struct Capsule {
void constructor(Vector *position, Vector *multiplier, float rotation, float size); // 00945190
void constructor2(Vector *Position, Vector *TargetPosition, float size); // 009452e0
void get_bounding_box(Vector *outMin, Vector *outMax); // 00945400
static uint8_t Collide(Capsule *a, Capsule *b, Vector *outHit); // 00945470
};
struct Card {
uint8_t IsCard(); // 005b1530
uint8_t IsRune(); // 005b1550
@@ -1549,36 +1553,6 @@ struct HallucinationOverlay {
};
struct HomingLaser {
HomingLaser * operator_assign(HomingLaser *other); // 0085e000
HomingLaser(); // 0099c290
void build_bezier_path(int homingType, Entity *source); // 0099c790
void compute_axis_bezier_handles(); // 0099dca0
void compute_bezier_handles(float tension); // 0099e160
void CalculateSamples(float param_2); // 0099e360
void apply_sine_offset(float amplitude, float phase); // 0099ec00
void build_curl_path(float radius); // 0099fa60
static void build_wiggle_bezier(); // 0099fed0
uint8_t clip_samples_to_grid(Vector *pos, int gridCollisionClass); // 009a0520
void truncate_samples_at_player(); // 009a0740
void truncate_samples_at_obstacle(Vector *positionOffset); // 009a0c50
void remove_collinear_samples(float tolerance); // 009a0de0
void apply_sample_wiggle(float amplitude, float phase); // 009a0fa0
static uint32_t find_targets(float *param_1, float *param_2, int param_3, uint32_t param_4, Entity *param_5); // 009a12b0
uint8_t truncate_samples(float maxLength); // 009a1520
uint8_t _pad_0x0[0x1c];
std_vector _samples;
std_vector _nonOptimizedSamples;
uint8_t _pad_0x34[0x10];
float _totalLength;
uint8_t _bezier[0x4]; // std_vector
};
LAYOUT32(offsetof(HomingLaser, _samples) == 0x1c);
LAYOUT32(offsetof(HomingLaser, _nonOptimizedSamples) == 0x28);
LAYOUT32(offsetof(HomingLaser, _totalLength) == 0x44);
LAYOUT32(offsetof(HomingLaser, _bezier) == 0x48);
struct ImageBase {
uint8_t set_size(uint32_t width, uint32_t height, int unused); // 00a12d50
};
@@ -4089,34 +4063,6 @@ struct Weapon_Bone {
};
LAYOUT32(sizeof(Weapon_Bone) == 0x60);
struct Weapon_Brimstone {
virtual ~Weapon_Brimstone(); // 009f9a20 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 *direction, uint8_t isShooting, uint8_t isInterpolated); // 009ff360 slot 3
virtual void Reset(); // 009f3480 slot 4 Weapon::Reset
virtual void ClearReferences(); // 00a02790 slot 5
virtual long double GetMaxCharge(); // 00a00f30 slot 6
virtual long double GetChargeBarAmount(); // 009f4150 slot 7 Weapon::GetChargeBarAmount
virtual void vfunc_8(); // 009f3130 slot 8 Weapon::GetMaxCharge
virtual uint32_t GetFocusEntity(); // 00a02870 slot 9
virtual uint32_t GetMainEntity(); // 009f3160 slot 10
virtual void guard_check_icall(); // 0040c200 slot 11 ::guard_check_icall
virtual int GetMarkedTargetVariant(); // 00a02800 slot 12
virtual uint8_t CanShutDoors(); // 005ccc00 slot 13 Entity::CanShutDoors
virtual uint8_t CanTriggerCursedEyeTeleport(); // 005ccc00 slot 14 Entity::CanShutDoors
virtual uint8_t CanTriggerKidneyStone(); // 005ccc00 slot 15 Entity::CanShutDoors
virtual uint8_t CanOverrideForgottenThrow(); // 005ccc00 slot 16 Entity::CanShutDoors
void fire_c_section_fetuses(); // 00a00d10
void init_laser(Entity_Laser *laser); // 00a00f90
void fire(float Speed, uint8_t IgnoreStatusEffects); // 00a02890
uint8_t _pad_0x4[0x44];
uint8_t _mainLaser[0x4]; // EntityPtr
};
LAYOUT32(offsetof(Weapon_Brimstone, _mainLaser) == 0x48);
LAYOUT32(sizeof(Weapon_Brimstone) == 0x4c);
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
@@ -4187,30 +4133,6 @@ struct Weapon_Knife {
};
LAYOUT32(sizeof(Weapon_Knife) == 0x54);
struct Weapon_Laser {
virtual ~Weapon_Laser(); // 009f9930 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); // 00a052b0 slot 3
virtual void Reset(); // 00a052a0 slot 4
virtual void ClearReferences(); // 00a063b0 slot 5
virtual long double GetMaxCharge(); // 00a06870 slot 6
virtual long double GetChargeBarAmount(); // 009f4150 slot 7 Weapon::GetChargeBarAmount
virtual void vfunc_8(); // 009f3130 slot 8 Weapon::GetMaxCharge
virtual Entity * GetFocusEntity(); // 009fa190 slot 9 Weapon_Bombs::GetFocusEntity
virtual Entity * GetMainEntity(); // 009f3150 slot 10 Weapon::GetMainEntity
virtual void guard_check_icall(); // 0040c200 slot 11 ::guard_check_icall
virtual int GetMarkedTargetVariant(); // 00a02800 slot 12 Weapon_Brimstone::GetMarkedTargetVariant
virtual uint8_t CanShutDoors(); // 005ccc00 slot 13 Entity::CanShutDoors
virtual uint8_t CanTriggerCursedEyeTeleport(); // 00a068e0 slot 14
virtual uint8_t SupportsTractorBeam(); // 00a05060 slot 15 Weapon_Knife::SupportsTractorBeam
virtual void vfunc_16(); // 005ccc00 slot 16 Entity::CanShutDoors
static void init_laser(Weapon *weapon, Entity_Laser *laser); // 00a06330
uint8_t _pad_0x4[0x4c];
};
LAYOUT32(sizeof(Weapon_Laser) == 0x50);
struct Weapon_Ludovico {
virtual ~Weapon_Ludovico(); // 009f9880 slot 0 Weapon_Bombs::Free
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
@@ -4304,29 +4226,6 @@ struct Weapon_SpiritSword {
};
LAYOUT32(sizeof(Weapon_SpiritSword) == 0x50);
struct Weapon_TechX {
virtual ~Weapon_TechX(); // 009f3260 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 *direction, uint8_t isShooting, uint8_t isInterpolated); // 00a0d9c0 slot 3
virtual void Reset(); // 009f3480 slot 4 Weapon::Reset
virtual void ClearReferences(); // 009f3320 slot 5 Weapon::ClearReferences
virtual float GetMaxCharge(); // 00a0e260 slot 6
virtual long double GetChargeBarAmount(); // 009f4150 slot 7 Weapon::GetChargeBarAmount
virtual void vfunc_8(); // 009f3130 slot 8 Weapon::GetMaxCharge
virtual uint32_t GetFocusEntity(); // 009f3140 slot 9 Weapon::GetFocusEntity
virtual void vfunc_10(); // 009f3140 slot 10 Weapon::GetFocusEntity
virtual void guard_check_icall(); // 0040c200 slot 11 ::guard_check_icall
virtual uint32_t GetMarkedTargetVariant(); // 00a08cd0 slot 12 Weapon_MonstrosLung::GetMarkedTargetVariant
virtual uint8_t CanTakeDamageFromTearEffects(); // 00709c30 slot 13 GridEntity::CanTakeDamageFromTearEffects
virtual uint8_t CanShutDoors(); // 005ccc00 slot 14 Entity::CanShutDoors
virtual void vfunc_15(); // 00709c30 slot 15 GridEntity::CanTakeDamageFromTearEffects
virtual void vfunc_16(); // 005ccc00 slot 16 Entity::CanShutDoors
uint8_t _pad_0x4[0x40];
};
LAYOUT32(sizeof(Weapon_TechX) == 0x44);
struct Weapon_UmbilicalWhip {
virtual ~Weapon_UmbilicalWhip(); // 009f9880 slot 0 Weapon_Bombs::Free
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
@@ -6226,8 +6125,6 @@ void FUN_004cdce0(); // 004cdce0
uint32_t FUN_004ce0f0(); // 004ce0f0
void FUN_004cf0f0(uint8_t param_1); // 004cf0f0
void FUN_004cf380(int *param_1); // 004cf380
void FUN_004d2f50(int param_1); // 004d2f50
void FUN_004d2fd0(int param_1); // 004d2fd0
void FUN_004d3050(); // 004d3050
void FUN_004d3230(uint32_t *param_1); // 004d3230
void FUN_004d4210(int param_1, char param_2); // 004d4210
@@ -6512,7 +6409,6 @@ void FUN_00631a00(float *param_1, uint32_t param_2, float *param_3); // 00631a0
void familiar_wisp_pick_tear_color(RNG *rng, int *outVariant, BitSet128 *outFlags); // 00633990
void FUN_00638e20(); // 00638e20
void spawn_blue_spider(Vector *position, Entity *spawner, Vector *target); // 00638e30
Entity * spawn_dip_at(int subType, Vector *position, Entity *spawner, Vector *targetPosition); // 006393a0
void FUN_006395e0(Vector *param_1, int *param_2, int param_3, int param_4, int param_5, float param_6, int param_7, int param_8, Entity *param_9, int param_10); // 006395e0
void FUN_0063b240(); // 0063b240
void FUN_0063c060(int param_1); // 0063c060
@@ -6597,7 +6493,6 @@ uint8_t FUN_0067efd0(); // 0067efd0
float random_float(); // 0067efe0
uint32_t FUN_0067f030(); // 0067f030
void FUN_0067f2e0(); // 0067f2e0
void * string_split(void *outTokens, std_string *text, uint8_t delimiter); // 0067f420
uint8_t string_to_bool(void *self); // 0067f600
void ResolveRelativePath(uint8_t *anmPath, uint8_t *relPath, uint8_t *outPath); // 0067f670
void ExtractAngleBracketText(); // 0067fdf0
@@ -6606,9 +6501,6 @@ void FUN_00682260(); // 00682260
void shader_stack_push(int shaderIndex); // 00682280
void FUN_00682350(); // 00682350
float normalize_angle_degrees(float angle); // 00682740
float angle_difference(float from, float to); // 006827a0
void FUN_00682a20(); // 00682a20
float approach_angle(float current, float target, float maxStep); // 00682a50
uint32_t checksum_stream(void *stream, int offset, int trailingSize); // 00683580
void FUN_00683680(); // 00683680
void pop_render_target(); // 006836c0
@@ -6753,7 +6645,6 @@ void FUN_006a7ec0(); // 006a7ec0
void FUN_006a80d0(); // 006a80d0
void FUN_006a8180(uint32_t param_1); // 006a8180
void FUN_006a8210(int param_1); // 006a8210
uint32_t FUN_006ae7a0(); // 006ae7a0
void FUN_006b5de0(); // 006b5de0
void FUN_006b5f40(); // 006b5f40
void play_sound_with_fart_seed(int soundId, float volume, int frameDelay, uint8_t isLoop, float pitch); // 006b6470
@@ -6859,7 +6750,6 @@ void FUN_00709850(); // 00709850
void FUN_007098c0(); // 007098c0
void FUN_00709930(); // 00709930
int FUN_00709bc0(); // 00709bc0
bool FUN_0070be60(); // 0070be60
uint8_t FUN_0070bf60(); // 0070bf60
uint8_t is_grid_type_floor_special(int gridType); // 0070bf80
void FUN_0070bfa0(int param_1, int param_2, uint32_t param_3, float param_4); // 0070bfa0
@@ -7030,7 +6920,6 @@ void FUN_007c2e80(); // 007c2e80
uint8_t FUN_007c7b10(uint32_t param_1, int param_2); // 007c7b10
char FUN_007c9080(); // 007c9080
void FUN_007cb4f0(); // 007cb4f0
void FUN_007cdee0(); // 007cdee0
uint8_t teleport_to_random_room_of_types(Entity_Player *player, void *roomTypes, uint8_t isPreferUnvisited); // 007cdf30
void FUN_007cf940(); // 007cf940
long double FUN_007cf9a0(float *param_1, KColor *param_2, uint32_t param_3); // 007cf9a0
@@ -7147,7 +7036,6 @@ 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
float get_angel_room_chance(); // 007f96f0
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
@@ -7167,7 +7055,6 @@ void FUN_00828890(uint32_t *param_1, float *param_2); // 00828890
void FUN_00828a70(void *param_1, int param_2); // 00828a70
void FUN_00828ab0(); // 00828ab0
void FUN_00828b10(); // 00828b10
uint8_t * FUN_008295c0(); // 008295c0
void FUN_00829920(uint32_t *param_1); // 00829920
uint32_t FUN_008299e0(short *param_1, short *param_2); // 008299e0
void FUN_0082a920(uint32_t *param_1); // 0082a920
@@ -7339,7 +7226,6 @@ uint8_t * Catch_00864e6d(); // 00864e6d
uint32_t Catch_0086504e(); // 0086504e
uint32_t Catch_0086512e(); // 0086512e
uint8_t * Catch_008655b7(); // 008655b7
char * FUN_00865660(char *param_1, uint32_t *param_2); // 00865660
void FUN_00865aad(); // 00865aad
void FUN_00865c61(); // 00865c61
uint32_t Catch_00866364(); // 00866364
@@ -8039,37 +7925,6 @@ void FUN_00896690(uint32_t param_1, uint32_t param_2); // 00896690
void FUN_008966f0(uint32_t param_1, uint32_t param_2); // 008966f0
void FUN_00896750(uint32_t param_1, uint32_t param_2); // 00896750
void FUN_008967b0(); // 008967b0
void FUN_00896820(float param_1); // 00896820
uint32_t * FUN_008968b0(uint32_t param_1, uint32_t param_2, int param_3); // 008968b0
void FUN_008969f0(float param_1); // 008969f0
void FUN_00896a60(float param_1); // 00896a60
void FUN_00896ac0(uint8_t param_1); // 00896ac0
uint32_t * FUN_00896ae0(uint32_t param_1, uint32_t param_2, int param_3); // 00896ae0
void FUN_00896c20(uint8_t param_1); // 00896c20
void FUN_00896c50(float param_1); // 00896c50
void FUN_00896cb0(int param_1); // 00896cb0
uint32_t * FUN_00896cf0(uint32_t param_1, uint32_t param_2, int param_3); // 00896cf0
void FUN_00896e30(int param_1); // 00896e30
void FUN_00896e80(int param_1); // 00896e80
void FUN_00896ed0(float param_1); // 00896ed0
void FUN_00896f30(uint8_t param_1); // 00896f30
void FUN_00896f60(uint8_t param_1); // 00896f60
void FUN_00896f90(uint8_t param_1); // 00896f90
void FUN_00896fc0(uint8_t param_1); // 00896fc0
void FUN_00896ff0(uint32_t param_1); // 00896ff0
void FUN_00897020(uint8_t param_1); // 00897020
void FUN_00897050(uint8_t param_1); // 00897050
void FUN_00897090(int param_1); // 00897090
void FUN_008970e0(uint32_t param_1); // 008970e0
uint32_t * FUN_00897120(uint32_t param_1, uint32_t param_2, int param_3); // 00897120
void FUN_00897260(uint32_t param_1); // 00897260
void FUN_008972b0(uint32_t param_1); // 008972b0
void FUN_008972e0(uint8_t param_1); // 008972e0
void FUN_00897310(uint8_t param_1); // 00897310
void FUN_00897340(uint8_t param_1); // 00897340
void FUN_00897370(uint8_t param_1); // 00897370
void FUN_008973a0(int param_1); // 008973a0
uint32_t * FUN_008973e0(); // 008973e0
uint32_t FUN_00897500(); // 00897500
void FUN_008975b0(uint32_t param_1, uint32_t param_2); // 008975b0
void FUN_00897620(int param_1); // 00897620
@@ -9450,8 +9305,6 @@ 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
int FUN_0096ce70(); // 0096ce70
uint32_t FUN_0096cf40(); // 0096cf40
void FUN_0096d120(int *param_1); // 0096d120
uint32_t FUN_0097e7c0(); // 0097e7c0
void pressure_plate_kill_enemies_timer_callback(int *param_1); // 00983f30
@@ -9469,9 +9322,7 @@ 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
void segment_project_point(Vector *point, Vector *start, Vector *end, float *outT); // 0099c340
float bezier_closest_point(Vector *point, void *segmentStart, void *segmentEnd, float *outT); // 0099c430
void laser_sample_trace_entities(void *entity, int unused); // 0099f2c0
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
@@ -9659,15 +9510,12 @@ Entity_Tear * fire_fetus_tear(void *self, Vector *position, Vector *velocity, in
uint32_t * FUN_009f9080(); // 009f9080
uint32_t * FUN_009f90f0(); // 009f90f0
uint32_t * FUN_009f9170(); // 009f9170
uint32_t * FUN_009f91f0(); // 009f91f0
uint32_t * FUN_009f92d0(); // 009f92d0
uint32_t * FUN_009f9350(); // 009f9350
uint32_t * FUN_009f93d0(); // 009f93d0
uint32_t * FUN_009f9440(); // 009f9440
uint32_t * FUN_009f94c0(); // 009f94c0
uint32_t * FUN_009f9540(); // 009f9540
uint32_t * FUN_009f95d0(); // 009f95d0
uint32_t * FUN_009f9640(); // 009f9640
uint32_t * FUN_009f96c0(); // 009f96c0
uint32_t * FUN_009f9740(); // 009f9740
uint32_t * FUN_00a06940(void *param_1, uint32_t *param_2); // 00a06940
@@ -21370,19 +21218,13 @@ void wisp_mine_crafter_update(Entity_Familiar *wisp); // 0043d850
Entity_Laser * sprinkler_fire_laser(Entity_Familiar *familiar, float angle, float distance); // 0063acf0
void fly_head_pathfind_move(Entity_Familiar *familiar); // 0063d570
}
namespace Input {
uint8_t IsMouseBtnPressed(int button); // 0086fdb0
Vector * GetMousePosition(Vector *outPosition, uint8_t isGameCoords); // 0086fe50
}
namespace Isaac {
void SwapANM2(ANM2 *left, ANM2 *right); // 00407ae0
ItemConfig * GetItemConfig(); // 0042ca00
void SpawnLocust(Entity_Player *player, int collectibleType, Vector *pos); // 005b35c0
int Random(int Max); // 0067f010
Vector * GetAxisAlignedUnitVectorFromDir(Vector *outVector, int direction); // 0067f1d0
Vector * GetRandomPickupVelocity(Vector *outVelocity, Vector *position, uint32_t pickupVelType, RNG *rng); // 006ee440
Vector * GetCollectibleSpawnPosition(Vector *outPosition, Vector *target); // 006eeaa0
void ScreenToWorld(float *param_1, float *param_2); // 00870160
void Shutdown(); // 009ab700
}
namespace ItemInfo {
@@ -21430,23 +21272,16 @@ void ENTITY_LIL_BLUB(Entity_NPC *npc); // 00450da0
void ENTITY_BIG_HORN_grab_bomb(Entity_NPC *npc); // 00452eb0
void ENTITY_BIG_HORN(Entity_NPC *npc); // 00453140
void ENTITY_FLY_isaac_spawned(Entity_NPC *npc); // 004568d0
void ENTITY_FAMINE(Entity_NPC *npc); // 00456c40
void ENTITY_PESTILENCE(Entity_NPC *npc); // 00457840
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
void ENTITY_ADVERSARY(Entity_NPC *npc); // 0045e050
void ENTITY_MEGA_MAW(Entity_NPC *npc); // 0045ef20
void ENTITY_GATE(Entity_NPC *npc); // 0045fc00
void ENTITY_MEGA_FATTY(Entity_NPC *npc); // 00460780
void ENTITY_MASK_OF_INFAMY(Entity_NPC *npc); // 00461fc0
float ENTITY_ISAAC(Entity_NPC *npc); // 00463100
void ENTITY_FISTULA_BIG(Entity_NPC *npc); // 00466600
void ENTITY_LOKI(Entity_NPC *npc); // 00467670
void ENTITY_DADDYLONGLEGS(Entity_NPC *npc); // 00468180
void ENTITY_WIDOW(Entity_NPC *npc); // 0046fbe0
void ENTITY_BLASTOCYST_BIG(Entity_NPC *npc); // 00472c40
void ENTITY_SLOTH(Entity_NPC *npc); // 004741f0
void ENTITY_LUST(Entity_NPC *npc); // 00474e00
@@ -21456,19 +21291,14 @@ void ENTITY_ENVY(Entity_NPC *npc); // 004760a0
void ENTITY_PIN(Entity_NPC *npc); // 00476860
void ENTITY_PRIDE(Entity_NPC *npc); // 00479d80
void ENTITY_CHUB(Entity_NPC *npc); // 0047a360
void ENTITY_GURDY(Entity_NPC *npc); // 0047c850
void ENTITY_PEEP(Entity_NPC *npc); // 0047d8a0
Entity_NPC * ENTITY_SATAN(Entity_NPC *npc); // 0047f640
void ENTITY_THE_HAUNT(Entity_NPC *npc); // 00481410
void ENTITY_THE_LAMB(Entity_NPC *npc); // 00483710
void ENTITY_MR_FRED(Entity_NPC *npc); // 00486db0
void ENTITY_CAGE(Entity_NPC *npc); // 004878a0
void ENTITY_POLYCEPHALUS(Entity_NPC *npc); // 00489ca0
void ENTITY_MAMA_GURDY(Entity_NPC *npc); // 0048ae30
void ENTITY_BROWNIE(Entity_NPC *npc); // 0048c3b0
void ENTITY_CORN_MINE(Entity_NPC *npc); // 0048ee30
void ENTITY_FORSAKEN(Entity_NPC *npc); // 0048f110
void ENTITY_PITFALL(Entity_NPC *npc); // 00492550
void ENTITY_RAG_MAN(Entity_NPC *npc); // 00493200
void ENTITY_RAG_MEGA(Entity_NPC *npc); // 00495610
void ENTITY_SISTERS_VIS(Entity_NPC *npc); // 00496fb0
@@ -21497,7 +21327,6 @@ void ENTITY_MEGA_SATAN(Entity_NPC *npc); // 004c8090
void ENTITY_MEGA_SATAN_hand(Entity_NPC *npc); // 004cca10
void ENTITY_MINECART(Entity_NPC *npc); // 004ce8a0
void ENTITY_MIN_MIN(Entity_NPC *npc); // 004cf690
void ENTITY_MOM(Entity_NPC *npc); // 004d1290
void ENTITY_MOMS_HEART(Entity_NPC *npc); // 004d48b0
void ENTITY_MOMS_HEART_mausoleum_death(Entity_NPC *npc); // 004d64f0
void ENTITY_SMALL_MAGGOT(Entity_NPC *npc); // 004d77b0
@@ -21507,7 +21336,6 @@ Entity_Effect * ENTITY_TWITCHY(Entity_NPC *npc); // 004db6a0
void ENTITY_SPIKEBALL(Entity_NPC *npc); // 004dc490
void ENTITY_UNBORN(Entity_NPC *npc); // 004dca90
void * ENTITY_GASBAG(Entity_NPC *npc); // 004dd7f0
void ENTITY_PUSTULE(Entity_NPC *npc); // 004dea40
void ENTITY_EVIS(Entity_NPC *npc); // 004df3f0
void ENTITY_GUTTED_FATTY(Entity_NPC *npc); // 004e0dd0
uint32_t ENTITY_GAPER_L2(Entity_NPC *npc); // 004e2b40
@@ -21547,19 +21375,14 @@ void ENTITY_BIG_BONY(Entity_NPC *npc); // 005041d0
void ENTITY_DUSTY_DEATHS_HEAD(Entity_NPC *npc); // 00504a40
void ENTITY_NECRO(Entity_NPC *npc); // 005052a0
void ENTITY_STONE_EYE(Entity_NPC *npc); // 00505d00
void ENTITY_CONSTANT_STONE_SHOOTER(Entity_NPC *npc); // 00506320
void ENTITY_ETERNALFLY(Entity_NPC *npc); // 0050a8a0
void ENTITY_KNIGHT(Entity_NPC *npc); // 005135d0
uint32_t * ENTITY_GUTS(Entity_NPC *npc); // 005153b0
void ENTITY_MRMAW(Entity_NPC *npc); // 00517de0
void ENTITY_SWARMER(Entity_NPC *npc); // 00518e20
void ENTITY_GURGLE(Entity_NPC *npc); // 0051aaa0
void ENTITY_MEMBRAIN(Entity_NPC *npc); // 0051c040
void ENTITY_HANGER(Entity_NPC *npc); // 0051cb30
void ENTITY_GURDY_JR(Entity_NPC *npc); // 0051d300
void ENTITY_URIEL(Entity_NPC *npc); // 0051e0f0
void ENTITY_HEART(Entity_NPC *npc); // 0051f2f0
void ENTITY_STONEHEAD(Entity_NPC *npc); // 00520c60
void ENTITY_POKY(Entity_NPC *npc); // 00521ab0
void ENTITY_LUMP(Entity_NPC *npc); // 00522430
void ENTITY_EYE(Entity_NPC *npc); // 00522ef0
@@ -21574,17 +21397,13 @@ void ENTITY_COD_WORM(Entity_NPC *npc); // 00531350
void ENTITY_MOBILE_HOST(Entity_NPC *npc); // 005321d0
void ENTITY_DEATHS_HEAD(Entity_NPC *npc); // 00532cf0
void ENTITY_MOMS_HAND(Entity_NPC *npc); // 00533b80
Entity * ENTITY_SQUIRT(Entity_NPC *npc); // 00535280
void ENTITY_SWINGER(Entity_NPC *npc); // 00536d00
void ENTITY_WIZOOB(Entity_NPC *npc); // 005374a0
void ENTITY_NERVE_ENDING(Entity_NPC *npc); // 00537e20
void ENTITY_SKINBALL(Entity_NPC *npc); // 005381c0
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
void ENTITY_FAT_BAT(Entity_NPC *npc); // 00540510
void ENTITY_DUKIE(Entity_NPC *npc); // 00541810
Entity_Effect * ENTITY_MEATBALL(Entity_NPC *npc); // 00541ce0
float ENTITY_BLISTER(Entity_NPC *npc); // 005430d0
float ENTITY_TARBOY(Entity_NPC *npc); // 005442a0
@@ -21675,34 +21494,6 @@ void render_items(float *param_1); // 008d4940
namespace OnlineStats {
void compute_awards(); // 004254b0
}
namespace Options {
long double MusicVolume(); // 00896810
long double SFXVolume(); // 008969e0
long double MapOpacity(); // 00896a50
uint32_t Fullscreen(); // 00896ab0
uint32_t Filter(); // 00896c10
long double Gamma(); // 00896c40
int DisplayPopups(); // 00896ca0
int CameraStyle(); // 00896e20
int ExtraHUDStyle(); // 00896e70
long double HUDOffset(); // 00896ec0
uint32_t FoundHUD(); // 00896f20
uint32_t RumbleEnabled(); // 00896f50
uint32_t ChargeBars(); // 00896f80
uint32_t BulletVisibility(); // 00896fb0
uint32_t VSync(); // 00896fe0
uint32_t PauseOnFocusLost(); // 00897010
uint32_t MouseControl(); // 00897040
int AnnouncerVoiceMode(); // 00897080
int MaxScale(); // 008970d0
int MaxRenderScale(); // 00897250
int ConsoleFont(); // 008972a0
uint32_t FadedConsoleDisplay(); // 008972d0
uint32_t SaveCommandHistory(); // 00897300
uint32_t UseBorderlessFullscreen(); // 00897330
uint32_t DebugConsoleEnabled(); // 00897360
int JacobEsauControls(); // 00897390
}
namespace RemovePlayerMessage {
void read(int param_1, int *param_2); // 009163b0
}
File diff suppressed because it is too large. Load diff
-165
View File
@@ -7458,171 +7458,6 @@ LAB_00548a4b:
return;
}
// 0054ccc0
void NpcHelper::bulb_player_collision(Entity_NPC *npc, Entity *collider)
{
EntityRef *sourceRef;
uint32_t uVar1;
int chargeChange;
Entity *effect;
uint32_t uVar2;
float proceduralIdx;
float fVar3;
Game *game;
bool bVar4;
float fVar5;
int itemConfig;
Vector local_3c;
Entity_NPC *npcLocal;
EntityRef damageSource;
Manager *manager;
npcLocal = npc;
if (npc->_variant == 6) {
if ((collider->_type == 1) || (collider->_type == 3)) {
damageSource._position.x = (npc->_pos).x;
damageSource._position.y = (npc->_pos).y;
damageSource._type = npc->_type;
damageSource._spawnerType = npc->_spawnerType;
damageSource._spawnerVariant = npc->_spawnerVariant;
damageSource._velocity.x = (npc->_velocity).x;
damageSource._velocity.y = (npc->_velocity).y;
damageSource._variant = 6;
local_3c.x = (float)GHIDRA_UINT(((npc->_flags & 0x100) != 0));
if ((npc->_flags & 0x20000000) == 0) {
uVar2 = 0;
}
else {
uVar2 = 2;
}
if ((npc->_flags & 0x40000000000000) == 0) {
uVar1 = 0;
}
else {
uVar1 = 4;
}
damageSource._flags = uVar1 | uVar2 | GHIDRA_UINT(local_3c.x);
damageSource._entity = npc;
(**(code **)(*GHIDRA_CAST<int *>(collider) + 0x20))(0x3f800000,0,0,&damageSource,0x1e);
}
else {
sourceRef = EntityRef::EntityRef(&damageSource);
(**(code **)(*GHIDRA_CAST<int *>(collider) + 0x20))(0x41200000,0,0,sourceRef,0x1e);
}
npc->_state = 6;
fVar5 = -(npc->_v1).x;
proceduralIdx = -(npc->_v1).y;
(npc->_v1).x = fVar5;
(npc->_v1).y = proceduralIdx;
npc->_stateFrame = 4;
fVar3 = (npc->_pos).y;
(npc->_targetPosition).x = fVar5 * 80.0 + (npc->_pos).x;
(npc->_targetPosition).y = proceduralIdx * 80.0 + fVar3;
fVar3 = (npc->_v1).y;
proceduralIdx = npc->_speedMultiplier;
(npc->_velocity).x = (npc->_v1).x * 16.0 * proceduralIdx + (npc->_velocity).x;
(npc->_velocity).y = fVar3 * 16.0 * proceduralIdx + (npc->_velocity).y;
return;
}
if ((collider == GHIDRA_CAST<Entity *>(0x0)) || (collider->_type != 1)) {
return;
}
npc->_state = 6;
proceduralIdx = -(npc->_v1).x;
fVar5 = -(npc->_v1).y;
npc->_stateFrame = 4;
(npc->_v1).x = proceduralIdx;
(npc->_v1).y = fVar5;
fVar3 = (npc->_pos).x;
(npc->_targetPosition).y = fVar5 * 80.0 + (npc->_pos).y;
(npc->_targetPosition).x = proceduralIdx * 80.0 + fVar3;
fVar3 = npc->_speedMultiplier;
(npc->_velocity).x = proceduralIdx * 16.0 * fVar3 + (npc->_velocity).x;
(npc->_velocity).y = fVar5 * 16.0 * fVar3 + (npc->_velocity).y;
Entity_Player::PlayExtraAnimation(GHIDRA_CAST<Entity_Player *>(collider),&DAT_00b1d3b0);
Entity_Player::ResetItemState(GHIDRA_CAST<Entity_Player *>(collider));
uVar2 = 0;
game = g_game;
do {
fVar3 = collider[5]._sprite._championColor._colorize[uVar2 * 8 + 1];
if (game == GHIDRA_CAST<Game *>(0x0)) {
if (-1 < GHIDRA_INT(fVar3)) goto LAB_0054cfd6;
LAB_0054d012:
itemConfig = 0;
}
else if (GHIDRA_INT(fVar3) < 0) {
proceduralIdx = (float)~GHIDRA_UINT(fVar3);
bVar4 = -1 < GHIDRA_INT(fVar3);
fVar3 = proceduralIdx;
if ((bVar4) ||
(GHIDRA_INT((game->_proceduralItemManager)._proceduralItems._end) -
GHIDRA_INT((game->_proceduralItemManager)._proceduralItems._begin) >> 2 <= GHIDRA_INT(proceduralIdx)))
goto LAB_0054d012;
itemConfig = **GHIDRA_CAST<int **>((GHIDRA_INT((game->_proceduralItemManager)._proceduralItems._begin) +
GHIDRA_INT(proceduralIdx) * 4));
}
else {
LAB_0054cfd6:
if (GHIDRA_INT((g_manager->_itemConfig)._collectibles._end) -
GHIDRA_INT((g_manager->_itemConfig)._collectibles._begin) >> 2 <= GHIDRA_INT(fVar3)) goto LAB_0054d012;
itemConfig = *GHIDRA_CAST<int *>((GHIDRA_INT((g_manager->_itemConfig)._collectibles._begin) + GHIDRA_INT(fVar3) * 4));
game = g_game;
}
if (uVar2 == 3) {
local_3c.x = 0.0;
}
else if (((uVar2 == 2) &&
((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(chargeChange)) + 0x0))) = collider[5]._valid, (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(chargeChange)) + 0x1))) = collider[5]._visible,
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(chargeChange)) + 0x2))) = collider[5]._exists, (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(chargeChange)) + 0x3))) = collider[5]._dead,
chargeChange == 0x244)) && (game->_challenge == 0x2c)) {
local_3c.x = 0.0;
}
else {
local_3c.x = (float)Entity_Player::GetCollectibleMaxCharge
(GHIDRA_CAST<Entity_Player *>(collider),
GHIDRA_INT(collider[5]._sprite._championColor._colorize)
[uVar2 * 8 + 1],
*GHIDRA_CAST<int *>((GHIDRA_INT((&collider[5]._sprite._championColor + 1)) +
uVar2 * 0x20 + 4)),GHIDRA_INT(fVar3));
game = g_game;
}
if (((itemConfig != 0) && (0 < GHIDRA_INT(local_3c.x))) &&
((uVar2 < 4 && (0 < GHIDRA_INT(collider[5]._sprite._championColor._colorize[uVar2 * 8 + 3]))))) {
chargeChange = Entity_Player::GetActiveMaxCharge(GHIDRA_CAST<Entity_Player *>(collider),uVar2);
if (chargeChange == 1) {
chargeChange = -1000;
}
else if (GHIDRA_INT(local_3c.x) < 0xd) {
chargeChange = -2;
}
else {
chargeChange = GHIDRA_INT(((uint64_t)((int64_t)GHIDRA_INT(local_3c.x) * 0x55555555) >> 0x20)) -
GHIDRA_INT(local_3c.x);
chargeChange = (chargeChange >> 1) - (chargeChange >> 0x1f);
}
Entity_Player::AddActiveCharge(GHIDRA_CAST<Entity_Player *>(collider),chargeChange,uVar2,0,0,0);
HUD::FlashChargeBar(&g_game->_hud,GHIDRA_CAST<Entity_Player *>(collider),uVar2);
manager = g_manager;
local_3c.x = 6.9084e-43;
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_3c));
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_3c.x),1.0,2,0,1.0,0.0);
uVar2 = Random();
local_3c.x = (collider->_pos).x;
local_3c.y = (collider->_pos).y;
effect = Game::SpawnEx(g_game,1000,0x31,&local_3c,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),3,uVar2,0);
(effect->_sprite)._offset.x = 0.0;
(effect->_sprite)._offset.y = -24.0;
effect->_renderDepthOffset = 1.0;
npcLocal->_projectileCooldown = npcLocal->_projectileCooldown + 1;
return;
}
uVar2 = uVar2 + 1;
if (3 < uVar2) {
return;
}
} while( true );
}
// 0054f670
void NpcHelper::needle_render(Entity_NPC *npc)
{
-180
View File
@@ -8237,10 +8237,6 @@ BitSet128 * BitSet128::operator_or(BitSet128 *outResult, BitSet128 *a, BitSet128
uint8_t BitSet128::IsZero() { generated_stub("BitSet128::IsZero 00592230"); }
void BossOverlay::update() { generated_stub("BossOverlay::update 004212c0"); }
void BossOverlay::play(int overlayType) { generated_stub("BossOverlay::play 004214b0"); }
void Capsule::constructor(Vector *position, Vector *multiplier, float rotation, float size) { generated_stub("Capsule::constructor 00945190"); }
void Capsule::constructor2(Vector *Position, Vector *TargetPosition, float size) { generated_stub("Capsule::constructor2 009452e0"); }
void Capsule::get_bounding_box(Vector *outMin, Vector *outMax) { generated_stub("Capsule::get_bounding_box 00945400"); }
uint8_t Capsule::Collide(Capsule *a, Capsule *b, Vector *outHit) { generated_stub("Capsule::Collide 00945470"); }
Color::Color() { generated_stub("Color::Color 00407170"); }
ColorMod * Color::operator_assign(ColorMod *other) { generated_stub("Color::operator_assign 004071c0"); }
float Color::R() { generated_stub("Color::R 00407240"); }
@@ -8389,22 +8385,6 @@ FriendEntry::~FriendEntry() { generated_stub("FriendEntry::~FriendEntry 008e1f30
void * GlitchedCollectibleGfx::constructor() { generated_stub("GlitchedCollectibleGfx::constructor 009dc6e0"); }
void GlitchedItemSet::recalculate() { generated_stub("GlitchedItemSet::recalculate 009e0500"); }
void HallucinationOverlay::Render(Vector *offset) { generated_stub("HallucinationOverlay::Render 00839550"); }
HomingLaser * HomingLaser::operator_assign(HomingLaser *other) { generated_stub("HomingLaser::operator_assign 0085e000"); }
HomingLaser::HomingLaser() { generated_stub("HomingLaser::HomingLaser 0099c290"); }
void HomingLaser::build_bezier_path(int homingType, Entity *source) { generated_stub("HomingLaser::build_bezier_path 0099c790"); }
void HomingLaser::compute_axis_bezier_handles() { generated_stub("HomingLaser::compute_axis_bezier_handles 0099dca0"); }
void HomingLaser::compute_bezier_handles(float tension) { generated_stub("HomingLaser::compute_bezier_handles 0099e160"); }
void HomingLaser::CalculateSamples(float param_2) { generated_stub("HomingLaser::CalculateSamples 0099e360"); }
void HomingLaser::apply_sine_offset(float amplitude, float phase) { generated_stub("HomingLaser::apply_sine_offset 0099ec00"); }
void HomingLaser::build_curl_path(float radius) { generated_stub("HomingLaser::build_curl_path 0099fa60"); }
void HomingLaser::build_wiggle_bezier() { generated_stub("HomingLaser::build_wiggle_bezier 0099fed0"); }
uint8_t HomingLaser::clip_samples_to_grid(Vector *pos, int gridCollisionClass) { generated_stub("HomingLaser::clip_samples_to_grid 009a0520"); }
void HomingLaser::truncate_samples_at_player() { generated_stub("HomingLaser::truncate_samples_at_player 009a0740"); }
void HomingLaser::truncate_samples_at_obstacle(Vector *positionOffset) { generated_stub("HomingLaser::truncate_samples_at_obstacle 009a0c50"); }
void HomingLaser::remove_collinear_samples(float tolerance) { generated_stub("HomingLaser::remove_collinear_samples 009a0de0"); }
void HomingLaser::apply_sample_wiggle(float amplitude, float phase) { generated_stub("HomingLaser::apply_sample_wiggle 009a0fa0"); }
uint32_t HomingLaser::find_targets(float *param_1, float *param_2, int param_3, uint32_t param_4, Entity *param_5) { generated_stub("HomingLaser::find_targets 009a12b0"); }
uint8_t HomingLaser::truncate_samples(float maxLength) { generated_stub("HomingLaser::truncate_samples 009a1520"); }
void * InputManager::GetDeviceByPlayerEntity(Entity_Player *player) { generated_stub("InputManager::GetDeviceByPlayerEntity 0090ac70"); }
int InputManager::FirstLocalDeviceID() { generated_stub("InputManager::FirstLocalDeviceID 0090aeb0"); }
float InputManager::GetActionValue(int action, int controllerIndex, Entity *entity, int unused) { generated_stub("InputManager::GetActionValue 009562d0"); }
@@ -9296,7 +9276,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::bulb_player_collision(Entity_NPC *npc, Entity *collider) { generated_stub("NpcHelper::bulb_player_collision 0054ccc0"); }
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"); }
@@ -9475,26 +9454,6 @@ uint8_t Weapon_Bone::CanTriggerCursedEyeTeleport() { generated_stub("Weapon_Bone
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_Brimstone::~Weapon_Brimstone() { generated_stub("Weapon_Brimstone::~Weapon_Brimstone 009f9a20"); }
void Weapon_Brimstone::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_Brimstone::Init 009f34d0"); }
void Weapon_Brimstone::Update(char param_2) { generated_stub("Weapon_Brimstone::Update 009f34f0"); }
void Weapon_Brimstone::Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated) { generated_stub("Weapon_Brimstone::Fire 009ff360"); }
void Weapon_Brimstone::Reset() { generated_stub("Weapon_Brimstone::Reset 009f3480"); }
void Weapon_Brimstone::ClearReferences() { generated_stub("Weapon_Brimstone::ClearReferences 00a02790"); }
long double Weapon_Brimstone::GetMaxCharge() { generated_stub("Weapon_Brimstone::GetMaxCharge 00a00f30"); }
long double Weapon_Brimstone::GetChargeBarAmount() { generated_stub("Weapon_Brimstone::GetChargeBarAmount 009f4150"); }
void Weapon_Brimstone::vfunc_8() { generated_stub("Weapon_Brimstone::vfunc_8 009f3130"); }
uint32_t Weapon_Brimstone::GetFocusEntity() { generated_stub("Weapon_Brimstone::GetFocusEntity 00a02870"); }
uint32_t Weapon_Brimstone::GetMainEntity() { generated_stub("Weapon_Brimstone::GetMainEntity 009f3160"); }
void Weapon_Brimstone::guard_check_icall() { generated_stub("Weapon_Brimstone::guard_check_icall 0040c200"); }
int Weapon_Brimstone::GetMarkedTargetVariant() { generated_stub("Weapon_Brimstone::GetMarkedTargetVariant 00a02800"); }
uint8_t Weapon_Brimstone::CanShutDoors() { generated_stub("Weapon_Brimstone::CanShutDoors 005ccc00"); }
uint8_t Weapon_Brimstone::CanTriggerCursedEyeTeleport() { generated_stub("Weapon_Brimstone::CanTriggerCursedEyeTeleport 005ccc00"); }
uint8_t Weapon_Brimstone::CanTriggerKidneyStone() { generated_stub("Weapon_Brimstone::CanTriggerKidneyStone 005ccc00"); }
uint8_t Weapon_Brimstone::CanOverrideForgottenThrow() { generated_stub("Weapon_Brimstone::CanOverrideForgottenThrow 005ccc00"); }
void Weapon_Brimstone::fire_c_section_fetuses() { generated_stub("Weapon_Brimstone::fire_c_section_fetuses 00a00d10"); }
void Weapon_Brimstone::init_laser(Entity_Laser *laser) { generated_stub("Weapon_Brimstone::init_laser 00a00f90"); }
void Weapon_Brimstone::fire(float Speed, uint8_t IgnoreStatusEffects) { generated_stub("Weapon_Brimstone::fire 00a02890"); }
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"); }
@@ -9547,24 +9506,6 @@ uint8_t Weapon_Knife::CanShutDoors() { generated_stub("Weapon_Knife::CanShutDoor
void Weapon_Knife::vfunc_15() { generated_stub("Weapon_Knife::vfunc_15 005ccc00"); }
void Weapon_Knife::vfunc_16() { generated_stub("Weapon_Knife::vfunc_16 005ccc00"); }
void Weapon_Knife::init_knife(Entity_Knife *knife) { generated_stub("Weapon_Knife::init_knife 00a05070"); }
Weapon_Laser::~Weapon_Laser() { generated_stub("Weapon_Laser::~Weapon_Laser 009f9930"); }
void Weapon_Laser::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_Laser::Init 009f34d0"); }
void Weapon_Laser::Update(char param_2) { generated_stub("Weapon_Laser::Update 009f34f0"); }
void Weapon_Laser::Fire(Vector *param_1, uint8_t param_2, uint8_t param_3) { generated_stub("Weapon_Laser::Fire 00a052b0"); }
void Weapon_Laser::Reset() { generated_stub("Weapon_Laser::Reset 00a052a0"); }
void Weapon_Laser::ClearReferences() { generated_stub("Weapon_Laser::ClearReferences 00a063b0"); }
long double Weapon_Laser::GetMaxCharge() { generated_stub("Weapon_Laser::GetMaxCharge 00a06870"); }
long double Weapon_Laser::GetChargeBarAmount() { generated_stub("Weapon_Laser::GetChargeBarAmount 009f4150"); }
void Weapon_Laser::vfunc_8() { generated_stub("Weapon_Laser::vfunc_8 009f3130"); }
Entity * Weapon_Laser::GetFocusEntity() { generated_stub("Weapon_Laser::GetFocusEntity 009fa190"); }
Entity * Weapon_Laser::GetMainEntity() { generated_stub("Weapon_Laser::GetMainEntity 009f3150"); }
void Weapon_Laser::guard_check_icall() { generated_stub("Weapon_Laser::guard_check_icall 0040c200"); }
int Weapon_Laser::GetMarkedTargetVariant() { generated_stub("Weapon_Laser::GetMarkedTargetVariant 00a02800"); }
uint8_t Weapon_Laser::CanShutDoors() { generated_stub("Weapon_Laser::CanShutDoors 005ccc00"); }
uint8_t Weapon_Laser::CanTriggerCursedEyeTeleport() { generated_stub("Weapon_Laser::CanTriggerCursedEyeTeleport 00a068e0"); }
uint8_t Weapon_Laser::SupportsTractorBeam() { generated_stub("Weapon_Laser::SupportsTractorBeam 00a05060"); }
void Weapon_Laser::vfunc_16() { generated_stub("Weapon_Laser::vfunc_16 005ccc00"); }
void Weapon_Laser::init_laser(Weapon *weapon, Entity_Laser *laser) { generated_stub("Weapon_Laser::init_laser 00a06330"); }
Weapon_Ludovico::~Weapon_Ludovico() { generated_stub("Weapon_Ludovico::~Weapon_Ludovico 009f9880"); }
void Weapon_Ludovico::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_Ludovico::Init 009f34d0"); }
void Weapon_Ludovico::Update(char param_2) { generated_stub("Weapon_Ludovico::Update 009f34f0"); }
@@ -9634,23 +9575,6 @@ uint8_t Weapon_SpiritSword::CanShutDoors() { generated_stub("Weapon_SpiritSword:
void Weapon_SpiritSword::vfunc_14() { generated_stub("Weapon_SpiritSword::vfunc_14 005ccc00"); }
void Weapon_SpiritSword::vfunc_15() { generated_stub("Weapon_SpiritSword::vfunc_15 005ccc00"); }
void Weapon_SpiritSword::vfunc_16() { generated_stub("Weapon_SpiritSword::vfunc_16 005ccc00"); }
Weapon_TechX::~Weapon_TechX() { generated_stub("Weapon_TechX::~Weapon_TechX 009f3260"); }
void Weapon_TechX::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_TechX::Init 009f34d0"); }
void Weapon_TechX::Update(char param_2) { generated_stub("Weapon_TechX::Update 009f34f0"); }
void Weapon_TechX::Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated) { generated_stub("Weapon_TechX::Fire 00a0d9c0"); }
void Weapon_TechX::Reset() { generated_stub("Weapon_TechX::Reset 009f3480"); }
void Weapon_TechX::ClearReferences() { generated_stub("Weapon_TechX::ClearReferences 009f3320"); }
float Weapon_TechX::GetMaxCharge() { generated_stub("Weapon_TechX::GetMaxCharge 00a0e260"); }
long double Weapon_TechX::GetChargeBarAmount() { generated_stub("Weapon_TechX::GetChargeBarAmount 009f4150"); }
void Weapon_TechX::vfunc_8() { generated_stub("Weapon_TechX::vfunc_8 009f3130"); }
uint32_t Weapon_TechX::GetFocusEntity() { generated_stub("Weapon_TechX::GetFocusEntity 009f3140"); }
void Weapon_TechX::vfunc_10() { generated_stub("Weapon_TechX::vfunc_10 009f3140"); }
void Weapon_TechX::guard_check_icall() { generated_stub("Weapon_TechX::guard_check_icall 0040c200"); }
uint32_t Weapon_TechX::GetMarkedTargetVariant() { generated_stub("Weapon_TechX::GetMarkedTargetVariant 00a08cd0"); }
uint8_t Weapon_TechX::CanTakeDamageFromTearEffects() { generated_stub("Weapon_TechX::CanTakeDamageFromTearEffects 00709c30"); }
uint8_t Weapon_TechX::CanShutDoors() { generated_stub("Weapon_TechX::CanShutDoors 005ccc00"); }
void Weapon_TechX::vfunc_15() { generated_stub("Weapon_TechX::vfunc_15 00709c30"); }
void Weapon_TechX::vfunc_16() { generated_stub("Weapon_TechX::vfunc_16 005ccc00"); }
Weapon_UmbilicalWhip::~Weapon_UmbilicalWhip() { generated_stub("Weapon_UmbilicalWhip::~Weapon_UmbilicalWhip 009f9880"); }
void Weapon_UmbilicalWhip::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_UmbilicalWhip::Init 009f34d0"); }
void Weapon_UmbilicalWhip::Update(char param_2) { generated_stub("Weapon_UmbilicalWhip::Update 009f34f0"); }
@@ -10207,23 +10131,16 @@ void FUN_00456820() { generated_stub("FUN_00456820 00456820"); }
void FUN_00456830(uint32_t param_1, uint32_t param_2, uint32_t param_3, uint32_t param_4) { generated_stub("FUN_00456830 00456830"); }
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_FAMINE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FAMINE 00456c40"); }
void NpcAI::ENTITY_PESTILENCE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PESTILENCE 00457840"); }
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"); }
void NpcAI::ENTITY_ADVERSARY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ADVERSARY 0045e050"); }
void NpcAI::ENTITY_MEGA_MAW(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MEGA_MAW 0045ef20"); }
void NpcAI::ENTITY_GATE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GATE 0045fc00"); }
void NpcAI::ENTITY_MEGA_FATTY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MEGA_FATTY 00460780"); }
void NpcAI::ENTITY_MASK_OF_INFAMY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MASK_OF_INFAMY 00461fc0"); }
float NpcAI::ENTITY_ISAAC(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ISAAC 00463100"); }
void NpcAI::ENTITY_FISTULA_BIG(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FISTULA_BIG 00466600"); }
void NpcAI::ENTITY_LOKI(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_LOKI 00467670"); }
void NpcAI::ENTITY_DADDYLONGLEGS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DADDYLONGLEGS 00468180"); }
void NpcAI::ENTITY_WIDOW(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WIDOW 0046fbe0"); }
void NpcAI::ENTITY_BLASTOCYST_BIG(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BLASTOCYST_BIG 00472c40"); }
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"); }
@@ -10234,19 +10151,14 @@ void NpcAI::ENTITY_PIN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PIN 0047
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"); }
void NpcAI::ENTITY_CHUB(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_CHUB 0047a360"); }
void NpcAI::ENTITY_GURDY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GURDY 0047c850"); }
void NpcAI::ENTITY_PEEP(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PEEP 0047d8a0"); }
Entity_NPC * NpcAI::ENTITY_SATAN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SATAN 0047f640"); }
void NpcAI::ENTITY_THE_HAUNT(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_THE_HAUNT 00481410"); }
void NpcAI::ENTITY_THE_LAMB(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_THE_LAMB 00483710"); }
void NpcAI::ENTITY_MR_FRED(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MR_FRED 00486db0"); }
void NpcAI::ENTITY_CAGE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_CAGE 004878a0"); }
void NpcAI::ENTITY_POLYCEPHALUS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_POLYCEPHALUS 00489ca0"); }
void NpcAI::ENTITY_MAMA_GURDY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MAMA_GURDY 0048ae30"); }
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"); }
void NpcAI::ENTITY_FORSAKEN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FORSAKEN 0048f110"); }
void NpcAI::ENTITY_PITFALL(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PITFALL 00492550"); }
void NpcAI::ENTITY_RAG_MAN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_RAG_MAN 00493200"); }
void NpcAI::ENTITY_RAG_MEGA(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_RAG_MEGA 00495610"); }
void NpcAI::ENTITY_SISTERS_VIS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SISTERS_VIS 00496fb0"); }
@@ -10329,9 +10241,6 @@ void FUN_004cf0f0(uint8_t param_1) { generated_stub("FUN_004cf0f0 004cf0f0"); }
void msvc::set::clear() { generated_stub("msvc::set::clear 004cf350"); }
void FUN_004cf380(int *param_1) { generated_stub("FUN_004cf380 004cf380"); }
void NpcAI::ENTITY_MIN_MIN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MIN_MIN 004cf690"); }
void NpcAI::ENTITY_MOM(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MOM 004d1290"); }
void FUN_004d2f50(int param_1) { generated_stub("FUN_004d2f50 004d2f50"); }
void FUN_004d2fd0(int param_1) { generated_stub("FUN_004d2fd0 004d2fd0"); }
void FUN_004d3050() { generated_stub("FUN_004d3050 004d3050"); }
void FUN_004d3230(uint32_t *param_1) { generated_stub("FUN_004d3230 004d3230"); }
void FUN_004d4210(int param_1, char param_2) { generated_stub("FUN_004d4210 004d4210"); }
@@ -10361,7 +10270,6 @@ Entity_Effect * NpcAI::ENTITY_TWITCHY(Entity_NPC *npc) { generated_stub("NpcAI::
void NpcAI::ENTITY_SPIKEBALL(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SPIKEBALL 004dc490"); }
void NpcAI::ENTITY_UNBORN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_UNBORN 004dca90"); }
void * NpcAI::ENTITY_GASBAG(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GASBAG 004dd7f0"); }
void NpcAI::ENTITY_PUSTULE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PUSTULE 004dea40"); }
void NpcAI::ENTITY_EVIS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_EVIS 004df3f0"); }
void FUN_004e07a0(Vector *param_1) { generated_stub("FUN_004e07a0 004e07a0"); }
void NpcAI::ENTITY_GUTTED_FATTY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GUTTED_FATTY 004e0dd0"); }
@@ -10418,8 +10326,6 @@ void set_byte_0x101(void *self, uint8_t value) { generated_stub("set_byte_0x101
int FUN_00505ca0() { generated_stub("FUN_00505ca0 00505ca0"); }
uint32_t * FUN_00505ce0() { generated_stub("FUN_00505ce0 00505ce0"); }
void NpcAI::ENTITY_STONE_EYE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_STONE_EYE 00505d00"); }
void NpcAI::ENTITY_CONSTANT_STONE_SHOOTER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_CONSTANT_STONE_SHOOTER 00506320"); }
void NpcAI::ENTITY_ETERNALFLY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ETERNALFLY 0050a8a0"); }
void NpcAI::ENTITY_KNIGHT(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_KNIGHT 005135d0"); }
uint32_t FUN_00515010() { generated_stub("FUN_00515010 00515010"); }
Vector * room_grid_line_direction(Vector *outDirection, Vector *from, Vector *to) { generated_stub("room_grid_line_direction 005150b0"); }
@@ -10427,13 +10333,10 @@ long double FUN_00515290(Vector *param_1, uint32_t param_2, int param_3) { gener
uint32_t * NpcAI::ENTITY_GUTS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GUTS 005153b0"); }
void NpcAI::ENTITY_MRMAW(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MRMAW 00517de0"); }
void NpcAI::ENTITY_SWARMER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SWARMER 00518e20"); }
void NpcAI::ENTITY_GURGLE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GURGLE 0051aaa0"); }
void NpcAI::ENTITY_MEMBRAIN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MEMBRAIN 0051c040"); }
void NpcAI::ENTITY_HANGER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HANGER 0051cb30"); }
void NpcAI::ENTITY_GURDY_JR(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GURDY_JR 0051d300"); }
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_STONEHEAD(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_STONEHEAD 00520c60"); }
void NpcAI::ENTITY_POKY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_POKY 00521ab0"); }
void NpcAI::ENTITY_LUMP(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_LUMP 00522430"); }
void NpcAI::ENTITY_EYE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_EYE 00522ef0"); }
@@ -10448,17 +10351,13 @@ void NpcAI::ENTITY_COD_WORM(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_COD
void NpcAI::ENTITY_MOBILE_HOST(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MOBILE_HOST 005321d0"); }
void NpcAI::ENTITY_DEATHS_HEAD(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DEATHS_HEAD 00532cf0"); }
void NpcAI::ENTITY_MOMS_HAND(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MOMS_HAND 00533b80"); }
Entity * NpcAI::ENTITY_SQUIRT(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SQUIRT 00535280"); }
void NpcAI::ENTITY_SWINGER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SWINGER 00536d00"); }
void NpcAI::ENTITY_WIZOOB(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WIZOOB 005374a0"); }
void NpcAI::ENTITY_NERVE_ENDING(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_NERVE_ENDING 00537e20"); }
void NpcAI::ENTITY_SKINBALL(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SKINBALL 005381c0"); }
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"); }
void NpcAI::ENTITY_FAT_BAT(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FAT_BAT 00540510"); }
void NpcAI::ENTITY_DUKIE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DUKIE 00541810"); }
Entity_Effect * NpcAI::ENTITY_MEATBALL(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MEATBALL 00541ce0"); }
float NpcAI::ENTITY_BLISTER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BLISTER 005430d0"); }
float NpcAI::ENTITY_TARBOY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_TARBOY 005442a0"); }
@@ -10800,7 +10699,6 @@ void FamiliarAI::mystery_egg(Entity_Familiar *familiar) { generated_stub("Famili
void FamiliarAI::lil_spewer(Entity_Familiar *familiar) { generated_stub("FamiliarAI::lil_spewer 006384a0"); }
void FUN_00638e20() { generated_stub("FUN_00638e20 00638e20"); }
void spawn_blue_spider(Vector *position, Entity *spawner, Vector *target) { generated_stub("spawn_blue_spider 00638e30"); }
Entity * spawn_dip_at(int subType, Vector *position, Entity *spawner, Vector *targetPosition) { generated_stub("spawn_dip_at 006393a0"); }
void FUN_006395e0(Vector *param_1, int *param_2, int param_3, int param_4, int param_5, float param_6, int param_7, int param_8, Entity *param_9, int param_10) { generated_stub("FUN_006395e0 006395e0"); }
Entity_Laser * FamiliarHelper::sprinkler_fire_laser(Entity_Familiar *familiar, float angle, float distance) { generated_stub("FamiliarHelper::sprinkler_fire_laser 0063acf0"); }
Entity_Knife * FamiliarAI::sprinkler_spawn_knife(Entity_Familiar *familiar) { generated_stub("FamiliarAI::sprinkler_spawn_knife 0063b070"); }
@@ -10898,9 +10796,7 @@ uint8_t FUN_0067efd0() { generated_stub("FUN_0067efd0 0067efd0"); }
float random_float() { generated_stub("random_float 0067efe0"); }
int Isaac::Random(int Max) { generated_stub("Isaac::Random 0067f010"); }
uint32_t FUN_0067f030() { generated_stub("FUN_0067f030 0067f030"); }
Vector * Isaac::GetAxisAlignedUnitVectorFromDir(Vector *outVector, int direction) { generated_stub("Isaac::GetAxisAlignedUnitVectorFromDir 0067f1d0"); }
void FUN_0067f2e0() { generated_stub("FUN_0067f2e0 0067f2e0"); }
void * string_split(void *outTokens, std_string *text, uint8_t delimiter) { generated_stub("string_split 0067f420"); }
uint8_t string_to_bool(void *self) { generated_stub("string_to_bool 0067f600"); }
void ResolveRelativePath(uint8_t *anmPath, uint8_t *relPath, uint8_t *outPath) { generated_stub("ResolveRelativePath 0067f670"); }
void ExtractAngleBracketText() { generated_stub("ExtractAngleBracketText 0067fdf0"); }
@@ -10909,9 +10805,6 @@ void FUN_00682260() { generated_stub("FUN_00682260 00682260"); }
void shader_stack_push(int shaderIndex) { generated_stub("shader_stack_push 00682280"); }
void FUN_00682350() { generated_stub("FUN_00682350 00682350"); }
float normalize_angle_degrees(float angle) { generated_stub("normalize_angle_degrees 00682740"); }
float angle_difference(float from, float to) { generated_stub("angle_difference 006827a0"); }
void FUN_00682a20() { generated_stub("FUN_00682a20 00682a20"); }
float approach_angle(float current, float target, float maxStep) { generated_stub("approach_angle 00682a50"); }
uint32_t checksum_stream(void *stream, int offset, int trailingSize) { generated_stub("checksum_stream 00683580"); }
void FUN_00683680() { generated_stub("FUN_00683680 00683680"); }
void pop_render_target() { generated_stub("pop_render_target 006836c0"); }
@@ -11057,7 +10950,6 @@ void FUN_006a7ec0() { generated_stub("FUN_006a7ec0 006a7ec0"); }
void FUN_006a80d0() { generated_stub("FUN_006a80d0 006a80d0"); }
void FUN_006a8180(uint32_t param_1) { generated_stub("FUN_006a8180 006a8180"); }
void FUN_006a8210(int param_1) { generated_stub("FUN_006a8210 006a8210"); }
uint32_t FUN_006ae7a0() { generated_stub("FUN_006ae7a0 006ae7a0"); }
void FUN_006b5de0() { generated_stub("FUN_006b5de0 006b5de0"); }
void FUN_006b5f40() { generated_stub("FUN_006b5f40 006b5f40"); }
void play_sound_with_fart_seed(int soundId, float volume, int frameDelay, uint8_t isLoop, float pitch) { generated_stub("play_sound_with_fart_seed 006b6470"); }
@@ -11167,7 +11059,6 @@ void FUN_00709850() { generated_stub("FUN_00709850 00709850"); }
void FUN_007098c0() { generated_stub("FUN_007098c0 007098c0"); }
void FUN_00709930() { generated_stub("FUN_00709930 00709930"); }
int FUN_00709bc0() { generated_stub("FUN_00709bc0 00709bc0"); }
bool FUN_0070be60() { generated_stub("FUN_0070be60 0070be60"); }
uint8_t FUN_0070bf60() { generated_stub("FUN_0070bf60 0070bf60"); }
uint8_t is_grid_type_floor_special(int gridType) { generated_stub("is_grid_type_floor_special 0070bf80"); }
void FUN_0070bfa0(int param_1, int param_2, uint32_t param_3, float param_4) { generated_stub("FUN_0070bfa0 0070bfa0"); }
@@ -11338,7 +11229,6 @@ void FUN_007c2e80() { generated_stub("FUN_007c2e80 007c2e80"); }
uint8_t FUN_007c7b10(uint32_t param_1, int param_2) { generated_stub("FUN_007c7b10 007c7b10"); }
char FUN_007c9080() { generated_stub("FUN_007c9080 007c9080"); }
void FUN_007cb4f0() { generated_stub("FUN_007cb4f0 007cb4f0"); }
void FUN_007cdee0() { generated_stub("FUN_007cdee0 007cdee0"); }
uint8_t teleport_to_random_room_of_types(Entity_Player *player, void *roomTypes, uint8_t isPreferUnvisited) { generated_stub("teleport_to_random_room_of_types 007cdf30"); }
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"); }
@@ -11456,7 +11346,6 @@ void FUN_007e92e0(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_007e
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"); }
float get_angel_room_chance() { generated_stub("get_angel_room_chance 007f96f0"); }
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"); }
@@ -11476,7 +11365,6 @@ void FUN_00828890(uint32_t *param_1, float *param_2) { generated_stub("FUN_00828
void FUN_00828a70(void *param_1, int param_2) { generated_stub("FUN_00828a70 00828a70"); }
void FUN_00828ab0() { generated_stub("FUN_00828ab0 00828ab0"); }
void FUN_00828b10() { generated_stub("FUN_00828b10 00828b10"); }
uint8_t * FUN_008295c0() { generated_stub("FUN_008295c0 008295c0"); }
void FUN_00829920(uint32_t *param_1) { generated_stub("FUN_00829920 00829920"); }
uint32_t FUN_008299e0(short *param_1, short *param_2) { generated_stub("FUN_008299e0 008299e0"); }
void FUN_0082a920(uint32_t *param_1) { generated_stub("FUN_0082a920 0082a920"); }
@@ -11656,7 +11544,6 @@ uint8_t * Catch_00864e6d() { generated_stub("Catch_00864e6d 00864e6d"); }
uint32_t Catch_0086504e() { generated_stub("Catch_0086504e 0086504e"); }
uint32_t Catch_0086512e() { generated_stub("Catch_0086512e 0086512e"); }
uint8_t * Catch_008655b7() { generated_stub("Catch_008655b7 008655b7"); }
char * FUN_00865660(char *param_1, uint32_t *param_2) { generated_stub("FUN_00865660 00865660"); }
void FUN_00865aad() { generated_stub("FUN_00865aad 00865aad"); }
void FUN_00865c61() { generated_stub("FUN_00865c61 00865c61"); }
uint32_t Catch_00866364() { generated_stub("Catch_00866364 00866364"); }
@@ -11665,9 +11552,6 @@ void FUN_00866474() { generated_stub("FUN_00866474 00866474"); }
uint8_t * Catch_0086675e() { generated_stub("Catch_0086675e 0086675e"); }
uint32_t Catch_008668e0() { generated_stub("Catch_008668e0 008668e0"); }
void FUN_0086e4d0() { generated_stub("FUN_0086e4d0 0086e4d0"); }
uint8_t Input::IsMouseBtnPressed(int button) { generated_stub("Input::IsMouseBtnPressed 0086fdb0"); }
Vector * Input::GetMousePosition(Vector *outPosition, uint8_t isGameCoords) { generated_stub("Input::GetMousePosition 0086fe50"); }
void Isaac::ScreenToWorld(float *param_1, float *param_2) { generated_stub("Isaac::ScreenToWorld 00870160"); }
void FUN_00870f21() { generated_stub("FUN_00870f21 00870f21"); }
void FUN_00871eb0() { generated_stub("FUN_00871eb0 00871eb0"); }
void FUN_00871f70(int *param_1, uint32_t param_2) { generated_stub("FUN_00871f70 00871f70"); }
@@ -12359,63 +12243,6 @@ void FUN_00896690(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_0089
void FUN_008966f0(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_008966f0 008966f0"); }
void FUN_00896750(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_00896750 00896750"); }
void FUN_008967b0() { generated_stub("FUN_008967b0 008967b0"); }
long double Options::MusicVolume() { generated_stub("Options::MusicVolume 00896810"); }
void FUN_00896820(float param_1) { generated_stub("FUN_00896820 00896820"); }
uint32_t * FUN_008968b0(uint32_t param_1, uint32_t param_2, int param_3) { generated_stub("FUN_008968b0 008968b0"); }
long double Options::SFXVolume() { generated_stub("Options::SFXVolume 008969e0"); }
void FUN_008969f0(float param_1) { generated_stub("FUN_008969f0 008969f0"); }
long double Options::MapOpacity() { generated_stub("Options::MapOpacity 00896a50"); }
void FUN_00896a60(float param_1) { generated_stub("FUN_00896a60 00896a60"); }
uint32_t Options::Fullscreen() { generated_stub("Options::Fullscreen 00896ab0"); }
void FUN_00896ac0(uint8_t param_1) { generated_stub("FUN_00896ac0 00896ac0"); }
uint32_t * FUN_00896ae0(uint32_t param_1, uint32_t param_2, int param_3) { generated_stub("FUN_00896ae0 00896ae0"); }
uint32_t Options::Filter() { generated_stub("Options::Filter 00896c10"); }
void FUN_00896c20(uint8_t param_1) { generated_stub("FUN_00896c20 00896c20"); }
long double Options::Gamma() { generated_stub("Options::Gamma 00896c40"); }
void FUN_00896c50(float param_1) { generated_stub("FUN_00896c50 00896c50"); }
int Options::DisplayPopups() { generated_stub("Options::DisplayPopups 00896ca0"); }
void FUN_00896cb0(int param_1) { generated_stub("FUN_00896cb0 00896cb0"); }
uint32_t * FUN_00896cf0(uint32_t param_1, uint32_t param_2, int param_3) { generated_stub("FUN_00896cf0 00896cf0"); }
int Options::CameraStyle() { generated_stub("Options::CameraStyle 00896e20"); }
void FUN_00896e30(int param_1) { generated_stub("FUN_00896e30 00896e30"); }
int Options::ExtraHUDStyle() { generated_stub("Options::ExtraHUDStyle 00896e70"); }
void FUN_00896e80(int param_1) { generated_stub("FUN_00896e80 00896e80"); }
long double Options::HUDOffset() { generated_stub("Options::HUDOffset 00896ec0"); }
void FUN_00896ed0(float param_1) { generated_stub("FUN_00896ed0 00896ed0"); }
uint32_t Options::FoundHUD() { generated_stub("Options::FoundHUD 00896f20"); }
void FUN_00896f30(uint8_t param_1) { generated_stub("FUN_00896f30 00896f30"); }
uint32_t Options::RumbleEnabled() { generated_stub("Options::RumbleEnabled 00896f50"); }
void FUN_00896f60(uint8_t param_1) { generated_stub("FUN_00896f60 00896f60"); }
uint32_t Options::ChargeBars() { generated_stub("Options::ChargeBars 00896f80"); }
void FUN_00896f90(uint8_t param_1) { generated_stub("FUN_00896f90 00896f90"); }
uint32_t Options::BulletVisibility() { generated_stub("Options::BulletVisibility 00896fb0"); }
void FUN_00896fc0(uint8_t param_1) { generated_stub("FUN_00896fc0 00896fc0"); }
uint32_t Options::VSync() { generated_stub("Options::VSync 00896fe0"); }
void FUN_00896ff0(uint32_t param_1) { generated_stub("FUN_00896ff0 00896ff0"); }
uint32_t Options::PauseOnFocusLost() { generated_stub("Options::PauseOnFocusLost 00897010"); }
void FUN_00897020(uint8_t param_1) { generated_stub("FUN_00897020 00897020"); }
uint32_t Options::MouseControl() { generated_stub("Options::MouseControl 00897040"); }
void FUN_00897050(uint8_t param_1) { generated_stub("FUN_00897050 00897050"); }
int Options::AnnouncerVoiceMode() { generated_stub("Options::AnnouncerVoiceMode 00897080"); }
void FUN_00897090(int param_1) { generated_stub("FUN_00897090 00897090"); }
int Options::MaxScale() { generated_stub("Options::MaxScale 008970d0"); }
void FUN_008970e0(uint32_t param_1) { generated_stub("FUN_008970e0 008970e0"); }
uint32_t * FUN_00897120(uint32_t param_1, uint32_t param_2, int param_3) { generated_stub("FUN_00897120 00897120"); }
int Options::MaxRenderScale() { generated_stub("Options::MaxRenderScale 00897250"); }
void FUN_00897260(uint32_t param_1) { generated_stub("FUN_00897260 00897260"); }
int Options::ConsoleFont() { generated_stub("Options::ConsoleFont 008972a0"); }
void FUN_008972b0(uint32_t param_1) { generated_stub("FUN_008972b0 008972b0"); }
uint32_t Options::FadedConsoleDisplay() { generated_stub("Options::FadedConsoleDisplay 008972d0"); }
void FUN_008972e0(uint8_t param_1) { generated_stub("FUN_008972e0 008972e0"); }
uint32_t Options::SaveCommandHistory() { generated_stub("Options::SaveCommandHistory 00897300"); }
void FUN_00897310(uint8_t param_1) { generated_stub("FUN_00897310 00897310"); }
uint32_t Options::UseBorderlessFullscreen() { generated_stub("Options::UseBorderlessFullscreen 00897330"); }
void FUN_00897340(uint8_t param_1) { generated_stub("FUN_00897340 00897340"); }
uint32_t Options::DebugConsoleEnabled() { generated_stub("Options::DebugConsoleEnabled 00897360"); }
void FUN_00897370(uint8_t param_1) { generated_stub("FUN_00897370 00897370"); }
int Options::JacobEsauControls() { generated_stub("Options::JacobEsauControls 00897390"); }
void FUN_008973a0(int param_1) { generated_stub("FUN_008973a0 008973a0"); }
uint32_t * FUN_008973e0() { generated_stub("FUN_008973e0 008973e0"); }
uint32_t FUN_00897500() { generated_stub("FUN_00897500 00897500"); }
void FUN_008975b0(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_008975b0 008975b0"); }
void FUN_00897620(int param_1) { generated_stub("FUN_00897620 00897620"); }
@@ -13801,8 +13628,6 @@ 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"); }
int FUN_0096ce70() { generated_stub("FUN_0096ce70 0096ce70"); }
uint32_t FUN_0096cf40() { generated_stub("FUN_0096cf40 0096cf40"); }
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"); }
@@ -13820,9 +13645,7 @@ 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"); }
void segment_project_point(Vector *point, Vector *start, Vector *end, float *outT) { generated_stub("segment_project_point 0099c340"); }
float bezier_closest_point(Vector *point, void *segmentStart, void *segmentEnd, float *outT) { generated_stub("bezier_closest_point 0099c430"); }
void laser_sample_trace_entities(void *entity, int unused) { generated_stub("laser_sample_trace_entities 0099f2c0"); }
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"); }
@@ -14011,15 +13834,12 @@ Entity_Tear * fire_fetus_tear(void *self, Vector *position, Vector *velocity, in
uint32_t * FUN_009f9080() { generated_stub("FUN_009f9080 009f9080"); }
uint32_t * FUN_009f90f0() { generated_stub("FUN_009f90f0 009f90f0"); }
uint32_t * FUN_009f9170() { generated_stub("FUN_009f9170 009f9170"); }
uint32_t * FUN_009f91f0() { generated_stub("FUN_009f91f0 009f91f0"); }
uint32_t * FUN_009f92d0() { generated_stub("FUN_009f92d0 009f92d0"); }
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_009f94c0() { generated_stub("FUN_009f94c0 009f94c0"); }
uint32_t * FUN_009f9540() { generated_stub("FUN_009f9540 009f9540"); }
uint32_t * FUN_009f95d0() { generated_stub("FUN_009f95d0 009f95d0"); }
uint32_t * FUN_009f9640() { generated_stub("FUN_009f9640 009f9640"); }
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"); }
File diff suppressed because it is too large. Load diff
-733
View File
@@ -1,733 +0,0 @@
#include "classes.h"
// 00a052a0
void Weapon_Laser::Reset()
{
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x4c)) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x48)) = 0;
return;
}
// 00a052b0
void Weapon_Laser::Fire(Vector *param_1, uint8_t param_2, uint8_t param_3)
{
uint8_t isMarkedAim;
Entity_Player *pEVar2;
uint32_t isCursedEye;
Vector *vecResult;
int *ludoLaser;
Entity_Laser *newLudoLaser;
int iVar3;
char isMonstrosLung;
Weapon *in_ECX;
uint32_t unused;
int unused_00;
int unusedArg;
int unused_01;
int extraout_ECX;
int unused_02;
int unused_03;
int extraout_ECX_00;
int extraout_ECX_01;
int extraout_ECX_02;
int extraout_ECX_03;
int extraout_ECX_04;
Entity_Player *ownerPlayer;
int iVar4;
int extraout_ECX_05;
int extraout_ECX_06;
uint8_t bVar5;
int ownerEntity;
uint32_t isCursedEye;
long double maxCharge;
float fVar7;
float fVar8;
float fVar9;
double dVar10;
uint8_t isFiring;
float fStack_60;
uint8_t local_5c [8];
float fStack_54;
float local_50;
Vector local_4c;
Vector scratchVec;
Vector aimDirection;
Vector ownerPos;
uint8_t multiShotParams [29];
char isFireBackward;
char isFireSideways;
uint16_t uStack_c;
bool isChargeWeapon;
bool isFireReady;
bool isMarkedAim;
isFiring = param_2;
Weapon::Fire(in_ECX,param_1,param_2,param_3);
isCursedEye = in_ECX->_modifiers;
local_50 = (float)(isCursedEye >> 6 & 0xffffff01);
pEVar2 = *GHIDRA_CAST<Entity_Player **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4))));
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = pEVar2;
if (pEVar2 == GHIDRA_CAST<Entity_Player *>(0x0)) {
ownerPos.x = g_vectorZero.x;
ownerPos.y = g_vectorZero.y;
LAB_00a0534f:
ownerPlayer = GHIDRA_CAST<Entity_Player *>(0x0);
if ((pEVar2 == GHIDRA_CAST<Entity_Player *>(0x0)) || (pEVar2->_type != 1)) {
LAB_00a05373:
if ((pEVar2 == GHIDRA_CAST<Entity_Player *>(0x0)) ||
((pEVar2->_type != 1 &&
((pEVar2->_type != 3 ||
(pEVar2 = *GHIDRA_CAST<Entity_Player **>(&pEVar2->_isControlsEnabled), pEVar2 == GHIDRA_CAST<Entity_Player *>(0x0))
))))) {
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x0))) = 1.0;
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = GHIDRA_CAST<Entity_Player *>(0x0);
}
else {
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = GHIDRA_CAST<Entity_Player *>(0x0);
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x0))) = pEVar2->_shotspeed;
}
}
else {
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x0))) = pEVar2->_shotspeed;
}
}
else {
ownerPos.x = (pEVar2->_pos).x;
ownerPos.y = (pEVar2->_pos).y;
if (pEVar2->_type != 1) {
if (pEVar2->_type != 3) goto LAB_00a0534f;
ownerPlayer = *GHIDRA_CAST<Entity_Player **>(&pEVar2->_isControlsEnabled);
goto LAB_00a05373;
}
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x0))) = pEVar2->_shotspeed;
ownerPlayer = pEVar2;
}
if ((isCursedEye >> 4 & 1) != 0) {
if (param_3 == 0) {
ludoLaser = *GHIDRA_CAST<int **>((in_ECX + 1));
if (ludoLaser == GHIDRA_CAST<int *>(0x0)) {
LAB_00a05f6a:
if (ludoLaser != GHIDRA_CAST<int *>(0x0)) goto LAB_00a05f6e;
}
else {
if ((ludoLaser[0xb] != 2) || (ludoLaser[0xc] != 1)) {
(**(code **)(*ludoLaser + 0x28))();
ludoLaser = *GHIDRA_CAST<int **>((in_ECX + 1));
goto LAB_00a05f6a;
}
LAB_00a05f6e:
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(ludoLaser) + 0x173)) == '\0') goto LAB_00a06048;
}
isCursedEye = Random();
newLudoLaser = (Entity_Laser *)
Game::SpawnEx(g_game,7,2,&ownerPos,&g_vectorZero,*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4))))
,1,isCursedEye,0);
if ((newLudoLaser == GHIDRA_CAST<Entity_Laser *>(0x0)) || (newLudoLaser->_type != 7)) {
newLudoLaser = GHIDRA_CAST<Entity_Laser *>(0x0);
}
(newLudoLaser->_posOffset).x = 0.0;
(newLudoLaser->_posOffset).y = -20.0;
local_4c.x = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4))));
if (newLudoLaser->_parent != 0) {
scratchVec.x = (float)&newLudoLaser->_parent;
msvc::multiset<unsigned_int>::erase();
}
newLudoLaser->_parent = local_4c.x;
if (local_4c.x != 0.0) {
msvc::multiset<unsigned_int>::insert();
}
newLudoLaser->_renderDepthOffset = 3000.0;
init_laser(in_ECX,newLudoLaser);
(**(code **)(*GHIDRA_CAST<int *>(newLudoLaser) + 0xc))();
if (*GHIDRA_CAST<Entity_Laser **>((in_ECX + 1)) != newLudoLaser) {
if (*GHIDRA_CAST<Entity_Laser **>((in_ECX + 1)) != GHIDRA_CAST<Entity_Laser *>(0x0)) {
scratchVec.x = (float)(in_ECX + 1);
msvc::multiset<unsigned_int>::erase();
}
*GHIDRA_CAST<Entity_Laser **>((in_ECX + 1)) = newLudoLaser;
msvc::multiset<unsigned_int>::insert();
}
}
LAB_00a06048:
ownerEntity = *GHIDRA_CAST<int *>((in_ECX + 1));
if (ownerEntity == 0) {
return;
}
fVar9 = param_1->x;
fVar7 = param_1->y;
fVar8 = fVar7 * fVar7 + fVar9 * fVar9;
local_50 = fVar7;
local_4c.x = fVar9;
if (1.0 < fVar8) {
fVar8 = sqrtf(fVar8);
fVar9 = local_4c.x;
fVar7 = local_50;
if (0.0 < fVar8) {
fVar7 = local_50 * (1.0 / fVar8);
fVar9 = local_4c.x * (1.0 / fVar8);
}
}
if (param_2 == 0) {
iVar4 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0x12c4)) + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0x12c0));
iVar3 = 0;
if (0 < iVar4) {
iVar3 = iVar4;
}
if (0 < iVar3) goto LAB_00a06200;
fVar7 = ownerPos.x - *GHIDRA_CAST<float *>((ownerEntity + 0x33c));
fVar9 = ownerPos.y - *GHIDRA_CAST<float *>((ownerEntity + 0x340));
if (fVar9 * fVar9 + fVar7 * fVar7 <= 10000.0) goto LAB_00a06200;
aimDirection.x = ownerPos.x - *GHIDRA_CAST<float *>((ownerEntity + 0x33c));
aimDirection.y = ownerPos.y - *GHIDRA_CAST<float *>((ownerEntity + 0x340));
vecResult = (GHIDRA_CAST<Vector *>((&aimDirection)))->Vector::Normalized(&scratchVec);
fVar8 = *GHIDRA_CAST<float *>((ownerEntity + 0x36c));
fVar9 = vecResult->x * 0.3 * 0.5;
fVar7 = vecResult->y * 0.3 * 0.5;
}
else {
fVar8 = *GHIDRA_CAST<float *>((ownerEntity + 0x36c));
fVar9 = fVar9 * 2.0 * 0.5 * (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0)));
fVar7 = fVar7 * 2.0 * 0.5 * (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0)));
}
if (fVar8 != 0.0) {
*GHIDRA_CAST<float *>((ownerEntity + 0x364)) =
(fVar7 * *GHIDRA_CAST<float *>((ownerEntity + 0x39c))) / fVar8 + *GHIDRA_CAST<float *>((ownerEntity + 0x364));
*GHIDRA_CAST<float *>((ownerEntity + 0x360)) =
(fVar9 * *GHIDRA_CAST<float *>((ownerEntity + 0x39c))) / fVar8 + *GHIDRA_CAST<float *>((ownerEntity + 0x360));
}
LAB_00a06200:
if (param_3 != 0) {
return;
}
init_laser(in_ECX,*GHIDRA_CAST<Entity_Laser **>((in_ECX + 1)));
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Entity_Player *>(local_5c))) + 0x4))) == GHIDRA_CAST<Entity_Player *>(0x0)) {
return;
}
ownerEntity = Entity::GetIntervalTicks
((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Entity *>(local_5c))) + 0x4))),*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x10)))),0.0);
if (ownerEntity == 0) {
return;
}
ownerEntity = *GHIDRA_CAST<int *>((in_ECX + 1));
if (ownerEntity != 0) {
scratchVec.x = *GHIDRA_CAST<float *>((ownerEntity + 0x33c));
scratchVec.y = *GHIDRA_CAST<float *>((ownerEntity + 0x340));
aimDirection.x = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) + 0x33c));
aimDirection.y = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) + 0x340));
bVar5 = (GHIDRA_CAST<Vector *>((&scratchVec)))->Vector::operator_ne(&aimDirection);
if (bVar5 != 0) {
aimDirection.x =
*GHIDRA_CAST<float *>((ownerEntity + 0x33c)) - *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) + 0x33c));
aimDirection.y =
*GHIDRA_CAST<float *>((ownerEntity + 0x340)) - *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) + 0x340));
vecResult = (GHIDRA_CAST<Vector *>((&aimDirection)))->Vector::Normalized(&scratchVec);
Weapon::TriggerTearEffects(in_ECX,vecResult,1);
return;
}
}
vecResult = MusicManager::RandomVector(&aimDirection);
Weapon::TriggerTearEffects(in_ECX,vecResult,1);
return;
}
isCursedEye = isCursedEye >> 1;
bVar5 = (uint8_t)in_ECX->_modifiers & 1;
unused = CONCAT31((uint3)(isCursedEye >> 0xb),(char)(isCursedEye >> 3)) & 0xffffff01;
if ((((isCursedEye >> 3 & 1) != 0) || (bVar5 != 0)) || (isChargeWeapon = false, (isCursedEye & 1) != 0))
{
isChargeWeapon = true;
}
if ((ownerPlayer == GHIDRA_CAST<Entity_Player *>(0x0)) ||
((isMarkedAim = Entity_Player::HasCollectible(ownerPlayer,0x18a,0), isMarkedAim == 0 &&
(isMarkedAim = Entity_Player::HasCollectible(ownerPlayer,0x23c,0), isMarkedAim == 0)))) {
isMarkedAim = false;
}
else {
isMarkedAim = true;
}
if (((GHIDRA_UINT(in_ECX->_modifiers) >> 7 & 1) != 0) ||
(isFireReady = false, *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x10)))) <= 0.0)) {
isFireReady = true;
}
maxCharge = (long double)(**(code **)(*GHIDRA_CAST<int *>(in_ECX) + 0x18))();
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x0))) = (BADTYPE)maxCharge;
if ((isCursedEye & 1) != 0) {
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x0))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0))) * 0.5;
}
ownerEntity = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4))));
isMonstrosLung = (char)unused;
if (((ownerEntity != 0) && (*GHIDRA_CAST<int *>((ownerEntity + 0x28)) == 1)) &&
(0 < *GHIDRA_CAST<int *>((ownerEntity + 0x18f8)))) {
if ((isMonstrosLung == '\0') && (bVar5 == 0)) {
LAB_00a054d2:
if (((isCursedEye & 1) == 0) || (GHIDRA_INT(in_ECX[1]._technology2Laser) < 1)) goto LAB_00a054e1;
}
else {
local_4c.x = 5.0;
vecResult = GHIDRA_CAST<Vector *>(local_5c);
if (5.0 <= (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0)))) {
vecResult = &local_4c;
}
if (*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))) < vecResult->x) goto LAB_00a054d2;
}
isFiring = 0;
}
LAB_00a054e1:
if ((((param_3 == 0) && (isFiring != 0)) && (isFireReady)) &&
((((isMonstrosLung != '\0' || (bVar5 != 0)) &&
(fVar9 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))), (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0))) <= fVar9)) ||
(((isCursedEye & 1) != 0 &&
(((fVar9 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))), 0.0 < fVar9 &&
(4 < GHIDRA_INT(in_ECX[1]._technology2Laser))) ||
((fVar9 <= 0.0 && (0 < GHIDRA_INT(in_ECX[1]._technology2Laser))))))))))) {
local_4c.x = 1e-05;
isFiring = 0;
vecResult = &local_4c;
if (1e-05 <= fVar9) {
vecResult = GHIDRA_CAST<Vector *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14))));
}
fVar9 = vecResult->x;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[1])) + 0x4)))) = fVar9;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))) = fVar9;
}
if ((ownerEntity == 0) ||
((((*GHIDRA_CAST<int *>((ownerEntity + 0x28)) != 1 &&
((*GHIDRA_CAST<int *>((ownerEntity + 0x28)) != 3 ||
(ownerEntity = *GHIDRA_CAST<int *>((ownerEntity + 0x410)), ownerEntity == 0)))) ||
(ownerEntity = *GHIDRA_CAST<int *>((ownerEntity + 0x140c)), ownerEntity == 0)) || (!isMarkedAim)))) {
fVar9 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x28))));
fVar7 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x2c))));
}
else {
fVar9 = *GHIDRA_CAST<float *>((ownerEntity + 0x33c));
fVar7 = *GHIDRA_CAST<float *>((ownerEntity + 0x340));
}
if ((fVar9 == g_vectorZero.x) && (fVar7 == g_vectorZero.y)) {
isMarkedAim = false;
}
else {
isMarkedAim = true;
}
scratchVec.x = fVar9;
scratchVec.y = fVar7;
if (((param_3 == 0) && (isFiring != 0)) && (isMarkedAim)) {
vecResult = Weapon::get_owner_position(in_ECX,&scratchVec);
fVar7 = fVar7 - vecResult->y;
fVar9 = fVar9 - vecResult->x;
fVar7 = sqrtf(fVar7 * fVar7 + fVar9 * fVar9);
fVar9 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14))));
fVar7 = (fVar7 - 50.0) / 250.0;
if (fVar7 <= 0.0) {
fVar7 = 0.0;
}
if (1.0 <= fVar7) {
fVar7 = 1.0;
}
if (fVar9 <= 0.0) {
ownerEntity = 1;
}
else {
ownerEntity = GHIDRA_INT((fVar7 * 4.0 + 1.0));
}
if (((bVar5 != 0) && ((((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0))) - 5.0) * fVar7 + 5.0) - 1.0 < fVar9)) ||
((isMonstrosLung != '\0' && ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0))) < fVar9)))) {
isFiring = 0;
}
else if ((isCursedEye & 1) != 0) {
if (ownerEntity <= GHIDRA_INT(in_ECX[1]._technology2Laser)) {
isFiring = 0;
}
}
}
isCursedEye = 0;
local_4c.x = 1.4013e-45;
if (isChargeWeapon) {
if (isFiring == 0) {
if ((bVar5 == 0) || (*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))) <= 0.0)) {
if ((isMonstrosLung == '\0') || (*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))) < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0))))) {
if ((isCursedEye & 1) != 0) {
if (0 < GHIDRA_INT(in_ECX[1]._technology2Laser)) {
isCursedEye = 1;
}
}
}
else {
isCursedEye = 1;
}
}
else {
isCursedEye = 1;
}
}
if (param_3 != 0) {
if (isCursedEye == 0) {
return;
}
Weapon::SetBlinkTime(in_ECX,1,unused);
return;
}
}
else if (isFiring != 0) {
if (param_3 != 0) {
return;
}
if (*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0xc)))) <= 0.0 && *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0xc)))) != 0.0) {
do {
if (7 < isCursedEye) break;
isCursedEye = isCursedEye + 1;
fVar9 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x10)))) + 1.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)))) = fVar9;
} while (fVar9 < 0.0);
}
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[1])) + 0x4)))) = 0;
}
aimDirection.x = param_1->x;
aimDirection.y = param_1->y;
if (param_2 == 0) {
aimDirection.x = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x20))));
aimDirection.y = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x24))));
}
isMarkedAim = Weapon::IsAxisAligned(in_ECX);
fStack_60 = aimDirection.x;
if (isMarkedAim == 0) {
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = aimDirection.y;
fVar9 = sqrtf(aimDirection.y * aimDirection.y + aimDirection.x * aimDirection.x);
if (fVar9 <= 0.0) {
pEVar2 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Entity_Player *>(local_5c))) + 0x4)));
}
else {
aimDirection.y = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x4))) * (1.0 / fVar9);
fStack_60 = (1.0 / fVar9) * fStack_60;
pEVar2 = GHIDRA_CAST<Entity_Player *>(aimDirection.y);
aimDirection.x = fStack_60;
}
}
else {
vecResult = Vector::ToCardinal(&scratchVec,&aimDirection);
fStack_60 = vecResult->x;
aimDirection.y = vecResult->y;
pEVar2 = GHIDRA_CAST<Entity_Player *>(aimDirection.y);
aimDirection.x = fStack_60;
}
if (isCursedEye == 0) goto LAB_00a05c7f;
if (isMonstrosLung != '\0') {
Weapon::UpdateHeadChargeAnimation(in_ECX,0xe5,2,&aimDirection,-1.0);
fStack_60 = aimDirection.x;
pEVar2 = GHIDRA_CAST<Entity_Player *>(aimDirection.y);
}
fStack_60 = fStack_60 * 10.0;
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = (float)pEVar2 * 10.0;
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_50)) + 0x0))) == '\0') {
vecResult = Weapon::get_tear_movement_inheritance(in_ECX,&scratchVec,&aimDirection);
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = vecResult->y * 0.4 + (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x4)));
fStack_60 = vecResult->x * 0.4 + fStack_60;
}
fVar9 = sqrtf(fStack_60 * fStack_60 + (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x4))) * (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x4))));
if (fVar9 <= 0.0) {
aimDirection.y = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x4)));
}
else {
fStack_60 = fStack_60 * (1.0 / fVar9);
aimDirection.y = (float)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x4))) * (1.0 / fVar9));
}
aimDirection.x = fStack_60;
Weapon::SetBlinkTime(in_ECX,7 - GHIDRA_INT((*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x10)))) * -0.45)),unused_00);
Weapon::TriggerTearEffects(in_ECX,&aimDirection,1);
Weapon::GetMultiShotParams(in_ECX,multiShotParams,unusedArg);
fVar9 = 0.0;
if (isMonstrosLung != '\0') {
fVar9 = 1.68156e-44;
}
if (bVar5 == 0) {
fStack_60 = 1.0;
if (isMonstrosLung != '\0') goto LAB_00a05a05;
}
else {
fVar7 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[1])) + 0x4)))) + 1.0;
if (isMonstrosLung == '\0') {
fStack_60 = (fVar7 * 4.0) / ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0))) + 1.0);
if (fStack_60 <= 0.1) {
fStack_60 = 0.1;
}
if (4.0 <= fStack_60) {
fStack_60 = 4.0;
}
}
else {
fStack_60 = (fVar7 * 2.5) / ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0))) + 1.0);
if (fStack_60 <= 0.02) {
fStack_60 = 0.02;
}
if (2.5 <= fStack_60) {
fStack_60 = 2.5;
}
LAB_00a05a05:
if (fStack_60 < 1.0) {
scratchVec.x = (float)GHIDRA_INT(fVar9);
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = scratchVec.x * fStack_60;
dVar10 = ceil((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((double)(float)local_5c)) + 0x4))));
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = (BADTYPE)dVar10;
fVar9 = local_4c.x;
if (1 < GHIDRA_INT(dVar10)) {
fVar9 = (float)GHIDRA_INT(dVar10);
}
fStack_60 = fStack_60 * (scratchVec.x / (float)GHIDRA_INT(fVar9));
}
}
}
ownerEntity = *GHIDRA_CAST<int *>(ThreadLocalStoragePointer);
if (*GHIDRA_CAST<int *>((ownerEntity + 0xc)) < DAT_00c943b4) {
_Init_thread_header();
ownerEntity = extraout_ECX_05;
if (DAT_00c943b4 == -1) {
_atexit(GHIDRA_CAST<_func_4879 *>(&LAB_00b16b00));
_Init_thread_footer();
ownerEntity = extraout_ECX_06;
}
}
DAT_00c943bc = DAT_00c943b8;
isCursedEye = 0;
if (isMonstrosLung != '\0') {
isCursedEye = 6;
}
fire_lasers(in_ECX,&ownerPos,&aimDirection,isCursedEye,fStack_60,multiShotParams,GHIDRA_INT(fVar9),ownerEntity)
;
ownerEntity = unused_01;
if (isFireBackward != '\0') {
scratchVec.x = -aimDirection.x;
scratchVec.y = -aimDirection.y;
fire_lasers(in_ECX,&ownerPos,&scratchVec,5,fStack_60,(void *)0x0,GHIDRA_INT(fVar9),unused_01);
ownerEntity = extraout_ECX;
}
if (isFireSideways != '\0') {
scratchVec.x = aimDirection.y;
scratchVec.y = -aimDirection.x;
fire_lasers(in_ECX,&ownerPos,&scratchVec,5,fStack_60,(void *)0x0,GHIDRA_INT(fVar9),ownerEntity);
scratchVec.x = -aimDirection.y;
scratchVec.y = aimDirection.x;
fire_lasers(in_ECX,&ownerPos,&scratchVec,5,fStack_60,(void *)0x0,GHIDRA_INT(fVar9),unused_02);
}
for (local_4c.x = (float)GHIDRA_UINT(uStack_c); local_4c.x != 0.0;
local_4c.x = (float)(GHIDRA_INT(local_4c.x) - 1)) {
isCursedEye = Random();
fVar7 = (float)((double)GHIDRA_INT(isCursedEye) + __uint_to_double_fixup[-(GHIDRA_INT(isCursedEye) >> 0x1f)]) *
2.3283064e-10 * 3.14;
scratchVec.x = fVar7 + fVar7;
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = cos(scratchVec.x);
fStack_54 = sin(scratchVec.x);
fire_lasers(in_ECX,&ownerPos,GHIDRA_CAST<Vector *>((local_5c + 4)),5,fStack_60,(void *)0x0,GHIDRA_INT(fVar9),
unused_03);
}
isCursedEye = 0;
local_4c.x = 0.0;
if (DAT_00c943bc - DAT_00c943b8 >> 2 != 0) {
local_50 = (float)(GHIDRA_UINT(local_50) ^ 1);
do {
*GHIDRA_CAST<char *>((*GHIDRA_CAST<int *>((DAT_00c943b8 + isCursedEye * 4)) + 0x4e4)) = SUB41(local_50,0);
(**(code **)(**GHIDRA_CAST<int **>((DAT_00c943b8 + isCursedEye * 4)) + 0xc))();
isCursedEye = isCursedEye + 1;
} while (isCursedEye < GHIDRA_UINT((DAT_00c943bc - DAT_00c943b8 >> 2)));
}
LAB_00a05c7f:
if (isChargeWeapon) {
if (isFiring == 0) {
if (0 < GHIDRA_INT(in_ECX[1]._technology2Laser)) {
in_ECX[1]._technology2Laser = in_ECX[1]._technology2Laser + -1;
}
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))) = 0;
if ((isMonstrosLung == '\0') || (bVar5 = Weapon::IsItemAnimFinished(in_ECX,0xe5), bVar5 != 0))
{
pEVar2 = *GHIDRA_CAST<Entity_Player **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4))));
if (((pEVar2 == GHIDRA_CAST<Entity_Player *>(0x0)) || (ownerPlayer = pEVar2, pEVar2->_type != 1)) &&
((ownerPlayer = GHIDRA_CAST<Entity_Player *>(0x0), pEVar2 != GHIDRA_CAST<Entity_Player *>(0x0) &&
(pEVar2->_type == 3)))) {
pEVar2->_chargeBarSprites[5]._numEvents = 0;
}
else if (ownerPlayer != GHIDRA_CAST<Entity_Player *>(0x0)) {
Entity_Player::stop_costume_item_anims(ownerPlayer);
}
}
}
else {
pEVar2 = *GHIDRA_CAST<Entity_Player **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14))));
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = pEVar2;
if ((bVar5 != 0) || (isMonstrosLung != '\0')) {
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0))) <= (float)pEVar2) {
Weapon::UpdateHeadChargeAnimation(in_ECX,0xe5,1,&aimDirection,-1.0);
Weapon::UpdateHeadChargeAnimation(in_ECX,0x44,1,&aimDirection,-1.0);
ownerEntity = extraout_ECX_01;
}
else {
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = ((float)pEVar2 / (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x0)))) * 18.0;
Weapon::UpdateHeadChargeAnimation(in_ECX,0xe5,0,&aimDirection,(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x4))));
Weapon::UpdateHeadChargeAnimation(in_ECX,0x44,0,&aimDirection,(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_5c)) + 0x4))));
ownerEntity = extraout_ECX_00;
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) == 0) {
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))) + 1.0;
}
else {
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_5c)) + 0x4))) =
*GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) + 0x39c)) + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14))));
}
}
pEVar2 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Entity_Player *>(local_5c))) + 0x4)));
Weapon::SetBlinkTime(in_ECX,8,ownerEntity);
}
if ((isCursedEye & 1) != 0) {
maxCharge = (long double)(**(code **)(*GHIDRA_CAST<int *>(in_ECX) + 0x18))();
local_4c.x = (float)maxCharge;
if (local_4c.x <= *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14))))) {
Weapon::UpdateHeadChargeAnimation(in_ECX,0x44,1,&aimDirection,-1.0);
Weapon::UpdateHeadChargeAnimation(in_ECX,0x13c,1,&aimDirection,-1.0);
ownerEntity = extraout_ECX_04;
pEVar2 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Entity_Player *>(local_5c))) + 0x4)));
}
else {
ownerEntity = extraout_ECX_02;
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) != 0) {
fVar9 = (*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))) / local_4c.x) * 18.0;
if (*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) + 0x28)) == 1) {
Weapon::UpdateHeadChargeAnimation(in_ECX,0x44,0,&aimDirection,fVar9);
fVar9 = 0.0;
}
Weapon::UpdateHeadChargeAnimation(in_ECX,0x13c,0,&aimDirection,fVar9);
ownerEntity = extraout_ECX_03;
}
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) == 0) {
pEVar2 = GHIDRA_CAST<Entity_Player *>((*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))) + 1.0));
}
else {
pEVar2 = (Entity_Player *)
(*GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x4)))) + 0x39c)) + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14))))
);
}
}
Weapon::SetBlinkTime(in_ECX,1,ownerEntity);
in_ECX[1]._technology2Laser = GHIDRA_INT(((((float)pEVar2 + 1.0) * 5.0) / (local_4c.x + 1.0)));
}
*GHIDRA_CAST<Entity_Player **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x14)))) = pEVar2;
*GHIDRA_CAST<Entity_Player **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[1])) + 0x4)))) = pEVar2;
}
if (param_2 != 0) {
bVar5 = Weapon::IsAxisAligned(in_ECX);
if (bVar5 == 0) {
vecResult = Weapon::get_aim_direction(in_ECX,&local_4c,&aimDirection);
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x20)))) = vecResult->x;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x24)))) = vecResult->y;
return;
}
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x20)))) = aimDirection.x;
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((in_ECX)) + 0x24)))) = aimDirection.y;
return;
}
}
return;
}
// 00a06330
void Weapon_Laser::init_laser(Weapon *weapon, Entity_Laser *laser)
{
int iVar1;
BitSet128 *tearFlags;
ColorMod *laserColor;
float damage;
BitSet128 tearFlagsOut;
ColorMod laserColorOut;
uint32_t local_c;
uint8_t auStack_8 [4];
uint64_t tearFlagsHigh;
uint32_t tearFlagsWord1;
uint32_t tearFlagsWord3;
code *virtualFn;
local_c = __security_cookie ^ GHIDRA_UINT((auStack_8 + 4));
tearFlags = Weapon::get_owner_tear_flags(weapon,&tearFlagsOut);
tearFlagsWord1 = *GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&tearFlags->_l) + 4));
tearFlagsHigh = tearFlags->_h;
tearFlagsWord3 = *GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&tearFlags->_h) + 4));
iVar1 = *GHIDRA_CAST<int *>(laser);
*GHIDRA_CAST<int *>(&(laser->_tearFlags)._l) = GHIDRA_INT(tearFlags->_l);
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&(laser->_tearFlags)._l) + 4)) = tearFlagsWord1;
*GHIDRA_CAST<int *>(&(laser->_tearFlags)._h) = GHIDRA_INT(tearFlagsHigh);
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&(laser->_tearFlags)._h) + 4)) = tearFlagsWord3;
virtualFn = *(code **)(iVar1 + 0x3c);
laserColor = Weapon::get_laser_color(weapon,&laserColorOut);
(*virtualFn)(laserColor,0xffffffff,0xff,0,1);
virtualFn = *(code **)(*GHIDRA_CAST<int *>(laser) + 0x40);
damage = Weapon::get_damage(weapon);
(*virtualFn)(damage);
return;
}
// 00a063b0
void Weapon_Laser::ClearReferences()
{
int *eraseKey;
int *entityRef;
entityRef = GHIDRA_CAST<int *>((GHIDRA_INT(this) + 8));
eraseKey = this;
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 8)) != GHIDRA_CAST<int *>(0x0)) {
(**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 8)) + 0x28))();
if (*entityRef != 0) {
eraseKey = entityRef;
msvc::multiset<unsigned_int>::erase(&eraseKey);
*entityRef = 0;
}
}
entityRef = GHIDRA_CAST<int *>((GHIDRA_INT(this) + 0x44));
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x44)) != GHIDRA_CAST<int *>(0x0)) {
(**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x44)) + 0x28))();
if (*entityRef != 0) {
eraseKey = entityRef;
msvc::multiset<unsigned_int>::erase(&eraseKey);
*entityRef = 0;
}
}
return;
}
// 00a06870
long double Weapon_Laser::GetMaxCharge()
{
int in_ECX;
float chargeMultiplier;
uint32_t modifiers;
modifiers = *GHIDRA_CAST<uint32_t *>((in_ECX + 0x34));
chargeMultiplier = 1.0;
if ((modifiers >> 3 & 1) != 0) {
chargeMultiplier = 4.3;
}
if ((modifiers & 1) != 0) {
chargeMultiplier = chargeMultiplier * 2.5;
}
if ((modifiers >> 1 & 1) != 0) {
chargeMultiplier = chargeMultiplier + chargeMultiplier;
}
if (1.0 < chargeMultiplier) {
return (long double)((*GHIDRA_CAST<float *>((in_ECX + 0x10)) + 1.0) * chargeMultiplier - 1.0);
}
return (long double)0;
}
// 00a068e0
uint8_t Weapon_Laser::CanTriggerCursedEyeTeleport()
{
int iVar1;
long double fVar2;
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4));
if ((iVar1 != 0) && (*GHIDRA_CAST<int *>((iVar1 + 0x28)) == 1)) {
if ((*GHIDRA_CAST<int *>((iVar1 + 0x140c)) != 0) &&
(iVar1 = this->GetMarkedTargetVariant(), iVar1 != 0)) {
return 0;
}
if ((0.0 < *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x14))) &&
(fVar2 = (long double)this->GetMaxCharge(),
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x14)) <= (float)fVar2 && (float)fVar2 != *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x14)))
) {
return 1;
}
}
return 0;
}
-297
View File
@@ -1,297 +0,0 @@
#include "classes.h"
// 00a0d9c0
void Weapon_TechX::Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated)
{
Vector shotDirection;
bool bVar1;
bool bVar2;
uint8_t bVar3;
uint8_t isAxisAligned;
int ownerPlayer;
Vector *pVVar4;
Entity_Laser *laser;
uint32_t rngResult;
Entity_Player *pEVar5;
int extraout_ECX;
int unusedArg;
Entity_Player *player;
int extraout_ECX_00;
int extraout_ECX_01;
uint32_t randomLasersLeft;
float fVar6;
float fVar7;
float cosAngle;
float fVar8;
float fVar9;
float fVar10;
float fVar11;
float releaseCharge;
Vector local_70;
Vector aimDirection;
Vector local_60;
Vector scratchVec;
float fStack_50;
float fStack_4c;
Vector VStack_48;
uint32_t local_40;
float fStack_3c;
float fStack_38;
float fStack_34;
float fStack_30;
int iStack_2c;
float fStack_28;
uint32_t uStack_24;
uint32_t uStack_20;
int ownerEntity;
Weapon::Fire(this,direction,isShooting,isInterpolated);
if (isInterpolated != 0) {
return;
}
pEVar5 = *GHIDRA_CAST<Entity_Player **>((GHIDRA_CAST<char *>(this) + 4));
if (pEVar5 == GHIDRA_CAST<Entity_Player *>(0x0)) {
LAB_00a0da10:
player = GHIDRA_CAST<Entity_Player *>(0x0);
if (pEVar5 != GHIDRA_CAST<Entity_Player *>(0x0)) {
if (pEVar5->_type == 1) goto LAB_00a0da2f;
if (pEVar5->_type == 3) goto LAB_00a0da23;
}
LAB_00a0da39:
fVar6 = 1.0;
}
else if (pEVar5->_type == 1) {
fVar6 = pEVar5->_shotspeed;
player = pEVar5;
}
else {
if (pEVar5->_type != 3) goto LAB_00a0da10;
player = *GHIDRA_CAST<Entity_Player **>(&pEVar5->_isControlsEnabled);
LAB_00a0da23:
pEVar5 = *GHIDRA_CAST<Entity_Player **>(&pEVar5->_isControlsEnabled);
if (pEVar5 == GHIDRA_CAST<Entity_Player *>(0x0)) goto LAB_00a0da39;
LAB_00a0da2f:
fVar6 = pEVar5->_shotspeed;
}
if (player == GHIDRA_CAST<Entity_Player *>(0x0)) {
LAB_00a0da62:
bVar1 = false;
}
else {
bVar3 = Entity_Player::HasCollectible(player,0x18a,0);
bVar1 = true;
if (bVar3 == 0) goto LAB_00a0da62;
}
if (((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x34)) >> 7 & 1) != 0) ||
(bVar2 = false, *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x10)) <= 0.0)) {
bVar2 = true;
}
ownerEntity = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4));
releaseCharge = -1000.0;
if (ownerEntity == 0) {
LAB_00a0dae1:
fVar11 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x28));
fVar8 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x2c));
}
else {
if (*GHIDRA_CAST<int *>((ownerEntity + 0x28)) == 1) {
ownerPlayer = ownerEntity;
}
else if ((*GHIDRA_CAST<int *>((ownerEntity + 0x28)) != 3) ||
(ownerPlayer = *GHIDRA_CAST<int *>((ownerEntity + 0x410)), ownerPlayer == 0)) goto LAB_00a0dae1;
ownerPlayer = *GHIDRA_CAST<int *>((ownerPlayer + 0x140c));
if ((ownerPlayer == 0) || (!bVar1)) goto LAB_00a0dae1;
fVar11 = *GHIDRA_CAST<float *>((ownerPlayer + 0x33c));
fVar8 = *GHIDRA_CAST<float *>((ownerPlayer + 0x340));
}
if ((fVar11 == g_vectorZero.x) && (fVar8 == g_vectorZero.y)) {
bVar1 = false;
}
else {
bVar1 = true;
}
local_60.x = fVar11;
local_60.y = fVar8;
if (isShooting != 0) {
if (bVar2) {
releaseCharge = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x10)) * 3.0;
}
else if (bVar1) {
pVVar4 = Weapon::get_owner_position(this,&scratchVec);
fVar8 = fVar8 - pVVar4->y;
fVar11 = fVar11 - pVVar4->x;
fVar11 = sqrtf(fVar8 * fVar8 + fVar11 * fVar11);
releaseCharge = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x10));
fVar11 = (fVar11 - 50.0) / 250.0;
if (fVar11 <= 0.0) {
fVar11 = 0.0;
}
if (1.0 <= fVar11) {
fVar11 = 1.0;
}
releaseCharge = (releaseCharge * 3.0 - releaseCharge) * fVar11 + releaseCharge;
}
}
if ((((ownerEntity != 0) && (*GHIDRA_CAST<int *>((ownerEntity + 0x28)) == 1)) &&
(0 < *GHIDRA_CAST<int *>((ownerEntity + 0x18f8)))) &&
(releaseCharge = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x10)), releaseCharge < 1.0)) {
releaseCharge = 1.0;
}
bVar3 = isShooting;
if ((-1000.0 < releaseCharge) && (releaseCharge <= *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x14)))) {
bVar3 = 0;
}
aimDirection.x = direction->x;
aimDirection.y = direction->y;
if (isShooting == 0) {
aimDirection.x = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x20));
aimDirection.y = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x24));
}
isAxisAligned = Weapon::IsAxisAligned(this);
if (isAxisAligned == 0) {
fVar11 = sqrtf(aimDirection.x * aimDirection.x + aimDirection.y * aimDirection.y);
ownerEntity = extraout_ECX_00;
if (0.0 < fVar11) {
aimDirection.x = (1.0 / fVar11) * aimDirection.x;
aimDirection.y = aimDirection.y * (1.0 / fVar11);
}
}
else {
pVVar4 = Vector::ToCardinal(&scratchVec,&aimDirection);
aimDirection.x = pVVar4->x;
aimDirection.y = pVVar4->y;
ownerEntity = extraout_ECX;
}
fVar9 = 1.0;
fVar11 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x10));
fVar8 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x14));
if (bVar3 == 0) {
if (fVar11 < 1.0) {
fVar9 = 1.0;
}
else {
fVar9 = fVar11;
}
if ((fVar9 <= fVar8) || ((-1000.0 < releaseCharge && (releaseCharge <= fVar8)))) {
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0xc)) = fVar11;
ownerPlayer = 7 - GHIDRA_INT((fVar11 * -0.45));
ownerEntity = 0xb;
if (0xb < ownerPlayer) {
ownerEntity = ownerPlayer;
}
Weapon::SetBlinkTime(this,ownerEntity,ownerPlayer);
Weapon::TriggerTearEffects(this,&aimDirection,1);
Weapon::get_owner_position(this,&local_60);
fVar8 = aimDirection.x * 10.0;
fVar9 = aimDirection.y * 10.0;
pVVar4 = Weapon::get_tear_movement_inheritance(this,&scratchVec,&aimDirection);
fVar10 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x10)) + 1.0;
fVar8 = fVar8 + pVVar4->x;
fVar11 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x14)) + 1.0;
fVar9 = fVar9 + pVVar4->y;
if (fVar10 * 3.0 <= fVar11) {
fVar11 = fVar10 * 3.0;
}
fVar10 = (fVar11 - fVar10) / (fVar10 + fVar10);
fVar11 = fVar10 * 45.0 + 15.0;
Weapon::GetMultiShotParams(this,&local_40,unusedArg);
fVar10 = fVar10 * 0.75 + 0.25;
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(uStack_24)) + 0x1))) != '\0') {
local_70.x = -fVar8 * fVar6;
local_70.y = -fVar9 * fVar6;
laser = Weapon::fire_tech_x_laser(this,&local_60,&local_70,fVar11,fVar10);
(**(code **)(*GHIDRA_CAST<int *>(laser) + 0xc))();
}
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(uStack_24)) + 0x2))) != '\0') {
local_70.x = fVar8 * fVar6;
local_70.y = fVar6 * -fVar9;
laser = Weapon::fire_tech_x_laser(this,&local_60,&local_70,fVar11,fVar10);
(**(code **)(*GHIDRA_CAST<int *>(laser) + 0xc))();
local_70.x = -fVar8 * fVar6;
local_70.y = fVar9 * fVar6;
laser = Weapon::fire_tech_x_laser(this,&local_60,&local_70,fVar11,fVar10);
(**(code **)(*GHIDRA_CAST<int *>(laser) + 0xc))();
}
for (randomLasersLeft = uStack_20 & 0xffff; randomLasersLeft != 0;
randomLasersLeft = randomLasersLeft - 1) {
rngResult = Random();
local_70.x = (float)((double)GHIDRA_INT(rngResult) +
__uint_to_double_fixup[-(GHIDRA_INT(rngResult) >> 0x1f)]) * 2.3283064e-10 * 0.5
+ 0.5;
rngResult = Random();
fVar7 = ((float)((double)GHIDRA_INT(rngResult) + __uint_to_double_fixup[-(GHIDRA_INT(rngResult) >> 0x1f)])
* 2.3283064e-10 * 50.0 - 25.0) * 0.017453292;
cosAngle = cos(fVar7);
fVar7 = sin(fVar7);
scratchVec.x = (fVar8 * cosAngle - fVar9 * fVar7) * fVar6;
scratchVec.y = (fVar9 * cosAngle + fVar8 * fVar7) * fVar6;
laser = Weapon::fire_tech_x_laser
(this,&local_60,&scratchVec,local_70.x * fVar11,local_70.x * fVar10);
(**(code **)(*GHIDRA_CAST<int *>(laser) + 0xc))();
}
ownerEntity = 0;
if (0 < (short)local_40) {
local_70.x = fVar8;
local_70.y = fVar9;
do {
shotDirection.y = local_70.y;
shotDirection.x = local_70.x;
Entity_Player::GetMultiShotPositionVelocity
(&fStack_50,ownerEntity,9,shotDirection,fVar6,(short)local_40,fStack_3c,
fStack_38,fStack_34,fStack_30,iStack_2c,fStack_28,(uint8_t)uStack_24,
(short)uStack_20);
scratchVec.x = local_60.x + fStack_50;
scratchVec.y = fStack_4c + local_60.y;
laser = Weapon::fire_tech_x_laser(this,&scratchVec,&VStack_48,fVar11,fVar10);
(**(code **)(*GHIDRA_CAST<int *>(laser) + 0xc))();
ownerEntity = ownerEntity + 1;
} while (ownerEntity < (short)local_40);
}
pEVar5 = *GHIDRA_CAST<Entity_Player **>((GHIDRA_CAST<char *>(this) + 4));
if ((((pEVar5 == GHIDRA_CAST<Entity_Player *>(0x0)) || (player = pEVar5, pEVar5->_type != 1)) &&
(player = GHIDRA_CAST<Entity_Player *>(0x0), pEVar5 != GHIDRA_CAST<Entity_Player *>(0x0))) && (pEVar5->_type == 3))
{
pEVar5->_chargeBarSprites[5]._numEvents = 0;
}
else if (player != GHIDRA_CAST<Entity_Player *>(0x0)) {
Entity_Player::stop_costume_item_anims(player);
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x14)) = 0;
goto LAB_00a0e1fe;
}
}
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x14)) = 0;
}
else {
if (fVar11 * 3.0 <= fVar8) {
Weapon::UpdateHeadChargeAnimation(this,0x18b,1,direction,-1.0);
ownerEntity = extraout_ECX_01;
}
else {
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) != 0) {
fVar9 = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) + 0x39c));
}
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x14)) = fVar8 + fVar9;
}
Weapon::SetBlinkTime(this,1,ownerEntity);
}
LAB_00a0e1fe:
if (isShooting != 0) {
bVar3 = Weapon::IsAxisAligned(this);
if (bVar3 != 0) {
fVar6 = direction->y;
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x20)) = direction->x;
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x24)) = fVar6;
return;
}
pVVar4 = Weapon::get_aim_direction(this,&local_60,direction);
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x20)) = pVVar4->x;
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x24)) = pVVar4->y;
}
return;
}
// 00a0e260
float Weapon_TechX::GetMaxCharge()
{
return *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x10)) * 3.0;
}