2#include "sprite/npc/Kolorado.h"
10 return (
Npc*) npcIdOrPtr;
14API_CALLABLE(N(UnkAngleFunc001)) {
28 if (N(unkAngle1) >= 360) {
33 if (npc->
curAnim == ANIM_Kolorado_Still ||
34 npc->
curAnim == ANIM_Kolorado_Walk ||
35 npc->
curAnim == ANIM_Kolorado_Talk ||
36 npc->
curAnim == ANIM_Kolorado_HurtStill)
38 y += 2.0f *
sin_deg(N(unkAngle1));
47void N(
unkVtxFunc001)(Vtx* firstVertex, Vtx* copiedVertices, s32 numVertices, s32* wagPhasePtr) {
49 s32 bendPow, bendFrac;
56 wagPhase = *wagPhasePtr;
58 case ANIM_Kolorado_Still:
59 case ANIM_Kolorado_Yell:
60 case ANIM_Kolorado_IdleSad:
61 case ANIM_Kolorado_Walk:
62 case ANIM_Kolorado_WalkSad:
63 case ANIM_Kolorado_Run:
64 case ANIM_Kolorado_Panic:
65 case ANIM_Kolorado_Talk:
66 case ANIM_Kolorado_TalkSad:
67 case ANIM_Kolorado_Fallen:
68 case ANIM_Kolorado_HurtStill:
70 case ANIM_Kolorado_Idle:
71 case ANIM_Kolorado_Shout:
72 if (*wagPhasePtr < 0) {
79 for (i = 0; i < numVertices; i++) {
80 vtxPos = firstVertex[i].v.ob;
87 bendPow = (vtxPos[0] - offset) / 10;
88 bendFrac = vtxPos[0] - ((bendPow * 10) + offset);
90 for (j = 0; j < bendPow; j++) {
91 angle = (j / 15.0f) + ((j / 40.0f) *
sin_deg(wagPhase));
96 angle = (j / 15.0f) + ((j / 40.0f) *
sin_deg(wagPhase));
97 newX += bendFrac *
cos_rad(angle);
98 newY += bendFrac *
sin_rad(angle);
100 copiedVertices[i].v.ob[0] = newX;
101 copiedVertices[i].v.ob[1] = vtxPos[1] + newY;
112 N(
unkVtxFunc001)(firstVertex, copiedVertices, numVertices, &N(unkAngle2));
115 if (N(unkAngle2) >= 0) {
118 if (N(unkAngle2) >= 360) {
129 N(
unkVtxFunc001)(firstVertex, copiedVertices, numVertices, &N(unkAngle3));
132 if (N(unkAngle3) >= 0) {
135 if (N(unkAngle3) >= 360) {
void N unkAngleFunc003(void)
void N unkVtxFunc001(Vtx *firstVertex, Vtx *copiedVertices, s32 numVertices, s32 *wagPhasePtr)
void N unkAngleFunc002(void)
Npc *N resolve_npc(Evt *script, s32 npcIdOrPtr)
Gfx * mdl_get_copied_gfx(s32 copyIndex)
s32 evt_get_variable(Evt *script, Bytecode var)
f32 evt_set_float_variable(Evt *script, Bytecode var, f32 value)
void mdl_get_copied_vertices(s32 copyIndex, Vtx **firstVertex, Vtx **copiedVertices, s32 *numCopied)
Npc * get_npc_safe(s32 npcID)