Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
GetKammyBroomEmitterPos.inc.c
Go to the documentation of this file.
1#include "common.h"
2#include "npc.h"
3
4#ifndef KAMMY_NPC
5#error KAMMY_NPC must be defined
6#define KAMMY_NPC 0
7#endif
8
9API_CALLABLE(N(GetKammyBroomEmitterPos)) {
11
12 script->varTable[0] = npc->pos.x + (sin_deg(npc->yaw + gCameras[CAM_DEFAULT].curYaw + 180.0f) * 40.0f);
13 script->varTable[1] = npc->pos.y + 8.0f;
14 script->varTable[2] = npc->pos.z - (cos_deg(npc->yaw + gCameras[CAM_DEFAULT].curYaw + 180.0f) * 40.0f);
15 return ApiStatus_DONE2;
16}
#define KAMMY_NPC
#define sin_deg
#define cos_deg
@ CAM_DEFAULT
Definition enums.h:1800
#define ApiStatus_DONE2
Definition evt.h:118
Npc * get_npc_unsafe(s32 npcID)
Definition npc.c:995
Vec3f pos
Camera gCameras[4]
Definition cam_main.c:17