class X2DLCInfo_TCObridgeSMG extends X2DownloadableContentInfo config(TCObridgeSMG); // ***** Damage arrays for attack actions ***** var config WeaponDamageValue SMG_CONVENTIONAL_BASEDAMAGE; var config WeaponDamageValue SMG_MAGNETIC_BASEDAMAGE; var config WeaponDamageValue SMG_BEAM_BASEDAMAGE; // ***** Range Modifier Tables ***** var config array<int> MIDSHORT_CONVENTIONAL_RANGE; var config array<int> MIDSHORT_MAGNETIC_RANGE; var config array<int> MIDSHORT_BEAM_RANGE; static function OnPreCreateTemplates() { local X2Item_SMGWeapon CDO; CDO = X2Item_SMGWeapon(class'XComEngine'.static.GetClassDefaultObject(class'X2Item_SMGWeapon')); if (CDO != none) { CDO.SMG_CONVENTIONAL_BASEDAMAGE = default.SMG_CONVENTIONAL_BASEDAMAGE; CDO.SMG_MAGNETIC_BASEDAMAGE = default.SMG_MAGNETIC_BASEDAMAGE; CDO.SMG_BEAM_BASEDAMAGE = default.SMG_BEAM_BASEDAMAGE; CDO.MIDSHORT_CONVENTIONAL_RANGE = default.MIDSHORT_CONVENTIONAL_RANGE; CDO.MIDSHORT_MAGNETIC_RANGE = default.MIDSHORT_MAGNETIC_RANGE; CDO.MIDSHORT_BEAM_RANGE = default.MIDSHORT_BEAM_RANGE; } else `LOG("ERROR, could not retrieve Class Default Object for the X2Item_SMGWeapon, probably because Long War SMG Pack - WotC (unofficial) mod is missing.",, 'TCObridgeSMG'); }