Advertisement
crashz33

[CS:GO][VScript]Knife Model Changer

Jun 1st, 2015
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 7.08 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. //KNIFE MODEL CHANGER VScript by crashz
  3. ////////////////////////////////////////////////////////////////////////////////////////////////////////////
  4. //COPY THIS ENTIRE SCRIPT INTO A " WHATEVERNAMEUWANT.nut "
  5. ///&
  6. //COPY THIS FILE INTO:
  7. ///
  8. // "C:\Program Files (x86)\Steam\SteamApps\common\Counter-Strike Global Offensive\csgo\scripts\vscripts"
  9. ///
  10. //Execute the script by typing:    script_execute WHATEVERNAMEUWANT     into your console.
  11. ////////////////////////////////////////////////////////////////////////////////////////////////////////////
  12. ////////////////////////////////////////////////////////////////////////////////////////////////////////////
  13. //Downoload-link of this vscript: www.bit.ly/knifescript
  14. /// Execute by typing:    script_execute knifes
  15. ////////////////////////////////////////////////////////////////////////////////////////////////////////////
  16. //THIS WILL NOT WORK ONLINE!, USE IT OFFLINE AND MAKE SURE TO SET sv_cheats 1
  17. ////////////////////////////////////////////////////////////////////////////////////////////////////////////
  18.  
  19. ///////////////////////
  20.  
  21. //Start
  22.  
  23. SendToConsole("play ui/item_scroll_sticker_01.wav");
  24.  
  25. ScriptPrintMessageChatAll(".");
  26.         ScriptPrintMessageChatAll("| \x0E|•|•|•|> \x03Knife Model Change script by \x06 crashz \x0E<|•|•|•| ");
  27.         ScriptPrintMessageChatAll("| \x0ATo change the knife-model:");
  28.         ScriptPrintMessageChatAll("| \x0AType \x01knife \x0Ainto your console or");
  29.         ScriptPrintMessageChatAll("| \x0APress the\x01 BACKSPACE [ <- ] \x0Akey .");
  30.         ScriptPrintMessageChatAll("| ");
  31.         ScriptPrintMessageChatAll("| \x0FKNIFEMODELS:");
  32.         ScriptPrintMessageChatAll("|");
  33.         ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
  34.         ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
  35.  
  36.        
  37. //ALIASES:
  38. ////////////
  39.  
  40. SendToConsole("bind BACKSPACE knife");
  41. SendToConsole("alias knife k1");
  42. SendToConsole("alias k1 script karambit()");
  43. SendToConsole("alias k2 script m9()");
  44. SendToConsole("alias k3 script huntsman()");
  45. SendToConsole("alias k4 script butterfly()");
  46. SendToConsole("alias k5 script gut()");
  47. SendToConsole("alias k6 script bayonet()")
  48. SendToConsole("alias k7 script flip()");
  49. SendToConsole("alias k8 script falchion()");
  50.  
  51. //FUNCTIONS:
  52. ////////////
  53.  
  54. function msg1(){
  55.         ScriptPrintMessageChatAll("| \x0E __________________________________________________");
  56.         ScriptPrintMessageChatAll("| \x0E __________________________________________________");
  57.         ScriptPrintMessageChatAll("| \x0E __________________________________________________");
  58.         ScriptPrintMessageChatAll("| \x0E|•|•|•|> \x03Knife Model Change script by \x06 crashz \x0E<|•|•|•| ");
  59.         ScriptPrintMessageChatAll("| \x0ATo change the knife-model:");
  60.         ScriptPrintMessageChatAll("| \x0AType \x01knife \x0Ainto your console or");
  61.         ScriptPrintMessageChatAll("| \x0APress the\x01 BACKSPACE [ <- ] \x0Akey .");
  62.         ScriptPrintMessageChatAll("| ");
  63.         ScriptPrintMessageChatAll("| \x0FKNIFEMODELS:");
  64.         ScriptPrintMessageChatAll("|");
  65.         }
  66.  
  67. function karambit()
  68. {
  69.  local vm = null;
  70.  while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
  71.         {
  72.         ScriptPrintMessageCenterAll ("Karambit (Next:M9)");
  73.        
  74.         msg1();
  75.         ScriptPrintMessageChatAll("| \x04[Karambit] \x08[M9] [Huntsman] [Butterfly]");
  76.         ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
  77.                 vm.SetModel("models/weapons/v_knife_karam.mdl");
  78.                 SendToConsole("alias knife k2");
  79.         }
  80. }
  81.  
  82. function m9()
  83. {
  84.         local vm = null;
  85.         while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
  86.         {
  87.         ScriptPrintMessageCenterAll ("M9 Bayonet (Next:Huntsman)")
  88.        
  89.         msg1();
  90.         ScriptPrintMessageChatAll("| \x08[Karambit] \x04[M9] \x08[Huntsman] [Butterfly]");
  91.         ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
  92.                 vm.SetModel("models/weapons/v_knife_m9_bay.mdl");
  93.                 SendToConsole("alias k2 script m9(); alias knife k3");
  94.         }
  95. }
  96.  
  97. function huntsman()
  98. {
  99.         local vm = null;
  100.         while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
  101.         {
  102.         ScriptPrintMessageCenterAll ("Huntsman (Next:Butterfly)")
  103.        
  104.         msg1();
  105.         ScriptPrintMessageChatAll("| \x08[Karambit] [M9] \x04[Huntsman] \x08[Butterfly]");
  106.         ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
  107.                 vm.SetModel("models/weapons/v_knife_tactical.mdl");
  108.                 SendToConsole("alias knife k4");
  109.         }
  110. }
  111.  
  112. function butterfly()
  113. {
  114.         local vm = null;
  115.         while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
  116.         {
  117.         ScriptPrintMessageCenterAll ("Butterfly (Next:Gutknife)")
  118.        
  119.         msg1();
  120.         ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] \x04[Butterfly]");
  121.         ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
  122.                 vm.SetModel("models/weapons/v_knife_butterfly.mdl");
  123.                 SendToConsole("alias knife k5");
  124.         }
  125. }
  126.  
  127. function gut()
  128. {
  129.         local vm = null;
  130.         while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
  131.         {
  132.         ScriptPrintMessageCenterAll ("Gutknife (Next:Bayonet)")
  133.        
  134.         msg1();
  135.         ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
  136.         ScriptPrintMessageChatAll("| \x04[Gutknife] \x08[Bayonet] [Flipknife] [Falchion]");
  137.                 vm.SetModel("models/weapons/v_knife_gut.mdl");
  138.                 SendToConsole("alias knife k6");
  139.         }
  140. }
  141.  
  142.  
  143. function bayonet()
  144. {
  145.         local vm = null;
  146.         while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
  147.         {
  148.         ScriptPrintMessageCenterAll ("Bayonet (Next:Flipknife)")
  149.        
  150.         msg1();
  151.         ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
  152.         ScriptPrintMessageChatAll("| \x08[Gutknife] \x04[Bayonet] \x08[Flipknife] [Falchion]");
  153.                 vm.SetModel("models/weapons/v_knife_bayonet.mdl");
  154.                 SendToConsole("alias knife k7");
  155.         }
  156. }
  157.  
  158. function flip()
  159. {
  160.         local vm = null;
  161.         while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
  162.         {
  163.         ScriptPrintMessageCenterAll ("Flipknife (Next:Falchion)")
  164.        
  165.         msg1();
  166.         ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
  167.         ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] \x04[Flipknife] \x08[Falchion]");
  168.                 vm.SetModel("models/weapons/v_knife_flip.mdl");
  169.                 SendToConsole("alias knife k8");
  170.         }
  171. }
  172.  
  173. function falchion()
  174. {
  175.         local vm = null;
  176.         while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
  177.         {
  178.         ScriptPrintMessageCenterAll ("Falchion (Next:Karambit)")
  179.        
  180.         msg1();
  181.         ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
  182.         ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] \x04[Falchion]");
  183.                 vm.SetModel("models/weapons/v_knife_falchion_advanced.mdl");
  184.                 SendToConsole("alias knife k1");
  185.         }
  186. }
  187.  
  188. // made by: crashz
  189. // http://steamcommunity.com/id/crashz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement