Labeling particle related code (#719)

* Labeling particle related code

* More labeling. Naming pass on what was labeled last commit

* Stick X clamped with deadzone

* Renaming TyreParticle to Particle

* Matching coco's names and renaming some already labeled to keep style consistent

* Minor extra particle labeling

* Small extra labeling. Restoring some removed newlines

* One last newline adjustment

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
This commit is contained in:
ZackWeinstein
2025-06-21 14:59:32 -04:00
committed by GitHub
parent 184f5939f2
commit d6076b5cb7
9 changed files with 1447 additions and 1445 deletions
+27 -27
View File
@@ -1467,9 +1467,9 @@ void apply_boo_sound_effect(Player* player, s8 playerIndex) {
player->unk_044 |= 0x200;
for (temp_v1 = 0; temp_v1 < 10; ++temp_v1) {
player->unk_258[temp_v1].unk_01C = 0;
player->unk_258[temp_v1].unk_01E = 0;
player->unk_258[temp_v1].unk_012 = 0;
player->particles[temp_v1].IsAlive = 0;
player->particles[temp_v1].timer = 0;
player->particles[temp_v1].type = 0;
}
}
@@ -1548,9 +1548,9 @@ void func_8008FD4C(Player* player, UNUSED s8 arg1) {
player->unk_044 |= 0x200;
for (temp_v0 = 0; temp_v0 < 10; ++temp_v0) {
player->unk_258[temp_v0].unk_01C = 0;
player->unk_258[temp_v0].unk_01E = 0;
player->unk_258[temp_v0].unk_012 = 0;
player->particles[temp_v0].IsAlive = 0;
player->particles[temp_v0].timer = 0;
player->particles[temp_v0].type = 0;
}
}
@@ -1558,9 +1558,9 @@ void func_8008FDA8(Player* player, UNUSED s8 arg1) {
s16 temp_v0;
player->unk_044 |= 0x200;
for (temp_v0 = 0; temp_v0 < 10; ++temp_v0) {
player->unk_258[temp_v0].unk_01C = 0;
player->unk_258[temp_v0].unk_01E = 0;
player->unk_258[temp_v0].unk_012 = 0;
player->particles[temp_v0].IsAlive = 0;
player->particles[temp_v0].timer = 0;
player->particles[temp_v0].type = 0;
}
}
@@ -2025,30 +2025,30 @@ void func_800911B4(Player* player, s8 arg1) {
player->unk_078 = 0;
D_8018D920[arg1] = 0;
player->unk_258[31].unk_012 = 0;
player->unk_258[31].unk_01E = 0;
player->unk_258[31].unk_01C = 0;
player->unk_258[30].unk_012 = 0;
player->unk_258[30].unk_01E = 0;
player->unk_258[30].unk_01C = 0;
player->particles[31].type = 0;
player->particles[31].timer = 0;
player->particles[31].IsAlive = 0;
player->particles[30].type = 0;
player->particles[30].timer = 0;
player->particles[30].IsAlive = 0;
// clang-format off
temp_v0 = 2; do {
// clang-format on
player->unk_258[31 + temp_v0].unk_01C = 0;
player->unk_258[31 + temp_v0].unk_01E = 0;
player->unk_258[31 + temp_v0].unk_012 = 0;
player->unk_258[32 + temp_v0].unk_01C = 0;
player->unk_258[32 + temp_v0].unk_01E = 0;
player->unk_258[32 + temp_v0].unk_012 = 0;
player->unk_258[33 + temp_v0].unk_01C = 0;
player->unk_258[33 + temp_v0].unk_01E = 0;
player->unk_258[33 + temp_v0].unk_012 = 0;
player->particles[31 + temp_v0].IsAlive = 0;
player->particles[31 + temp_v0].timer = 0;
player->particles[31 + temp_v0].type = 0;
player->particles[32 + temp_v0].IsAlive = 0;
player->particles[32 + temp_v0].timer = 0;
player->particles[32 + temp_v0].type = 0;
player->particles[33 + temp_v0].IsAlive = 0;
player->particles[33 + temp_v0].timer = 0;
player->particles[33 + temp_v0].type = 0;
temp_v0 += 4;
player->unk_258[26 + temp_v0].unk_01C = 0;
player->unk_258[26 + temp_v0].unk_01E = 0;
player->unk_258[26 + temp_v0].unk_012 = 0;
player->particles[26 + temp_v0].IsAlive = 0;
player->particles[26 + temp_v0].timer = 0;
player->particles[26 + temp_v0].type = 0;
} while (temp_v0 < 10);
}