mirror of https://github.com/zeldaret/tp.git
Link d_a_e_fb
This commit is contained in:
parent
f6e2cbca9d
commit
6cc002e5ae
|
|
@ -2137,7 +2137,7 @@ config.libs = [
|
|||
ActorRel(MatchingFor(ALL_GCN), "d_a_e_df"),
|
||||
ActorRel(MatchingFor(ALL_GCN), "d_a_e_dk"),
|
||||
ActorRel(MatchingFor(ALL_GCN), "d_a_e_dt"),
|
||||
ActorRel(NonMatching, "d_a_e_fb"),
|
||||
ActorRel(MatchingFor(ALL_GCN), "d_a_e_fb"),
|
||||
ActorRel(MatchingFor(ALL_GCN), "d_a_e_fk"),
|
||||
ActorRel(MatchingFor(ALL_GCN), "d_a_e_fs"),
|
||||
ActorRel(MatchingFor(ALL_GCN), "d_a_e_fz"),
|
||||
|
|
|
|||
|
|
@ -379,7 +379,6 @@ void daE_FB_c::executeWait() {
|
|||
static int mFireTimer;
|
||||
|
||||
void daE_FB_c::executeAttack() {
|
||||
// NONMATCHING - regalloc purgatory
|
||||
static u16 a_eff_id[3] = {
|
||||
dPa_RM(ID_ZI_S_FL_BREATH_A),
|
||||
dPa_RM(ID_ZI_S_FL_BREATH_B),
|
||||
|
|
@ -425,8 +424,8 @@ void daE_FB_c::executeAttack() {
|
|||
}
|
||||
/* fallthrough */
|
||||
case 2:
|
||||
if (mMoveMode != 3) {
|
||||
search_check();
|
||||
if (mMoveMode != 3 && search_check()) {
|
||||
// empty
|
||||
}
|
||||
|
||||
if (mType == 0 && mBgLineCheck()) {
|
||||
|
|
@ -451,9 +450,9 @@ void daE_FB_c::executeAttack() {
|
|||
field_0x68f &= (u8) 1;
|
||||
if (field_0x68f == 0) {
|
||||
csXyz sp_0x28;
|
||||
int child_type = 10;
|
||||
u32 child_type = 10;
|
||||
sp_0x28 = shape_angle;
|
||||
sp_0x28.x = mHeadAngle + 0x2BC + JREG_S(1);
|
||||
sp_0x28.x = mHeadAngle + 700 + JREG_S(1);
|
||||
if (mType == 1) {
|
||||
if (current.pos.y <= 300.0f) {
|
||||
sp_0x28.x = mHeadAngle + 2000 + BREG_S(2);
|
||||
|
|
@ -481,10 +480,10 @@ void daE_FB_c::executeAttack() {
|
|||
}
|
||||
|
||||
if (mMoveMode == 3) {
|
||||
fopAc_ac_c* player = dComIfGp_getPlayer(0);
|
||||
fopAc_ac_c* player = (fopAc_ac_c*) dComIfGp_getPlayer(0);
|
||||
cLib_addCalcAngleS2(&shape_angle.y, mRotation, 1, l_HIO.rotation_width_stairs);
|
||||
if (current.pos.y <= 300.0f) {
|
||||
mHeadAngle = f32(NREG_S(1) + 14000 - abs(shape_angle.y)) / (6.0f + NREG_F(1));
|
||||
mHeadAngle = f32(NREG_S(1) + 14000 - abs(s16(shape_angle.y))) / (6.0f + NREG_F(1));
|
||||
if (player->current.pos.x > -2800.0f) {
|
||||
field_0x69c = 0;
|
||||
current.angle.y = shape_angle.y;
|
||||
|
|
@ -493,7 +492,7 @@ void daE_FB_c::executeAttack() {
|
|||
}
|
||||
} else {
|
||||
mHeadAngle = NREG_S(2) - 2500;
|
||||
mHeadAngle = mHeadAngle - abs(shape_angle.y) * (-0.2f + NREG_F(2));
|
||||
mHeadAngle -= abs(s16(shape_angle.y)) * (-0.2f + NREG_F(2));
|
||||
if (player->current.pos.x < -3600.0f) {
|
||||
field_0x69c = 0;
|
||||
current.angle.y = shape_angle.y;
|
||||
|
|
|
|||
|
|
@ -1382,7 +1382,8 @@ static int npc_ks_demo_02(npc_ks_class* i_this) {
|
|||
}
|
||||
break;
|
||||
|
||||
case 20:
|
||||
case 20: {
|
||||
int _;
|
||||
cLib_addCalcAngleS2(&actor->current.angle.x, 0, 1, 0x800);
|
||||
if (i_this->model->isStop()) {
|
||||
i_this->mode = 16;
|
||||
|
|
@ -1393,6 +1394,7 @@ static int npc_ks_demo_02(npc_ks_class* i_this) {
|
|||
i_this->timer[2] = 30;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
cLib_addCalc2(&actor->speedF, speed, 1.0f, 4.0f);
|
||||
|
|
@ -2086,7 +2088,7 @@ static void npc_ks_hang_s(npc_ks_class* i_this) {
|
|||
|
||||
s16 sVar1;
|
||||
switch (i_this->mode) {
|
||||
case 0:
|
||||
case 0: {
|
||||
int asdf;
|
||||
i_this->mode++;
|
||||
i_this->sound.startCreatureSound(Z2SE_FN_ROPE_CREAK, 0, -1);
|
||||
|
|
@ -2094,8 +2096,10 @@ static void npc_ks_hang_s(npc_ks_class* i_this) {
|
|||
sw_p->field_0xd10[i_this->field_0x630] = 10;
|
||||
i_this->field_0x92c = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
case 1:
|
||||
case 1: {
|
||||
int _;
|
||||
if (i_this->res_id != 16 && i_this->dis < 550.0f + YREG_F(9)) {
|
||||
anm_init(i_this, 16, 5.0f, 2, 1.0f);
|
||||
i_this->timer[0] = cM_rndF(50.0f) + 200.0f;
|
||||
|
|
@ -2140,6 +2144,7 @@ static void npc_ks_hang_s(npc_ks_class* i_this) {
|
|||
actor->home.angle.y = sw_p->actor.current.angle.y;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 2:
|
||||
if (i_this->timer[0] > s16(8 + BREG_S(5))) {
|
||||
|
|
|
|||
|
|
@ -367,14 +367,19 @@ cPhs__Step daNpcShad_c::Create() {
|
|||
if (!daNpcF_chkEvtBit(0x312)) {
|
||||
if (getPathPoint(getPathID(), 1, &home.pos)) {
|
||||
current.pos = home.pos;
|
||||
#if VERSION != VERSION_WII_USA_R0
|
||||
old.pos = current.pos;
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
}
|
||||
#if VERSION != VERSION_WII_USA_R0
|
||||
else {
|
||||
home.pos.set(4342.7183f, -1518.5f, -3942.3232f);
|
||||
current.pos = home.pos;
|
||||
old.pos = current.pos;
|
||||
setAngle(-0x2581);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
mMode = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue