taultunleashed logoScripting tutorial. : FPS / MMORPG / RTS Discussion
newtopic  postreply
 [ 2 posts ] 
blue large dot

Scripting tutorial. : FPS / MMORPG / RTS Discussion

Posted: September 28th, 2008, 8:50 am
 
madjammu

Total Posts: 75
Joined: September 20th, 2008, 6:56 am
madjammu's Reps: 2
User avatar
Active User > 50 Posts
premium
First, go to Start>Run and type C:\Program Files\Steam\steamapps\user_name\counter-strike\cstrike
(This way, you can have easy access going into this folder).
(As Seen in Screen Shot A)

Now, view your folder. You should see one .cfg file that you should be concerned with. It is called, config.cfg. You should not worry about this file though. This file is for settings in game. For example, +mouse1 = fire. This, meaning, one click from the mouse button enables the weapon at hand to fire.
(As Seen in Screen Shot B)

Now, to get things further underway, there are a few other things that you should know about.

1. You do not need to make a file called, valve.rc

and

2. You do not need to save you custom settings and/or configurations in a file called, autoexec.cfg. You could but it really is not necessary.

I have tested this personally so there is no need to do any of the two above.

The reason why these are is this: remember the config.cfg file? Well, at the very bottom of this file is the command, exec userconfig.cfg.
(As Seen in Screen Shot C)

That command tells the game to execute the configuration file. Unfortunately, we do not have a file called, userconfig.cfg, but we will - soon enough.

Oh, yeah. All of this scripting stuff must be done in notepad.exc, and save this file titled, userconfig.cfg.
(As Seen in Screen Shot D)

//////////////////////////////////////////////////////////////////////////////////////
Binding
//////////////////////////////////////////////////////////////////////////////////////

Now, ask yourself - what is binding?

Binding is how you associate a command to a key (This is laments terms). Everything that happens in the game are associated commands.

For example: pressing w (Default) makes you move forward. Well, this command is +forward.

Now, to bind a key. Well, binding is very simple. This is the structure on how the bind works:

bind "command"

Of course, you can bind a key to several commands instead of one like so:

bind "command; command 2"

Of course, when you do this, make sure you put a space after the semi-colon or else the second command would not read - but the first command will. Also, you must code the command correctly. Please keep these 2 things in mind.

//////////////////////////////////////////////////////////////////////////////////////
Alias
//////////////////////////////////////////////////////////////////////////////////////

An alias associates a bunch of commands, like a bind, but the difference is that you assign a name to it.

The alias structure is not very much different than the binding structure.

For example:

alias xxx "command1; command2"

xxx = AnyName

Then, you must bind this to a key. Be it any key you want to.

Example:

bind f1 "xxx"

xxx= the name that you have assigned to the alias.

//////////////////////////////////////////////////////////////////////////////////////
Saving the script
//////////////////////////////////////////////////////////////////////////////////////
You can save all of this in the file, userconfig.cfg. Go to Start>Run and paste this into your cstrike folder.
(As Seen in Screen Shot E)

//////////////////////////////////////////////////////////////////////////////////////

That's it, pm me if you need help on cs/wow/aoc/rs i'll help you all :p


Reply with quote
Posted: May 9th, 2009, 5:00 am
 
madjammu

Total Posts: 75
Joined: September 20th, 2008, 6:56 am
madjammu's Reps: 2
User avatar
Active User > 50 Posts
premium
Bump...


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 33 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of FPS / MMORPG / RTS Discussion RSS Feed 
Sitemap of FPS / MMORPG / RTS Discussion Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?