| 64 | } |
| 65 | |
| 66 | void zLasso_SetGuide(xEnt* ent, xAnimState* lassoAnim) |
| 67 | { |
| 68 | sCurrentGuide = NULL; |
| 69 | if (ent == NULL || lassoAnim == NULL) |
| 70 | { |
| 71 | return; |
| 72 | } |
| 73 | |
| 74 | U32 guideListIdx = 0; |
| 75 | for (U32 i = 0; i < sNumGuideLists; i++, guideListIdx++) |
| 76 | { |
| 77 | if (sGuideList[i].target == ent) |
| 78 | { |
| 79 | break; |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | if (guideListIdx < sNumGuideLists) |
| 84 | { |
| 85 | U32 guideIdx = 0; |
| 86 | for (U32 i = 0; i < sGuideList[guideListIdx].numGuides; i++, guideIdx++) |
| 87 | { |
| 88 | if (sGuideList[guideListIdx].guide[i].lassoAnim == lassoAnim) |
| 89 | { |
| 90 | break; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | if (guideIdx < sGuideList[guideListIdx].numGuides) |
| 95 | { |
| 96 | sCurrentGuide = &sGuideList[guideListIdx].guide[guideIdx]; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | if (sCurrentGuide == NULL) |
| 101 | { |
| 102 | sCurrentGuide = &sGuideList->guide[0]; |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | void zLasso_InterpToGuide(zLasso* lasso) |
| 107 | { |
no outgoing calls
no test coverage detected