|
|
@ -101,7 +101,7 @@ bool plAvTaskSeek::fLogProcess = false; |
|
|
|
|
|
|
|
|
|
|
|
void plAvTaskSeek::IInitDefaults() |
|
|
|
void plAvTaskSeek::IInitDefaults() |
|
|
|
{ |
|
|
|
{ |
|
|
|
fSeekObject = nil; |
|
|
|
fSeekObject = nullptr; |
|
|
|
fMovingTarget = false; |
|
|
|
fMovingTarget = false; |
|
|
|
fAlign = kAlignHandle; |
|
|
|
fAlign = kAlignHandle; |
|
|
|
fAnimName = ""; |
|
|
|
fAnimName = ""; |
|
|
@ -114,7 +114,8 @@ void plAvTaskSeek::IInitDefaults() |
|
|
|
fMaxSidleAngle = kDefaultMaxSidleAngle; |
|
|
|
fMaxSidleAngle = kDefaultMaxSidleAngle; |
|
|
|
fFlags = kSeekFlagForce3rdPersonOnStart;
|
|
|
|
fFlags = kSeekFlagForce3rdPersonOnStart;
|
|
|
|
fState = kSeekRunNormal; |
|
|
|
fState = kSeekRunNormal; |
|
|
|
fNotifyFinishedKey = nil; |
|
|
|
fNotifyFinishedKey = nullptr; |
|
|
|
|
|
|
|
fFinishMsg = nullptr; |
|
|
|
} |
|
|
|
} |
|
|
|
// plAvTaskSeek ------------
|
|
|
|
// plAvTaskSeek ------------
|
|
|
|
// -------------
|
|
|
|
// -------------
|
|
|
@ -158,6 +159,7 @@ plAvTaskSeek::plAvTaskSeek(plAvSeekMsg *msg) |
|
|
|
fFlags &= ~kSeekFlagRotationOnly; |
|
|
|
fFlags &= ~kSeekFlagRotationOnly; |
|
|
|
|
|
|
|
|
|
|
|
fNotifyFinishedKey = msg->fFinishKey; |
|
|
|
fNotifyFinishedKey = msg->fFinishKey; |
|
|
|
|
|
|
|
fFinishMsg = msg->fFinishMsg; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// plAvTaskSeek ------------------------
|
|
|
|
// plAvTaskSeek ------------------------
|
|
|
@ -303,6 +305,9 @@ void plAvTaskSeek::Finish(plArmatureMod *avatar, plArmatureBrain *brain, double |
|
|
|
//inform controller we are done seeking
|
|
|
|
//inform controller we are done seeking
|
|
|
|
if (avatar->GetController()) |
|
|
|
if (avatar->GetController()) |
|
|
|
avatar->GetController()->SetSeek(false); |
|
|
|
avatar->GetController()->SetSeek(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (fFinishMsg) |
|
|
|
|
|
|
|
fFinishMsg->Send(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void plAvTaskSeek::LeaveAge(plArmatureMod *avatar) |
|
|
|
void plAvTaskSeek::LeaveAge(plArmatureMod *avatar) |
|
|
|