Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Steam Games Hacks & Cheats › Counter-Strike 2 Hacks › Counter-Strike 2 Coding & Resources › Skin changer not working

Skin changer not working

Posts 1–4 of 4 · Page 1 of 1
TH
thecookiechaser69
Skin changer not working
Im used ayyware to build a nice cheat, but my skin changer not working...
Here is the code:
Code:
RecvVarProxyFn oRecvnModelIndex;

void Hooked_RecvProxy_Viewmodel(CRecvProxyData *pData, void *pStruct, void *pOut)
{
	int iModel = pData->m_Value.m_Int;
	// Get the knife view model id's
	static int default_t = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_default_t.mdl");
	static int default_ct = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_default_ct.mdl");
	static int bayonet = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_bayonet.mdl");
	static int karambit = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_karam.mdl");
	static int flip = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_flip.mdl");
	static int gut = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_gut.mdl");
	static int m9 = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_m9_bay.mdl");
	static int huntsman = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_tactical.mdl");
	static int butterfly = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_butterfly.mdl");
	static int daggers = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_push.mdl");
	static int falchion = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_falchion_advanced.mdl");
	static int bowie = Interfaces::ModelInfo->GetModelIndex("models/weapons/v_knife_survival_bowie.mdl");
	
	// Get local player (just to stop replacing spectators knifes)
	IClientEntity* pLocal = Interfaces::EntList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
	if (Menu::Window.MiscTab.KnifeEnable.GetState() && pLocal)
	{
		// If we are alive and holding a default knife(if we already have a knife don't worry about changing)
		if (pLocal->IsAlive() && (pData->m_Value.m_Int == default_t || pData->m_Value.m_Int == default_ct))
		{
			// Set whatever knife we want
			switch (Menu::Window.MiscTab.KnifeModel.GetIndex())
			{
			case 0:
				//none
				break;
				//bayonet karambit flip gut m9 hunts butterfly
			case 1:
				pData->m_Value.m_Int = bayonet; //bayonet
				break;
			case 2:
				pData->m_Value.m_Int = karambit; //karambit

				break;
			case 3:
				pData->m_Value.m_Int = flip; //flip
				break;
			case 4:
				pData->m_Value.m_Int = gut; //gut
				break;
			case 5:
				pData->m_Value.m_Int = m9; //m9bayo
				break;
			case 6:
				pData->m_Value.m_Int = huntsman; //hunts
				break;
			case 7:
				pData->m_Value.m_Int = butterfly; //butterfly
				break;
			case 8:
				pData->m_Value.m_Int = daggers;
				break;
			case 9:
				pData->m_Value.m_Int = falchion;
				break;
			case 10:
				pData->m_Value.m_Int = bowie;
				break;
			}
		}
	}

	// Carry on the to original proxy
	oRecvnModelIndex(pData, pStruct, pOut);
}
Code:
#pragma region Knife
	KnifeGroup.SetPosition(408, 48);
	KnifeGroup.SetSize(360, 95);
	KnifeGroup.SetText("Knife Changer");
	RegisterControl(&KnifeGroup);

	KnifeEnable.SetFileId("knife_enable");
	KnifeGroup.PlaceLabledControl("Enable", this, &KnifeEnable);
	//bayonet karambit flip gut m9 hunts butterfly
	KnifeModel.SetFileId("knife_model");
	KnifeModel.AddItem("Off");
	KnifeModel.AddItem("Bayonet");
	KnifeModel.AddItem("Karambit");
	KnifeModel.AddItem("Flip Knife");
	KnifeModel.AddItem("Gut Knife");
	KnifeModel.AddItem("M9 Bayonet");
	KnifeModel.AddItem("Huntsman");
	KnifeModel.AddItem("Butterfly");
	KnifeModel.AddItem("Shadow Daggers");
	KnifeModel.AddItem("Falchion");
	KnifeModel.AddItem("Bowie");
	KnifeGroup.PlaceLabledControl("Knife", this, &KnifeModel);

	KnifeSkin.SetFileId("knife_skin");
	KnifeSkin.AddItem("Doppler Sapphire");
	KnifeSkin.AddItem("Doppler Ruby");
	KnifeSkin.AddItem("Tiger");
	KnifeSkin.AddItem("Plain");
	KnifeGroup.PlaceLabledControl("Skin", this, &KnifeSkin);

	KnifeApply.SetText("Apply Knife");
	KnifeApply.SetCallback(KnifeApplyCallbk);
	KnifeGroup.PlaceLabledControl("", this, &KnifeApply);

#pragma endregion
Code:
void  __stdcall Hooked_FrameStageNotify(ClientFrameStage_t curStage)
{


	if (curStage == FRAME_NET_UPDATE_POSTDATAUPDATE_START)
	{
		IClientEntity *pLocal = Interfaces::EntList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
		if (Menu::Window.MiscTab.KnifeEnable.GetState() && pLocal)
		{
			IClientEntity* WeaponEnt = Interfaces::EntList->GetClientEntityFromHandle(pLocal->GetActiveWeaponHandle());
			CBaseCombatWeapon* Weapon = (CBaseCombatWeapon*)WeaponEnt;
			if (Weapon)
			{
				static bool LastItemWasKnife = false;
				if (WeaponEnt->GetClientClass()->m_ClassID == (int)CSGOClassID::CKnife)
				{
					*Weapon->FallbackStatTrak() = 1337;
					int Skin = Menu::Window.MiscTab.KnifeSkin.GetIndex();
					if (Skin == 0) *Weapon->FallbackPaintKit() = 416;
					if (Skin == 1) *Weapon->FallbackPaintKit() = 415;
					if (Skin == 3) *Weapon->FallbackPaintKit() = 409;
					if (Skin == 4) *Weapon->FallbackPaintKit() = 0;
					*Weapon->FallbackWear() = 0.0001;

					//*Weapon->m_AttributeManager()->m_Item()->ItemIDHigh() = 0xFFFFF;
					//*Weapon->m_AttributeManager()->m_Item()->ItemIDLow() = 0xFFFFF;

					if (LastItemWasKnife == false)
					{

						//Meme->nFlags &= ~FCVAR_CHEAT;
						//Interfaces::Engine->ClientCmd_Unrestricted("cl_fullupdate");

						//Meme->nFlags |= FCVAR_CHEAT;

						LastItemWasKnife = true;
					}

					*Weapon->m_AttributeManager()->m_Item()->ItemIDLow() = 7;
					int Model = Menu::Window.MiscTab.KnifeModel.GetIndex();
					*Weapon->m_AttributeManager()->m_Item()->ItemIDHigh() = (Model == 0) ? 507 : 500;
					*Weapon->m_AttributeManager()->m_Item()->ItemDefinitionIndex() = (Model == 0) ? 507 : 500;

					if (GUI.GetKeyState(VK_END))
						ForceUpdate();
				}
			}
		}
	}

	oFrameStageNotify(curStage);
}
(Knife changer working fine, only the skinchanger wrong)
#1 · 10y ago
EV
evil_dread
debug it and tell us exactly what line is wrong
#2 · 10y ago
LE
legit_player
Update ClassIDs.
#3 · 10y ago
HU
Hunter
1 week has passed and no further replies have been made by the OP. Assuming solved.

/Closed.
#4 · 10y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • Account restricted, IP changer not working?By BustaRap in Piercing Blow Help
    7Last post 15y ago
  • [HELP]Name changer not working?By terksss in Call of Duty Ghosts Discussions & Help
    1Last post 12y ago
  • _S_W_A_T_'s Gold Skin Installer still working as of 11/20/12 (SHARING NOT LEECHING)By prolikepro2013 in Blackshot Hacks & Cheats
    15Last post 13y ago
  • why warrock not working now??By tolik13 in WarRock - International Hacks
    4Last post 20y ago

Tags for this Thread

None