2
3
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:
2021-12-13 16:25:15 -08:00
parent 4125564512
commit 587414dfa5
6 changed files with 30 additions and 16 deletions

View File

@ -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()

View File

@ -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();