Files
isaac-port/generated-src/projectile_params.cpp
T
shweetandClaude Opus 5.5 3ce74c6e2d Reconstruction layout: generated-src/ (generated) and src/ (curated), CMake, the first takeover: RNG
The decompiled C++ tree moves to generated-src/ (classes.h, C++20); src/ is for code written by hand. A curated function
defines the generated declaration and starts its comment with its address, and source_tree.py stops emitting that body.
src/rng.cpp takes over RNG (SetSeed, the constructor, Next, RandomInt, RandomFloat, Shuffle) with the shift table read
from the exe as a constexpr array; src/log.h names KAGE_LogMessage's levels (1 INFO, 2 NET, 4 WARN, 8 ERROR, 16 ASSERT,
from its prefix jump table). CMakeLists.txt builds src/*.cpp against generated-src/classes.h (clean with -Wall -Wextra).
structs.hpp and headers.py are retired: scripts/merge_fields.py writes the merged field list, classes.h checks the layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:10:23 -05:00

55 lines
1.8 KiB
C++

#include "classes.h"
// 0043ef30
ProjectileParams::ProjectileParams()
{
uint rngValue;
this->GridCollision = 1;
this->HeightModifier = 0.0;
this->FallingSpeedModifier = 0.0;
this->FallingAccelModifier = 0.0;
this->VelocityMulti = 1.0;
this->Scale = 1.0;
rngValue = Random();
this->HomingStrength = 1.0;
this->CurvingStrength = 0.005;
this->Acceleration = 1.01;
this->Spread = 1.0;
this->CircleAngle =
(float)((double)GHIDRA_INT(rngValue) + __uint_to_double_fixup[-(GHIDRA_INT(rngValue) >> 0x1f)]) *
2.3283064e-10 * 3.1415927;
(this->Color)._tint[0] = 1.0;
(this->Color)._tint[1] = 1.0;
(this->Color)._tint[2] = 1.0;
(this->Color)._tint[3] = 1.0;
(this->Color)._colorize[0] = 0.0;
(this->Color)._colorize[1] = 0.0;
(this->Color)._colorize[2] = 0.0;
(this->Color)._colorize[3] = 0.0;
(this->Color)._offset[0] = 0.0;
(this->Color)._offset[1] = 0.0;
(this->Color)._offset[2] = 0.0;
*GHIDRA_CAST<undefined4 *>(&this->BulletFlags) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_INT(&this->BulletFlags) + 4)) = 0;
(this->PositionOffset).x = g_vectorZero.x;
(this->PositionOffset).y = g_vectorZero.y;
(this->TargetPosition).x = g_vectorZero.x;
(this->TargetPosition).y = g_vectorZero.y;
(this->FireDirectionLimit).x = g_vectorZero.x;
(this->FireDirectionLimit).y = g_vectorZero.y;
this->DotProductLimit = -1000.0;
this->WiggleFrameOffset = 0;
*GHIDRA_CAST<undefined4 *>(&this->ChangeFlags) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_INT(&this->ChangeFlags) + 4)) = 0;
this->ChangeVelocity = 0.0;
this->ChangeTimeout = 0x1e;
this->DepthOffset = 0.0;
this->Variant = 0;
this[1].GridCollision = 0;
this[1].HeightModifier = (float)&DAT_bf800000;
this[1].FallingSpeedModifier = 0.0;
*GHIDRA_CAST<undefined1 *>(&this[1].FallingAccelModifier) = 0;
return this;
}