| 4874 | } |
| 4875 | |
| 4876 | void PlayerHitAnimInit(xModelInstance* model, xAnimTransition* tran, U32* index) |
| 4877 | { |
| 4878 | *index = 0; |
| 4879 | xAnimState* state = model->Anim->Table->StateList; |
| 4880 | while ((state != NULL) && (*index < 8)) |
| 4881 | { |
| 4882 | if (strncmp(state->Name, "Hit0", 4) == 0) |
| 4883 | { |
| 4884 | tran[*index].Dest = state; |
| 4885 | tran[*index].Callback = NULL; |
| 4886 | tran[*index].SrcTime = 0.0; |
| 4887 | tran[*index].DestTime = 0.0; |
| 4888 | tran[*index].BlendRecip = 5.0f; |
| 4889 | tran[*index].BlendOffset = NULL; |
| 4890 | (*index)++; |
| 4891 | } |
| 4892 | state = state->Next; |
| 4893 | } |
| 4894 | } |
| 4895 | |
| 4896 | void zEntPlayerPreReset() |
| 4897 | { |