Search
Latest topics
Basic GSC Scripting
5 posters
Sync' - Synced :: Mapping :: Scripting
Page 1 of 1
Basic GSC Scripting
Since there's not a post yet in this section, I thought I'd be the first one to post
In the Call of Duty series the scripts are written in GSC files, these are controlling the gameplay. Certainly we are not allowed to modify a part of the game, which is hard-coded in the engine, but you can solve almost everything if you are creative, and you know some tricks. As default, these scripts are in the mapsfolder, but you can work in a different one too. You can open these files with every text editor, but I recommend using Notepad++ With this, source codes are clear, because it supports the colouring of many programming languages, and other comfortable functions. Since GSC is C based, select one of the C languages (C, C#, or C++) from the Language menu.
To make your life easier, you can associate the GSC files with this program, so opening these files will use Notepad++ as default. In addition, you can also define the default coloring, so you won't have to select it always. For this, go to Settings->Style Configurator..., select your C language from the left, and write gsc in the User ext. field. You can define more, separated by whitespace.
To understand my script tutorials, you should have some basic programming knowledge. I'll try to write as many things from the basics as I can, but I won't be able to teach you the logic of programming with just some tutorials.
The most important script behaviors:
- The engine will process every code from the left top, to the right bottom
- Every statement have to be closed with a semicolon
- If a GSC exists in your mod, which is also in the default game, then yours will overwrite the existent one; which is not in your mod, that will be loaded from the default game
Amitoz- Posts : 178
Reputation : 4
Registration date : 2013-06-30
Re: Basic GSC Scripting
Awesome guide, keep up the good work.
G0DZ|LLA- Posts : 811
Reputation : 42
Registration date : 2013-09-30
Living place : COUNTRY OP
Re: Basic GSC Scripting
Now I can make my own aimbot and wallhacks :3 yay
Ocelote- Posts : 154
Reputation : -22
Registration date : 2014-07-26
Re: Basic GSC Scripting
Ocelote wrote:Now I can make my own aimbot and wallhacks :3 yay
l0l, good luck
Amitoz- Posts : 178
Reputation : 4
Registration date : 2013-06-30
Re: Basic GSC Scripting
sv_cheats 1;noclip...Ocelote wrote:Now I can make my own aimbot and wallhacks :3 yay
Re: Basic GSC Scripting
Great guide. Keep up with this!
Suroks- Posts : 476
Reputation : 23
Registration date : 2014-06-04
Living place : Holland!
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