UpdatedModder
Member
- Messages
- 17
- Reaction score
- 6
- Points
- 8
Does Anyone Know Anywhere I Can Like Go To Learn More About Gsc Like How To Make A Function, loop, viarables ect...
(Sorry Im Still Kinda New)
(Sorry Im Still Kinda New)
There are a lot of tutorial in this section and in NGU take a lookDoes Anyone Know Anywhere I Can Like Go To Learn More About Gsc Like How To Make A Function, loop, viarables ect...
(Sorry Im Still Kinda New)
Yeah Had A Look At All Them Im Looking For Somthing That Teaches You To Put A Function TogetherThere are a lot of tutorial in this section and in NGU take a look
So I Should Look At C++?Essentially gsc is just a broken down form of c++
Well CabCon has released some tutorials i think you should have a look at themSo I Should Look At C++?
Try too look at some released source and try to understand how it worksSo I Should Look At C++?
Yes u should learn c++, but not 100% nessary for getting into gsc, i will link u raw format uncrypted bo2 when i get home, has all gscs from bo2 game u can look through it and grab amd tinker with ****, basically mod tools gsc released source but without the mod toolsYeah Had A Look At All Them Im Looking For Somthing That Teaches You To Put A Function Together
That would also help him out alot good job man, I'm sure this ll help himMaybe this helps
Tutorial Section | CabConModding
ThxThat would also help him out alot good job man, I'm sure this ll help him
I see bo3 gsc being more c# with a twist of c++ bo2 i see as being basic math and english honestly, i do belive hands on learning is the best thoeThx
I think for gsc you just need:
Basic syntax knownledge for c/c++ or c#.....
Motivation and being interrested into the gsc scripting language annndddd learning by doing is the best thing i think
Honestly just read the docs from mod tools from waw, bo1 and bo3 theres plenty of information in them to get you started, also hands on and messing around is probably the best way to learn and look through the raw files and look at how stuff is done and familiarise yourself with their built in functions/methods etc. Also don't be afraid to ask questions If you're stuck or needing help remember people are always willing to lend a helping hand as long as you're willing to learn and not just expect to be spoon fed.
Good sites for learning about cod scripting:
But it still needs a basic syntax understanding otherwise you will just look for strings and edit them = leeching
Yeah trueSuppose, but if you already know the basics of programming/scripting looking through the raw files and stuff will give you some basic understanding of the syntax and it also explains it in the doc files which I've suggest he use as well.
Yeah true
But if you never learned anything about programming/scripting before it will look like a language from a other planet
So basic programming syntax stuff is very helpfull
My first gsc stuff was ultimate leech xDOh defiantly I remember the I first started out haha was a nightmare but easily picked up if you're dedicated.
Curly Brackets: { }
Example
funcName()
{ //Starting My Function
} //Ending It
Semi-Colon: ;
Example
funcName(); //By Putting The Semi-Colon I Am Ending My Line/Statement So My Code Knows To Go To The Next Line
Example 2
for (i = 0; i < 10; i++)//In This Example You Can See Im Using The Semi-Colon To Seperate The Variables
{ }
Brackets: ( )
Example
number = 1;
funcName(number)//Initialising A Function With The Argument being number
//An argument is only to be included if the function supports them if not I would just put brackets with nothing inside
funcName();
Square Brackets: [ ]
Example
studentAge["Justin"] = 15;
studentAge["Brandon"] = 16;
number = studentAge["Justin"] //Number would know be equal to 15
Quotation Marks: " "
Example
myName = "Justin"//myName is now equal to Justin
String
Boolean
Float
Integer
self.stringVariable = "MyString";
self.integerVariable = 1;
self.floatVariable = 1;
self.booleanVariable = true;
#include maps/mp/gametypes/_file
self maps\mp\_gscfile::funcName()
self freezeControls(true);
freezePlayer(player)
{
player freezeControls(true);
}
freezePlayer(level.players[0]); //Freeze Client 0
freezePlayer(self); //Freeze Player Running The Code
myLoop()//Defining The Function With The Loop
{
self endon("disconnect");//Ends the thread if player disconnects or dies.
self endon("death");
self.number = 1;
for (;;)
{
self.number++; //Increase the number by 1 constantly
wait 0.05; //stop it from lagging and freezing.
}
}
//Calling It On A New Thread
self thread myLoop(); //This will make a new thread and run myLoop
//<Optional Arg>
waittill(event, <return>) //Waits Until An Event Happens Before Executing The Code Below It
endon(event) //Ends a thread/function when an event happens
iPrintln(text) //Prints text to killfeed
iPrintlnBold(text) //Prints text to center of screen
crateGun()
{
self endon("disconnect")
self endon("death")
self iPrintln("press shoot button to shoot care packages");
for(;;)
{
self waittill ("weapon_fired");
self thread maps\mp\killstreaks\_supplydrop::dropcrate(self traceBullet(), self traceBullet()[2], "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined);
wait 1;
}
}
crateGun()
{
self endon("disconnect")
self endon("death")
self iPrintln("Care Package Gun!, Shoot To Spawn Care Packages");
for(;;)
{
self waittill ("weapon_fired");
self thread maps\mp\killstreaks\_supplydrop::dropcrate(self traceBullet(), self traceBullet()[2], "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined);
wait 1;
}
}
//Lets Compare
self.swagjumpmodeon = true;
//To
self.superJump = true;
//Which one do you understand more? The Bottom One? yea though so...
//Same goes with function names and anything else that requires naming
My first gsc stuff was ultimate leech xD