Skip to content

Commit b18f1be

Browse files
committed
remove(SetDefaultChangeSkinAttributes): Useless code
1 parent 09b0a47 commit b18f1be

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/components/Plugins/src/scripting/Player.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -789,17 +789,6 @@ SMM_API void scripting_Player_Weapon_SetDefaultChangeSkinAttributes(uint32 playe
789789
if (weapon->GetWeaponVData()->m_GearSlot == gear_slot_t::GEAR_SLOT_KNIFE)
790790
{
791791
weapon->m_AttributeManager().m_Item().m_iEntityQuality = 3;
792-
CCSPlayer_ViewModelServices *viewModelService = pawn->m_pViewModelServices();
793-
if (!viewModelService)
794-
return;
795-
796-
CHandle<CBaseViewModel> *viewmodels = viewModelService->m_hViewModel();
797-
if (!viewmodels)
798-
return;
799-
800-
CBaseViewModel *model = viewmodels[0].Get();
801-
std::string name = std::string(weapon->GetClassname()) == "bayonet" ? "knife_bayonet" : weapon->GetClassname();
802-
model->SetModel(string_format("weapons/models/knife/%s/weapon_%s.vmdl", name.c_str(), name.c_str()).c_str());
803792
}
804793
else if (!weapon->m_AttributeManager().m_Item().m_iAccountID() && weapon->m_CBodyComponent() && weapon->m_CBodyComponent()->m_pSceneNode())
805794
{

0 commit comments

Comments
 (0)