Poseidon Posted July 29, 2014 Posted July 29, 2014 First of all make a text file with .cfg extension with any name that you might like, after make this , open the file with a text editor like notepad and follow the tutorial below: This is a script type i had been searching for a long time when i was newbie, it's used alot in configs , so pay attention! So imagine we want to create a cycle that will change our name every time we press "H". We will have to create the bind itsef, then we need to set what the bind will do and then we need to set the vstrs of it, sounds complicated and long, but it is mostly the same. Also notice you can add as many lines as you want. Try to see the pattern. bind H "vstr namecycle" set namecycle "vstr name1" (this line will be changed automaticaly every time you press H) set name1 "name Pig; set namecycle vstr name2" set name2 "name HellBoy; set namecycle vstr name3" set name3 "name thisguyhax; set namecycle vstr name4" set name4 "name Mr.Bean; set namecycle vstr name1" (the last line redirects to the first line to keep the cycle going on into infinity) So i set the button in a bind to execute the cycle. Every time we press the button, the cycle will go 1 step ahead. On the 2nd line we set the vstr we mentioned in the bind on the 1st line. We make this vstr launch the first part of the actual cylce. On the 3rd line we set the 1st part of the cycle, the one we mentioned on line 2.In this current line we add what the part of the cycle should do, so changing our name and then we add a piece to make the bind ready to do the next part of the cycle when it's pressed again. You can keep adding lines, but i recommend using a word with numbers like name1 name2 name3... because you keep structure then. The last line must ALWAYS direct to the first vstr in the cycle, if you named them cleanly it should be the one with number 1 at the end. Some scripts that use vstr cycle: FOV changer script(i've already seen one in the forum but i will show it here): bind P "vstr FovCycle" set FovCycle "vstr fov1" set fov1 "cg_fov 90; set FovCycle vstr fov2" set fov2 "cg_fov 91; set FovCycle vstr fov3" set fov3 "cg_fov 92; set FovCycle vstr fov4" set fov4 "cg_fov 93; set FovCycle vstr fov5" set fov5 "cg_fov 94; set FovCycle vstr fov6" set fov6 "cg_fov 95; set FovCycle vstr fov7" set fov7 "cg_fov 96; set FovCycle vstr fov8" set fov8 "cg_fov 97; set FovCycle vstr fov9" set fov9 "cg_fov 98; set FovCycle vstr fov10" set fov10 "cg_fov 99; set FovCycle vstr fov11" set fov11 "cg_fov 100; set FovCycle vstr fov12" set fov12 "cg_fov 101; set FovCycle vstr fov13" set fov13 "cg_fov 102; set FovCycle vstr fov14" set fov14 "cg_fov 103; set FovCycle vstr fov15" set fov15 "cg_fov 104; set FovCycle vstr fov16" set fov16 "cg_fov 105; set FovCycle vstr fov17" set fov17 "cg_fov 106; set FovCycle vstr fov18" set fov18 "cg_fov 107; set FovCycle vstr fov19" set fov19 "cg_fov 108; set FovCycle vstr fov20" set fov20 "cg_fov 109; set FovCycle vstr fov21" set fov21 "cg_fov 110; set FovCycle vstr fov22" set fov22 "cg_fov 111; set FovCycle vstr fov23" set fov23 "cg_fov 112; set FovCycle vstr fov24" set fov24 "cg_fov 113; set FovCycle vstr fov25" set fov25 "cg_fov 114; set FovCycle vstr fov26" set fov26 "cg_fov 115; set FovCycle vstr fov27" set fov27 "cg_fov 116; set FovCycle vstr fov28" set fov28 "cg_fov 117; set FovCycle vstr fov29" set fov29 "cg_fov 118; set FovCycle vstr fov30" set fov30 "cg_fov 119; set FovCycle vstr fov31" set fov31 "cg_fov 120; set FovCycle vstr fov1" Class changer script(made by me ): bind m "vstr ClassCycle" set ClassCycle "vstr class1" set class1 "class s 1; echo Soldier With Stg44; play sound/chat/allies/61b; vstr class2" set class2 "class s 2; echo Soldier With MachineGun; play sound/chat/allies/61a; vstr class3" set class3 "class s 3; echo Soldier With Flamethrower; play sound/chat/allies/61b; vstr class4" set class4 "class s 4; echo Soldier With RocketLauncher; play sound/chat/allies/61a; vstr class5" set class5 "class m; echo Medic; play sound/chat/allies/62b; vstr class6" set class6 "class e 1; echo Engineer with mp40/thompson; play sound/chat/allies/63b; vstr class7" set class7 "class e 2; echo Engineer with M1/K43; play sound/chat/allies/63b; vstr class 8" set class8 "class f; echo Field Ops; play sound/chat/allies/64a; vstr class 9" set class9 "class c 1; echo Covert Ops with sten/mp34; play sound/chat/allies/65a; vstr class10" set class10 "class c 2; echo Covert Ops with BAR/Fg42; play sound/chat/allies/65a; vstr class11" set class11 "class c 3; echo Covert Ops with Sniper; play sound/chat/allies/65a; vstr class1" Sound mute script: bind n "vstr SoundCycle" set SoundCycle "vstr sound1" set sound1 "s_mute 1; echo ^1Game muted.; vstr sound2" set sound2 "s_mute 2; echo ^4Game unmuted; vstr sound1" Draw gun script: bind o "vstr GunCycle" set GunCycle "vstr gun1" set gun1 "cg_drawgun 0; echo ^1Your gun is invisible; vstr gun2" set gun2 "cg_drawgun 1; echo ^4Your gun is visible; vstr gun1" Draw Hud script: bind L "vstr HudCycle" set HudCycle "vstr Hud1" set Hud1 "cg_draw2d 0; vstr Hud2" set Hud2 "cg_draw2d 1; vstr Hud1" Minimap script: bind F4 "vstr MapCycle" set MapCycle "vstr map1" set map1 "cg_drawCompass 0; vstr map2" set map2 "cg_drawCompass 1; vstr map1" I hope you enjoy these scripts WARNING:This topic was made only for educational purposes , don't hate it. by:Pose!don 1 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.