mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
I did it wrooong
This commit is contained in:
@ -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());
|
||||||
activeAvatarAnim = activeAv->MakeAnimationName(activeAvatarAnim);
|
|
||||||
targetAvatarAnim = targetAv->MakeAnimationName(targetAvatarAnim);
|
|
||||||
|
|
||||||
if (activeAv && targetAv) {
|
if (activeAv && targetAv) {
|
||||||
|
// build the gender-specific animation name
|
||||||
|
activeAvatarAnim = activeAv->MakeAnimationName(activeAvatarAnim);
|
||||||
|
targetAvatarAnim = targetAv->MakeAnimationName(targetAvatarAnim);
|
||||||
|
|
||||||
// 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);
|
||||||
|
Reference in New Issue
Block a user