|
CSGO: Skin changer ffs
Hello ayy another shitty skin changer post, but! dont go! now im gonna explain my problem, my problem is when i run my func to apply my knivvvv skin the skin doesnt update! When i use another code that does the same thing it works… like wtf can someone explain me why is this thing happening i got this problem for 4+ hours pls helperino now for some good information! my model code:
const char* WeaponMdl = g_MdlInfo->GetModelName(Weapon->GetModel()); //Check if the weapon mdl is registered Utils::ConsolePrint("Found A Registered Model!"); C_BaseViewModel* pViewModel = (C_BaseViewModel*)g_EntityList->GetClientEntityFromHandle(g_LocalPlayer->m_hViewModel()); C_BaseCombatWeapon* ViewModelWeapon = (C_BaseCombatWeapon*)g_EntityList->GetClientEntityFromHandle(pViewModel->m_hWeapon()); Utils::ConsolePrint("Found a Registered model in hand! Changing to Suposted model!"); and heres the code that works:
CBaseEntity* Player = Hacks.LocalPlayer; Weapon->SetModelIndex(ModelIndex); CBaseViewModel* pViewModel = (CBaseViewModel*)Interfaces.pEntList->GetClientEntityFromHandle((HANDLE)Player->GetViewModel()); if (!pViewModel) CBaseCombatWeapon* ViewModelWeapon = (CBaseCombatWeapon*)Interfaces.pEntList->GetClientEntityFromHandle((HANDLE)pViewModel->GetWeapon()); if (ViewModelWeapon != Weapon) pViewModel->SetModelIndex(ModelIndex); i dont use the code that works because i want to make the change model universal like i could change my ak47 model or something like that… pls responderino and thenks for help. |
|