sm64/shape/basic_enemy/kuribo/kuri_head_shape.sou
2022-12-04 22:27:02 -05:00

218 lines
11 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (kuri_head)
****************************************************************************************************/
#define kuri_head_AMB_SCALE 0.5
#define ShapeColor_kuri_head(R,G,B) {{R*kuri_head_AMB_SCALE ,G*kuri_head_AMB_SCALE ,B*kuri_head_AMB_SCALE ,0 ,R*kuri_head_AMB_SCALE ,G*kuri_head_AMB_SCALE ,B*kuri_head_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
static Lights1 light_kuri_head[] = {
ShapeColor_kuri_head(255,255,255),
};
static Vtx vtx_kuri_head_0[] = {
{ 80, 58, 105, 0, 1124, 322, 34, 63, 104, 255},
{ 80, 98, 62, 0, 858, 338, 29, 110, 54, 255},
{ -23, 109, 59, 0, 842, 1002, -57, 100, 52, 255},
{ -23, 55, 118, 0, -898, 1226, -68, 41, 98, 255},
{ -51, -48, 53, 0, -1544, 1510, -121, -18, 30, 255},
{ -23, -54, 118, 0, -898, 1226, -57, -56, 98, 255},
{ -23, -108, 75, 0, -1322, 1230, -65, -101, 39, 255},
{ -1, 0, 141, 0, -670, 1004, -6, -8, 126, 255},
{ 80, -97, 52, 0, -1560, 196, 28, -106, 63, 255},
{ 80, -57, 105, 0, -1022, 196, 29, -66, 103, 255},
{ 82, 0, 120, 0, -880, 168, 46, 5, 118, 255},
{ -51, 49, 53, 0, -1544, 1510, -123, 26, 16, 255},
{ 80, 58, 105, 0, -1022, 196, 34, 63, 104, 255},
{ -23, 109, 59, 0, -1482, 1230, -57, 100, 52, 255},
{ -23, 55, 118, 0, 1198, 978, -68, 41, 98, 255},
{ -23, 109, -58, 0, 122, 1008, -67, 101, -36, 255},
{ -1, 130, 0, 0, 482, 872, -5, 126, 5, 255},
{ 82, 110, 0, 0, 482, 330, 45, 118, -7, 255},
{ -23, 109, 59, 0, 842, 1002, -57, 100, 52, 255},
{ 80, 98, 62, 0, 858, 338, 29, 110, 54, 255},
{ 80, 98, -61, 0, 108, 346, 25, 106, -63, 255},
{ -23, 55, -117, 0, -232, 990, -46, 57, -103, 255},
{ -23, -54, -117, 0, -3250, 1226, -68, -36, -100, 255},
{ -51, 49, -52, 0, -2604, 1510, -121, 20, -29, 255},
{ -23, 55, -117, 0, -3250, 1226, -46, 57, -103, 255},
{ -23, 109, -58, 0, -2666, 1230, -67, 101, -36, 255},
{ -1, 0, -140, 0, -3478, 1004, -14, 0, -126, 255},
{ 82, 0, -119, 0, -3268, 168, 41, 3, -119, 255},
{ 80, 58, -104, 0, -3126, 196, 31, 64, -105, 255},
{ 143, 65, -68, 0, 62, -70, 76, 73, -69, 255},
{ 156, 68, 0, 0, 484, -156, 110, 62, 0, 255},
{ -23, -54, -117, 0, -3250, 1226, -68, -36, -100, 255},
{ -51, -48, -52, 0, -2604, 1510, -123, -24, -16, 255},
{ -51, 49, -52, 0, -2604, 1510, -121, 20, -29, 255},
{ -23, -108, -74, 0, -2826, 1230, -54, -100, -54, 255},
{ 82, 0, -119, 0, -3268, 168, 41, 3, -119, 255},
{ 80, -57, -104, 0, -3126, 196, 36, -63, -103, 255},
{ -1, -129, 0, 0, -2074, 1004, -2, -126, -8, 255},
{ -23, -108, 75, 0, -1322, 1230, -65, -101, 39, 255},
{ 80, -97, -51, 0, -2588, 196, 32, -111, -50, 255},
{ 82, -109, 0, 0, -2074, 168, 44, -118, 5, 255},
{ 80, -97, 52, 0, -1560, 196, 28, -106, 63, 255},
{ -51, -48, 53, 0, -1544, 1510, -121, -18, 30, 255},
{ 82, 110, 0, 0, 482, 330, 45, 118, -7, 255},
{ 80, 98, 62, 0, 858, 338, 29, 110, 54, 255},
{ 143, 65, 69, 0, 906, -78, 77, 81, 58, 255},
{ 156, 68, 0, 0, 484, -156, 110, 62, 0, 255},
{ 143, 65, 69, 0, 906, -78, 77, 81, 58, 255},
{ 80, 98, 62, 0, 858, 338, 29, 110, 54, 255},
{ 80, 58, 105, 0, 1124, 322, 34, 63, 104, 255},
{ 156, 0, 74, 0, -1340, -572, 106, 4, 69, 255},
{ 80, 58, 105, 0, -1022, 196, 34, 63, 104, 255},
{ 82, 0, 120, 0, -880, 168, 46, 5, 118, 255},
{ 80, -57, 105, 0, -1022, 196, 29, -66, 103, 255},
{ 143, -64, 69, 0, -1380, -440, 74, -76, 68, 255},
{ 80, -97, 52, 0, -1560, 196, 28, -106, 63, 255},
{ 156, -67, 0, 0, -2074, -572, 110, -63, 0, 255},
{ 82, -109, 0, 0, -2074, 168, 44, -118, 5, 255},
{ 143, -64, -68, 0, -2768, -440, 75, -84, -58, 255},
{ 80, -97, -51, 0, -2588, 196, 32, -111, -50, 255},
{ 80, -57, -104, 0, -3126, 196, 36, -63, -103, 255},
{ 143, 65, 69, 0, -1380, -440, 77, 81, 58, 255},
{ 177, 0, 0, 0, -2074, -774, 126, 0, 0, 255},
{ 156, 0, 74, 0, -1340, -572, 106, 4, 69, 255},
{ 156, 68, 0, 0, -2074, -572, 110, 62, 0, 255},
{ 143, 65, 69, 0, -1380, -440, 77, 81, 58, 255},
{ 177, 0, 0, 0, -2074, -774, 126, 0, 0, 255},
{ 156, 0, -73, 0, -2808, -572, 106, -4, -69, 255},
{ 80, -57, -104, 0, -3126, 196, 36, -63, -103, 255},
{ 82, 0, -119, 0, -3268, 168, 41, 3, -119, 255},
{ 80, 58, -104, 0, -3126, 196, 31, 64, -105, 255},
{ 143, 65, -68, 0, -2768, -440, 76, 73, -69, 255},
{ 143, -64, -68, 0, -2768, -440, 75, -84, -58, 255},
{ 156, -67, 0, 0, -2074, -572, 110, -63, 0, 255},
{ 82, -109, 0, 0, -2074, 168, 44, -118, 5, 255},
{ 80, -97, -51, 0, -2588, 196, 32, -111, -50, 255},
{ -51, 49, 53, 0, -1544, 1510, -123, 26, 16, 255},
{ -23, 109, -58, 0, -2666, 1230, -67, 101, -36, 255},
{ -51, 49, -52, 0, -2604, 1510, -121, 20, -29, 255},
{ 143, 65, -68, 0, 62, -70, 76, 73, -69, 255},
{ 80, 98, -61, 0, 108, 346, 25, 106, -63, 255},
{ 82, 110, 0, 0, 482, 330, 45, 118, -7, 255},
{ -51, 49, 53, 0, -1544, 1510, -123, 26, 16, 255},
{ -51, -48, -52, 0, -2604, 1510, -123, -24, -16, 255},
{ -51, -48, 53, 0, -1544, 1510, -121, -18, 30, 255},
{ -51, 49, -52, 0, -2604, 1510, -121, 20, -29, 255},
{ -23, 55, -117, 0, -232, 990, -46, 57, -103, 255},
{ 80, 58, -104, 0, -156, 336, 31, 64, -105, 255},
{ -23, 109, 59, 0, -1482, 1230, -57, 100, 52, 255},
{ -23, 109, -58, 0, -2666, 1230, -67, 101, -36, 255},
};
static Gfx gfx_kuri_head_0[] = {
gsSPLight((&light_kuri_head[0].l[0]),1 ),
gsSPLight((&light_kuri_head[0].a ),2 ),
gsSPVertex(&vtx_kuri_head_0[0], 15, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 4, 5, 0),
gsSP1Triangle( 6, 5, 4, 0),
gsSP1Triangle( 5, 7, 3, 0),
gsSP1Triangle( 5, 6, 8, 0),
gsSP1Triangle( 5, 8, 9, 0),
gsSP1Triangle( 7, 5, 9, 0),
gsSP1Triangle( 3, 7,10, 0),
gsSP1Triangle( 7, 9,10, 0),
gsSP1Triangle( 3,11, 4, 0),
gsSP1Triangle( 3,10,12, 0),
gsSP1Triangle( 3,13,11, 0),
gsSP1Triangle( 0, 2,14, 0),
gsSPVertex(&vtx_kuri_head_0[15], 16, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 1, 0, 0),
gsSP1Triangle( 1, 3, 4, 0),
gsSP1Triangle( 1, 4, 2, 0),
gsSP1Triangle( 0, 2, 5, 0),
gsSP1Triangle( 6, 0, 5, 0),
gsSP1Triangle( 7, 8, 9, 0),
gsSP1Triangle(10, 9, 8, 0),
gsSP1Triangle( 9,11, 7, 0),
gsSP1Triangle(12, 9,13, 0),
gsSP1Triangle(12,11, 9, 0),
gsSP1Triangle( 7,11,12, 0),
gsSP1Triangle(14, 2,15, 0),
gsSPVertex(&vtx_kuri_head_0[31], 16, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 0, 3, 1, 0),
gsSP1Triangle( 0, 4, 5, 0),
gsSP1Triangle( 5, 3, 0, 0),
gsSP1Triangle( 3, 6, 7, 0),
gsSP1Triangle( 1, 3, 7, 0),
gsSP1Triangle( 5, 8, 3, 0),
gsSP1Triangle( 6, 3, 8, 0),
gsSP1Triangle( 7, 6, 9, 0),
gsSP1Triangle( 6, 8, 9, 0),
gsSP1Triangle( 7, 9,10, 0),
gsSP1Triangle( 1, 7,11, 0),
gsSP1Triangle(12,13,14, 0),
gsSP1Triangle(12,14,15, 0),
gsSPVertex(&vtx_kuri_head_0[47], 16, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 4, 5, 0),
gsSP1Triangle( 5, 6, 7, 0),
gsSP1Triangle( 5, 7, 3, 0),
gsSP1Triangle( 6, 8, 7, 0),
gsSP1Triangle( 9, 3, 7, 0),
gsSP1Triangle( 7,10, 9, 0),
gsSP1Triangle( 7, 8,10, 0),
gsSP1Triangle(11,12,13, 0),
gsSP1Triangle( 3,14, 4, 0),
gsSP1Triangle( 9,15, 3, 0),
gsSPVertex(&vtx_kuri_head_0[63], 16, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 0, 3, 1, 0),
gsSP1Triangle( 4, 5, 6, 0),
gsSP1Triangle( 6, 7, 8, 0),
gsSP1Triangle( 6, 8, 4, 0),
gsSP1Triangle( 1, 4, 8, 0),
gsSP1Triangle( 4, 9, 5, 0),
gsSP1Triangle( 4,10, 9, 0),
gsSP1Triangle( 1, 3, 4, 0),
gsSP1Triangle( 4, 3,10, 0),
gsSP1Triangle(11, 9,10, 0),
gsSP1Triangle(11,12, 9, 0),
gsSP1Triangle(13,14,15, 0),
gsSPVertex(&vtx_kuri_head_0[79], 11, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 4, 5, 0),
gsSP1Triangle( 3, 6, 4, 0),
gsSP1Triangle( 7, 1, 8, 0),
gsSP1Triangle( 8, 1, 0, 0),
gsSP1Triangle( 3, 9,10, 0),
gsSPEndDisplayList()
};
static Gfx gfx_kuri_head_init[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, 7, 0, 0,0,0, 0,0,0),
gsSPTexture(0xffff,0xffff, 0, 0, G_ON),
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsSPEndDisplayList()
};
static Gfx gfx_kuri_head_reset[] = {
gsSPDisplayList(gfx_kuri_head_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList()
};
/* ---------------------------------------------------------------------------------------- */
Gfx gfx_kuri_head1[] = {
gsSPDisplayList(gfx_kuri_head_init),
gs_Tani_LoadTextureImage2(kuri_face_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
gsSPBranchList(gfx_kuri_head_reset)
};
Gfx gfx_kuri_head2[] = {
gsSPDisplayList(gfx_kuri_head_init),
gs_Tani_LoadTextureImage2(kuri_face2_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
gsSPBranchList(gfx_kuri_head_reset)
};