mirror of
https://github.com/zeldaret/tp
synced 2026-07-09 06:53:23 -04:00
d_a_obj_key / d_a_obj_keyhole / d_a_obj_smallkey (#2584)
* obj_key equivalent * obj_keyhole done * obj_smallkey done * use macro
This commit is contained in:
@@ -756,7 +756,7 @@ int daBdoorL1_c::unlockInit() {
|
||||
obj_keyhole_class* keyhole = (obj_keyhole_class*)fopAcM_SearchByID(mKeyHoleId);
|
||||
if (keyhole != NULL) {
|
||||
keyhole->setOpen();
|
||||
mDoAud_seStart(Z2SE_OBJ_BOSS_LOCK_OPEN, &keyhole->current.pos, 0, 0);
|
||||
mDoAud_seStart(Z2SE_OBJ_BOSS_LOCK_OPEN, &keyhole->actor.current.pos, 0, 0);
|
||||
}
|
||||
field_0x59b = 1;
|
||||
return 1;
|
||||
|
||||
@@ -330,7 +330,7 @@ int daBdoorL5_c::unlockInit() {
|
||||
obj_keyhole_class* keyHole = (obj_keyhole_class*)fopAcM_SearchByID(mKeyHoleId);
|
||||
if (keyHole != NULL) {
|
||||
keyHole->setOpen();
|
||||
mDoAud_seStart(Z2SE_OBJ_BOSS_LOCK_OPEN_LV5, &keyHole->current.pos, 0, 0);
|
||||
mDoAud_seStart(Z2SE_OBJ_BOSS_LOCK_OPEN_LV5, &keyHole->actor.current.pos, 0, 0);
|
||||
}
|
||||
dComIfGs_onSwitch(door_param2_c::getSwbit(this), fopAcM_GetRoomNo(this));
|
||||
return 1;
|
||||
|
||||
@@ -89,7 +89,7 @@ static int daE_MK_Draw(e_mk_class* i_this) {
|
||||
static void* s_obj_delete(void* i_actor, void* i_data) {
|
||||
if (fopAcM_IsActor(i_actor)) {
|
||||
if (fopAcM_GetName(i_actor) == PROC_E_DB) {
|
||||
static_cast<e_db_class*>(i_actor)->health = 1000;
|
||||
static_cast<e_db_class*>(i_actor)->enemy.health = 1000;
|
||||
} else if (fopAcM_GetName(i_actor) == PROC_E_DB_LEAF) {
|
||||
fopAcM_delete(static_cast<e_db_leaf_class*>(i_actor));
|
||||
}
|
||||
@@ -216,7 +216,7 @@ static e_db_class* search_db(e_mk_class* i_this) {
|
||||
int i = 0;
|
||||
while (i < target_info_count) {
|
||||
pDekuBaba = (e_db_class*)target_info[i];
|
||||
sp44 = pDekuBaba->current.pos - i_this->enemy.current.pos;
|
||||
sp44 = pDekuBaba->enemy.current.pos - i_this->enemy.current.pos;
|
||||
|
||||
f32 fVar2 = sp44.abs();
|
||||
if ((cM_rndF(1.0f) < 0.5f && fVar2 > 500.0f) && fVar2 < fVar1) {
|
||||
@@ -491,7 +491,7 @@ static void e_mk_shoot(e_mk_class* i_this) {
|
||||
break;
|
||||
|
||||
case 10:
|
||||
sp48 = i_this->field_0x70c->current.pos - i_this->enemy.current.pos;
|
||||
sp48 = i_this->field_0x70c->enemy.current.pos - i_this->enemy.current.pos;
|
||||
cLib_addCalcAngleS2(&i_this->enemy.current.angle.y, cM_atan2s(sp48.x, sp48.z), 2, 0x1000);
|
||||
if (i_this->mpModelMorf->checkFrame(15.0f)) {
|
||||
i_this->mSound.startCreatureVoice(Z2SE_EN_MK_V_THROW_BOOM, -1);
|
||||
|
||||
+613
-548
File diff suppressed because it is too large
Load Diff
+821
-1072
File diff suppressed because it is too large
Load Diff
+471
-714
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user