Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. options.hpp linha 953 (http://prntscr.com/ivelqu)
  2.  
  3. Codigo:
  4.  
  5. enum playermodel {
  6. No_Model,
  7. Trump,
  8. };
  9.  
  10. ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  11.  
  12. menu.cpp (ta tab que vc quiser)
  13.  
  14. Codigo:
  15. static char* player_models[] =
  16. {
  17. "No Model",
  18. "Trump",
  19. };
  20. ImGui::Text("Player Model");
  21. ImGui::Combo("##Player Model", &g_Options.player_model, player_models, ARRAYSIZE(player_models));
  22.  
  23. ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  24.  
  25. hooks.cpp (onde vc quiser, deve esta no final)
  26.  
  27. Codigo:
  28.  
  29. MDLHandle_t __stdcall hkFindMDL(char* FilePath)
  30. {
  31. auto oFindMdl = mdlcache_hook.get_original<FindMDL>(index::FindMDL);
  32.  
  33.  
  34. switch (g_Options.knife_model) {
  35. case No_Knife_Model:
  36. break;
  37. case Minecraft_Pickaxe:
  38. if (strstr(FilePath, "v_knife_default_ct.mdl") || strstr(FilePath, "v_knife_default_t.mdl"))
  39. {
  40. sprintf(FilePath, "models/weapons/v_minecraft_pickaxe.mdl");
  41. }
  42. }
  43.  
  44.  
  45. switch (g_Options.player_model) {
  46. case No_Model:
  47. break;
  48. case Trump:
  49. if (strstr(FilePath, "tm_") && strstr(FilePath, ".mdl") && !strstr(FilePath, "ctm_"))
  50. {
  51. sprintf(FilePath, "models/player/custom_player/kuristaja/trump/trump.mdl");
  52. }
  53. if (strstr(FilePath, "ctm_") && strstr(FilePath, ".mdl"))
  54. {
  55. sprintf(FilePath, "models/player/custom_player/kuristaja/trump/trump.mdl");
  56. }
  57. }
  58. return oFindMdl(g_MdlCache, FilePath);
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement