From 0a28e3e5a3304ee7b1570792fb95d79754ad7b96 Mon Sep 17 00:00:00 2001 From: Brandon Danyluk Date: Sun, 2 May 2021 01:28:28 -0600 Subject: [PATCH] localise sam --- addons/sam/CfgMagazines.hpp | 6 +++--- addons/sam/CfgVehicles.hpp | 12 ++++++------ addons/sam/CfgWeapons.hpp | 6 +++--- addons/sam/stringtable.xml | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 12 deletions(-) create mode 100644 addons/sam/stringtable.xml diff --git a/addons/sam/CfgMagazines.hpp b/addons/sam/CfgMagazines.hpp index bc16c6f914..568f425791 100644 --- a/addons/sam/CfgMagazines.hpp +++ b/addons/sam/CfgMagazines.hpp @@ -1,19 +1,19 @@ class CfgMagazines { class magazine_Missile_mim145_x4; class GVAR(patriot): magazine_Missile_mim145_x4 { - displayName = "MIM-104 Patriot Missile"; + displayName = CSTRING(patriot_missile); ammo = QGVAR(patriot); }; class magazine_Missile_rim162_x8; class GVAR(RIM162): magazine_Missile_rim162_x8 { - displayName = "RIM-162 ESSM"; + displayName = CSTRING(essm_missile); ammo = QGVAR(RIM162); }; class magazine_Missile_s750_x4; class GVAR(s400): magazine_Missile_s750_x4 { - displayName = "S-400"; + displayName = CSTRING(s400_missile); ammo = QGVAR(s400); }; }; diff --git a/addons/sam/CfgVehicles.hpp b/addons/sam/CfgVehicles.hpp index 6b4f5dcc13..0d4816802f 100644 --- a/addons/sam/CfgVehicles.hpp +++ b/addons/sam/CfgVehicles.hpp @@ -11,7 +11,7 @@ class CfgVehicles { // RIM-162 class SAM_System_02_base_F: StaticMGWeapon { - displayName = "Mk-29"; + displayName = CSTRING(essm); class AnimationSources { class Missiles_revolving { source = "revolving"; @@ -20,7 +20,7 @@ class CfgVehicles { }; class Turrets: Turrets { class MainTurret: MainTurret { - gunnerName = "Mk-29 Operator"; + gunnerName = CSTRING(essm_operator); weapons[] = { QGVAR(RIM162) }; @@ -32,7 +32,7 @@ class CfgVehicles { }; // Patriot class SAM_System_03_base_F: StaticMGWeapon { - displayName = "MIM-104 Patriot"; + displayName = CSTRING(patriot); class AnimationSources { class Missiles_revolving { source = "revolving"; @@ -41,7 +41,7 @@ class CfgVehicles { }; class Turrets: Turrets { class MainTurret: MainTurret { - gunnerName = "MIM-104 Patriot Operator"; + gunnerName = CSTRING(patriot_operator); weapons[] = { QGVAR(patriot) }; @@ -53,7 +53,7 @@ class CfgVehicles { }; // S-400 class SAM_System_04_base_F: StaticMGWeapon { - displayName = "S-400"; + displayName = CSTRING(s400); class AnimationSources { class Missiles_revolving { source = "revolving"; @@ -62,7 +62,7 @@ class CfgVehicles { }; class Turrets: Turrets { class MainTurret: MainTurret { - gunnerName = "S-400 Operator"; + gunnerName = CSTRING(s400_operator); weapons[] = { QGVAR(s400) }; diff --git a/addons/sam/CfgWeapons.hpp b/addons/sam/CfgWeapons.hpp index 4ae3c35722..7dc06c9813 100644 --- a/addons/sam/CfgWeapons.hpp +++ b/addons/sam/CfgWeapons.hpp @@ -2,7 +2,7 @@ class CfgWeapons { class weapon_mim145Launcher; class GVAR(patriot): weapon_mim145Launcher { author = "Brandon (TCVM)"; - displayName = "MIM-104 Patriot"; + displayName = CSTRING(patriot); magazines[] = { QGVAR(patriot) }; weaponLockDelay = 0.5; }; @@ -10,7 +10,7 @@ class CfgWeapons { class weapon_rim162Launcher; class GVAR(RIM162): weapon_rim162Launcher { author = "Brandon (TCVM)"; - displayName = "Mk-29 ESSM"; + displayName = CSTRING(essm); magazines[] = { QGVAR(RIM162) }; weaponLockDelay = 0.5; }; @@ -18,7 +18,7 @@ class CfgWeapons { class weapon_s750Launcher; class GVAR(s400): weapon_s750Launcher { author = "Brandon (TCVM)"; - displayName = "S-400"; + displayName = CSTRING(s400); magazines[] = { QGVAR(s400) }; weaponLockDelay = 0.5; }; diff --git a/addons/sam/stringtable.xml b/addons/sam/stringtable.xml new file mode 100644 index 0000000000..ab2ff3f6eb --- /dev/null +++ b/addons/sam/stringtable.xml @@ -0,0 +1,32 @@ + + + + + MIM-104 Patriot + + + MIM-104 Operator + + + Patriot Missile + + + Mk-29 ESSM + + + Mk-29 Operator + + + RIM-162 ESSM + + + S-400 + + + S-400 Operator + + + S-400 Missile + + +