Search
Latest topics
Script & Binds Tutorial
+4
Sonic<3
Suroks
Dem Chax <3
Amitoz
8 posters
Sync' - Synced :: Mapping :: Scripting
Page 1 of 1
Script & Binds Tutorial
If you have any question, leave a comment below
What's Included
All about the Console
Binding Basics
Names
Making a .CFG
Scripting Basics
Name Scripts
VSTR's (Mini Scripts)
All about Colors
Colors are something that are very important to CoD. You can use them in binds, your name, text and just about anything. How you add colors is using ^followed ( ^ = Shift+6) by a number. For example ^4 would be blue. Here is a complete list of all the colors.
^1 = Red
^2 = Green
^3 = Yellow
^4 = Blue
^5 = Turquoise
^6 = Pink
^7 = White
^8 = Color of the current Allie Team (Green for American, Azure Blue for British, Burgundy for Russian)
^9 = Grey
^0 = Black (For using in a name, you must have it ^^0 or permanent ^^00)
All about the Console
The console is where you enter all your commands. You open it by pressing the ~ key. (It's located above Tab) You must enter a / in front of your commands. Some examples of commands would be:
/say
/quit
/reconnect
/disconnect
/name "Amitoz"
Technically, what scripts are, is a bunch of commands placed into one file.
Binding Basics
In game: How you make a bind in game is rather simple! Just follow these instructions.
Open up the Console (~)
Type /bind
Now press space, and then type which button you would like to use ( J, H, F5, =, etc)
Now add what command you wish to have� We will have the bind say something. What it will say is "CoD Files FTW" In green & white. It now looks like /bind YOUR-KEY-HERE say ^2CoD ^7Files ^2FTW
Press enter and now when you press the binded key, it will say CoD Files FTW, or do whatever you want it to. I.E. /bind F5 say ^2Amitoz ^2FTW
Out of Game: (Good for complex binds, or ones you can easily mess up on)
Go to "Cstick out tonguerogram FilesCall of DutyMain" and look for your config_mp.cfg file, and open it.
Go to the bottom of the pages, and make a new line by pressing enter.
Now do the exact same thing as above, just don't include the / at the start.
After the command, add " before and after the value, text etc.
Save the file and it will be on CoD as long as you did it correctly!
Names
Setting your name is simple! Open up console and type /name "Your Name Here" Your Name Here will be replaced with your name. So you could do /name "^1Amitoz^7!" or anything at all. Make sure to use colors to make it look better!
Making a CFG
Here's how to make a .CFG (A script file)
Open notepad
Type all your stuff in it.
File>Save As
Select all files (*.*)
For the name, type in a name and make sure to have .cfg at the end. (I.E. name.cfg crouch.cfg etc)
Scripting Basics
First off, what you must know are these things!
Scripts are replicating commands in CoD. They contain CoD commands, or binds, like the commands you use to move (You could make a script that makes you move in a circle).
All scripts must be saved to your Call of Duty/Main folder (Mine is Cstick out tonguerogram FilesCall of Duty Game of the Year EditionMain)
Very often, you must use the "wait" command. What this does is make the script wait, a certain amount of milliseconds. I want to shoot one bullet. I did /bindlist to find out what the command to shoot is and I found it is +attack. Now everything that has a + must have a - somewhere afterward. That's where I got the -attack.
Adding // Infront of text ( // SPACE) or anything, makes it not activate in the script, and is good for adding little notes for next time you open the file!
+attack
wait 5
-attack
Almost anything you can do in CoD, can be replicated (To a certain extent) in a script!
Name Scripts
Have you ever seen someone change their name extremely fast and wondered how it's done? Well what you do is make a script!
Make a new .cfg file, named name.cfg and open it.
Now look at this example.
name "^1Mr_Nickle"
wait 10
name "^7Amitoz"
wait 10
name "^1Amitoz"
wait 10
name "^7Amitoz"
wait 10
name "^1Amitoz"
wait 10
name "^7Amitoz"
wait 10
name "^1Amitoz"
wait 10
name "^7Amitoz"
Make something similar to this, in your file. (The best wait time is between 5-20, The best wait time for names that say something like "Nevander is the best" 200-350 is good)
Make sure you always have name before your name.
Save the file.
Launch CoD, enter a server and do /bind KEY exec name KEY is replaced with the button you want to bind it to.
Press and hold TAB then press your bind!
VSTR's (Mini Scripts)
What a VSTR is, technically is a What a VSTR is, technically is a exec'ing a command, in a script. They are very useful if you understand them. Here are some examples.
Lets say I do set JH1 "exec name; +attack; wait 5; -attack; say Woot Woot"
So, JH1, will exec name, shoot, and say woot woot and I place this into a script, with JH2 and JH3. But how do I make it do that?
Well, I do /bind KEY VSTR JH1 and whenever I press that key, it will do all of that. You can place numurous of these into one script, which is useful if you often switch binds, or know how to do other things. Here are some examples!
#1
set cod1 "say hello"
set cod2 "say cya later!"
set cod3 "say Amitoz is bae"
bind 1 VSTR cod1
bind 2 VSTR cod2
bind 3 VSTR cod3
#2
(A much more complicated VSTR)
set secJ "vstr secJ01"
bind 6 "vstr secJ"
set secJ01 "say I killed someone!; set secJ vstr secJ02"
set secJ02 "say I got SHOT; set secJ vstr secJ01"
What this does, is the first time I press 6, it says I killed someone, and the second time, it says I got shot.
Thanks for reading!
Amitoz- Posts : 178
Reputation : 4
Registration date : 2013-06-30
Re: Script & Binds Tutorial
Keep up the work!
Suroks- Posts : 476
Reputation : 23
Registration date : 2014-06-04
Living place : Holland!
Re: Script & Binds Tutorial
GG. Mate.
Sonic<3- Posts : 996
Reputation : 40
Registration date : 2014-04-26
Living place : 'Murica Fuck Yeah!!!
Re: Script & Binds Tutorial
Why can i make a bind with say !wtf then?Dunciboy wrote:/say command doesn't work on our server (thank god)
disrespected- Posts : 144
Reputation : 4
Registration date : 2014-11-27
Living place : Germany
Re: Script & Binds Tutorial
disrespected wrote:Why can i make a bind with say !wtf then?Dunciboy wrote:/say command doesn't work on our server (thank god)
Commands do work, but not the regular say binds which people use to spam.
G0DZ|LLA- Posts : 811
Reputation : 42
Registration date : 2013-09-30
Living place : COUNTRY OP
Re: Script & Binds Tutorial
Ahh ok thx
disrespected- Posts : 144
Reputation : 4
Registration date : 2014-11-27
Living place : Germany
Re: Script & Binds Tutorial
GG m8, this will be usefull
Basia Kot- Posts : 124
Reputation : 2
Registration date : 2014-08-21
Sync' - Synced :: Mapping :: Scripting
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Wed Mar 16, 2016 12:51 am by Dunciboy
» Got my driver license!
Sun Mar 06, 2016 6:47 pm by Heist
» When do I get my VIP?
Mon Jan 11, 2016 4:36 pm by Suroks
» Happy new year
Wed Jan 06, 2016 11:31 pm by Hade$ :3
» Admin clean up
Sun Dec 27, 2015 4:02 pm by Dunciboy
» Zombie server updated
Sun Dec 27, 2015 4:00 pm by Dunciboy
» Deathrun Map:mp_Deathrun_water
Sat Dec 26, 2015 9:12 pm by Ali Sajjad
» Searching active admins for zombie server
Sat Dec 19, 2015 11:13 pm by Suroks
» CS:GO Zombie Escape server ready for public
Fri Dec 18, 2015 11:28 pm by Dunciboy