| 774 | } |
| 775 | |
| 776 | void zEntPickup_DoPickup(zEntPickup* ent) |
| 777 | { |
| 778 | ent->grab_pos = *xEntGetPos(ent); |
| 779 | ent->flyflags |= 0x1; |
| 780 | ent->state = (ent->state & ~0x3f) | 0x4; |
| 781 | |
| 782 | if (ent->p->pickupType == PICKUP_TYPE_1 && ent->p->pickupIndex == PICKUP_SPATULA) |
| 783 | { |
| 784 | zEntPlayer_SNDPlayStream(ePlayerStreamSnd_SpatulaComment1); |
| 785 | |
| 786 | if (!bungee_state::active()) |
| 787 | { |
| 788 | zEntPlayerControlOff(CONTROL_OWNER_REWARDANIM); |
| 789 | zEntPlayer_GiveSpatula(1); |
| 790 | |
| 791 | xMat4x3 mat; |
| 792 | |
| 793 | xMat4x3Copy(&mat, (xMat4x3*)&sPickupOrientation); |
| 794 | xVec3Copy(&mat.pos, (xVec3*)&ent->model->Mat->pos); |
| 795 | xMat4x3Copy((xMat4x3*)ent->model->Mat, &mat); |
| 796 | } |
| 797 | } |
| 798 | } |
| 799 | |
| 800 | void zEntPickup_GivePickup(zEntPickup* ent) |
| 801 | { |
no test coverage detected