Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 4bc248b

Browse files
committed
nSkinz advancedfx-v0.1.31
Fixes #54 Skins not showing.
1 parent 872c3cb commit 4bc248b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Hooks/Sequence.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ void MapViewModel(sdk::C_BaseViewModel* view_model) {
597597
const auto override_info = game_data::get_weapon_info(active_conf->definition_override_index);
598598
if (override_info) {
599599
view_model->GetModelIndex() = g_model_info->GetModelIndex(override_info->viewModel);
600+
view_model->ValidateModelIndex();
600601
}
601602

602603
if (lastSequence != nSequence || entry.LastNewSequence == -1 || modelIndex != lastModelIndex)
@@ -618,5 +619,6 @@ void UnmapViewModel(sdk::C_BaseViewModel* view_model) {
618619
if(it != g_weapon_to_org.end()) {
619620
view_model->GetSequence() = it->second.LastSequence;
620621
view_model->GetModelIndex() = it->second.LastModelIndex;
622+
view_model->ValidateModelIndex();
621623
}
622624
}

src/gui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void draw_gui()
263263
ImGui::PopItemWidth();
264264
ImGui::Columns(1);
265265

266-
ImGui::Text("nSkinz by namazso (advancedfx-v0.1.30)");
266+
ImGui::Text("nSkinz by namazso (advancedfx-v0.1.31)");
267267

268268
ImGui::End();
269269
}

0 commit comments

Comments
 (0)