Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options.hpp linha 953 (http://prntscr.com/ivelqu)
- Codigo:
- enum playermodel {
- No_Model,
- Trump,
- };
- ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
- menu.cpp (ta tab que vc quiser)
- Codigo:
- static char* player_models[] =
- {
- "No Model",
- "Trump",
- };
- ImGui::Text("Player Model");
- ImGui::Combo("##Player Model", &g_Options.player_model, player_models, ARRAYSIZE(player_models));
- ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
- hooks.cpp (onde vc quiser, deve esta no final)
- Codigo:
- MDLHandle_t __stdcall hkFindMDL(char* FilePath)
- {
- auto oFindMdl = mdlcache_hook.get_original<FindMDL>(index::FindMDL);
- switch (g_Options.knife_model) {
- case No_Knife_Model:
- break;
- case Minecraft_Pickaxe:
- if (strstr(FilePath, "v_knife_default_ct.mdl") || strstr(FilePath, "v_knife_default_t.mdl"))
- {
- sprintf(FilePath, "models/weapons/v_minecraft_pickaxe.mdl");
- }
- }
- switch (g_Options.player_model) {
- case No_Model:
- break;
- case Trump:
- if (strstr(FilePath, "tm_") && strstr(FilePath, ".mdl") && !strstr(FilePath, "ctm_"))
- {
- sprintf(FilePath, "models/player/custom_player/kuristaja/trump/trump.mdl");
- }
- if (strstr(FilePath, "ctm_") && strstr(FilePath, ".mdl"))
- {
- sprintf(FilePath, "models/player/custom_player/kuristaja/trump/trump.mdl");
- }
- }
- return oFindMdl(g_MdlCache, FilePath);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement