346 lines
9.8 KiB
Plaintext
346 lines
9.8 KiB
Plaintext
/**************************************************************/
|
|
/* shape data chair_base_data (skeleton & animation) */
|
|
/**************************************************************/
|
|
|
|
#define ShapeColor_chair_base_data(r,g,b) ShapeColor(r,g,b)
|
|
|
|
/*-------------------------------------------------------------*/
|
|
/* light data */
|
|
/*-------------------------------------------------------------*/
|
|
|
|
static Lights1 light_chair_base_data[]={
|
|
ShapeColor_chair_base_data(100,54,26),
|
|
};
|
|
|
|
/*-------------------------------------------------------------*/
|
|
/* vertex & polygon data */
|
|
/*-------------------------------------------------------------*/
|
|
|
|
static Vtx vtx_chair_base_data0[]={
|
|
{144,29,-101,0,0,0,-18,0,-125,0},
|
|
{144,-19,-101,0,0,0,-18,0,-125,0},
|
|
{-8,-19,-79,0,0,0,-18,0,-125,0},
|
|
{-8,29,-79,0,0,0,-18,0,-125,0},
|
|
{144,-19,-101,0,0,0,0,-127,0,0},
|
|
{144,-19,102,0,0,0,0,-127,0,0},
|
|
{-8,-19,80,0,0,0,0,-127,0,0},
|
|
{-8,-19,-79,0,0,0,0,-127,0,0},
|
|
{144,-19,102,0,0,0,-18,0,125,0},
|
|
{144,29,102,0,0,0,-18,0,125,0},
|
|
{-8,29,80,0,0,0,-18,0,125,0},
|
|
{-8,-19,80,0,0,0,-18,0,125,0},
|
|
{144,29,102,0,0,0,0,127,0,0},
|
|
{144,29,-101,0,0,0,0,127,0,0},
|
|
{-8,29,-79,0,0,0,0,127,0,0},
|
|
{-8,29,80,0,0,0,0,127,0,0},
|
|
{144,29,102,0,0,0,127,0,0,0},
|
|
{144,-19,102,0,0,0,127,0,0,0},
|
|
{144,-19,-101,0,0,0,127,0,0,0},
|
|
{144,29,-101,0,0,0,127,0,0,0},
|
|
};
|
|
static Vtx vtx_chair_base_data1[]={
|
|
{144,25,-101,0,0,0,-18,0,-125,0},
|
|
{144,-22,-101,0,0,0,-18,0,-125,0},
|
|
{-9,-22,-79,0,0,0,-18,0,-125,0},
|
|
{-9,25,-79,0,0,0,-18,0,-125,0},
|
|
{144,-22,-101,0,0,0,0,-127,0,0},
|
|
{144,-22,102,0,0,0,0,-127,0,0},
|
|
{-9,-22,80,0,0,0,0,-127,0,0},
|
|
{-9,-22,-79,0,0,0,0,-127,0,0},
|
|
{144,-22,102,0,0,0,-18,0,125,0},
|
|
{144,25,102,0,0,0,-18,0,125,0},
|
|
{-9,25,80,0,0,0,-18,0,125,0},
|
|
{-9,-22,80,0,0,0,-18,0,125,0},
|
|
{144,25,102,0,0,0,0,127,0,0},
|
|
{144,25,-101,0,0,0,0,127,0,0},
|
|
{-9,25,-79,0,0,0,0,127,0,0},
|
|
{-9,25,80,0,0,0,0,127,0,0},
|
|
{144,25,102,0,0,0,127,0,0,0},
|
|
{144,-22,102,0,0,0,127,0,0,0},
|
|
{144,-22,-101,0,0,0,127,0,0,0},
|
|
{144,25,-101,0,0,0,127,0,0,0},
|
|
};
|
|
static Vtx vtx_chair_base_data2[]={
|
|
{-7,25,-91,0,0,0,-17,0,-125,0},
|
|
{284,25,-131,0,0,0,-17,0,-125,0},
|
|
{284,-21,-131,0,0,0,-17,0,-125,0},
|
|
{-7,-21,-91,0,0,0,-17,0,-125,0},
|
|
{284,25,133,0,0,0,0,127,0,0},
|
|
{331,25,0,0,0,0,0,127,0,0},
|
|
{284,25,-131,0,0,0,0,127,0,0},
|
|
{-7,25,92,0,0,0,0,127,0,0},
|
|
{-7,25,-91,0,0,0,0,127,0,0},
|
|
{-7,-21,92,0,0,0,-17,0,125,0},
|
|
{284,-21,133,0,0,0,-17,0,125,0},
|
|
{284,25,133,0,0,0,-17,0,125,0},
|
|
{-7,25,92,0,0,0,-17,0,125,0},
|
|
{284,-21,-131,0,0,0,0,-127,0,0},
|
|
{331,-21,0,0,0,0,0,-127,0,0},
|
|
{284,-21,133,0,0,0,0,-127,0,0},
|
|
{-7,-21,-91,0,0,0,0,-127,0,0},
|
|
{284,-21,-131,0,0,0,0,-127,0,0},
|
|
{284,-21,133,0,0,0,0,-127,0,0},
|
|
{-7,-21,92,0,0,0,0,-127,0,0},
|
|
{284,25,133,0,0,0,119,0,42,0},
|
|
{284,-21,133,0,0,0,119,0,42,0},
|
|
{331,-21,0,0,0,0,127,0,0,0},
|
|
{331,25,0,0,0,0,127,0,0,0},
|
|
{284,-21,-131,0,0,0,119,0,-42,0},
|
|
{284,25,-131,0,0,0,119,0,-42,0},
|
|
};
|
|
static Vtx vtx_chair_base_data3[]={
|
|
{206,-21,-125,0,0,0,0,0,-127,0},
|
|
{-38,-21,-125,0,0,0,0,0,-127,0},
|
|
{-38,23,-125,0,0,0,0,0,-127,0},
|
|
{206,23,-125,0,0,0,0,0,-127,0},
|
|
{-38,-21,-125,0,0,0,-127,0,0,0},
|
|
{-38,-21,125,0,0,0,-127,0,0,0},
|
|
{-38,23,125,0,0,0,-127,0,0,0},
|
|
{-38,23,-125,0,0,0,-127,0,0,0},
|
|
{-38,-21,125,0,0,0,0,0,127,0},
|
|
{206,-21,125,0,0,0,0,0,127,0},
|
|
{206,23,125,0,0,0,0,0,127,0},
|
|
{-38,23,125,0,0,0,0,0,127,0},
|
|
{206,-21,125,0,0,0,127,0,0,0},
|
|
{206,-21,-125,0,0,0,127,0,0,0},
|
|
{206,23,-125,0,0,0,127,0,0,0},
|
|
{206,23,125,0,0,0,127,0,0,0},
|
|
{206,-21,125,0,0,0,0,-127,0,0},
|
|
{-38,-21,125,0,0,0,0,-127,0,0},
|
|
{-38,-21,-125,0,0,0,0,-127,0,0},
|
|
{206,-21,-125,0,0,0,0,-127,0,0},
|
|
{206,23,-125,0,0,0,0,127,0,0},
|
|
{-38,23,-125,0,0,0,0,127,0,0},
|
|
{-38,23,125,0,0,0,0,127,0,0},
|
|
{206,23,125,0,0,0,0,127,0,0},
|
|
};
|
|
Gfx RCP_chair_base_data0[]={
|
|
gsSPLight((&light_chair_base_data[0].l[0]),1),
|
|
gsSPLight((&light_chair_base_data[0].a),2),
|
|
gsSPVertex(&vtx_chair_base_data0[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_chair_base_data0[16],4,0),
|
|
gsSP1Triangle(0,1,2,0),
|
|
gsSP1Triangle(0,2,3,0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
Gfx RCP_chair_base_data1[]={
|
|
gsSPLight((&light_chair_base_data[0].l[0]),1),
|
|
gsSPLight((&light_chair_base_data[0].a),2),
|
|
gsSPVertex(&vtx_chair_base_data1[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_chair_base_data1[16],4,0),
|
|
gsSP1Triangle(0,1,2,0),
|
|
gsSP1Triangle(0,2,3,0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
Gfx RCP_chair_base_data2[]={
|
|
gsSPLight((&light_chair_base_data[0].l[0]),1),
|
|
gsSPLight((&light_chair_base_data[0].a),2),
|
|
gsSPVertex(&vtx_chair_base_data2[0],16,0),
|
|
gsSP1Triangle(0,1,2,0),
|
|
gsSP1Triangle(3,0,2,0),
|
|
gsSP1Triangle(4,5,6,0),
|
|
gsSP1Triangle(7,4,6,0),
|
|
gsSP1Triangle(8,7,6,0),
|
|
gsSP1Triangle(9,10,11,0),
|
|
gsSP1Triangle(12,9,11,0),
|
|
gsSP1Triangle(13,14,15,0),
|
|
gsSPVertex(&vtx_chair_base_data2[16],10,0),
|
|
gsSP1Triangle(0,1,2,0),
|
|
gsSP1Triangle(3,0,2,0),
|
|
gsSP1Triangle(4,5,6,0),
|
|
gsSP1Triangle(7,4,6,0),
|
|
gsSP1Triangle(8,9,7,0),
|
|
gsSP1Triangle(6,8,7,0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
Gfx RCP_chair_base_data3[]={
|
|
gsSPLight((&light_chair_base_data[0].l[0]),1),
|
|
gsSPLight((&light_chair_base_data[0].a),2),
|
|
gsSPVertex(&vtx_chair_base_data3[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_chair_base_data3[16],8,0),
|
|
gsSP1Triangle(0,1,2,0),
|
|
gsSP1Triangle(0,2,3,0),
|
|
gsSP1Triangle(4,5,6,0),
|
|
gsSP1Triangle(4,6,7,0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
/****************
|
|
(0),cube4,RCP_chair_base_data0,NULL,(-1),NULL,(-1),0,0,0
|
|
(1),cube3,RCP_chair_base_data1,NULL,(-1),NULL,(-1),0,0,0
|
|
(2),cube2,RCP_chair_base_data2,NULL,(-1),NULL,(-1),0,0,0
|
|
(3),chn23,NULL,NULL,(-1),cube2,(2),-3,17,0
|
|
(4),chn24,NULL,chn23,(3),cube3,(1),156,-9,0
|
|
(5),chn25,NULL,chn24,(4),cube4,(0),-7,-9,0
|
|
(6),cube1,RCP_chair_base_data3,NULL,(-1),chn25,(5),0,0,0
|
|
(7),chn27,light_sourcex,NULL,(-1),cube1,(6),0,153,-86
|
|
****************/
|
|
|
|
/*-------------------------------------------------------------*/
|
|
/* animation data */
|
|
/*-------------------------------------------------------------*/
|
|
|
|
static short chair_base_data_prm[]={
|
|
0, 153, -86,-16383,-16383,-16383,16383,};
|
|
|
|
static unsigned short chair_base_data_tbl[]= {
|
|
1, 0, /* chn27(7) */
|
|
1, 1,
|
|
1, 2,
|
|
1, 0, /* chn27(7) */
|
|
1, 3,
|
|
1, 0,
|
|
1, 0, /* cube1(6) */
|
|
1, 0,
|
|
1, 0,
|
|
1, 0, /* chn25(5) */
|
|
1, 0,
|
|
1, 0,
|
|
1, 0, /* cube4(0) */
|
|
1, 0,
|
|
1, 4,
|
|
1, 0, /* chn24(4) */
|
|
1, 0,
|
|
1, 0,
|
|
1, 0, /* cube3(1) */
|
|
1, 0,
|
|
1, 5,
|
|
1, 0, /* chn23(3) */
|
|
1, 0,
|
|
1, 0,
|
|
1, 0, /* cube2(2) */
|
|
1, 0,
|
|
1, 6,
|
|
};
|
|
|
|
AnimeRecord chair_base_data_anm={
|
|
MAP_ANIM_NORMAL, /* attr */
|
|
0, /* code */
|
|
0, /* start */
|
|
0, /* loop */
|
|
100,
|
|
8,
|
|
chair_base_data_prm,
|
|
chair_base_data_tbl
|
|
};
|
|
/*-------------------------------------------------------------*/
|
|
/* Hms data */
|
|
/*-------------------------------------------------------------*/
|
|
|
|
Hierarchy RCP_HmsEnemychair_base_data[] = {
|
|
hmsScale(0.25f)
|
|
hmsBegin()
|
|
hmsJoint(RM_SURF,NULL,0,153,-86) /* ,chn27,(7) */
|
|
hmsBegin()
|
|
hmsJoint(RM_SURF,RCP_chair_base_data3,0,0,0) /* ,cube1,(6) */
|
|
hmsBegin()
|
|
hmsJoint(RM_SURF,NULL,-7,-9,0) /* ,chn25,(5) */
|
|
hmsBegin()
|
|
hmsJoint(RM_SURF,RCP_chair_base_data0,0,0,0) /* ,cube4,(0) */
|
|
hmsEnd()
|
|
hmsJoint(RM_SURF,NULL,156,-9,0) /* ,chn24,(4) */
|
|
hmsBegin()
|
|
hmsJoint(RM_SURF,RCP_chair_base_data1,0,0,0) /* ,cube3,(1) */
|
|
hmsEnd()
|
|
hmsJoint(RM_SURF,NULL,-3,17,0) /* ,chn23,(3) */
|
|
hmsBegin()
|
|
hmsJoint(RM_SURF,RCP_chair_base_data2,0,0,0) /* ,cube2,(2) */
|
|
hmsEnd()
|
|
hmsEnd()
|
|
hmsEnd()
|
|
hmsEnd()
|
|
hmsExit()
|
|
};
|
|
|
|
|
|
|
|
// extern AnimeRecord chair_base_data_anm[];
|
|
// extern Hierarchy RCP_HmsEnemychair_base_data[];
|
|
/*=============================================================*/
|
|
/* END END */
|
|
/*=============================================================*/
|
|
|
|
/*-------------------------------------------------------------*/
|
|
|
|
static short chair_tmp_prm[]={
|
|
0, 153, -86,-16383,-16383,-16383,16383,};
|
|
|
|
static unsigned short chair_tmp_tbl[]= {
|
|
1, 0, /* chn27(7) */
|
|
1, 1,
|
|
1, 2,
|
|
1, 0, /* chn27(7) */
|
|
1, 3,
|
|
1, 0,
|
|
1, 0, /* cube1(6) */
|
|
1, 0,
|
|
1, 0,
|
|
1, 0, /* chn25(5) */
|
|
1, 0,
|
|
1, 0,
|
|
1, 0, /* cube4(0) */
|
|
1, 0,
|
|
1, 4,
|
|
1, 0, /* chn24(4) */
|
|
1, 0,
|
|
1, 0,
|
|
1, 0, /* cube3(1) */
|
|
1, 0,
|
|
1, 5,
|
|
1, 0, /* chn23(3) */
|
|
1, 0,
|
|
1, 0,
|
|
1, 0, /* cube2(2) */
|
|
1, 0,
|
|
1, 6,
|
|
};
|
|
|
|
AnimeRecord chair_tmp_anm={
|
|
MAP_ANIM_NORMAL, /* attr */
|
|
0, /* code */
|
|
0, /* start */
|
|
0, /* loop */
|
|
100,
|
|
8,
|
|
chair_tmp_prm,
|
|
chair_tmp_tbl
|
|
};
|
|
/*-------------------------------------------------------------*/
|
|
|
|
AnimePtr chair_anime[] = {
|
|
&chair_base_data_anm,
|
|
&chair_tmp_anm,
|
|
};
|
|
|
|
|
|
static long long chair_dmmy_end = 0;
|
|
|
|
/*=============================================================*/
|
|
/* END END */
|
|
/*=============================================================*/
|
|
|