mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Updates to the Python API
Throw away some stupid stuff and make things slightly easier to use...
This commit is contained in:
@ -126,7 +126,7 @@ protected:
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
plAvBrainCritter::plAvBrainCritter(): fCallbackAction(nil), fCurMode(kIdle), fNextMode(kIdle), fFadingNextBehavior(true),
|
||||
fLocallyControlled(false), fAvoidingAvatars(false), fFinalGoalPos(0, 0, 0), fImmediateGoalPos(0, 0, 0), fDotGoal(0),
|
||||
fAvoidingAvatars(false), fFinalGoalPos(0, 0, 0), fImmediateGoalPos(0, 0, 0), fDotGoal(0),
|
||||
fAngRight(0)
|
||||
{
|
||||
SightCone(M_PI/2); // 90deg
|
||||
@ -229,6 +229,13 @@ void plAvBrainCritter::Resume()
|
||||
plArmatureBrain::Resume();
|
||||
}
|
||||
|
||||
plSceneObject* plAvBrainCritter::GetTarget() const
|
||||
{
|
||||
if (fArmature)
|
||||
return fArmature->GetTarget(0);
|
||||
return nil;
|
||||
}
|
||||
|
||||
void plAvBrainCritter::AddBehavior(const std::string& animationName, const std::string& behaviorName, bool loop /* = true */, bool randomStartPos /* = true */,
|
||||
float fadeInLen /* = 2.f */, float fadeOutLen /* = 2.f */)
|
||||
{
|
||||
|
Reference in New Issue
Block a user