| 1482 | } |
| 1483 | |
| 1484 | void zNPCCommon::ParseLinks() |
| 1485 | { |
| 1486 | for (S32 i = 0; i < this->linkCount; i++) |
| 1487 | { |
| 1488 | switch (this->link[i].srcEvent) |
| 1489 | { |
| 1490 | case eEventNPCScript_ScriptBegin: |
| 1491 | case eEventNPCScript_ScriptEnd: |
| 1492 | case eEventNPCScript_ScriptReady: |
| 1493 | case eEventNPCScript_Halt: |
| 1494 | case eEventNPCScript_SetPos: |
| 1495 | case eEventNPCScript_SetDir: |
| 1496 | case eEventNPCScript_LookNormal: |
| 1497 | case eEventNPCScript_LookAlert: |
| 1498 | case eEventNPCScript_FaceWidget: |
| 1499 | case eEventNPCScript_FaceWidgetDone: |
| 1500 | case eEventNPCScript_GotoWidget: |
| 1501 | case eEventNPCScript_GotoWidgetDone: |
| 1502 | case eEventNPCScript_AttackWidget: |
| 1503 | case eEventNPCScript_AttackWidgetDone: |
| 1504 | case eEventNPCScript_FollowWidget: |
| 1505 | case eEventNPCScript_PlayAnim: |
| 1506 | case eEventNPCScript_PlayAnimDone: |
| 1507 | case eEventNPCScript_LeadPlayer: |
| 1508 | xSceneID2Name(globals.sceneCur, this->id); |
| 1509 | this->flg_misc |= 0x1; |
| 1510 | break; |
| 1511 | } |
| 1512 | } |
| 1513 | } |
| 1514 | |
| 1515 | void zNPCCommon::ParseINI() |
| 1516 | { |