[TUT]How To Make A Mod
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
Hello in this thread i'm gonna explain how to do a Mod.
Thread is in continue update.
----------------------------------------------------------------------------
This Guide in other Languages:
German - By CFour :
-----------------------------------------------------------------------------
Before starting,Check you have those Tools:
Notepad++ to edit .GSC files
WinRar to edit .IWD files
Summary
1.Making an IWD and understanding what is it.
2.Making .GSC Scripts
3.proTips
4.Precompiled Scripts for your Mods
5.Usefull tips
1.Making an IWD and understanding what is it
an .IWD file is a .ZIP(not .RAR so) file with only the extension renamed.So let's get started and see how we can create it
1.Create a folder with your Mod name(in my case,CustomWarfare)
2.Create a zip file and rename the extension from .ZIP to .IWD
you should have this now:
after that we have our .IWD file ready to be modded,let's see what we can do with it
Now,i want that in my mod,there will be a Golden FAMAS.First i take the .iwi file of the golden FAMAS and create a folder named "images" (dunno if it's CaSe SeNsItIvE)and put the iwi file in.
Please note that the name of file MUST be the same of the original game,if the original name it's weapon_us_famas.iwi i can't put famas_ru.iwi or it will not work
we can do that too with Sounds files,create a "sounds" folder,and remember that the name rule used previous is needed for sounds too.
3.After that we have created our images folder,now we have to drag and drop to the .IWD file.if you don't know how to do that,open the MyModName.IWD file with Winrar and then drag 'n' drop
this should be the result:
4.Here it is our .IWD file mod ready to be used on 4D1.This was easy but now the hard things comes
ProTip:If we want to test our mod fast,without restarting the game like the Mods menu does,use fs_game mods/FOLDERMODNAME without doing vid_restart
2.Modding GSC
we are going to mod the _rank.gsc and putting some scripts on it,but before continuing.What is a .GSC File?
it's a COD-Scripting file,which contains the script used in game.
1.I Know you don't this file..but don't worry,i'ill give you it to you,first create a folder named maps,then another called mp(put it in the maps folder),then gametypes(put it in mp folder) and then download the _rank.gsc from here(i don't think i need a virus scan for it,it's a .gsc file not.exe) :
2.after we done that,right click on _rank.gsc and do Edit With Notepad++
3.we will see a lot of codes,and THREADS
(What is a Thread?It's written like This:
ThreadName()
{
blablabla
}
and it contains various commands)
4.We are going now to create a NEW thread in the _rank.gsc,You can also mod the game threads,don't copy the // lines,they are comments that the game will NOT read
givemeak() // Thread name { // Thread starting self endon("disconnect") // end the thread when WE disconnect self waittil("Spawned_Player"); // this line will make the game wait for us to spawn,before doing other stuff self giveWeapon("ak47_mp", 0 , 0 ); // this command give us an AK47,normally it should be on the secondary weapon side } // thread endingnow we need to make our thread active,we should see at the top the thread DoDvars() and put
DoDvars()
{
self thread THREADNAME()
}
5.Perfect,now we have created our thread and our scripts,drag 'n' drop the maps folder created previously to our .IWD file to put the scripts in the mod.Then we can test the mod
3. SCRIPTS AND EXAMPLES
All credits to Abstract and CraigChrist8239 for the list
ALL WEAPONS
CAMOS
ATTACHMENTS
PERKS
SOUNDS,List made by D4rryl
Other Scripts:
Make text at bottom left
self iPrintln("Text");same but at the top
self iPrintlnBold("Text");Text with 3 lines,colors and stuff
Give Weapon
self giveWeapon("itemName", 0);Allow/Deny Jump
Allow/Deny Sprint
Allow/Deny AIM
Clear Perks (nice for Promod like mods)
4.Precompiled Codes
like the step 4,but they have a precise function
credits to PP_CrazyApple for the this list
Infinite Ammo
threadname() { self endon ( "disconnect" ); self endon ( "death" ); for(; { currentWeapon = self getCurrentWeapon(); if ( currentWeapon != "none" ) { if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) ) { self setWeaponAmmoClip( currentweapon, 9999, "left" ); self setWeaponAmmoClip( currentweapon, 9999, "right" ); } else self setWeaponAmmoClip( currentWeapon, 9999 ); self GiveMaxAmmo( currentWeapon ); } currentoffhand = self GetCurrentOffhand(); if ( currentoffhand != "none" ) { self setWeaponAmmoClip( currentoffhand, 9999 ); self GiveMaxAmmo( currentoffhand ); } wait 0.01; } }RadarJam(if you want it off,change On to Off)
Clear Perks(Usefull for Promod-like mods)
Invisibility
5.USEFULL TIPS
Fast Mod Test:
i suggest you putting the game in Window mode(r_fullscreen 0) and load the mod by typing fs_game mods/MODNAME
Error Solving:
When you do your first mod,when you do a mod to the .GSC (like addign a new thread)Check Syntax and try one thread for one thread and not everyone at the same time
Also if you press SHIFT+~(console button) you can see what line have errors if any
please understand that the game will not load if the mod is not properly written
also,check if you writed correctly
Where to get more scripts:
You can get more scripts by opening other mods .GSCs,only if developer permit it!
How i can put "Trademark" Logo?:
You can put it with comment lines (//) at the begin of the .GSC like this:
you can also put some text scripts,look at the scripts part
Can't load image_famas.iwi what to do?!?!?!?:
Probably,your .iwi file is damaged,recopy it in the .IWD images folder
this also works for sounds
also make sure everything is writed correctly
Please note this is my first guide,if you find any error PM me please