| 445 | } |
| 446 | |
| 447 | void zEntHangable_SetShaggy(zEntHangable* ent, zEnt* shaggy) |
| 448 | { |
| 449 | if (shaggy != NULL) |
| 450 | { |
| 451 | if (ent->shaggy == NULL) |
| 452 | { |
| 453 | ent->shaggy = shaggy; |
| 454 | shaggy->frame->mode = 1; |
| 455 | shaggy->frame->vel.x = 0.0f; |
| 456 | shaggy->frame->vel.y = 0.0f; |
| 457 | shaggy->frame->vel.z = 0.0f; |
| 458 | shaggy->frame->mat.pos.x = ent->model->Mat->pos.x; |
| 459 | shaggy->frame->mat.pos.z = ent->model->Mat->pos.z; |
| 460 | *shaggy->model->Mat = *(RwMatrixTag *)(&shaggy->frame->mat); |
| 461 | } |
| 462 | } |
| 463 | else if (ent->shaggy != NULL) |
| 464 | { |
| 465 | ent->shaggy = NULL; |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | void zEntHangable_FollowUpdate(zEntHangable* ent) |
| 470 | { |
no outgoing calls
no test coverage detected