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

Implement a plLoadClothingMsg as a clone loading trigger

This commit is contained in:
Florian Meißner
2013-12-02 17:30:18 +01:00
parent 7e66aee382
commit 7ca81ba626
5 changed files with 78 additions and 0 deletions

View File

@ -83,6 +83,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plMessage/plMemberUpdateMsg.h"
#include "plMessage/plAvatarMsg.h"
#include "plMessage/plAvCoopMsg.h"
#include "plMessage/plLoadClothingMsg.h"
#include "pnMessage/plTimeMsg.h"
#include "plStatusLog/plStatusLog.h"
@ -211,6 +212,11 @@ plKey plAvatarMgr::LoadAvatar(plString name, plString accountName, bool isPlayer
{
plUoid uID(loc, plSceneObject::Index(), name);
plLoadAvatarMsg *cloneMsg = new plLoadAvatarMsg(uID, requestor, 0, isPlayer, spawnPoint, initialTask, userStr);
if (clothingFile.IsValid())
{
plLoadClothingMsg *clothingMsg = new plLoadClothingMsg(clothingFile);
cloneMsg->SetTriggerMsg(clothingMsg);
}
result = cloneMsg->GetCloneKey();
// the clone message is automatically addressed to the net client manager