papermario/src/code_109660_len_1270.c

68 lines
1.9 KiB
C
Raw Normal View History

2020-08-04 08:49:11 +02:00
#include "common.h"
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E7DE0);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E7F40);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E7F6C);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E7FA0);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E854C);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E8858);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E88EC);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E89B0);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E89F8);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E8A58);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E8ADC);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E8BC0);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E8C94);
2020-09-24 05:16:13 +02:00
2020-09-22 02:56:17 +02:00
void player_enter_blue_pipe(Entity* bluePipe) {
PlayerStatus* playerStatus = &gPlayerStatus;
Trigger* pipeTrigger = bluePipe->trigger;
playerStatus->targetYaw = gCameras[gCurrentCameraID].currentYaw + 180.0f;
2020-09-22 02:59:58 +02:00
pipeTrigger->params1 = 0x19;
2020-09-22 02:56:17 +02:00
playerStatus->renderMode = 0xD;
2020-09-22 02:59:58 +02:00
2020-09-22 02:56:17 +02:00
func_802DDFF8(0x10002, 5, 2, 1, 1, 0, 0);
play_sound(0x163);
disable_player_shadow();
}
void func_802E8D74(Entity* entity) {
PlayerStatus* playerStatus = &gPlayerStatus;
Trigger* entityTrigger = entity->trigger;
playerStatus->position.y--;
2020-09-22 02:59:58 +02:00
entityTrigger->params1--;
2020-09-22 02:56:17 +02:00
2020-09-22 02:59:58 +02:00
if (entityTrigger->params1 == -1) {
2020-09-22 02:56:17 +02:00
playerStatus->renderMode = 0xD;
playerStatus->position.y -= 50.0f;
func_802DDFF8(0x10002, 0, 0, 0, 0, 0, 0);
func_8010FD68(entity);
}
}
void func_802E8E10(Entity* entity) {
Bytecode* triggerScriptStart = entity->trigger->scriptStart;
2020-09-22 02:59:58 +02:00
2020-09-22 02:56:17 +02:00
D_8009A650[0] &= ~0x40;
entity->boundScript = triggerScriptStart;
func_80110678();
}
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", push_entity_matrix);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_109660_len_1270", func_802E8F94);