| 120 | #include "torch.h" |
| 121 | |
| 122 | void CCustomOutfit::OnMoveToSlot() |
| 123 | { |
| 124 | inherited::OnMoveToSlot(); |
| 125 | if (m_pCurrentInventory) |
| 126 | { |
| 127 | CActor* pActor = smart_cast<CActor*>(m_pCurrentInventory->GetOwner()); |
| 128 | if (pActor) |
| 129 | { |
| 130 | if (m_ActorVisual.size()) |
| 131 | { |
| 132 | pActor->ChangeVisual(m_ActorVisual); |
| 133 | } |
| 134 | if (pSettings->line_exist(cNameSect(), "bones_koeff_protection")) |
| 135 | { |
| 136 | m_boneProtection->reload(pSettings->r_string(cNameSect(), "bones_koeff_protection"), smart_cast<IKinematics*>(pActor->Visual())); |
| 137 | } |
| 138 | |
| 139 | if (pSettings->line_exist(cNameSect(), "player_hud_section")) |
| 140 | g_player_hud->load(pSettings->r_string(cNameSect(), "player_hud_section")); |
| 141 | else |
| 142 | g_player_hud->load_default(); |
| 143 | |
| 144 | smart_cast<CUIGameSP*>(HUD().GetUI()->UIGame())->InventoryMenu->UpdateOutfit(); |
| 145 | } |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | void CCustomOutfit::OnDropOrMoveToRuck() |
| 150 | { |
no test coverage detected