06-18-2011, 04:56 PM
Call of Duty: World at War: [Mini Coding Tut]Title
Game: Call of Duty: World at War
Description
Ok well im not going to go very far in depth for this but i will give you a few basic tips on coding and editing a menu.
Ok so first thing i want to talk about it threading.There are several new coders out there and i was once one of you im an ok coder so a thread id what you know the code by as i say it.
EXAMPLE...
Code: list[1] = "Clone Your Self"; Ok so this is the part you would put into the menu base func[color="#FF0000"][1][/color] = ::[color="#000000"]doCloneModel[/color]; OK and then this is the part of the code that you would actually thread so here is what you would do
Code: [color="#000000"]doCloneModel[/color]() { model = spawn( "script_model", self.origin ); model setmodel( self.model ); self iPrintlnBold( "^2Clone Created" ); wait 5; } You would put the thread AND THE PART YOU THREAD IS IN BLACK
You put the thread in the menu as a function or you can put func after you would put that you put in the option in the menu it is IT IS IN RED
After you have that And you put in the thrad in the correct gsc you will put it between the {} marks as shown above and in between those marks you will put the code again as you can see above.
Ok here is a tool for when you make a base or fort or any of that fun stuff if you have just a base then you will not need any of this
Ok so what you would do if you had a fort with a gun or perks you would use this
Ok so say this is the forts code
Code: doCompleteFort() { self thread Fort(); self thread doRayGun(); self thread doAllPerks(); } This code is so that you do not have so spawn them one at a time you can do them at the same time
Ok well thats the end of this little tut on how to code more to come for you all
Game: Call of Duty: World at War
Description
Ok well im not going to go very far in depth for this but i will give you a few basic tips on coding and editing a menu.
Ok so first thing i want to talk about it threading.There are several new coders out there and i was once one of you im an ok coder so a thread id what you know the code by as i say it.
EXAMPLE...
Code: list[1] = "Clone Your Self"; Ok so this is the part you would put into the menu base func[color="#FF0000"][1][/color] = ::[color="#000000"]doCloneModel[/color]; OK and then this is the part of the code that you would actually thread so here is what you would do
Code: [color="#000000"]doCloneModel[/color]() { model = spawn( "script_model", self.origin ); model setmodel( self.model ); self iPrintlnBold( "^2Clone Created" ); wait 5; } You would put the thread AND THE PART YOU THREAD IS IN BLACK
You put the thread in the menu as a function or you can put func after you would put that you put in the option in the menu it is IT IS IN RED
After you have that And you put in the thrad in the correct gsc you will put it between the {} marks as shown above and in between those marks you will put the code again as you can see above.
Ok here is a tool for when you make a base or fort or any of that fun stuff if you have just a base then you will not need any of this
Ok so what you would do if you had a fort with a gun or perks you would use this
Ok so say this is the forts code
Code: doCompleteFort() { self thread Fort(); self thread doRayGun(); self thread doAllPerks(); } This code is so that you do not have so spawn them one at a time you can do them at the same time
Ok well thats the end of this little tut on how to code more to come for you all

