sm64/shape/enemy2_e/wallman/ichiro_walk.c

418 lines
15 KiB
C

/* ichiro_walk */
#include<ultra64.h>
#define ShapeColor_ichiro_walk(R,G,B) {{R/4,G/4,B/4,0,R/4,G/4,B/4,0},{R,G,B,0,R,G,B,0,0,0,120,0}}
static Lights1 light_ichiro_walk[]={
};
static Vtx vtx_ichiro_walk0[]={
{152,-259,2,0,0,0,-86,-92,0,0},
{157,-143,199,0,0,0,-93,-37,77,0},
{-29,-89,2,0,0,0,-125,-22,0,0},
{173,181,176,0,0,0,-90,44,76,255},
{178,255,2,0,0,0,-67,107,0,255},
{21,157,2,0,0,0,-103,73,-1,255},
{159,-151,-189,0,0,0,126,-6,0,255},
{175,180,-170,0,0,0,126,-6,0,255},
{178,255,2,0,0,0,126,-6,0,255},
{173,181,176,0,0,0,126,-6,0,255},
{157,-143,199,0,0,0,126,-6,0,255},
{152,-259,2,0,0,0,126,-6,0,255},
{175,180,-170,0,0,0,-89,43,-78,255},
{159,-151,-189,0,0,0,-92,-38,-78,255},
};
static Vtx vtx_ichiro_walk1[]={
{-29,-89,-2,0,0,0,-125,-22,0,0},
{157,-143,-199,0,0,0,-93,-37,-77,0},
{152,-259,-2,0,0,0,-86,-92,0,0},
{21,157,-2,0,0,0,-103,73,1,255},
{178,255,-2,0,0,0,-67,107,0,255},
{173,181,-176,0,0,0,-90,44,-76,255},
{152,-259,-2,0,0,0,126,-6,0,255},
{157,-143,-199,0,0,0,126,-6,0,255},
{173,181,-176,0,0,0,126,-6,0,255},
{178,255,-2,0,0,0,126,-6,0,255},
{175,180,170,0,0,0,126,-6,0,255},
{159,-151,189,0,0,0,126,-6,0,255},
{159,-151,189,0,0,0,-92,-38,78,255},
{175,180,170,0,0,0,-89,43,78,255},
};
static Vtx vtx_ichiro_walk2[]={
{-151,0,-151,0,0,0,0,-127,0,0},
{151,0,-151,0,0,0,0,-127,0,0},
{151,0,151,0,0,0,0,-127,0,0},
{-151,0,151,0,0,0,0,-127,0,255},
};
static Vtx vtx_ichiro_walk3[]={
{287,-48,-65,0,0,0,-16,-119,-38,0},
{287,-79,27,0,0,0,-16,-119,-38,0},
{-10,-34,12,0,0,0,-16,-119,-38,0},
{-10,-21,-27,0,0,0,-16,-119,-38,255},
{287,0,84,0,0,0,-16,74,101,255},
{287,79,27,0,0,0,-16,74,101,255},
{-10,34,12,0,0,0,-16,74,101,255},
{-10,0,37,0,0,0,-16,74,101,255},
{287,-79,27,0,0,0,-16,-74,101,255},
{287,0,84,0,0,0,-16,-74,101,255},
{-10,0,37,0,0,0,-16,-74,101,255},
{-10,-34,12,0,0,0,-16,-74,101,255},
{287,48,-65,0,0,0,-16,0,-125,255},
{287,-48,-65,0,0,0,-16,0,-125,255},
{-10,-21,-27,0,0,0,-16,0,-125,255},
{-10,21,-27,0,0,0,-16,0,-125,255},
{287,79,27,0,0,0,-16,119,-38,255},
{287,48,-65,0,0,0,-16,119,-38,0},
{-10,21,-27,0,0,0,-16,119,-38,0},
{-10,34,12,0,0,0,-16,119,-38,255},
};
static Vtx vtx_ichiro_walk4[]={
{-151,0,-151,0,0,0,0,-127,0,0},
{151,0,-151,0,0,0,0,-127,0,0},
{151,0,151,0,0,0,0,-127,0,0},
{-151,0,151,0,0,0,0,-127,0,255},
};
static Vtx vtx_ichiro_walk5[]={
{-10,-21,27,0,0,0,-16,-119,38,0},
{-10,-34,-12,0,0,0,-16,-119,38,0},
{287,-79,-27,0,0,0,-16,-119,38,0},
{287,-48,65,0,0,0,-16,-119,38,255},
{-10,0,-37,0,0,0,-16,74,-101,255},
{-10,34,-12,0,0,0,-16,74,-101,255},
{287,79,-27,0,0,0,-16,74,-101,255},
{287,0,-84,0,0,0,-16,74,-101,255},
{-10,-34,-12,0,0,0,-16,-74,-101,255},
{-10,0,-37,0,0,0,-16,-74,-101,255},
{287,0,-84,0,0,0,-16,-74,-101,255},
{287,-79,-27,0,0,0,-16,-74,-101,255},
{-10,21,27,0,0,0,-16,0,125,255},
{-10,-21,27,0,0,0,-16,0,125,255},
{287,-48,65,0,0,0,-16,0,125,255},
{287,48,65,0,0,0,-16,0,125,255},
{-10,34,-12,0,0,0,-16,119,38,255},
{-10,21,27,0,0,0,-16,119,38,0},
{287,48,65,0,0,0,-16,119,38,0},
{287,79,-27,0,0,0,-16,119,38,255},
};
static Vtx vtx_ichiro_walk6[]={
{-52,605,-200,0,0,0,0,127,0,0},
{-52,605,200,0,0,0,0,127,0,0},
{1547,594,200,0,0,0,0,127,0,0},
{1547,594,-200,0,0,0,0,127,0,255},
{-52,605,200,0,0,0,0,0,127,255},
{-60,-594,200,0,0,0,0,0,127,255},
{1539,-605,200,0,0,0,0,0,127,255},
{1547,594,200,0,0,0,0,0,127,255},
{-60,-594,200,0,0,0,0,-127,0,255},
{-60,-594,-200,0,0,0,0,-127,0,255},
{1539,-605,-200,0,0,0,0,-127,0,255},
{1539,-605,200,0,0,0,0,-127,0,255},
{-60,-594,-200,0,0,0,0,0,-127,255},
{-52,605,-200,0,0,0,0,0,-127,255},
{1547,594,-200,0,0,0,0,0,-127,255},
{1539,-605,-200,0,0,0,0,0,-127,255},
{-60,-594,-200,0,0,0,-127,0,0,255},
{-60,-594,200,0,0,0,-127,0,0,0},
{-52,605,200,0,0,0,-127,0,0,0},
{-52,605,-200,0,0,0,-127,0,0,255},
{1547,594,-200,0,0,0,127,0,0,255},
{1547,594,200,0,0,0,127,0,0,255},
{1539,-605,200,0,0,0,127,0,0,255},
{1539,-605,-200,0,0,0,127,0,0,255},
};
Gfx RCP_ichiro_walk0[]={
gsSPLight((&light_ichiro_walk[0].l[0]),1),
gsSPLight((&light_ichiro_walk[0].a),2),
gsSPVertex(&vtx_ichiro_walk0[0],14,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(3,4,5,0),
gsSP1Triangle(6,7,8,0),
gsSP1Triangle(6,8,9,0),
gsSP1Triangle(6,9,10,0),
gsSP1Triangle(6,10,11,0),
gsSP1Triangle(12,13,2,0),
gsSP1Triangle(2,13,0,0),
gsSP1Triangle(12,2,5,0),
gsSP1Triangle(2,1,3,0),
gsSP1Triangle(5,4,12,0),
gsSP1Triangle(5,2,3,0),
gsSPEndDisplayList()
};
Gfx RCP_ichiro_walk1[]={
gsSPLight((&light_ichiro_walk[0].l[0]),1),
gsSPLight((&light_ichiro_walk[0].a),2),
gsSPVertex(&vtx_ichiro_walk1[0],14,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(3,4,5,0),
gsSP1Triangle(6,7,8,0),
gsSP1Triangle(6,8,9,0),
gsSP1Triangle(6,9,10,0),
gsSP1Triangle(6,10,11,0),
gsSP1Triangle(0,12,13,0),
gsSP1Triangle(2,12,0,0),
gsSP1Triangle(3,0,13,0),
gsSP1Triangle(5,1,0,0),
gsSP1Triangle(13,4,3,0),
gsSP1Triangle(5,0,3,0),
gsSPEndDisplayList()
};
Gfx RCP_ichiro_walk2[]={
gsSPLight((&light_ichiro_walk[0].l[0]),1),
gsSPLight((&light_ichiro_walk[0].a),2),
gsSPVertex(&vtx_ichiro_walk2[0],4,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSPEndDisplayList()
};
Gfx RCP_ichiro_walk3[]={
gsSPLight((&light_ichiro_walk[0].l[0]),1),
gsSPLight((&light_ichiro_walk[0].a),2),
gsSPVertex(&vtx_ichiro_walk3[0],16,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSP1Triangle(4,5,6,0),
gsSP1Triangle(4,6,7,0),
gsSP1Triangle(8,9,10,0),
gsSP1Triangle(8,10,11,0),
gsSP1Triangle(12,13,14,0),
gsSP1Triangle(12,14,15,0),
gsSPVertex(&vtx_ichiro_walk3[16],4,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSPEndDisplayList()
};
Gfx RCP_ichiro_walk4[]={
gsSPLight((&light_ichiro_walk[0].l[0]),1),
gsSPLight((&light_ichiro_walk[0].a),2),
gsSPVertex(&vtx_ichiro_walk4[0],4,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSPEndDisplayList()
};
Gfx RCP_ichiro_walk5[]={
gsSPLight((&light_ichiro_walk[0].l[0]),1),
gsSPLight((&light_ichiro_walk[0].a),2),
gsSPVertex(&vtx_ichiro_walk5[0],16,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSP1Triangle(4,5,6,0),
gsSP1Triangle(4,6,7,0),
gsSP1Triangle(8,9,10,0),
gsSP1Triangle(8,10,11,0),
gsSP1Triangle(12,13,14,0),
gsSP1Triangle(12,14,15,0),
gsSPVertex(&vtx_ichiro_walk5[16],4,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSPEndDisplayList()
};
Gfx RCP_ichiro_walk6[]={
gsSPLight((&light_ichiro_walk[0].l[0]),1),
gsSPLight((&light_ichiro_walk[0].a),2),
gsSPVertex(&vtx_ichiro_walk6[0],16,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSP1Triangle(4,5,6,0),
gsSP1Triangle(4,6,7,0),
gsSP1Triangle(8,9,10,0),
gsSP1Triangle(8,10,11,0),
gsSP1Triangle(12,13,14,0),
gsSP1Triangle(12,14,15,0),
gsSPVertex(&vtx_ichiro_walk6[16],8,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSP1Triangle(4,5,6,0),
gsSP1Triangle(4,6,7,0),
gsSPEndDisplayList()
};
Gfx light_sourcex[]={
gsSPNumLights(NUMLIGHTS_1),
gsSPEndDisplayList()
};
static short ichiro_walk_prm[]={
0, 5, 178, 180, 186, 194, 203, 213,
223, 231, 236, 238, 237, 233, 228, 221,
213, 205, 197, 190, 183, 178, 175, 173,
173, 175, 178, 186, 198, 211, 224, 236,
245, 248, 248, 245, 238, 226, 211, 195,
183, 178, 178, 178, 178, 178, 178, 178,
178, 178, 178, 178, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
-1, -5, -8, -7, 0, 18, 46, 76,
100, 113, 110, 95, 75, 55, 39, 28,
17, 8, 2, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, -18, -54, -82, -73, 0, 171,
422, 702, 959, 1143, 1261, 1348, 1391, 1380,
1302, 1093, 761, 403, 117, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
-15887,-15887,-15887,-15887,-15887,-15887,-15887,-15887,
-15887,-15887,-15887,-15887,-15887,-15887,-15887,-15887,
-15887,-15887,-15887,-15887,-15890,-15895,-15900,-15898,
-15887,-15856,-15810,-15761,-15722,-15707,-15725,-15767,
-15819,-15867,-15898,-15909,-15907,-15899,-15891,-15887,
-15887,-15887,-15887,-15887,-15887,-15887,-15887,-15887,
-15887,-15887, 0, -2, -8, -17, -27, -38,
-49, -57, -64, -66, -64, -60, -54, -47,
-38, -29, -20, -12, -5, 0, 2, 3,
2, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, -46, -170, -350,
-564, -789,-1002,-1182,-1307,-1353,-1324,-1241,
-1118, -963, -789, -606, -425, -256, -111, 0,
57, 64, 43, 14, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,-15887,-15885,
-15882,-15877,-15871,-15864,-15858,-15853,-15849,-15848,
-15849,-15851,-15855,-15859,-15864,-15869,-15875,-15879,
-15884,-15887,-15888,-15889,-15888,-15887,-15887,-15887,
-15887,-15887,-15887,-15887,-15887,-15887,-15887,-15887,
-15887,-15887,-15887,-15887,-15887,-15887,-15887,-15887,
-15887,-15887,-15887,-15887,-15887,-15887,-15887,-15887,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 5,
7, 9, 10, 7, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 1, 0, 0, 0,
2, 3, 6675, 6672, 6663, 6650, 6634, 6615,
6595, 6574, 6555, 6536, 6521, 6509, 6503, 6502,
6507, 6521, 6544, 6576, 6619, 6675, 7069, 7724,
8031, 7177, 6323, 6993, 7742, 7258, 6675, 6960,
7301, 7002, 6675, 6635, 6626, 6637, 6661, 6689,
6713, 6724, 6714, 6675, 6292, 6049, 6891, 7567,
6616, 5609, 6086, 6675,-16380,-16380,-16380,-16380,
-16380,-16380,-16380,-16380,-16380,-16380,-16380,-16380,
-16380,-16380,-16380,-16380,-16380,-16380,-16380,-16380,
-16380,-16380,-16380,-16381,-16381,-16380,-16379,-16379,
-16380,-16380,-16380,-16380,-16380,-16380,-16380,-16380,
-16380,-16380,-16380,-16380,-16380,-16380,-16380,-16380,
-16380,-16380,-16381,-16381,-16381,-16380, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1, 3, 3, 3, 4, 6,
6, 5, 2, 0, 0, 0, 0, -1,
-1, -1, -1, -1, 0, 0, 0, 2,
6, 7, 8, 9, 8, 5, 1, 0,
-6362,-6359,-6352,-6340,-6326,-6309,-6291,-6273,
-6255,-6239,-6226,-6215,-6209,-6208,-6214,-6226,
-6246,-6274,-6313,-6362,-6928,-7509,-7133,-6704,
-7089,-7427,-6871,-6240,-6232,-6362,-6363,-6351,
-6329,-6303,-6276,-6254,-6241,-6240,-6257,-6296,
-6362,-6903,-7405,-6852,-6364,-7177,-7925,-7519,
-6767,-6362,-16384,-16384,-16384,-16384,-16384,-16384,
-16384,-16384,-16384,-16384,-16384,-16384,-16384,-16384,
-16384,-16384,-16384,-16384,-16384,-16384,-16384,-16385,
-16385,-16384,-16384,-16384,-16384,-16384,-16384,-16384,
-16384,-16384,-16384,-16384,-16384,-16384,-16384,-16384,
-16384,-16384,-16384,-16384,-16384,-16384,-16383,-16384,
-16385,-16385,-16384,-16384, 8226,16383,-8226, 8226,
16383,-8226, 8226,16383,-8226, 8226,16383,-8226,
-3337,-3266,-3071,-2774,-2402,-1978,-1528,-1076,
-646, -263, 92, 455, 823, 1194, 1565, 1933,
2297, 2654, 3002, 3337, 3572, 3681, 3700, 3645,
3642, 3616, 3337, 2729, 1952, 1122, 359, -217,
-665,-1111,-1545,-1956,-2333,-2666,-2943,-3155,
-3290,-3337,-3337,-3338,-3339,-3339,-3339,-3338,
-3337,-3337, 21, 21, 20, 18, 15, 12,
10, 7, 4, 1, 0, 2, 4, 7,
10, 10, 8, 3, -6, -21, -144, -219,
39, 281, 228, 81, -21, -42, -40, -25,
-8, 1, 4, 7, 10, 12, 15, 17,
19, 20, 21, 21, -90, -176, 34, 238,
199, 86, 21, 21,16449,16406,16291,16125,
15927,15719,15522,15355,15240,15197,15224,15297,
15407,15545,15702,15869,16036,16195,16335,16449,
16429,16362,16412,16468,16428,16372,16449,16736,
17139,17556,17883,18015,17971,17852,17676,17464,
17232,17000,16787,16612,16493,16449,16486,16515,
16445,16377,16390,16428,16449,16449,};
static unsigned short ichiro_walk_tbl[]={
1, 1, /* chn18translate x */
50, 2, /* chn18 translate y */
1, 0, /* chn18 translate z */
1, 0, /* chn18 rotate x */
1, 0, /* chn18 rotate y */
1, 0, /* chn18 rotate z */
50, 52, /* ichi_Rfoot rotate x */
50, 102, /* ichi_Rfoot rotate y */
50, 152, /* ichi_Rfoot rotate z */
50, 202, /* ichi_Lfoot rotate x */
50, 252, /* ichi_Lfoot rotate y */
50, 302, /* ichi_Lfoot rotate z */
1, 0, /* ichi_Rhand rotate x */
1, 0, /* ichi_Rhand rotate y */
1, 0, /* ichi_Rhand rotate z */
50, 352, /* ichi_Rarm rotate x */
50, 402, /* ichi_Rarm rotate y */
50, 452, /* ichi_Rarm rotate z */
1, 0, /* ichi_Lhand rotate x */
1, 0, /* ichi_Lhand rotate y */
1, 0, /* ichi_Lhand rotate z */
50, 502, /* ichi_Larm rotate x */
50, 552, /* ichi_Larm rotate y */
50, 602, /* ichi_Larm rotate z */
1, 652, /* chn26 rotate x */
1, 653, /* chn26 rotate y */
1, 654, /* chn26 rotate z */
1, 655, /* chn28 rotate x */
1, 656, /* chn28 rotate y */
1, 657, /* chn28 rotate z */
1, 658, /* chn19 rotate x */
1, 659, /* chn19 rotate y */
1, 660, /* chn19 rotate z */
1, 661, /* chn21 rotate x */
1, 662, /* chn21 rotate y */
1, 663, /* chn21 rotate z */
50, 664, /* ichi_body rotate x */
50, 714, /* ichi_body rotate y */
50, 764, /* ichi_body rotate z */
};
AnimeRecord ichiro_walk_anm={
50,
12,
ichiro_walk_prm,
ichiro_walk_tbl
};
static SkeletonRecord ichi_Rfoot[1]=
{RCP_ichiro_walk0,0.000000,0.000000,0.000000,95,1348,-15767,NULL,NULL};
static SkeletonRecord ichi_Lfoot[1]=
{RCP_ichiro_walk1,0.000000,0.000000,0.000000,0,0,-15887,NULL,NULL};
static SkeletonRecord ichi_Rhand[1]=
{RCP_ichiro_walk2,400.719971,0.000000,0.000000,0,0,0,NULL,NULL};
static SkeletonRecord ichi_Rarm[1]=
{RCP_ichiro_walk3,0.000000,0.000000,0.000000,3,7002,-16380,NULL,ichi_Rhand};
static SkeletonRecord ichi_Lhand[1]=
{RCP_ichiro_walk4,400.719971,0.000000,0.000000,0,0,0,NULL,NULL};
static SkeletonRecord ichi_Larm[1]=
{RCP_ichiro_walk5,0.000000,0.000000,0.000000,0,-6350,-16384,NULL,ichi_Lhand};
static SkeletonRecord chn26[1]=
{NULL,1068.280029,-574.599976,0.000000,8226,16383,-8226,NULL,ichi_Larm};
static SkeletonRecord chn28[1]=
{NULL,1075.920044,570.679993,0.000000,8226,16383,-8226,chn26,ichi_Rarm};
static SkeletonRecord chn19[1]=
{NULL,-18.799999,-479.840027,-5.200000,8226,16383,-8226,chn28,ichi_Lfoot};
static SkeletonRecord chn21[1]=
{NULL,-12.360000,490.440002,-5.200000,8226,16383,-8226,chn19,ichi_Rfoot};
static SkeletonRecord ichi_body[1]=
{RCP_ichiro_walk6,0.000000,0.000000,0.000000,-217,1,18015,NULL,chn21};
static SkeletonRecord chn18[1]=
{light_sourcex,5.200000,248.919998,0.000000,0,0,0,NULL,ichi_body};
SkeletonPtr ichiro_walk_list[]={
chn18,
ichi_Rfoot,
ichi_Lfoot,
ichi_Rhand,
ichi_Rarm,
ichi_Lhand,
ichi_Larm,
chn26,
chn28,
chn19,
chn21,
ichi_body,
NULL
};