| 267 | } |
| 268 | |
| 269 | void zNPCGoalLoopAnim::UseDefaultAnims() |
| 270 | { |
| 271 | zNPCCommon* npc = (zNPCCommon*)psyche->clt_owner; |
| 272 | |
| 273 | anid_stage[1] = npc->AnimPick(GetID(), NPC_GSPOT_RESUME, this); |
| 274 | |
| 275 | U32 id = npc->AnimPick(GetID(), NPC_GSPOT_START, this); |
| 276 | if (id == anid_stage[1]) |
| 277 | { |
| 278 | id = 0; |
| 279 | } |
| 280 | anid_stage[0] = id; |
| 281 | if (id != 0) |
| 282 | { |
| 283 | flg_loopanim |= (1 << 2); |
| 284 | } |
| 285 | |
| 286 | id = npc->AnimPick(GetID(), NPC_GSPOT_FINISH, this); |
| 287 | if (id == anid_stage[1]) |
| 288 | { |
| 289 | id = 0; |
| 290 | } |
| 291 | anid_stage[2] = id; |
| 292 | if (id != 0) |
| 293 | { |
| 294 | flg_loopanim |= (1 << 3); |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | void zNPCGoalLoopAnim::ValidateStages() |
| 299 | { |