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 › Something went wrong there

Something went wrong there

Posts 1–2 of 2 · Page 1 of 1
FA
fajung
Something went wrong there
Chams applying only on some weapons.


My code:
Code:
			else if (modelName.find("weapon") != std::string::npos)
			{
				if ((modelName.find("_dropped.mdl"))) //(modelName.find("_dropped.mdl"))
				{
					Color render_color_hidden = Color(Vars.Colours.Pick.WeaponR, Vars.Colours.Pick.WeaponG, Vars.Colours.Pick.WeaponB);
					Color render_color_visible = Color(Vars.Colours.Pick.WeaponR, Vars.Colours.Pick.WeaponG, Vars.Colours.Pick.WeaponB);

					if (Vars.Visuals.Chams.XQZ)
					{
						ForceMaterial(Vars.Visuals.Chams.Mode == 0 ? hidden_flat : hidden_tex, render_color_hidden);
						

						if (Vars.Visuals.Chams.Mode == 0)
							hidden_flat->SetMaterialVarFlag(MATERIAL_VAR_IGNOREZ, true);
						else
							hidden_tex->SetMaterialVarFlag(MATERIAL_VAR_IGNOREZ, true);
					}

					if (Vars.Visuals.Chams.Mode == 0)
						visible_flat->SetMaterialVarFlag(MATERIAL_VAR_IGNOREZ, false);
					else
						visible_tex->SetMaterialVarFlag(MATERIAL_VAR_IGNOREZ, false);

					ForceMaterial(Vars.Visuals.Chams.Mode == 0 ? visible_flat : visible_tex, render_color_visible);
				}
			}
Using gamerfood code 2 learn.

What did I messed up?
#1 · edited 10y ago · 10y ago
HU
Hunter
I've reasons to believe this has been solved.

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

Post a Reply

Similar Threads

  • Something Went Wrong, Disconnect And Try Again | How To FixBy SergeantSparklez in DayZ Mod & Standalone Hacks & Cheats
    26Last post 13y ago
  • Something Went wrong when compiling the randomized sourceBy KamQ12 in Counter-Strike 2 Boosting
    1Last post 11y ago
  • How to cause 'Something went wrong' screen?By OJIEHb in DayZ Help & Requests
    2Last post 13y ago
  • I added ninja class but something went wrongBy carepackage in Realm of the Mad God Private Servers Help
    4Last post 13y ago
  • Something went wrong..By Lovroman in General
    6Last post 12y ago

Tags for this Thread

#bug#chams#coding#csgo#help#weapons