mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Adds default clothing changes broadcast to other clients
This commit is contained in:
@ -1003,7 +1003,7 @@ void plClothingOutfit::IUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
void plClothingOutfit::WearDefaultClothing()
|
||||
void plClothingOutfit::WearDefaultClothing(hsBool broadcast)
|
||||
{
|
||||
StripAccessories();
|
||||
|
||||
@ -1041,9 +1041,14 @@ void plClothingOutfit::WearDefaultClothing()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (broadcast) {
|
||||
fSynchClients = true;
|
||||
ForceUpdate(true);
|
||||
}
|
||||
}
|
||||
|
||||
void plClothingOutfit::WearDefaultClothingType(UInt32 clothingType)
|
||||
void plClothingOutfit::WearDefaultClothingType(UInt32 clothingType, hsBool broadcast)
|
||||
{
|
||||
plClothingMgr *cMgr = plClothingMgr::GetClothingMgr();
|
||||
hsTArray<plClothingItem *> items;
|
||||
@ -1072,6 +1077,11 @@ void plClothingOutfit::WearDefaultClothingType(UInt32 clothingType)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (broadcast) {
|
||||
fSynchClients = true;
|
||||
ForceUpdate(true);
|
||||
}
|
||||
}
|
||||
|
||||
void plClothingOutfit::WearMaintainerOutfit()
|
||||
|
@ -199,8 +199,8 @@ public:
|
||||
hsBool DirtySynchState(const char* SDLStateName, UInt32 synchFlags);
|
||||
|
||||
void StripAccessories();
|
||||
void WearDefaultClothing();
|
||||
void WearDefaultClothingType(UInt32 clothingType);
|
||||
void WearDefaultClothing(hsBool broadcast = false);
|
||||
void WearDefaultClothingType(UInt32 clothingType, hsBool broadcast = false);
|
||||
void WearMaintainerOutfit();
|
||||
void WearRandomOutfit();
|
||||
void RemoveMaintainerOutfit();
|
||||
|
Reference in New Issue
Block a user