HelpSomething went wrong there

Posts 1–2 of 2 · Page 1 of 1
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?
I've reasons to believe this has been solved.

/Closed.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?