mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Environment documentation pass (#1115)
* some docs, start introducing time macro * most usages of CLOCK_TIME * finish up clock time defines, format * saving incase i need to revert * more docs * more docs progress * some more docs * format with 11 * change sos to storm * update functions.h * some depth stuff * review 1 and 2 * whoops * update zbuf stuff * most of review 3 * enum name * storm state enum * review 4 * fix enum * add comment to skyboxischanging * review * things dont match, committing so i can change branches * revert struct changes * define for override_full_control * new clock_time macro * fill alpha -> glare strength * update comment * remove indoor/outdoor, new name for underwater light variable * remove copy pasted comment * fix comments * remove whitespave * review
This commit is contained in:
parent
d7bbe43ba7
commit
4f0018bf36
50 changed files with 1339 additions and 1087 deletions
|
@ -222,12 +222,13 @@ void ObjectKankyo_Fairies(ObjectKankyo* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
}
|
||||
|
||||
if (globalCtx->envCtx.unk_EE[3] < 64 && (gSaveContext.entranceIndex != ENTR_SPOT04_0 ||
|
||||
gSaveContext.sceneSetupIndex != 4 || globalCtx->envCtx.unk_EE[3])) {
|
||||
globalCtx->envCtx.unk_EE[3] += 16;
|
||||
if (globalCtx->envCtx.precipitation[PRECIP_SNOW_MAX] < 64 &&
|
||||
(gSaveContext.entranceIndex != ENTR_SPOT04_0 || gSaveContext.sceneSetupIndex != 4 ||
|
||||
globalCtx->envCtx.precipitation[PRECIP_SNOW_MAX])) {
|
||||
globalCtx->envCtx.precipitation[PRECIP_SNOW_MAX] += 16;
|
||||
}
|
||||
|
||||
for (i = 0; i < globalCtx->envCtx.unk_EE[3]; i++) {
|
||||
for (i = 0; i < globalCtx->envCtx.precipitation[PRECIP_SNOW_MAX]; i++) {
|
||||
// spawn in front of the camera
|
||||
dx = globalCtx->view.at.x - globalCtx->view.eye.x;
|
||||
dy = globalCtx->view.at.y - globalCtx->view.eye.y;
|
||||
|
@ -495,7 +496,7 @@ void ObjectKankyo_DrawFairies(ObjectKankyo* this2, GlobalContext* globalCtx2) {
|
|||
gSPSegment(POLY_XLU_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(gSun1Tex));
|
||||
gSPDisplayList(POLY_XLU_DISP++, gKokiriDustMoteMaterialDL);
|
||||
|
||||
for (i = 0; i < globalCtx->envCtx.unk_EE[3]; i++) {
|
||||
for (i = 0; i < globalCtx->envCtx.precipitation[PRECIP_SNOW_MAX]; i++) {
|
||||
Matrix_Translate(this->effects[i].base.x + this->effects[i].pos.x,
|
||||
this->effects[i].base.y + this->effects[i].pos.y,
|
||||
this->effects[i].base.z + this->effects[i].pos.z, MTXMODE_NEW);
|
||||
|
@ -586,17 +587,18 @@ void ObjectKankyo_DrawSnow(ObjectKankyo* this2, GlobalContext* globalCtx2) {
|
|||
|
||||
if (!(globalCtx->cameraPtrs[CAM_ID_MAIN]->unk_14C & 0x100)) {
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_object_kankyo.c", 958);
|
||||
if (globalCtx->envCtx.unk_EE[2] < globalCtx->envCtx.unk_EE[3]) {
|
||||
if (globalCtx->envCtx.precipitation[PRECIP_SNOW_CUR] < globalCtx->envCtx.precipitation[PRECIP_SNOW_MAX]) {
|
||||
if (globalCtx->state.frames % 16 == 0) {
|
||||
globalCtx->envCtx.unk_EE[2] += 2;
|
||||
globalCtx->envCtx.precipitation[PRECIP_SNOW_CUR] += 2;
|
||||
}
|
||||
} else if (globalCtx->envCtx.unk_EE[2] > globalCtx->envCtx.unk_EE[3]) {
|
||||
} else if (globalCtx->envCtx.precipitation[PRECIP_SNOW_CUR] >
|
||||
globalCtx->envCtx.precipitation[PRECIP_SNOW_MAX]) {
|
||||
if (globalCtx->state.frames % 16 == 0) {
|
||||
globalCtx->envCtx.unk_EE[2] -= 2;
|
||||
globalCtx->envCtx.precipitation[PRECIP_SNOW_CUR] -= 2;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < globalCtx->envCtx.unk_EE[2]; i++) {
|
||||
for (i = 0; i < globalCtx->envCtx.precipitation[PRECIP_SNOW_CUR]; i++) {
|
||||
switch (this->effects[i].state) {
|
||||
case 0:
|
||||
// spawn in front of the camera
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue