Thanks, guys this is really helping. Komuna, instead of completely making a new addon from scratch, how do I adapt an alreadly existing unit so his skill can be raised higher? Could I use UnPBO to decompress the files and edit them in some way? Are the official units easy to modify?
Yes, yes, it is very simple. All you must do is making a new class under an already existant unit class. Download the
Config1.91 from
Breathe and learn more about the OFP classes configuration.
To make an addon all you must have is the config.cpp (or config.bin if binarized with CCP2BIN from Amalfi) compressed in PBO format, at the addons folder. The configuration should have the following base configuration classes:
CfgPatches {};
CfgWeapons {}; //If you want to add new weapon settings
CfgAmmo {}; //If you want to add new ammo settings
CfgVehicles {}; //If you want to add new vehicle settings
Then, each of these should have a proper configuration - check the configuration of other addons or just download Config1.91 from the above link; as I don't memorise all the required settings...
Exempli Gratia:
class CfgPatches
{
class Captain_Wacky_FirstAddon
{
units[]={"WackySoldier"};
weapons[]={};
};
};
class CfgVehicles
{
class All{}; //This class has been configured at the default OFP config @ BIN folder
class AllVehicles : All {}; //This class picks a few settings from the class "All" and creates new ones
class Man : AllVehicles {}; //The same as above, but base settings are taken from "AllVehicles"
class Soldier : Man {};
class SoldierWB : Soldier {}; //This is the class of a basic west unit, named "Soldier"
class WackySoldier : SoldierWB //Now, this is you class ;)
{
displayName="Captain Wacky";
sensitivity=3; //This is a very high sentitivity!!! Beware of this deadly unit ::)
};
};
With these settings you'll be able to find your unit under "West"\"Men" designated as "Captain Wacky" (notice this is not the character's name yet the unit type). You can also create this unit with "WackySoldier" class name: "WackySoldier" createUnit [groupName,blah,blah]
Notice that there are many other settings that you can define, such as "model", "armor", "formationX" and "formationY", "threat", "camoflage" , etc; and, therefore, I recomend you to download the Config1.91, if you didn't do it already
.
IMPORTANT: before making your addon, be sure you have checked the settings I've proposed. I might have missed some step, misswritten a setting or made other errors - I did it from experience, not from reference.
I hope it helps you
#EditedI've presented just three classes to make an addon : CfgAmmo, CfgVehicles and CfgWeapons. However, there are many other available at the OFP configuration. You can create dialogs, resource text/pictures, unit groups [F2], characters, faces, models, etc, etc. So, mate, enjoy OFP configuration dynamics ;D.