mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 14:50:15 +00:00
Oshihiki (#441)
* Darkmeiro decompilation Bg_Gnd_Darkmeiro decompiled, matched, and documented. * give this a shot * fix conflict * one more try * could be useful * whoops * matching * format * document and format * .s files * cleanup and macros in block-related actors * fixed a few more things, also an error I cso an error I caught in another file.
This commit is contained in:
parent
695552f0b8
commit
93fc51e9b6
41 changed files with 715 additions and 1956 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_obj_lightswitch.h"
|
||||
#include "vt.h"
|
||||
#include "overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.h"
|
||||
|
||||
#define FLAGS 0x00000010
|
||||
|
||||
|
@ -176,10 +177,11 @@ void ObjLightswitch_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||
this->actor.posRot.rot.x = this->actor.initPosRot.rot.x = this->actor.shape.rot.x;
|
||||
this->actor.posRot.rot.z = this->actor.initPosRot.rot.z = this->actor.shape.rot.z;
|
||||
this->actor.flags |= 0x20;
|
||||
if (!Actor_SpawnAsChild(&globalCtx->actorCtx, &this->actor, globalCtx, ACTOR_OBJ_OSHIHIKI,
|
||||
this->actor.initPosRot.pos.x, this->actor.initPosRot.pos.y,
|
||||
this->actor.initPosRot.pos.z, 0, this->actor.initPosRot.rot.y, 0, 0xFF00)) {
|
||||
if (Actor_SpawnAsChild(&globalCtx->actorCtx, &this->actor, globalCtx, ACTOR_OBJ_OSHIHIKI,
|
||||
this->actor.initPosRot.pos.x, this->actor.initPosRot.pos.y, this->actor.initPosRot.pos.z,
|
||||
0, this->actor.initPosRot.rot.y, 0, (0xFF << 8) | PUSHBLOCK_SMALL_START_ON) == NULL) {
|
||||
osSyncPrintf(VT_COL(RED, WHITE));
|
||||
// Push-pull block occurrence failure
|
||||
osSyncPrintf("押引ブロック発生失敗(%s %d)(arg_data 0x%04x)\n", "../z_obj_lightswitch.c", 452,
|
||||
this->actor.params);
|
||||
osSyncPrintf(VT_RST);
|
||||
|
@ -191,11 +193,15 @@ void ObjLightswitch_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||
if (removeSelf) {
|
||||
Actor_Kill(&this->actor);
|
||||
}
|
||||
// Light switch
|
||||
osSyncPrintf("(光スイッチ)(arg_data 0x%04x)\n", this->actor.params);
|
||||
}
|
||||
|
||||
void ObjLightswitch_Destroy(Actor* thisx, GlobalContext* globalCtx) {
|
||||
Collider_DestroyJntSph(globalCtx, &THIS->collider);
|
||||
GlobalContext* globalCtx2 = globalCtx;
|
||||
ObjLightswitch* this = THIS;
|
||||
|
||||
Collider_DestroyJntSph(globalCtx2, &this->collider);
|
||||
}
|
||||
|
||||
void ObjLightswitch_SetupOff(ObjLightswitch* this) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue