Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //KNIFE MODEL CHANGER VScript by crashz
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //COPY THIS ENTIRE SCRIPT INTO A " WHATEVERNAMEUWANT.nut "
- ///&
- //COPY THIS FILE INTO:
- ///
- // "C:\Program Files (x86)\Steam\SteamApps\common\Counter-Strike Global Offensive\csgo\scripts\vscripts"
- ///
- //Execute the script by typing: script_execute WHATEVERNAMEUWANT into your console.
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //Downoload-link of this vscript: www.bit.ly/knifescript
- /// Execute by typing: script_execute knifes
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //THIS WILL NOT WORK ONLINE!, USE IT OFFLINE AND MAKE SURE TO SET sv_cheats 1
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////
- ///////////////////////
- //Start
- SendToConsole("play ui/item_scroll_sticker_01.wav");
- ScriptPrintMessageChatAll(".");
- ScriptPrintMessageChatAll("| \x0E|•|•|•|> \x03Knife Model Change script by \x06 crashz \x0E<|•|•|•| ");
- ScriptPrintMessageChatAll("| \x0ATo change the knife-model:");
- ScriptPrintMessageChatAll("| \x0AType \x01knife \x0Ainto your console or");
- ScriptPrintMessageChatAll("| \x0APress the\x01 BACKSPACE [ <- ] \x0Akey .");
- ScriptPrintMessageChatAll("| ");
- ScriptPrintMessageChatAll("| \x0FKNIFEMODELS:");
- ScriptPrintMessageChatAll("|");
- ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
- ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
- //ALIASES:
- ////////////
- SendToConsole("bind BACKSPACE knife");
- SendToConsole("alias knife k1");
- SendToConsole("alias k1 script karambit()");
- SendToConsole("alias k2 script m9()");
- SendToConsole("alias k3 script huntsman()");
- SendToConsole("alias k4 script butterfly()");
- SendToConsole("alias k5 script gut()");
- SendToConsole("alias k6 script bayonet()")
- SendToConsole("alias k7 script flip()");
- SendToConsole("alias k8 script falchion()");
- //FUNCTIONS:
- ////////////
- function msg1(){
- ScriptPrintMessageChatAll("| \x0E __________________________________________________");
- ScriptPrintMessageChatAll("| \x0E __________________________________________________");
- ScriptPrintMessageChatAll("| \x0E __________________________________________________");
- ScriptPrintMessageChatAll("| \x0E|•|•|•|> \x03Knife Model Change script by \x06 crashz \x0E<|•|•|•| ");
- ScriptPrintMessageChatAll("| \x0ATo change the knife-model:");
- ScriptPrintMessageChatAll("| \x0AType \x01knife \x0Ainto your console or");
- ScriptPrintMessageChatAll("| \x0APress the\x01 BACKSPACE [ <- ] \x0Akey .");
- ScriptPrintMessageChatAll("| ");
- ScriptPrintMessageChatAll("| \x0FKNIFEMODELS:");
- ScriptPrintMessageChatAll("|");
- }
- function karambit()
- {
- local vm = null;
- while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
- {
- ScriptPrintMessageCenterAll ("Karambit (Next:M9)");
- msg1();
- ScriptPrintMessageChatAll("| \x04[Karambit] \x08[M9] [Huntsman] [Butterfly]");
- ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
- vm.SetModel("models/weapons/v_knife_karam.mdl");
- SendToConsole("alias knife k2");
- }
- }
- function m9()
- {
- local vm = null;
- while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
- {
- ScriptPrintMessageCenterAll ("M9 Bayonet (Next:Huntsman)")
- msg1();
- ScriptPrintMessageChatAll("| \x08[Karambit] \x04[M9] \x08[Huntsman] [Butterfly]");
- ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
- vm.SetModel("models/weapons/v_knife_m9_bay.mdl");
- SendToConsole("alias k2 script m9(); alias knife k3");
- }
- }
- function huntsman()
- {
- local vm = null;
- while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
- {
- ScriptPrintMessageCenterAll ("Huntsman (Next:Butterfly)")
- msg1();
- ScriptPrintMessageChatAll("| \x08[Karambit] [M9] \x04[Huntsman] \x08[Butterfly]");
- ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
- vm.SetModel("models/weapons/v_knife_tactical.mdl");
- SendToConsole("alias knife k4");
- }
- }
- function butterfly()
- {
- local vm = null;
- while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
- {
- ScriptPrintMessageCenterAll ("Butterfly (Next:Gutknife)")
- msg1();
- ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] \x04[Butterfly]");
- ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] [Falchion]");
- vm.SetModel("models/weapons/v_knife_butterfly.mdl");
- SendToConsole("alias knife k5");
- }
- }
- function gut()
- {
- local vm = null;
- while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
- {
- ScriptPrintMessageCenterAll ("Gutknife (Next:Bayonet)")
- msg1();
- ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
- ScriptPrintMessageChatAll("| \x04[Gutknife] \x08[Bayonet] [Flipknife] [Falchion]");
- vm.SetModel("models/weapons/v_knife_gut.mdl");
- SendToConsole("alias knife k6");
- }
- }
- function bayonet()
- {
- local vm = null;
- while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
- {
- ScriptPrintMessageCenterAll ("Bayonet (Next:Flipknife)")
- msg1();
- ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
- ScriptPrintMessageChatAll("| \x08[Gutknife] \x04[Bayonet] \x08[Flipknife] [Falchion]");
- vm.SetModel("models/weapons/v_knife_bayonet.mdl");
- SendToConsole("alias knife k7");
- }
- }
- function flip()
- {
- local vm = null;
- while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
- {
- ScriptPrintMessageCenterAll ("Flipknife (Next:Falchion)")
- msg1();
- ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
- ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] \x04[Flipknife] \x08[Falchion]");
- vm.SetModel("models/weapons/v_knife_flip.mdl");
- SendToConsole("alias knife k8");
- }
- }
- function falchion()
- {
- local vm = null;
- while(vm = Entities.FindByClassname(vm, "predicted_viewmodel"))
- {
- ScriptPrintMessageCenterAll ("Falchion (Next:Karambit)")
- msg1();
- ScriptPrintMessageChatAll("| \x08[Karambit] [M9] [Huntsman] [Butterfly]");
- ScriptPrintMessageChatAll("| \x08[Gutknife] [Bayonet] [Flipknife] \x04[Falchion]");
- vm.SetModel("models/weapons/v_knife_falchion_advanced.mdl");
- SendToConsole("alias knife k1");
- }
- }
- // made by: crashz
- // http://steamcommunity.com/id/crashz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement