Force hidden 1up triggers to be invisible and E_MODEL_NONE

This commit is contained in:
David Joslin 2023-10-26 16:53:50 -07:00
parent 99ad09cfd3
commit 3cd9b60f87
3 changed files with 9 additions and 0 deletions

View file

@ -4984,6 +4984,7 @@ const BehaviorScript bhvHidden1upTrigger[] = {
OR_INT(oFlags, OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE),
SET_HITBOX(/*Radius*/ 100, /*Height*/ 100),
SET_INT(oIntangibleTimer, 0),
CALL_NATIVE(bhv_1up_trigger_init),
BEGIN_LOOP(),
CALL_NATIVE(bhv_1up_hidden_trigger_loop),
END_LOOP(),
@ -5009,6 +5010,7 @@ const BehaviorScript bhvHidden1upInPoleTrigger[] = {
OR_INT(oFlags, OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE),
SET_HITBOX(/*Radius*/ 100, /*Height*/ 100),
SET_INT(oIntangibleTimer, 0),
CALL_NATIVE(bhv_1up_trigger_init),
BEGIN_LOOP(),
CALL_NATIVE(bhv_1up_hidden_in_pole_trigger_loop),
END_LOOP(),
@ -5018,6 +5020,7 @@ const BehaviorScript bhvHidden1upInPoleSpawner[] = {
BEGIN(OBJ_LIST_LEVEL),
ID(id_bhvHidden1upInPoleSpawner),
OR_INT(oFlags, OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE),
CALL_NATIVE(bhv_1up_trigger_init),
BEGIN_LOOP(),
CALL_NATIVE(bhv_1up_hidden_in_pole_spawner_loop),
END_LOOP(),

View file

@ -409,6 +409,7 @@ void bhv_hidden_star_trigger_loop(void);
void bhv_ttm_rolling_log_init(void);
void bhv_rolling_log_loop(void);
void bhv_lll_rolling_log_init(void);
void bhv_1up_trigger_init(void);
void bhv_1up_common_init(void);
void bhv_1up_walking_loop(void);
void bhv_1up_running_away_loop(void);

View file

@ -19,6 +19,11 @@ void bhv_1up_interact(void) {
}
}
void bhv_1up_trigger_init(void) {
obj_set_model_extended(o, E_MODEL_NONE);
cur_obj_hide();
}
void bhv_1up_common_init(void) {
o->oMoveAnglePitch = -0x4000;
o->oGravity = 3.0f;