1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-20 04:09:16 +00:00

Add customizable finish message to avatar seeking

This commit is contained in:
Florian Meißner
2012-02-02 20:24:22 +01:00
parent b6a371f49f
commit 14392883a7
4 changed files with 14 additions and 5 deletions

View File

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