DevilHunter Posted January 11, 2013 Posted January 11, 2013 So yea.. Check this out... ]// The Scripts I use. Some I made by my own, others i found on the net // By: =F|A=DevilHunter // Last Edited: January 2, 2013 // Alt Binds --- bind alt "+vstr altbinds unaltbinds" set altbinds "exec altbinds.cfg" set unaltbinds "exec unaltbinds.cfg" // NOTE: The Above Script WILL Spam the Console. I have no clue how to fix this. // If anyone Knows How to fix this, Please.. Let me know. It would be nice if this Didn't spam the Console // Copied from Old Notes (No clue where this came from) // Walk Toggle --- // This Allows you to Toggle the Walk Mode --- // It looks freaking funny heh. --- bind \ "vstr walktoggle" set walkon "set walktoggle vstr walkoff; +speed;echo ^3Walk ^1On" set walkoff "set walktoggle vstr walkon; -speed;echo ^3Walk ^1Off" set walktoggle "vstr walkon" // Made by myself // Cg_Wolfparticles Toggle --- // This Toggles the Smoke and other effects off --- // Can Boost FPS, but You can almost Never tell if there is Arty coming --- bind home "vstr wolfpart" set wolfon "set wolfpart vstr wolfoff; cg_wolfparticles 1;echo ^0--^1> W^0olf^1P^0articles are ^2ON^0!" set wolfoff "set wolfpart vstr wolfon; cg_wolfparticles 0;echo ^0--^1> W^0olf^1P^0articles are ^1OFF^0!" set wolfpart "vstr wolfon" // Part of Yovo's Script - Edited by Me // Shows Scores --- // Scores remain on the screen until pressed again --- set tabs "+scores; set tabsall vstr tabs2" set tabs2 "-scores; set tabsall vstr tabs" set tabt "vstr tabsall" set tabsall "vstr tabs" bind TAB "vstr tabt" // Found on Etconfigs.net - Edited by Me (site down, no clue what happen to it) // Command Map Toggle --- // This is useful for using Mortor bind kp_slash "vstr maptoggle" seta mapout "+mapexpand; set maptoggle vstr mapin; vstr topin; vstr statin" seta mapin "-mapexpand; set maptoggle vstr mapout" set maptoggle "vstr mapout" // Found from a W:ET Scrtpting Site. // Demo recording toggle --- // By pressing this key (F12) you can toggle a demo ON/OFF --- set demoon "autorecord; echo ^7Recording Demo ; set demor vstr demooff" set demooff "stoprecord; echo ^7Stopped Recording ; set demor vstr demoon" set demor "vstr demoon" bind F12 "vstr demor" // Found on other et script sites // Stats Toggle --- // This brings up the Stats Window, and stays there till you hit the G key again --- bind g vstr stattoggle set statout "+stats; set stattoggle vstr statin;" set statin "-stats; set stattoggle vstr statout" set stattoggle "vstr statout" // Found at ET-Configs.net <--(site down, don't know what happen to it) // Name cycle --- // Scirpt by: IT-CHI EvoLuTioN --- set gamename1 "set nameset set name ^0=^1F^0|^1A^0=^1D^0evil^1H^0unter; set nextname vstr gamename2; Echo current name: ^0=^1F^0|^1A^0=^1D^0evil^1H^0unter" set gamename2 "set nameset set name ^0=^1F^0|^1A^0=^6Kev^1H^0unter; set nextname vstr gamename3; Echo current name: ^0=^1F^0|^1A^0=^6Kev^1H^0unter" set gamename3 "set nameset set name ^0=^1F^0|^1A^0=D^0evil-^1AFK!!; set nextname vstr gamename1; Echo current name: ^0=^1F^0|^1A^0=D^0evil-^1AFK!!" set nextname "vstr gamename1" bind semicolon "vstr nextname" bind "'" "vstr nameset" // Semicolon ( cycles through your names --- // Apostrophe (') sets your selected name as your current name --- // You can change the Keys to whatever you Want --- // You can add more lines, just replace the first gamename to the next number, and the second gamename to the first number on the list. --- // E.x.: set gamename4 - set nextname vstr gamename1 --- // Volume Script --- // This is for when I'm Playing music while in-game --- bind "." "vstr volup" bind "," "vstr voldown" set vol00 "set s_volume 0.0;set voldown vstr vol00;set volup vstr vol01;echo Volume ^2O^7==========" set vol01 "set s_volume 0.1;set voldown vstr vol00;set volup vstr vol02;echo Volume =^2O^7=========" set vol02 "set s_volume 0.2;set voldown vstr vol01;set volup vstr vol03;echo Volume ==^2O^7========" set vol03 "set s_volume 0.3;set voldown vstr vol02;set volup vstr vol04;echo Volume ===^2O^7=======" set vol04 "set s_volume 0.4;set voldown vstr vol03;set volup vstr vol05;echo Volume ====^3O^7======" set vol05 "set s_volume 0.5;set voldown vstr vol04;set volup vstr vol06;echo Volume =====^3O^7=====" set vol06 "set s_volume 0.6;set voldown vstr vol05;set volup vstr vol07;echo Volume ======^3O^7====" set vol07 "set s_volume 0.7;set voldown vstr vol06;set volup vstr vol08;echo Volume =======^1O^7===" set vol08 "set s_volume 0.8;set voldown vstr vol07;set volup vstr vol09;echo Volume ========^1O^7==" set vol09 "set s_volume 0.9;set voldown vstr vol08;set volup vstr vol10;echo Volume =========^1O^7=" set vol10 "set s_volume 1.0;set voldown vstr vol09;set volup vstr vol10;echo Volume ==========^1O^7" set volup "vstr vol05" set voldown "vstr vol05" // --- // ========================================================================================== // Gamma Toggle for Minimizer ============================================================== // Made by Myself (for when I minimize to Desktop, so it is not so Bright) // I Don't use this anymore; I might When I start playing the game again, IF things go right // bind ins "vstr gammaset" // set gammahigh "set gammaset vstr gammalow; r_gamma 1.8;echo ^3Normal Gamma" // set gammalow "set gammaset vstr gammahigh; r_gamma 1.0;echo ^3Low Gamma" // set gammaset "vstr gammahigh" // ========================================================================================== // =========================================================================================== // --- // Showgun toggle ================================================================ // Made this script so you can toggle On and Off the Display of the Gun // I don't use this anymore, but is free for anyone else to use // set showgun "cg_drawgun 1; set showguntoggle vstr hidegun;echo ^?ShowGun ^1On" // set hidegun "cg_drawgun 0; set showguntoggle vstr showgun;echo ^?Showgun ^1Off" // set showguntoggle "vstr showgun" // bind F3 "vstr showguntoggle" // ============================================================================== // End Scripts.cfg ----------- All of it works, except that when I startup, or exec the config in-game, this comes up... Unknown Cmd ")" Unknown Cmd "I" It's just annoying to see, and I can't figure out for the life of me, why this comes up.. I changed the binds a bit, and then it happen. Quote
Saizou Posted January 11, 2013 Posted January 11, 2013 At first glance can't tell what is wrong with it, what about posting unaltbinds too, as they get executed too when you exec this .cfg? Quote
DevilHunter Posted January 11, 2013 Author Posted January 11, 2013 Sure, here it is... AltBinds.cfg // Place your altbinds here. -- // These are the Main Binds for AltBinds -- // UnAltBinds is required for this Config -- bind mwheelup weaponbank 5 // Scroll up: Switch to Pistol bind mwheeldown weaponbank 6 // Scroll down: Switch to Grenades bind mouse3 weaponbank 7 // Click mouse wheel: Switch to Main Class Weapon (Mp40, Thompson, Panzerfaust, M1 Garand, ect.) // End AltBinds.cfg ------ UnAltBinds.cfg // Place all your unaltbinds here. --- // In other words, bind the altbound keys back to their original functions. --- // AltBinds.cfg is Required for this to work --- bind mwheelup weaponbank 2 // Alt+Scroll up: Switch to special #1 (revive needle, airstrike canister, smoke grenade, or pliers) bind mwheeldown weaponbank 4 // Alt+Scroll down: Switch to special #2 (health packs, ammo packs, dynamite, or sachel charge) bind mouse3 weaponbank 3 // Alt+Click mouse wheel: Switch to special #3 (adrenaline self or mines) // End UnAltBinds.cfg ---- Quote
Clan Friend SunLight Posted January 11, 2013 Clan Friend Posted January 11, 2013 It took me a couple of minutes to find out, by deleting section by section until I had no error, so I could figure out which line was causing it. The reason is: A semicolon means that a command is over and a new one starts, apparently that works even inside a comment (//), which sounds like a bug actually, but in particular the 2 lines: // I Don't use this anymore; I might When I start playing the game again, IF things go right // Semicolon ( cycles through your names --- have a semicolon inside, so the comment ends after the ; and you have 'I' and ')' which aren't valid commands as regards the altbinds and unaltbinds, you say that it spams the console, why do you have to exec a config for such a limited number of commands, why not something like: bind alt "+vstr altbinds unaltbinds" set altbinds "bind mwheelup weaponbank 5; bind mwheeldown weaponbank 6; bind mouse3 weaponbank 7" set unaltbinds "bind mwheelup weaponbank 2; bind mwheeldown weaponbank 4; bind mouse3 weaponbank 3" 1 Quote
DevilHunter Posted January 13, 2013 Author Posted January 13, 2013 Sorry for the late reply, It works well, thanks a bunch for this. Now I can read the console again heh. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.