Creating custom Field of War mod



Here's a quick explanation on how to edit the mod config classes to create your own units.

All units go under certain type class , in this example we define Recon unit type. Each type class can have multiple unit definitions starting from unit0 and so on.

The ai commander will randomly pick one of those unitX when buying groups


class Recon // Type class
{

unit0 = "O_T_reconTeam"; // This string points to group config so the unit is defined by that config

unit1[] = {"O_recon_TL_F","O_recon_M_F","O_recon_medic_F","O_recon_F"}; // Here the unit is defined by list of soldiers

unit2 = "O_MRAP_02_hmg_F"; // This string is not config but vehicle name so the unit will have one vehicle


};




To get started download the template (based on Apex) and put it in your FOW mission folder

Then in top of your description.ext file put these two lines:




#include "\fow\common\defs\defs.h"

#include "customMod.h"




The mod should now be playable as "Custom" mod




To support three sided games the resistance units should be fully defined and this added to the customMod.h:




threeSidesSupportedCustom = true;










No comments:

Post a Comment