DATA.H 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. /********************************************************/
  2. /* 3D ENGINE - Football object data header 14/04/95 */
  3. /********************************************************/
  4. #include "defs.h"
  5. // Motion captures
  6. #ifdef NEW
  7. #define MC_NO 117 // No of captures
  8. #else
  9. #define MC_NO 108 // No of captures
  10. #endif
  11. extern mcap *mcaps;
  12. extern mcap mcaps8[MC_NO];
  13. extern mcap mcaps4[MC_NO];
  14. // Footballer captures
  15. //Goalie captures
  16. #define MC_AFOOTB 0 // 23 Frames
  17. #define MC_AFOOTC 1 // 86 Frames
  18. #define MC_ABODYB 2 // 53 Frames
  19. #define MC_ABODYC 3 // 43 Frames
  20. #define MC_AHEADB 4 // 27 Frames
  21. #define MC_AHEADC 5 // 46 Frames
  22. #define MC_AJUMPB 6 // 28 Frames
  23. #define MC_AJUMPC 7 // 38 Frames
  24. #define MC_BFOOTBL 8 // 21 Frames
  25. #define MC_BFOOTBR 9 // 21 Frames
  26. #define MC_BFOOTCL 10 // 42 Frames
  27. #define MC_BFOOTCR 11 // 42 Frames
  28. #define MC_BBODYBL 12 // 27 Frames
  29. #define MC_BBODYBR 13 // 27 Frames
  30. #define MC_BBODYCL 14 // 43 Frames
  31. #define MC_BBODYCR 15 // 43 Frames
  32. #define MC_BHEADBL 16 // 32 Frames
  33. #define MC_BHEADBR 17 // 32 Frames
  34. #define MC_BHEADCL 18 // 36 Frames
  35. #define MC_BHEADCR 19 // 36 Frames
  36. #define MC_BJUMPBL 20 // 36 Frames
  37. #define MC_BJUMPBR 21 // 36 Frames
  38. #define MC_CFOOTBL 22 // 49 Frames
  39. #define MC_CFOOTBR 23 // 49 Frames
  40. #define MC_CFOOTCL 24 // 50 Frames
  41. #define MC_CFOOTCR 25 // 50 Frames
  42. #define MC_CBODYBL 26 // 45 Frames
  43. #define MC_CBODYBR 27 // 45 Frames
  44. #define MC_CBODYCL 28 // 48 Frames
  45. #define MC_CBODYCR 29 // 48 Frames
  46. #define MC_CHEADBL 30 // 44 Frames
  47. #define MC_CHEADBR 31 // 44 Frames
  48. #define MC_CJUMPBL 32 // 47 Frames
  49. #define MC_CJUMPBR 33 // 47 Frames
  50. #define MC_SHOOTR 34 // 36 Frames
  51. #define MC_SHOOTL 35 // 36 Frames
  52. #define MC_CHIPR 36 // 30 Frames
  53. #define MC_CHIPL 37 // 30 Frames
  54. #define MC_PASSR 38 // 33 Frames
  55. #define MC_PASSL 39 // 33 Frames
  56. #define MC_CROSSR 40 // 36 Frames
  57. #define MC_CROSSL 41 // 36 Frames
  58. #define MC_VOLLEYR 42 // 30 Frames
  59. #define MC_VOLLEYL 43 // 30 Frames
  60. #define MC_TOER 38 // 35 Frames .
  61. #define MC_TOEL 39 // 35 Frames .
  62. #define MC_DIAGPASSR 46 // 33 Frames
  63. #define MC_DIAGPASSL 47 // 33 Frames
  64. #define MC_DIAGBACKR 48 // 33 Frames
  65. #define MC_DIAGBACKL 49 // 33 Frames
  66. #define MC_SIDEPASSR 50 // 32 Frames
  67. #define MC_SIDEPASSL 51 // 32 Frames
  68. #define MC_BACKHEELR 52 // 32 Frames
  69. #define MC_BACKHEELL 53 // 32 Frames
  70. #define MC_TRAPR 54 // 20 Frames
  71. #define MC_TRAPL 55 // 20 Frames
  72. #define MC_STOSL 56 // 68 Frames
  73. #define MC_STOSR 57 // 68 Frames
  74. #define MC_STOSBL 58 // 95 Frames
  75. #define MC_STOSBR 59 // 95 Frames
  76. #define MC_RIDEL 60 // 28 Frames
  77. #define MC_RIDER 61 // 28 Frames
  78. #define MC_SOCKSR 62 // 68 Frames
  79. #define MC_SOCKSL 63 // 68 Frames
  80. #define MC_TROTB 64 // 27 Frames
  81. #define MC_TROTH 65 // 27 Frames
  82. #define MC_TROTG 66 // 28 Frames
  83. #define MC_TROTC 67 // 28 Frames
  84. #define MC_TROTD 68 // 25 Frames
  85. #define MC_TROTF 69 // 25 Frames
  86. #define MC_TROTA 70 // 32 Frames
  87. #define MC_TROTE 71 // 26 Frames
  88. #define MC_RUN 72 // 26 Frames
  89. #define MC_JOG 73 // 29 Frames
  90. #define MC_BARGE 74 // 27 Frames
  91. #define MC_THROWW 75 // 13 Frames
  92. #define MC_SHAMEW 76 // 33 Frames
  93. #define MC_LIE 78 // 26 Frames .
  94. #define MC_STAND 78 // 39 Frames
  95. #define MC_S_HEAD 79 // 51 Frames
  96. #define MC_J_HEAD 80 // 52 Frames
  97. #define MC_D_HEAD 81 // 38 Frames
  98. #define MC_U_HEAD 79 // 38 Frames .
  99. #define MC_DV_HEAD 83 // 36 Frames
  100. #define MC_CHEST 84 // 49 Frames
  101. #define MC_S_TACKLE 85 // 98 Frames
  102. #define MC_STEAL 86 // 17 Frames
  103. #define MC_OVERHEAD 87 // 45 Frames
  104. #define MC_THROWL 88 // 43 Frames
  105. #define MC_THROWS 89 // 35 Frames
  106. #define MC_FALLR 90 // 34 Frames
  107. #define MC_FALLS 90 // 44 Frames .
  108. #define MC_CELEB 92 // 118 Frames
  109. #define MC_SHAME 93 // 82 Frames
  110. #define MC_GETUP 94 // 82 Frames
  111. #define MC_GETUPF 95 // 87 Frames
  112. #define MC_STANDB 96 // 29 Frames
  113. #define MC_BOUNCE 97 // 43 Frames
  114. #define MC_KICKOUT 98 // 68 Frames
  115. #define MC_HALFVOLL 99 // 68 Frames
  116. #define MC_THROW 100 // 59 Frames
  117. #define MC_ROLL 101 // 81 Frames
  118. #define MC_RUNWITHB 102 // 30 Frames
  119. #define MC_WAVEUP 103 // 49 Frames
  120. #define MC_PENALTY 104 // 64 Frames
  121. #define MC_PLEAD 78 // 128 Frames .
  122. #define MC_CRTOSTB 106 // 55 Frames
  123. #define MC_PICKBALL 107 // 43 Frames
  124. #define MC_PLANE 108 // 45 Frames
  125. #define MC_FINGER 109 // 27 Frames
  126. #define MC_KNEE 110 // 41 Frames
  127. #define MC_DUCK 111 // 62 Frames
  128. #define MC_MILLER 112 // 45 Frames
  129. #define MC_BABY 113 // 40 Frames
  130. #define MC_MOON 114 // 68 Frames
  131. #define MC_PUMP 115 // 30 Frames
  132. #define MC_REEVES 116 // 49 Frames
  133. // Contact points within animations...
  134. #define MCC_AFOOTB (29./69)
  135. #define MCC_AFOOTC (48./259)
  136. #define MCC_ABODYB (54./160)
  137. #define MCC_ABODYC (39./131)
  138. #define MCC_AHEADB (65./138)
  139. #define MCC_AHEADC (65./138)
  140. #define MCC_AJUMPB (44./86)
  141. #define MCC_AJUMPC (62./116)
  142. #define MCC_BFOOTB (52./63)
  143. #define MCC_BFOOTC (86./128)
  144. #define MCC_BBODYB (29./81)
  145. #define MCC_BBODYC (57./130)
  146. #define MCC_BHEADB (48./110)
  147. #define MCC_BHEADC (48./110)
  148. #define MCC_BJUMPB (60./109)
  149. #define MCC_CFOOTB (89./147)
  150. #define MCC_CFOOTC (109./150)
  151. #define MCC_CBODYB (68./121)
  152. #define MCC_CBODYC (70./145)
  153. #define MCC_CHEADB (89./132)
  154. #define MCC_CJUMPB (82./142)
  155. #define MCC_SHOOT (38./109)
  156. #define MCC_CHIP (40./91)
  157. #define MCC_PASS (48./99)
  158. #define MCC_CROSS (42./110)
  159. #define MCC_VOLLEY (41./91)
  160. #define MCC_TOE (47./107)
  161. #define MCC_DIAGPASS (48./101)
  162. #define MCC_DIAGBACK (57./100)
  163. #define MCC_SIDEPASS (46./96)
  164. #define MCC_BACKHEEL (65./97)
  165. #define MCC_TRAP (40./60)
  166. #define MCC_STOS 10
  167. #define MCC_STOSB 0
  168. #define MCC_RIDE 10
  169. #define MCC_SOCKS 10
  170. #define MCC_TROTB 10
  171. #define MCC_TROTH 10
  172. #define MCC_TROTG 10
  173. #define MCC_TROTC 10
  174. #define MCC_TROTD 10
  175. #define MCC_TROTF 10
  176. #define MCC_TROTA 10
  177. #define MCC_TROTE 10
  178. #define MCC_RUN 10
  179. #define MCC_JOG 10
  180. #define MCC_BARGE 10
  181. #define MCC_THROWW 10
  182. #define MCC_SHAMEW 10
  183. #define MCC_LIE 10
  184. #define MCC_STAND 10
  185. #define MCC_S_HEAD (103./155)
  186. #define MCC_J_HEAD (54./158)
  187. #define MCC_D_HEAD (34./115)
  188. #define MCC_U_HEAD (81./114)
  189. #define MCC_DV_HEAD (36./109)
  190. #define MCC_CHEST (50./149)
  191. #define MCC_S_TACKLE 10
  192. #define MCC_STEAL (28./53)
  193. #define MCC_OVERHEAD (70./136)
  194. #define MCC_THROWL (-86./129)
  195. #define MCC_THROWS (-43./107)
  196. #define MCC_FALLR 10
  197. #define MCC_FALLS 10
  198. #define MCC_CELEB 10
  199. #define MCC_SHAME 10
  200. #define MCC_GETUP 10
  201. #define MCC_GETUPF 10
  202. #define MCC_STANDB 0
  203. #define MCC_BOUNCE 0
  204. #define MCC_KICKOUT (-103./204)
  205. #define MCC_HALFVOLL (-101./203)
  206. #define MCC_THROW (-92./179)
  207. #define MCC_ROLL (-88./245)
  208. #define MCC_RUNWITHB 0
  209. #define MCC_WAVEUP 0
  210. #define MCC_PENALTY 10
  211. #define MCC_PLEAD 10
  212. #define MCC_CRTOSTB 0
  213. #define MCC_PICKBALL 0
  214. #define MCC_DUCK 10
  215. #define MCC_FINGER 10
  216. #define MCC_KNEE 10
  217. #define MCC_PLANE 10
  218. #define MCC_MILLER 10
  219. #define MCC_BABY 10
  220. #define MCC_MOON 10
  221. #define MCC_PUMP 10
  222. #define MCC_REEVES 10
  223. // Players
  224. #define NPLAYERS 25
  225. #define PLYRPTS 28
  226. extern obj player[NPLAYERS];
  227. extern capfrm *player_p;
  228. extern plyrtwdat *plyrtwtb;
  229. extern capfrm twpts;
  230. extern facelist player_f1;
  231. extern facelist player_f2;
  232. extern facelist player_fr;
  233. extern facelist player_fl;
  234. extern facelist player_fg;
  235. extern facelist player_fw;
  236. extern face playertypes[];
  237. // Simple pitch
  238. extern obj pitch;
  239. extern ptlist pitch_p;
  240. extern facelist pitch_f;
  241. // Lines
  242. #define LINEWIDTH 2.4
  243. extern obj lines,l1,l2,l3,l4,l5,l6;
  244. extern ptlist lines_p;
  245. extern facelist lines_f;
  246. extern ptlist l1_p1;
  247. extern ptlist l1_p2;
  248. extern ptlist l2_p1;
  249. extern ptlist l2_p2;
  250. extern ptlist l3_p1;
  251. extern ptlist l3_p2;
  252. extern ptlist l4_p1;
  253. extern ptlist l4_p2;
  254. extern ptlist l5_p1;
  255. extern ptlist l5_p2;
  256. extern ptlist l6_p1;
  257. extern ptlist l6_p2;
  258. extern facelist l_f1a;
  259. extern facelist l_f1b;
  260. extern facelist l_f1c;
  261. extern facelist l_f2a;
  262. extern facelist l_f2b;
  263. extern facelist l_f3a;
  264. extern facelist l_f3b;
  265. extern facelist l_f3c;
  266. extern facelist l_f4;
  267. extern detlist l1_d;
  268. extern detlist l2_d;
  269. extern detlist l3_d;
  270. extern detlist l4_d;
  271. extern detlist l5_d;
  272. extern detlist l6_d;
  273. extern obj semi1,semi2;
  274. extern ptlist s_circle_p1a;
  275. extern ptlist s_circle_p2a;
  276. extern ptlist s_circle_p1b;
  277. extern ptlist s_circle_p2b;
  278. extern facelist s_circle_f1a;
  279. extern facelist s_circle_f2a;
  280. extern facelist s_circle_fb;
  281. extern facelist s_circle_fc;
  282. extern facelist s_circle_fd;
  283. extern detlist s_circle_d1;
  284. extern detlist s_circle_d2;
  285. extern obj circle;
  286. extern ptlist circle_pa;
  287. extern ptlist circle_pb;
  288. extern facelist circle_fa;
  289. extern facelist circle_fb;
  290. extern facelist circle_fc;
  291. extern facelist circle_fd;
  292. extern detlist circle_d;
  293. extern obj spot1,spot2,spot3;
  294. extern ptlist spot_p;
  295. extern facelist spot_f;
  296. // Ball
  297. extern obj ball;
  298. extern ptlist footy_p;
  299. extern facelist footy_f;
  300. extern ptlist footys_p;
  301. extern facelist footys_f;
  302. extern detlist ball_d;
  303. // Shadows/Highlights
  304. extern obj ballshad;
  305. extern ptlist ballshad_p;
  306. extern facelist ballshad_f;
  307. extern obj plhilight[7][6];
  308. extern ptlist plshad_p;
  309. extern ptlist plhi_p;
  310. extern ptlist plhi_p1;
  311. extern ptlist plhi_p2;
  312. extern ptlist plhi_p3;
  313. extern facelist plshad_f;
  314. extern facelist plhi1_f1;
  315. extern facelist plhi2_f1;
  316. extern facelist plhi3_f1;
  317. extern facelist plhi4_f1;
  318. extern facelist plhi1_f2;
  319. extern facelist plhi2_f2;
  320. extern facelist plhi3_f2;
  321. extern facelist plhi4_f2;
  322. extern facelist plhi1_f3;
  323. extern facelist plhi2_f3;
  324. extern facelist plhi3_f3;
  325. extern facelist plhi4_f3;
  326. extern facelist plhi1_f4;
  327. extern facelist plhi2_f4;
  328. extern facelist plhi3_f4;
  329. extern facelist plhi4_f4;
  330. extern facelist plhi1_f5;
  331. extern facelist plhi2_f5;
  332. extern facelist plhi3_f5;
  333. extern facelist plhi4_f5;
  334. extern facelist plhi1_ff;
  335. extern facelist plhi2_ff;
  336. extern facelist plhi3_ff;
  337. extern facelist plhi4_ff;
  338. // Goals
  339. extern obj goal1_1,goal1_2,goal2_1,goal2_2,goal3_1,goal3_2,goal4_1,goal4_2;
  340. extern ptlist goal1a_p;
  341. extern ptlist goal2a_p;
  342. extern ptlist goal1ax_p;
  343. extern ptlist goal2ax_p;
  344. extern ptlist goal3a_p;
  345. extern facelist goal_f1a;
  346. extern facelist goal_f2a;
  347. extern facelist goal_f1b;
  348. extern ptlist goal1b_p;
  349. extern ptlist goal2b_p;
  350. extern ptlist goal3b_p;
  351. extern ptlist goal1bx_p;
  352. extern ptlist goal2bx_p;
  353. extern ptlist goal3bx_p;
  354. extern facelist goal_f1c;
  355. extern facelist goal_f2c;
  356. extern ptlist goal1c_p;
  357. extern ptlist goal2c_p;
  358. extern ptlist goal3c_p;
  359. extern ptlist goal1cx_p;
  360. extern ptlist goal2cx_p;
  361. extern ptlist goal3cx_p;
  362. extern facelist goal_f1d;
  363. extern facelist goal_f2d;
  364. extern detlist goal1_a,goal2_a,goal3_a,goal4_a;
  365. extern detlist goal1_b,goal2_b,goal3_b,goal4_b;
  366. // Flags
  367. extern obj flag_1,flag_2,flag_3,flag_4;
  368. extern ptlist flag_p;
  369. extern facelist flag_f;
  370.