#include "libforest/gbi_extensions.h"
#include "PR/gbi.h"
#include "evw_anime.h"
#include "c_keyframe.h"
#include "ac_npc.h"
#include "ef_effect_control.h"

u8 cKF_ckcb_r_npc_1_niko_f1_tbl[] = { 56, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 0, 7, 7, 7, 7, 0, 7, 0, 0 };

s16 cKF_kn_npc_1_niko_f1_tbl[] = { 2, 5, 5, 2, 3, 2, 4, 5, 5, 2, 5, 2, 2, 5, 5, 5, 5, 5, 2, 5, 2, 2, 5, 5, 2, 5, 2,
                                   2, 6, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 4, 4, 2, 4, 2, 2, 2, 2, 2, 5, 4, 2, 2, 2 };

s16 cKF_c_npc_1_niko_f1_tbl[] = { 0,    0, 900, 0,   0, 1800, 0, 0, 1800, 0, 900, 0, 0,   0,
                                  -900, 0, 0,   900, 0, -900, 0, 0, 0,    0, 0,   0, -900 };

s16 cKF_ds_npc_1_niko_f1_tbl[] = {
    1,  0,    0, 33, 0,    0,    1,  975,  0,    9,  1025, 0,    17, 975,  0,   25, 1025, 0,    33, 975,  0,
    1,  0,    0, 9,  60,   0,    17, 40,   0,    25, 60,   0,    33, 0,    0,   1,  0,    0,    33, 0,    0,
    1,  60,   0, 17, 20,   0,    33, 60,   0,    1,  90,   0,    33, 90,   0,   1,  -185, 0,    9,  -181, 0,
    25, -181, 0, 33, -185, 0,    1,  40,   0,    9,  66,   0,    17, 9,    0,   25, 66,   0,    33, 40,   0,
    1,  -85,  0, 9,  -90,  0,    17, -81,  0,    25, -90,  0,    33, -85,  0,   1,  0,    0,    33, 0,    0,
    1,  40,   0, 9,  0,    0,    17, 80,   0,    25, 0,    0,    33, 40,   0,   1,  0,    0,    33, 0,    0,
    1,  0,    0, 33, 0,    0,    1,  -15,  0,    9,  30,   0,    17, -63,  0,   25, 30,   0,    33, -15,  0,
    1,  0,    0, 9,  6,    0,    17, -1,   0,    25, 6,    0,    33, 0,    0,   1,  180,  0,    9,  166,  0,
    17, 188,  0, 25, 166,  0,    33, 180,  0,    1,  -260, 0,    9,  -170, 0,   17, -279, 0,    25, -170, 0,
    33, -260, 0, 1,  -145, 0,    9,  -123, 0,    17, -151, 0,    25, -123, 0,   33, -145, 0,    1,  0,    0,
    33, 0,    0, 1,  560,  0,    9,  416,  0,    17, 580,  0,    25, 416,  0,   33, 560,  0,    1,  0,    0,
    33, 0,    0, 1,  0,    0,    33, 0,    0,    1,  -240, 0,    9,  -208, 0,   17, -275, 0,    25, -208, 0,
    33, -240, 0, 1,  -40,  0,    9,  -34,  0,    17, -35,  0,    25, -34,  0,   33, -40,  0,    1,  0,    0,
    33, 0,    0, 1,  60,   0,    9,  -60,  0,    17, 60,   0,    25, -60,  0,   33, 60,   0,    1,  0,    0,
    33, 0,    0, 1,  0,    0,    33, 0,    0,    1,  83,   1348, 4,  170,  0,   11, -170, 0,    19, 170,  0,
    27, -170, 0, 33, 83,   1348, 1,  0,    0,    33, 0,    0,    1,  0,    0,   33, 0,    0,    1,  100,  -78,
    2,  98,   0, 18, 198,  0,    33, 100,  -78,  1,  -50,  0,    33, -50,  0,   1,  -120, 0,    33, -120, 0,
    1,  -700, 0, 33, -700, 0,    1,  -450, 0,    33, -450, 0,    1,  0,    0,   33, 0,    0,    1,  -50,  0,
    33, -50,  0, 1,  0,    0,    33, 0,    0,    1,  0,    0,    33, 0,    0,   1,  50,   291,  5,  73,   0,
    21, -88,  0, 33, 50,   291,  1,  303,  -270, 5,  288,  0,    21, 388,  0,   33, 303,  -270, 1,  0,    0,
    33, 0,    0, 1,  -58,  467,  7,  0,    0,    23, -180, 0,    33, -58,  467, 1,  0,    0,    33, 0,    0,
    1,  0,    0, 33, 0,    0,    1,  0,    0,    33, 0,    0,    1,  0,    0,   33, 0,    0,    1,  0,    0,
    33, 0,    0, 1,  -198, 0,    9,  -148, 0,    17, -198, 0,    25, -148, 0,   33, -198, 0,    1,  -10,  -272,
    9,  -60,  0, 25, 40,   0,    33, -10,  -272, 1,  0,    0,    33, 0,    0,   1,  0,    0,    33, 0,    0,
    1,  0,    0, 33, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_niko_f1 = {
    { cKF_ckcb_r_npc_1_niko_f1_tbl, cKF_ds_npc_1_niko_f1_tbl, cKF_kn_npc_1_niko_f1_tbl, cKF_c_npc_1_niko_f1_tbl, -1,
      33 },
    1.0f,
    33.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    5,
    NULL,
    aNPC_MOUTH_TEX1,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
