m_hover.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. /*
  2. Copyright (C) 1997-2001 Id Software, Inc.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. /*
  16. ==============================================================================
  17. hover
  18. ==============================================================================
  19. */
  20. #include "g_local.h"
  21. #include "m_hover.h"
  22. qboolean visible (edict_t *self, edict_t *other);
  23. static int sound_pain1;
  24. static int sound_pain2;
  25. static int sound_death1;
  26. static int sound_death2;
  27. static int sound_sight;
  28. static int sound_search1;
  29. static int sound_search2;
  30. void hover_sight (edict_t *self, edict_t *other)
  31. {
  32. gi.sound (self, CHAN_VOICE, sound_sight, 1, ATTN_NORM, 0);
  33. }
  34. void hover_search (edict_t *self)
  35. {
  36. if (random() < 0.5)
  37. gi.sound (self, CHAN_VOICE, sound_search1, 1, ATTN_NORM, 0);
  38. else
  39. gi.sound (self, CHAN_VOICE, sound_search2, 1, ATTN_NORM, 0);
  40. }
  41. void hover_run (edict_t *self);
  42. void hover_stand (edict_t *self);
  43. void hover_dead (edict_t *self);
  44. void hover_attack (edict_t *self);
  45. void hover_reattack (edict_t *self);
  46. void hover_fire_blaster (edict_t *self);
  47. void hover_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point);
  48. mframe_t hover_frames_stand [] =
  49. {
  50. ai_stand, 0, NULL,
  51. ai_stand, 0, NULL,
  52. ai_stand, 0, NULL,
  53. ai_stand, 0, NULL,
  54. ai_stand, 0, NULL,
  55. ai_stand, 0, NULL,
  56. ai_stand, 0, NULL,
  57. ai_stand, 0, NULL,
  58. ai_stand, 0, NULL,
  59. ai_stand, 0, NULL,
  60. ai_stand, 0, NULL,
  61. ai_stand, 0, NULL,
  62. ai_stand, 0, NULL,
  63. ai_stand, 0, NULL,
  64. ai_stand, 0, NULL,
  65. ai_stand, 0, NULL,
  66. ai_stand, 0, NULL,
  67. ai_stand, 0, NULL,
  68. ai_stand, 0, NULL,
  69. ai_stand, 0, NULL,
  70. ai_stand, 0, NULL,
  71. ai_stand, 0, NULL,
  72. ai_stand, 0, NULL,
  73. ai_stand, 0, NULL,
  74. ai_stand, 0, NULL,
  75. ai_stand, 0, NULL,
  76. ai_stand, 0, NULL,
  77. ai_stand, 0, NULL,
  78. ai_stand, 0, NULL,
  79. ai_stand, 0, NULL
  80. };
  81. mmove_t hover_move_stand = {FRAME_stand01, FRAME_stand30, hover_frames_stand, NULL};
  82. mframe_t hover_frames_stop1 [] =
  83. {
  84. ai_move, 0, NULL,
  85. ai_move, 0, NULL,
  86. ai_move, 0, NULL,
  87. ai_move, 0, NULL,
  88. ai_move, 0, NULL,
  89. ai_move, 0, NULL,
  90. ai_move, 0, NULL,
  91. ai_move, 0, NULL,
  92. ai_move, 0, NULL
  93. };
  94. mmove_t hover_move_stop1 = {FRAME_stop101, FRAME_stop109, hover_frames_stop1, NULL};
  95. mframe_t hover_frames_stop2 [] =
  96. {
  97. ai_move, 0, NULL,
  98. ai_move, 0, NULL,
  99. ai_move, 0, NULL,
  100. ai_move, 0, NULL,
  101. ai_move, 0, NULL,
  102. ai_move, 0, NULL,
  103. ai_move, 0, NULL,
  104. ai_move, 0, NULL
  105. };
  106. mmove_t hover_move_stop2 = {FRAME_stop201, FRAME_stop208, hover_frames_stop2, NULL};
  107. mframe_t hover_frames_takeoff [] =
  108. {
  109. ai_move, 0, NULL,
  110. ai_move, -2, NULL,
  111. ai_move, 5, NULL,
  112. ai_move, -1, NULL,
  113. ai_move, 1, NULL,
  114. ai_move, 0, NULL,
  115. ai_move, 0, NULL,
  116. ai_move, -1, NULL,
  117. ai_move, -1, NULL,
  118. ai_move, -1, NULL,
  119. ai_move, 0, NULL,
  120. ai_move, 2, NULL,
  121. ai_move, 2, NULL,
  122. ai_move, 1, NULL,
  123. ai_move, 1, NULL,
  124. ai_move, -6, NULL,
  125. ai_move, -9, NULL,
  126. ai_move, 1, NULL,
  127. ai_move, 0, NULL,
  128. ai_move, 2, NULL,
  129. ai_move, 2, NULL,
  130. ai_move, 1, NULL,
  131. ai_move, 1, NULL,
  132. ai_move, 1, NULL,
  133. ai_move, 2, NULL,
  134. ai_move, 0, NULL,
  135. ai_move, 2, NULL,
  136. ai_move, 3, NULL,
  137. ai_move, 2, NULL,
  138. ai_move, 0, NULL
  139. };
  140. mmove_t hover_move_takeoff = {FRAME_takeof01, FRAME_takeof30, hover_frames_takeoff, NULL};
  141. mframe_t hover_frames_pain3 [] =
  142. {
  143. ai_move, 0, NULL,
  144. ai_move, 0, NULL,
  145. ai_move, 0, NULL,
  146. ai_move, 0, NULL,
  147. ai_move, 0, NULL,
  148. ai_move, 0, NULL,
  149. ai_move, 0, NULL,
  150. ai_move, 0, NULL,
  151. ai_move, 0, NULL
  152. };
  153. mmove_t hover_move_pain3 = {FRAME_pain301, FRAME_pain309, hover_frames_pain3, hover_run};
  154. mframe_t hover_frames_pain2 [] =
  155. {
  156. ai_move, 0, NULL,
  157. ai_move, 0, NULL,
  158. ai_move, 0, NULL,
  159. ai_move, 0, NULL,
  160. ai_move, 0, NULL,
  161. ai_move, 0, NULL,
  162. ai_move, 0, NULL,
  163. ai_move, 0, NULL,
  164. ai_move, 0, NULL,
  165. ai_move, 0, NULL,
  166. ai_move, 0, NULL,
  167. ai_move, 0, NULL
  168. };
  169. mmove_t hover_move_pain2 = {FRAME_pain201, FRAME_pain212, hover_frames_pain2, hover_run};
  170. mframe_t hover_frames_pain1 [] =
  171. {
  172. ai_move, 0, NULL,
  173. ai_move, 0, NULL,
  174. ai_move, 2, NULL,
  175. ai_move, -8, NULL,
  176. ai_move, -4, NULL,
  177. ai_move, -6, NULL,
  178. ai_move, -4, NULL,
  179. ai_move, -3, NULL,
  180. ai_move, 1, NULL,
  181. ai_move, 0, NULL,
  182. ai_move, 0, NULL,
  183. ai_move, 0, NULL,
  184. ai_move, 3, NULL,
  185. ai_move, 1, NULL,
  186. ai_move, 0, NULL,
  187. ai_move, 2, NULL,
  188. ai_move, 3, NULL,
  189. ai_move, 2, NULL,
  190. ai_move, 7, NULL,
  191. ai_move, 1, NULL,
  192. ai_move, 0, NULL,
  193. ai_move, 0, NULL,
  194. ai_move, 2, NULL,
  195. ai_move, 0, NULL,
  196. ai_move, 0, NULL,
  197. ai_move, 5, NULL,
  198. ai_move, 3, NULL,
  199. ai_move, 4, NULL
  200. };
  201. mmove_t hover_move_pain1 = {FRAME_pain101, FRAME_pain128, hover_frames_pain1, hover_run};
  202. mframe_t hover_frames_land [] =
  203. {
  204. ai_move, 0, NULL
  205. };
  206. mmove_t hover_move_land = {FRAME_land01, FRAME_land01, hover_frames_land, NULL};
  207. mframe_t hover_frames_forward [] =
  208. {
  209. ai_move, 0, NULL,
  210. ai_move, 0, NULL,
  211. ai_move, 0, NULL,
  212. ai_move, 0, NULL,
  213. ai_move, 0, NULL,
  214. ai_move, 0, NULL,
  215. ai_move, 0, NULL,
  216. ai_move, 0, NULL,
  217. ai_move, 0, NULL,
  218. ai_move, 0, NULL,
  219. ai_move, 0, NULL,
  220. ai_move, 0, NULL,
  221. ai_move, 0, NULL,
  222. ai_move, 0, NULL,
  223. ai_move, 0, NULL,
  224. ai_move, 0, NULL,
  225. ai_move, 0, NULL,
  226. ai_move, 0, NULL,
  227. ai_move, 0, NULL,
  228. ai_move, 0, NULL,
  229. ai_move, 0, NULL,
  230. ai_move, 0, NULL,
  231. ai_move, 0, NULL,
  232. ai_move, 0, NULL,
  233. ai_move, 0, NULL,
  234. ai_move, 0, NULL,
  235. ai_move, 0, NULL,
  236. ai_move, 0, NULL,
  237. ai_move, 0, NULL,
  238. ai_move, 0, NULL,
  239. ai_move, 0, NULL,
  240. ai_move, 0, NULL,
  241. ai_move, 0, NULL,
  242. ai_move, 0, NULL,
  243. ai_move, 0, NULL
  244. };
  245. mmove_t hover_move_forward = {FRAME_forwrd01, FRAME_forwrd35, hover_frames_forward, NULL};
  246. mframe_t hover_frames_walk [] =
  247. {
  248. ai_walk, 4, NULL,
  249. ai_walk, 4, NULL,
  250. ai_walk, 4, NULL,
  251. ai_walk, 4, NULL,
  252. ai_walk, 4, NULL,
  253. ai_walk, 4, NULL,
  254. ai_walk, 4, NULL,
  255. ai_walk, 4, NULL,
  256. ai_walk, 4, NULL,
  257. ai_walk, 4, NULL,
  258. ai_walk, 4, NULL,
  259. ai_walk, 4, NULL,
  260. ai_walk, 4, NULL,
  261. ai_walk, 4, NULL,
  262. ai_walk, 4, NULL,
  263. ai_walk, 4, NULL,
  264. ai_walk, 4, NULL,
  265. ai_walk, 4, NULL,
  266. ai_walk, 4, NULL,
  267. ai_walk, 4, NULL,
  268. ai_walk, 4, NULL,
  269. ai_walk, 4, NULL,
  270. ai_walk, 4, NULL,
  271. ai_walk, 4, NULL,
  272. ai_walk, 4, NULL,
  273. ai_walk, 4, NULL,
  274. ai_walk, 4, NULL,
  275. ai_walk, 4, NULL,
  276. ai_walk, 4, NULL,
  277. ai_walk, 4, NULL,
  278. ai_walk, 4, NULL,
  279. ai_walk, 4, NULL,
  280. ai_walk, 4, NULL,
  281. ai_walk, 4, NULL,
  282. ai_walk, 4, NULL
  283. };
  284. mmove_t hover_move_walk = {FRAME_forwrd01, FRAME_forwrd35, hover_frames_walk, NULL};
  285. mframe_t hover_frames_run [] =
  286. {
  287. ai_run, 10, NULL,
  288. ai_run, 10, NULL,
  289. ai_run, 10, NULL,
  290. ai_run, 10, NULL,
  291. ai_run, 10, NULL,
  292. ai_run, 10, NULL,
  293. ai_run, 10, NULL,
  294. ai_run, 10, NULL,
  295. ai_run, 10, NULL,
  296. ai_run, 10, NULL,
  297. ai_run, 10, NULL,
  298. ai_run, 10, NULL,
  299. ai_run, 10, NULL,
  300. ai_run, 10, NULL,
  301. ai_run, 10, NULL,
  302. ai_run, 10, NULL,
  303. ai_run, 10, NULL,
  304. ai_run, 10, NULL,
  305. ai_run, 10, NULL,
  306. ai_run, 10, NULL,
  307. ai_run, 10, NULL,
  308. ai_run, 10, NULL,
  309. ai_run, 10, NULL,
  310. ai_run, 10, NULL,
  311. ai_run, 10, NULL,
  312. ai_run, 10, NULL,
  313. ai_run, 10, NULL,
  314. ai_run, 10, NULL,
  315. ai_run, 10, NULL,
  316. ai_run, 10, NULL,
  317. ai_run, 10, NULL,
  318. ai_run, 10, NULL,
  319. ai_run, 10, NULL,
  320. ai_run, 10, NULL,
  321. ai_run, 10, NULL
  322. };
  323. mmove_t hover_move_run = {FRAME_forwrd01, FRAME_forwrd35, hover_frames_run, NULL};
  324. mframe_t hover_frames_death1 [] =
  325. {
  326. ai_move, 0, NULL,
  327. ai_move, 0, NULL,
  328. ai_move, 0, NULL,
  329. ai_move, 0, NULL,
  330. ai_move, 0, NULL,
  331. ai_move, 0, NULL,
  332. ai_move, -10,NULL,
  333. ai_move, 3, NULL,
  334. ai_move, 5, NULL,
  335. ai_move, 4, NULL,
  336. ai_move, 7, NULL
  337. };
  338. mmove_t hover_move_death1 = {FRAME_death101, FRAME_death111, hover_frames_death1, hover_dead};
  339. mframe_t hover_frames_backward [] =
  340. {
  341. ai_move, 0, NULL,
  342. ai_move, 0, NULL,
  343. ai_move, 0, NULL,
  344. ai_move, 0, NULL,
  345. ai_move, 0, NULL,
  346. ai_move, 0, NULL,
  347. ai_move, 0, NULL,
  348. ai_move, 0, NULL,
  349. ai_move, 0, NULL,
  350. ai_move, 0, NULL,
  351. ai_move, 0, NULL,
  352. ai_move, 0, NULL,
  353. ai_move, 0, NULL,
  354. ai_move, 0, NULL,
  355. ai_move, 0, NULL,
  356. ai_move, 0, NULL,
  357. ai_move, 0, NULL,
  358. ai_move, 0, NULL,
  359. ai_move, 0, NULL,
  360. ai_move, 0, NULL,
  361. ai_move, 0, NULL,
  362. ai_move, 0, NULL,
  363. ai_move, 0, NULL,
  364. ai_move, 0, NULL
  365. };
  366. mmove_t hover_move_backward = {FRAME_backwd01, FRAME_backwd24, hover_frames_backward, NULL};
  367. mframe_t hover_frames_start_attack [] =
  368. {
  369. ai_charge, 1, NULL,
  370. ai_charge, 1, NULL,
  371. ai_charge, 1, NULL
  372. };
  373. mmove_t hover_move_start_attack = {FRAME_attak101, FRAME_attak103, hover_frames_start_attack, hover_attack};
  374. mframe_t hover_frames_attack1 [] =
  375. {
  376. ai_charge, -10, hover_fire_blaster,
  377. ai_charge, -10, hover_fire_blaster,
  378. ai_charge, 0, hover_reattack,
  379. };
  380. mmove_t hover_move_attack1 = {FRAME_attak104, FRAME_attak106, hover_frames_attack1, NULL};
  381. mframe_t hover_frames_end_attack [] =
  382. {
  383. ai_charge, 1, NULL,
  384. ai_charge, 1, NULL
  385. };
  386. mmove_t hover_move_end_attack = {FRAME_attak107, FRAME_attak108, hover_frames_end_attack, hover_run};
  387. void hover_reattack (edict_t *self)
  388. {
  389. if (self->enemy->health > 0 )
  390. if (visible (self, self->enemy) )
  391. if (random() <= 0.6)
  392. {
  393. self->monsterinfo.currentmove = &hover_move_attack1;
  394. return;
  395. }
  396. self->monsterinfo.currentmove = &hover_move_end_attack;
  397. }
  398. void hover_fire_blaster (edict_t *self)
  399. {
  400. vec3_t start;
  401. vec3_t forward, right;
  402. vec3_t end;
  403. vec3_t dir;
  404. int effect;
  405. if (self->s.frame == FRAME_attak104)
  406. effect = EF_HYPERBLASTER;
  407. else
  408. effect = 0;
  409. AngleVectors (self->s.angles, forward, right, NULL);
  410. G_ProjectSource (self->s.origin, monster_flash_offset[MZ2_HOVER_BLASTER_1], forward, right, start);
  411. VectorCopy (self->enemy->s.origin, end);
  412. end[2] += self->enemy->viewheight;
  413. VectorSubtract (end, start, dir);
  414. monster_fire_blaster (self, start, dir, 1, 1000, MZ2_HOVER_BLASTER_1, effect);
  415. }
  416. void hover_stand (edict_t *self)
  417. {
  418. self->monsterinfo.currentmove = &hover_move_stand;
  419. }
  420. void hover_run (edict_t *self)
  421. {
  422. if (self->monsterinfo.aiflags & AI_STAND_GROUND)
  423. self->monsterinfo.currentmove = &hover_move_stand;
  424. else
  425. self->monsterinfo.currentmove = &hover_move_run;
  426. }
  427. void hover_walk (edict_t *self)
  428. {
  429. self->monsterinfo.currentmove = &hover_move_walk;
  430. }
  431. void hover_start_attack (edict_t *self)
  432. {
  433. self->monsterinfo.currentmove = &hover_move_start_attack;
  434. }
  435. void hover_attack(edict_t *self)
  436. {
  437. self->monsterinfo.currentmove = &hover_move_attack1;
  438. }
  439. void hover_pain (edict_t *self, edict_t *other, float kick, int damage)
  440. {
  441. if (self->health < (self->max_health / 2))
  442. self->s.skinnum = 1;
  443. if (level.time < self->pain_debounce_time)
  444. return;
  445. self->pain_debounce_time = level.time + 3;
  446. if (skill->value == 3)
  447. return; // no pain anims in nightmare
  448. if (damage <= 25)
  449. {
  450. if (random() < 0.5)
  451. {
  452. gi.sound (self, CHAN_VOICE, sound_pain1, 1, ATTN_NORM, 0);
  453. self->monsterinfo.currentmove = &hover_move_pain3;
  454. }
  455. else
  456. {
  457. gi.sound (self, CHAN_VOICE, sound_pain2, 1, ATTN_NORM, 0);
  458. self->monsterinfo.currentmove = &hover_move_pain2;
  459. }
  460. }
  461. else
  462. {
  463. gi.sound (self, CHAN_VOICE, sound_pain1, 1, ATTN_NORM, 0);
  464. self->monsterinfo.currentmove = &hover_move_pain1;
  465. }
  466. }
  467. void hover_deadthink (edict_t *self)
  468. {
  469. if (!self->groundentity && level.time < self->timestamp)
  470. {
  471. self->nextthink = level.time + FRAMETIME;
  472. return;
  473. }
  474. BecomeExplosion1(self);
  475. }
  476. void hover_dead (edict_t *self)
  477. {
  478. VectorSet (self->mins, -16, -16, -24);
  479. VectorSet (self->maxs, 16, 16, -8);
  480. self->movetype = MOVETYPE_TOSS;
  481. self->think = hover_deadthink;
  482. self->nextthink = level.time + FRAMETIME;
  483. self->timestamp = level.time + 15;
  484. gi.linkentity (self);
  485. }
  486. void hover_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
  487. {
  488. int n;
  489. // check for gib
  490. if (self->health <= self->gib_health)
  491. {
  492. gi.sound (self, CHAN_VOICE, gi.soundindex ("misc/udeath.wav"), 1, ATTN_NORM, 0);
  493. for (n= 0; n < 2; n++)
  494. ThrowGib (self, "models/objects/gibs/bone/tris.md2", damage, GIB_ORGANIC);
  495. for (n= 0; n < 2; n++)
  496. ThrowGib (self, "models/objects/gibs/sm_meat/tris.md2", damage, GIB_ORGANIC);
  497. ThrowHead (self, "models/objects/gibs/sm_meat/tris.md2", damage, GIB_ORGANIC);
  498. self->deadflag = DEAD_DEAD;
  499. return;
  500. }
  501. if (self->deadflag == DEAD_DEAD)
  502. return;
  503. // regular death
  504. if (random() < 0.5)
  505. gi.sound (self, CHAN_VOICE, sound_death1, 1, ATTN_NORM, 0);
  506. else
  507. gi.sound (self, CHAN_VOICE, sound_death2, 1, ATTN_NORM, 0);
  508. self->deadflag = DEAD_DEAD;
  509. self->takedamage = DAMAGE_YES;
  510. self->monsterinfo.currentmove = &hover_move_death1;
  511. }
  512. /*QUAKED monster_hover (1 .5 0) (-16 -16 -24) (16 16 32) Ambush Trigger_Spawn Sight
  513. */
  514. void SP_monster_hover (edict_t *self)
  515. {
  516. if (deathmatch->value)
  517. {
  518. G_FreeEdict (self);
  519. return;
  520. }
  521. sound_pain1 = gi.soundindex ("hover/hovpain1.wav");
  522. sound_pain2 = gi.soundindex ("hover/hovpain2.wav");
  523. sound_death1 = gi.soundindex ("hover/hovdeth1.wav");
  524. sound_death2 = gi.soundindex ("hover/hovdeth2.wav");
  525. sound_sight = gi.soundindex ("hover/hovsght1.wav");
  526. sound_search1 = gi.soundindex ("hover/hovsrch1.wav");
  527. sound_search2 = gi.soundindex ("hover/hovsrch2.wav");
  528. gi.soundindex ("hover/hovatck1.wav");
  529. self->s.sound = gi.soundindex ("hover/hovidle1.wav");
  530. self->movetype = MOVETYPE_STEP;
  531. self->solid = SOLID_BBOX;
  532. self->s.modelindex = gi.modelindex("models/monsters/hover/tris.md2");
  533. VectorSet (self->mins, -24, -24, -24);
  534. VectorSet (self->maxs, 24, 24, 32);
  535. self->health = 240;
  536. self->gib_health = -100;
  537. self->mass = 150;
  538. self->pain = hover_pain;
  539. self->die = hover_die;
  540. self->monsterinfo.stand = hover_stand;
  541. self->monsterinfo.walk = hover_walk;
  542. self->monsterinfo.run = hover_run;
  543. // self->monsterinfo.dodge = hover_dodge;
  544. self->monsterinfo.attack = hover_start_attack;
  545. self->monsterinfo.sight = hover_sight;
  546. self->monsterinfo.search = hover_search;
  547. gi.linkentity (self);
  548. self->monsterinfo.currentmove = &hover_move_stand;
  549. self->monsterinfo.scale = MODEL_SCALE;
  550. flymonster_start (self);
  551. }