![]() |
|
[Tutorial] .Gsc Modding for Beginners - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Call of Duty Franchise (https://www.itsmods.com/Forum-Call-of-Duty-Franchise.html) +--- Forum: Call of Duty: Black Ops (https://www.itsmods.com/Forum-Call-of-Duty-Black-Ops.html) +---- Forum: Modding Tutorials (https://www.itsmods.com/Forum-Modding-Tutorials.html) +---- Thread: [Tutorial] .Gsc Modding for Beginners (/Thread-Tutorial-Gsc-Modding-for-Beginners.html) |
.Gsc Modding for Beginners - aosma8 - 12-24-2010 .Gsc modding for beginners Before we start Im also currently a beginner as well so if I make a mistake please correct me, thanks. Firstly, What is a GSC file? Definition: Quote: The difference between PC modding and console (Xbox 360) modding: console mods require you to have a modded "patch_mp.ff". These patches consist out of modded . Gsc files, basically the heart of the game.Gsc modding is quite simple once you get the hang of it this tutorial will go over the basics for black ops gsc modding. When you download a mod have u ever wondered why modders use _rank.gsc file it is because it has the OnPlayerSpawned thread .There are many .gsc files you can use (in the gamescripts see below). Getting Started: Firstly we will need Itsmodsloader to load the mods : http://www.itsmods.com/forum/Thread-ItsModsloader.html Secondly: Gamescripts: http://www.itsmods.com/forum/Thread-Call-of-Duty-Black-Ops-GameSCript-s.html Thirdly: Dvar List: http://www.itsmods.com/forum/Thread-Complete-Dvardump.html Weapons Dvar List: http://www.itsmods.com/forum/Thread-All-Weapons-Perk-Names-DVARS.html Modding: Open Gamescripts/maps/mp/gametypes/_rank.gsc and you will see lots of code take a look and familiarise yourself with some of theses codes as you will need many of them to mod .Then search (Control + F) and enter in: onPlayerSpawned You will now see this: Code: onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
}
}This code is one part of what makes the gsc file run. onPlayerSpawned() = Thread name ; = The semi colon ends a command. As you can see there are many brackets in the one paragraph of code. The { bracket in gsc coding means opening line of code and this bracket } ends the line(Think of it like a sentence) . These brackets are a vital component of gsc modding and must be included or else you will get many errors. Commands: Now we know some basics of gsc modding we will want to add some commands so that we can do HEAPS of awesome things ingame. So I want my favourite gun the Famas with Dual clips and silencer + Reflex sight when I spawn: Famas command: Self giveWeapon ( " famas_reflex_dualclip_silencer_mp " ); The code above^^ is the code used to get your gun and its attachments and camouflage. For any other gun: giveWeapon(weaponname, 0, calcWeaponOptions ( <camo>, <lens>, <reticle>, <tag>, <emblem> )); Tip: When adding any gun make sure to have _mp if its in multiplayer and have the gun name etc between the quotes . So now what??? We add it to the OnPlayerSpawned() Thread: Code: onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self giveWeapon ( "famas_reflex_dualclip_silencer_mp", 0, false );
}
}Command: self setPerk(specialty_name); Ill give myself : Lightweight self setPerk("specialty_Lightweight"); Final Code: Code: onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
giveWeapon ( "famas_reflex_dualclip_silencer_mp", 0, false );
self setPerk("specialty_Lightweight");
}
}Awesome now we have Lightweight AND Famas. Feel free to change the code to suite yourself. Save: Make sure you are on _rank.gsc and then save it ( Control + S ). Now we will want to test this mod. Loading: For those of you who dont know how to load the mod into black ops well your in luck: 1)Place _rank.gsc into itsmodloaders mod folder : Itsmodsloader\mod\maps\mp\gametypes\_rank.gsc 2) Run the exe. 3)Run the game. 4)Play your mods. 5)IMPORTANT : DISABLE VAC WHILE LAYING IN PRIVATE MATCH Settings/VAC/ NO Quote: Extra Info: All Credits go to TMS_Killingdyl (loll) for this useful information about variables: Variables: Quote:Variables in gsc does not have to be defined by type like in more complex scripts neither does it have to be defined before use. HAVE FUN! Well thats pretty much it =] RE: .Gsc Modding for Beginners - surtek - 12-24-2010 Deffinately a chance in our christmas price competition. RE: .Gsc Modding for Beginners - Killingdyl - 12-24-2010 (12-24-2010, 09:25)surtek Wrote: Deffinately a chance in our christmas price competition. you want me to copy paste mine over? RE: .Gsc Modding for Beginners - d0h! - 12-24-2010 depends on if you want to win something or not good work aosma8 RE: .Gsc Modding for Beginners - Killingdyl - 12-24-2010 (12-24-2010, 11:35)d0h! Wrote: depends on if you want to win something or not want can i win? RE: .Gsc Modding for Beginners - TheSaboteur - 12-25-2010 i think to learn gsc copy a gun game and edit it i will start to understandt stuff.. and than boom! RE: .Gsc Modding for Beginners - Eekhoorn - 12-25-2010 nice tuturial. RE: .Gsc Modding for Beginners - aosma8 - 12-25-2010 (12-25-2010, 11:28)TheSaboteur Wrote: i think to learn gsc copy a gun game and edit it i will start to understandt stuff.. and than boom! But people like things to be explained to them right? @Eekhorn: Thanks RE: .Gsc Modding for Beginners - superbomb17 - 01-02-2011 cashed my mod and i cant go back.. now i have to restart RE: .Gsc Modding for Beginners - Xzite - 01-08-2011 I can't open the: Thirdly: Dvar List: http://www.itsmods.com/forum/Thread-Blac...-List.html |