|
|
@ -374,10 +374,12 @@ bool cyAvatar::RunCoopAnim(pyKey& targetKey, plString activeAvatarAnim, plString |
|
|
|
// get the participating avatars
|
|
|
|
// get the participating avatars
|
|
|
|
plArmatureMod* activeAv = plAvatarMgr::FindAvatar(fRecvr[0]); |
|
|
|
plArmatureMod* activeAv = plAvatarMgr::FindAvatar(fRecvr[0]); |
|
|
|
plArmatureMod* targetAv = plAvatarMgr::FindAvatar(targetKey.getKey()); |
|
|
|
plArmatureMod* targetAv = plAvatarMgr::FindAvatar(targetKey.getKey()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (activeAv && targetAv) { |
|
|
|
|
|
|
|
// build the gender-specific animation name
|
|
|
|
activeAvatarAnim = activeAv->MakeAnimationName(activeAvatarAnim); |
|
|
|
activeAvatarAnim = activeAv->MakeAnimationName(activeAvatarAnim); |
|
|
|
targetAvatarAnim = targetAv->MakeAnimationName(targetAvatarAnim); |
|
|
|
targetAvatarAnim = targetAv->MakeAnimationName(targetAvatarAnim); |
|
|
|
|
|
|
|
|
|
|
|
if (activeAv && targetAv) { |
|
|
|
|
|
|
|
// set seek position and rotation of the avatars
|
|
|
|
// set seek position and rotation of the avatars
|
|
|
|
hsPoint3 avPos, targetPos; |
|
|
|
hsPoint3 avPos, targetPos; |
|
|
|
activeAv->GetPositionAndRotationSim(&avPos, nullptr); |
|
|
|
activeAv->GetPositionAndRotationSim(&avPos, nullptr); |
|
|
|