Command & Conquer™ Remastered Collection

Command & Conquer™ Remastered Collection

CFE Patch
Mikeagan 21 Jun, 2020 @ 3:05pm
Add NUKE TANK MOD and OPTION to ENABLE it.
I was curious and did some testing with adding the NUKE TANK mod by PETROGLYPH to your mod. This would be a nice option to add for others as well.

I copied all the assets from the NUKE TANK mod and added it to yours.

I made changes to the following files at or around these lines:

DEFINES.H - LINE 38

Uncomment #define PETROGLYPH_EXAMPLE_MOD //Enable mod

CFEUTIL.CPP - LINE 58

GetSetting(ActiveCFEPatchConfig.EnableNukeTank , "FEATURES", "NUKE_TANK");

EXTERNS.H - LINE 91

bool EnableNukeTank = false;

HOUSE.CPP - AFTER LINE 606 [Within "HouseClass::Can_Build" before "if(DebugUnlockBuildables)"] I placed this right after Stealth Tank check

//Enable-Disable Nuke Tank in Game
if (!ActiveCFEPatchConfig.EnableNukeTank &&
type->What_Am_I() == RTTI_UNITTYPE &&
((UnitTypeClass const*)type)->Type == UNIT_NUKE_TANK) {
return(false);
}

DEFAULT.CFEPATCH.INI - LINE 11 (Default Disabled) in [FEATURES]

NUKE_TANK=0