mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-08 07:20:16 +00:00
Actor Cleanups (#177)
* rename init chains, colchkinfo, colider inits, damage tables * actor cleanups * fix collider init script names * small fixes * ichain arg name * change dynapoly types and names * revert enru1 data name * and the type * pr suggestions
This commit is contained in:
parent
13a94482e5
commit
78d0883f04
108 changed files with 786 additions and 869 deletions
|
@ -32,7 +32,7 @@ const ActorInit Oceff_Spot_InitVars = {
|
|||
|
||||
#include "z_oceff_spot_gfx.c"
|
||||
|
||||
static InitChainEntry initChain[] = {
|
||||
static InitChainEntry sInitChain[] = {
|
||||
ICHAIN_VEC3F_DIV1000(scale, 0, ICHAIN_CONTINUE),
|
||||
ICHAIN_F32(unk_F4, 1500, ICHAIN_STOP),
|
||||
};
|
||||
|
@ -45,7 +45,7 @@ void OceffSpot_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||
u32 pad;
|
||||
OceffSpot* this = THIS;
|
||||
|
||||
Actor_ProcessInitChain(&this->actor, initChain);
|
||||
Actor_ProcessInitChain(&this->actor, sInitChain);
|
||||
OceffSpot_SetupAction(this, OceffSpot_GrowCylinder);
|
||||
|
||||
Lights_InitType0PositionalLight(&this->lightInfo1, this->actor.posRot.pos.x, this->actor.posRot.pos.y,
|
||||
|
@ -160,10 +160,10 @@ void OceffSpot_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||
|
||||
gSPMatrix(gfxCtx->polyXlu.p++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_oceff_spot.c", 469),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, textureDl);
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, sTextureDL);
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, scroll * 2, scroll * (-2), 32, 32,
|
||||
1, 0, scroll * (-8), 32, 32));
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, cylinderDl);
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, sCylinderDl);
|
||||
|
||||
Graph_CloseDisps(dispRefs, globalCtx->state.gfxCtx, "../z_oceff_spot.c", 485);
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ static Vtx vertices[] = {
|
|||
VTX(35, 500, 35, 768, 0, 0xFF, 0xFF, 0xFF, 0xFF),
|
||||
};
|
||||
|
||||
static Gfx textureDl[] = {
|
||||
static Gfx sTextureDL[] = {
|
||||
gsDPPipeSync(),
|
||||
gsDPSetTextureLUT(G_TT_NONE),
|
||||
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
||||
|
@ -70,7 +70,7 @@ static Gfx textureDl[] = {
|
|||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
static Gfx cylinderDl[] = {
|
||||
static Gfx sCylinderDl[] = {
|
||||
gsSPVertex(vertices, 27, 0),
|
||||
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
|
||||
gsSP2Triangles(1, 4, 5, 0, 1, 5, 2, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue