Realistic names for 1.70 pylon magazines (#5165)

This commit is contained in:
PabstMirror 2017-05-15 17:37:36 -05:00 committed by jonpas
parent 305c5a7be7
commit cd0609b28d
2 changed files with 90 additions and 0 deletions

View File

@ -417,4 +417,65 @@ class CfgMagazines {
class SmokeShellYellow: SmokeShell {
displayName = CSTRING(SmokeShellYellow_Name);
};
// 1.70 Pylon Magazines (Should Match Weapon Name)
class 2Rnd_Missile_AA_04_F;
class PylonRack_1Rnd_Missile_AA_04_F: 2Rnd_Missile_AA_04_F {
displayName = "AIM-9 Sidewinder"; // [vanilla: Falchion-22 - Missile_AA_04_Plane_CAS_01_F]
};
class 4Rnd_AAA_missiles;
class PylonRack_1Rnd_AAA_missiles: 4Rnd_AAA_missiles {
displayName = "AIM-132 ASRAAM"; // [vanilla: ASRAAM - missiles_ASRAAM]
};
class 4Rnd_GAA_missiles;
class PylonRack_1Rnd_GAA_missiles: 4Rnd_GAA_missiles {
displayName = "AIM-120A AMRAAM"; // [vanilla: Zephyr - missiles_Zephyr]
};
class 6Rnd_Missile_AGM_02_F;
class PylonRack_1Rnd_Missile_AGM_02_F: 6Rnd_Missile_AGM_02_F {
displayName = "AGM-65 Maverick"; // [vanilla: Macer - Missile_AGM_02_Plane_CAS_01_F]
};
class PylonRack_3Rnd_Missile_AGM_02_F: PylonRack_1Rnd_Missile_AGM_02_F {
displayName = "AGM-65 Maverick 3x"; // [vanilla: Macer 3x - Missile_AGM_02_Plane_CAS_01_F]
};
class 2Rnd_LG_scalpel;
class PylonRack_1Rnd_LG_scalpel: 2Rnd_LG_scalpel {
displayName = "9K121 Vikhr"; // [vanilla: Scalpel - missiles_SCALPEL]
};
class PylonRack_3Rnd_LG_scalpel: PylonRack_1Rnd_LG_scalpel {
displayName = "9K121 Vikhr 3x"; // [vanilla: Scalpel 3x - missiles_SCALPEL]
};
class PylonRack_4Rnd_LG_scalpel: PylonRack_1Rnd_LG_scalpel {
displayName = "9K121 Vikhr 4x"; // [vanilla: Scalpel 4x - missiles_SCALPEL]
};
class PylonRack_7Rnd_Rocket_04_HE_F: 7Rnd_Rocket_04_HE_F {
displayName = "Hydra 70 7x HE"; // [vanilla: Shrieker 7x HE - Rocket_04_HE_Plane_CAS_01_F]
};
class PylonRack_7Rnd_Rocket_04_AP_F: 7Rnd_Rocket_04_AP_F {
displayName = "Hydra 70 7x AP"; // [vanilla: Shrieker 7x AP - Rocket_04_AP_Plane_CAS_01_F]
};
class 12Rnd_missiles;
class PylonRack_12Rnd_missiles: 12Rnd_missiles {
displayName = "Hydra 70"; // [vanilla: DAR - missiles_DAR]
};
class PylonRack_20Rnd_Rocket_03_HE_F: 20Rnd_Rocket_03_HE_F {
displayName = "S-8 20x HE"; // [vanilla: Tratnyr 20x HE - Rocket_03_HE_Plane_CAS_02_F]
};
class PylonRack_20Rnd_Rocket_03_AP_F: 20Rnd_Rocket_03_AP_F {
displayName = "S-8 20x AP"; // [vanilla: Tratnyr 20x AP - Rocket_03_AP_Plane_CAS_02_F]
};
class 2Rnd_Missile_AA_03_F;
class PylonRack_1Rnd_Missile_AA_03_F: 2Rnd_Missile_AA_03_F {
displayName = "Wympel R-73"; // [vanilla: Sahr-3 - Missile_AA_03_Plane_CAS_02_F]
};
class 4Rnd_Missile_AGM_01_F;
class PylonRack_1Rnd_Missile_AGM_01_F: 4Rnd_Missile_AGM_01_F {
displayName = "Kh-25MTP"; // [vanilla: Sharur - Missile_AGM_01_Plane_CAS_02_F]
};
class 2Rnd_Bomb_03_F;
class PylonMissile_1Rnd_Bomb_03_F: 2Rnd_Bomb_03_F {
displayName = "FAB-250M-54"; // [vanilla: LOM-250G - Bomb_03_Plane_CAS_02_F]
};
};

View File

@ -0,0 +1,29 @@
// [] execVM "z\ace\addons\realisticnames\dev_dumpPylon.sqf";
private _justLog = true;
diag_log text format ["[Dumping Pylons] --------------------"];
private _magazines = configProperties [configFile >> "CfgMagazines", "isClass _x", true];
{
private _pylonWeapon = getText (_x >> "pylonWeapon");
if (_pylonWeapon != "") then {
private _weaponConfig = configFile >> "CfgWeapons" >> _pylonWeapon;
private _weaponName = getText (_weaponConfig >> "displayName");
private _inherit = (configProperties [_x, "configName _x == 'displayName'", false]) isEqualTo [];
private _pylonMagName = getText (_x >> "displayName");
if (_justLog) then {
if (!_inherit) then {
diag_log text format ["%1: [%2 vs %3]", configName _x, _pylonMagName, _weaponName];
} else {
diag_log text format [" - %1: [%2 vs %3]", configName _x, _pylonMagName, _weaponName];
};
} else {
if (!_inherit) then {
diag_log text format ['class %1;', configName inheritsFrom _x];
diag_log text format ['class %1: %2 {', configName _x, configName inheritsFrom _x];
diag_log text format ['displayName = "%1"; [vanilla: %2 - %3]', _weaponName, _pylonMagName, _pylonWeapon];
diag_log text format ['};', configName _x, configName inheritsFrom _x, _weaponName, _pylonMagName];
};
};
};
} forEach _magazines;