diff --git a/include/RE/T/TESNPC.h b/include/RE/T/TESNPC.h index 43d94e43b..dbad92f76 100644 --- a/include/RE/T/TESNPC.h +++ b/include/RE/T/TESNPC.h @@ -256,9 +256,11 @@ namespace RE bool IsInFaction(TESFaction* a_faction) const; bool RemovePerk(BGSPerk* a_perk); bool RemovePerks(const std::vector& a_perks); + bool SetDefaultOutfit(BGSOutfit * a_outfit); void SetFaceTexture(BGSTextureSet* a_textureSet); void SetHairColor(BGSColorForm* a_hairColor); void SetSkinFromTint(NiColorA* a_result, TintMask* a_tintMask, bool a_fromTint); + bool SetSleepOutfit(BGSOutfit * a_outfit); void UpdateNeck(BSFaceGenNiNode* a_faceNode); // members diff --git a/src/RE/T/TESNPC.cpp b/src/RE/T/TESNPC.cpp index 19dae448d..40b07b1ad 100644 --- a/src/RE/T/TESNPC.cpp +++ b/src/RE/T/TESNPC.cpp @@ -227,6 +227,11 @@ namespace RE return false; } + bool TESNPC::SetDefaultOutfit(BGSOutfit * a_outfit) { + defaultOutfit = a_outfit; + return AddChange(ChangeFlags::kDefaultOutfit); + } + void TESNPC::SetFaceTexture(BGSTextureSet* a_textureSet) { if (!headRelatedData && a_textureSet) { @@ -256,6 +261,11 @@ namespace RE return func(this, a_result, a_tintMask, a_fromTint); } + bool TESNPC::SetSleepOutfit(BGSOutfit * a_outfit) { + sleepOutfit = a_outfit; + return AddChange(ChangeFlags::kSleepOutfit); + } + void TESNPC::UpdateNeck(BSFaceGenNiNode* a_faceNode) { using func_t = decltype(&TESNPC::UpdateNeck);