24 (*gCurrentTriggerListPtr)[i] = NULL;
33 collisionStatus->
unk_0C = -1;
34 collisionStatus->
unk_0E = -1;
35 collisionStatus->
unk_10 = -1;
60 Trigger* listTrigger = (*gCurrentTriggerListPtr)[i];
62 if (listTrigger == NULL) {
69 (*gCurrentTriggerListPtr)[i] = trigger =
heap_malloc(
sizeof(*trigger));
97 listTrigger = (*gCurrentTriggerListPtr)[i];
99 if (listTrigger == NULL) {
176 if (listTrigger->
location.colliderID != collisionStatus->
unk_0C) {
182 if (listTrigger->
location.colliderID != collisionStatus->
unk_0E) {
188 if (listTrigger->
location.colliderID != collisionStatus->
unk_10) {
201 bombPos = listTrigger->
location.blast;
206 if ((bombPos->
diameter * 0.5f) + 50.0f < dist) {
223 listTrigger = (*gCurrentTriggerListPtr)[i];
225 if (listTrigger == NULL) {
232 listTrigger->
flags &= ~TRIGGER_ACTIVATED;
250 (*gCurrentTriggerListPtr)[i] = NULL;
258 Trigger* listTrigger = (*gCurrentTriggerListPtr)[i];
260 if (listTrigger == NULL || listTrigger == trigger) {
289 Trigger* trigger = (*gCurrentTriggerListPtr)[i];
293 && trigger->
location.colliderID == colliderID
Vec3f bombetteExplosionPos
Trigger * TriggerList[64]
#define ASSERT(condition)
s32 phys_can_player_interact(void)
f32 dist3D(f32 ax, f32 ay, f32 az, f32 bx, f32 by, f32 bz)
void * heap_malloc(s32 size)
s32(* onActivateFunc)(struct Trigger *)
s32 hasPlayerInteractPrompt
union Trigger::@1 location
s32(* onActivateFunc)(struct Trigger *)
u8 hasPlayerInteractPrompt
s32 should_collider_allow_interact(s32 colliderID)
void default_trigger_on_activate(Trigger *self)
Trigger * get_trigger_by_id(s32 triggerID)
BSS TriggerList * gCurrentTriggerListPtr
void clear_trigger_data(void)
void init_trigger_list(void)
BSS TriggerList bTriggerList
void update_triggers(void)
s32 is_another_trigger_bound(Trigger *trigger, EvtScript *script)
BSS TriggerList wTriggerList
void delete_trigger(Trigger *toDelete)
Trigger * create_trigger(TriggerBlueprint *bp)
CollisionStatus gCollisionStatus
GameStatus * gGameStatusPtr
PlayerStatus gPlayerStatus
s32 get_global_flag(s32 index)
s32 get_area_flag(s32 index)