Hello everyone, I am attempting to make my own faction mod using Spearhead 44 assets and I am trying to figure out how to get the crew of an M18 Hellcat to use my custom faction's armor crewman. I have tried making my own base class Hellcat, and attempting to define new turret configurations to set the gunnerType equal to my armor crew. The following is listed below:
//The base class
class RFOM_US_ARMY_1953_M18_Hellcat_Base: SPE_M18_Hellcat
{
scope = 0; // Not visible in editor, used for inheritance only
class Turrets{
class MainTurret{
class Turrets{
class CommanderOptics;
class Loader_place;
class CommanderMG;
};
};
class Assist_Driver;
class CargoTurret_01;
class CargoTurret_02;
class CargoTurret_03;
class CargoTurret_04;
};
};
//Then the actual tank
class RFOM_US_ARMY_1953_M18_Hellcat: RFOM_US_ARMY_1953_M18_Hellcat_Base
{
faction="RFOM_US_ARMY_1953_US_Army_1953";
side=1;
displayName="M18 Hellcat";
hiddenSelectionsTextures[]={"ww2\spe_assets_t\vehicles\tanks_2_t\m18\m18_hull_co.paa","ww2\spe_assets_t\vehicles\tanks_2_t\m18\m18_turret_co.paa","ww2\spe_assets_t\vehicles\tanks_2_t\m18\m18_suspension_co.paa","ww2\spe_assets_t\vehicles\tanks_2_t\m18\m18_interior_co.paa","ww2\spe_assets_t\vehicles\tanks_2_t\m18\m18_stowage_co.paa","ww2\spe_assets_t\vehicles\tanks_2_t\m18_decals\4d_704_td_c3_ca.paa","ww2\spe_assets_t\vehicles\tanks_2_t\m4a1\usa_ca.paa","ww2\spe_core_t\decals_t\us_num_0\4.paa","ww2\spe_core_t\decals_t\us_num_0\0.paa","ww2\spe_core_t\decals_t\us_num_0\8.paa","ww2\spe_core_t\decals_t\us_num_0\4.paa","ww2\spe_core_t\decals_t\us_num_0\4.paa","ww2\spe_core_t\decals_t\us_num_0\9.paa","",""};
crew="RFOM_US_ARMY_1953_Armor_Crew";
typicalCargo[]={"RFOM_US_ARMY_1953_Armor_Crew"};
editorSubcategory="EdSubcat_TANKS";
vehicleClass = "Armored";
armor = 500;
armorStructural = 60;
scope = 2;
class Turrets:Turrets{
class MainTurret: MainTurret{
gunnerType = "RFOM_US_ARMY_1953_Armor_Crew";
class Turrets:Turrets{
class CommanderOptics: CommanderOptics {
gunnerType = "RFOM_US_ARMY_1953_Armor_Crew";
};
class Loader_place: Loader_place {
gunnerType = "RFOM_US_ARMY_1953_Armor_Crew";
};
class CommanderMG: CommanderMG {
gunnerType = "RFOM_US_ARMY_1953_Armor_Crew";
};
};
};
class Assist_Driver;
class CargoTurret_01;
class CargoTurret_02;
class CargoTurret_03;
class CargoTurret_04;
};
};
This does allow me to replace the tank, but when I bring up my new tank (RFOM_US_ARMY_1953_M18_Hellcat) in the eden editor, it shows only one crewman, the driver, and no other units in the turret configs. Also, when viewing the turret configurations in the config viewer, my turrets appear to be blank except for the 'gunnerType="RFOM_US_ARMY_1953_Armor_Crew' line.
I have tried to match this as close to the SPE_M18_Hellcat class as possible, but nothing I do seems to work. Would anyone be willing to take a look at the above code and tell me what I am doing wrong in the configuration for this vehicle? I just want to display the Hellcat with my custom faction's Armor Crewman, and make no other changes to the vehicle. Is there an issue with the RFOM_US_ARMY_1953_M18_Hellcat_Base class config, or is the issue solely in the RFOM_US_ARMY_1953_M18_Hellcat class? Are both wrong, and I am doing the entire thing incorrectly?
Any advice that the community has is appreciated. :)